
        body {
            background: #f4f6f8;
            font-family: "Noto Sans TC", sans-serif;
            color: #1f2937;
        }
        .hero {
            background: linear-gradient(135deg, #29404f 0%, #35576a 100%);
            color: #fff;
            padding: 2.25rem 1rem 1.75rem;
            border-radius: 0 0 1.4rem 1.4rem;
            margin-bottom: 1.5rem;
        }
        .hero-shell {
            max-width: 1320px;
            margin: 0 auto;
        }
        .home-title-link {
            color: inherit;
            text-decoration: none;
        }
        .home-title-link:hover,
        .home-title-link:focus {
            color: #fff;
            text-decoration: none;
        }
        .hero-actions {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 1rem;
        }
        .search-panel {
            background: #fff;
            border-radius: 18px;
            border: none;
            box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
        }
        .search-grid {
            display: grid;
            grid-template-columns: 20fr 50fr 12fr 18fr;
            gap: 1rem;
            align-items: center;
        }
        .voice-button {
            border: 1px solid #f2c7d2;
            background: #fde7ee;
            color: #b24f6c;
            font-weight: 700;
        }
        .voice-button:hover,
        .voice-button:focus {
            background: #fbd7e3;
            color: #a33b5d;
        }
        .voice-button.is-listening {
            border-color: #dc3545;
            background: #dc3545;
            color: #fff;
        }
        .search-keyword .form-control {
            border: 2px solid #7c3aed;
            box-shadow: 0 0 0.65rem rgba(124, 58, 237, 0.32);
        }
        .search-keyword .form-control:focus {
            border-color: #7c3aed;
            box-shadow: 0 0 0.85rem rgba(124, 58, 237, 0.42);
        }
        .stats-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 1.25rem;
            align-items: stretch;
        }
        .stats-card {
            background: #fff;
            border: none;
            border-radius: 18px;
            box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
            overflow: hidden;
        }
        .stats-card-header {
            padding: 1rem 1.2rem;
            font-weight: 800;
            font-size: 1.25rem;
            color: #fff;
        }
        .stats-card-header.green {
            background: #198754;
        }
        .stats-card-header.blue {
            background: #0d6efd;
        }
        .chart-wrap {
            position: relative;
            min-height: 420px;
            padding: 1rem 1.25rem 1.25rem;
        }
        .table-wrap {
            max-height: 520px;
            overflow: auto;
        }
        .table thead th {
            position: sticky;
            top: 0;
            z-index: 1;
            background: #f8fafc;
        }
        .stage-chart-layout {
            display: grid;
            grid-template-columns: minmax(320px, 48%) 1fr;
            align-items: center;
            gap: 2rem;
            padding: 1.5rem 2rem;
        }
        .stage-chart-container {
            position: relative;
            height: 350px;
            width: 100%;
        }
        .stage-chart-legend {
            display: grid;
            gap: .8rem;
        }
        .stage-legend-row {
            display: grid;
            grid-template-columns: 18px minmax(210px, 1fr) auto auto;
            align-items: center;
            gap: .8rem;
            padding: .8rem 1rem;
            border: 1px solid #e4e9ef;
            border-radius: 12px;
            background: #f9fbfd;
        }
        .stage-legend-dot { width: 16px; height: 16px; border-radius: 4px; }
        .stage-legend-title { color: #263238; font-weight: 700; }
        .stage-legend-count { color: #5f2dbd; font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
        .stage-legend-percent { min-width: 72px; color: #1f2937; font-size: 1.1rem; font-weight: 800; text-align: right; white-space: nowrap; }
        .frontend-search-summary {
            margin-top: .25rem;
            padding: 1rem 1.15rem;
            border: 2px solid #dc3545;
            border-radius: 12px;
            background: #fff8f8;
            color: #263238;
            font-weight: 700;
            line-height: 1.8;
        }
        .frontend-search-summary strong {
            color: #b42318;
            font-size: 1.08rem;
        }
        .workflow-card { border-radius: 16px; border: none; box-shadow: 0 4px 15px rgba(0,0,0,.05); overflow: hidden; background: #fff; }
        .workflow-row { display: grid; grid-template-columns: minmax(250px, 34%) 1fr; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem; border-bottom: 1px solid #e9ecef; border-left: 6px solid #6c757d; }
        .workflow-row:last-child { border-bottom: 0; }
        .workflow-row.stage-pending { border-left-color: #dc3545; }
        .workflow-row.stage-edited { border-left-color: #fd7e14; }
        .workflow-row.stage-approved { border-left-color: #0d6efd; }
        .workflow-row.stage-recorded { border-left-color: #198754; }
        .workflow-row.stage-audio-approved { border-left-color: #6f42c1; }
        .workflow-title { color: #263238; font-weight: 700; }
        .workflow-count { display: inline-block; margin-left: .3rem; color: #6f42c1; font-size: 1.2rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
        .workflow-count:hover { color: #4d2d8d; }
        .workflow-description { color: #6c757d; line-height: 1.65; }
        .vocab-card {
            border-radius: 16px;
            border: none;
            transition: transform 0.2s;
            background: #ffffff;
            border-left: 6px solid #198754;
            box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
        }
        .vocab-card:hover {
            transform: translateY(-2px);
        }
        .word-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        .word-card-badges {
            display: flex;
            flex-wrap: wrap;
            gap: .5rem;
            min-width: 0;
        }
        .word-workflow-credits {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: .3rem .85rem;
            color: #56616f;
            font-size: .78rem;
            line-height: 1.45;
            text-align: right;
        }
        .word-workflow-credit {
            white-space: nowrap;
        }
        .word-workflow-credit strong {
            color: #293847;
            font-weight: 800;
        }
        .name-card {
            border-radius: 16px;
            border: none;
            transition: transform 0.2s;
            background: #ffffff;
            border-left: 6px solid #d35400;
            box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
        }
        .name-card:hover {
            transform: translateY(-2px);
        }
        .text-name-title {
            color: #c2410c !important;
        }
        .inline-audio-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.05rem;
            height: 2.05rem;
            margin-left: 0.45rem;
            border: 2px solid rgba(13, 110, 253, 0.28);
            border-radius: 999px;
            background: #ffffff;
            color: #0d6efd;
            font-size: 1.05rem;
            line-height: 1;
            vertical-align: middle;
            box-shadow: 0 4px 12px rgba(13, 110, 253, 0.16);
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
        }
        .inline-audio-button:hover,
        .inline-audio-button:focus {
            background: #eef6ff;
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(13, 110, 253, 0.22);
        }
        .inline-audio-button.is-playing {
            background: #0d6efd;
            color: #ffffff;
            border-color: #0d6efd;
        }
        .audio-container {
            background-color: #f8f9fa;
            border-radius: 12px;
            padding: 8px 12px;
            margin-bottom: 10px;
            border: 1px solid #e9ecef;
        }
        audio {
            height: 40px;
            outline: none;
            width: 100%;
            border-radius: 20px;
        }
        .example-box {
            background-color: #fff8e1;
            padding: 14px;
            border-radius: 12px;
            border-left: 4px solid #ffc107;
            margin-top: 12px;
        }
        .cultural-note {
            background-color: #e3f2fd;
            padding: 14px;
            border-radius: 12px;
            font-size: 0.95em;
            color: #1e4b6d;
            margin-top: 12px;
            border-left: 4px solid #0dcaf0;
            line-height: 1.6;
        }
        .origin-story {
            background-color: #fff4ea;
            padding: 14px;
            border-radius: 12px;
            font-size: 0.95em;
            color: #333333;
            margin-top: 12px;
            border-left: 4px solid #e67e22;
            line-height: 1.6;
        }
        @media (max-width: 992px) {
            .hero {
                padding: 15px 1rem 18px;
            }
            .hero h1 {
                font-size: 2rem;
                line-height: 38px;
                margin-bottom: 0.5rem !important;
            }
            .hero p {
                font-size: 1rem;
                line-height: 24px;
            }
            .hero-actions {
                margin-top: 16px;
            }
            .hero-actions .btn {
                min-height: 38px;
                padding-top: 6px;
                padding-bottom: 6px;
                line-height: 24px;
            }
            .search-grid {
                grid-template-columns: repeat(10, minmax(0, 1fr));
                gap: 0.75rem;
                align-items: end;
            }
            .search-dialect {
                grid-column: 1 / 11;
            }
            .search-keyword {
                grid-column: 1 / 11;
                width: 100%;
                margin-top: 0.5em;
                margin-bottom: 1em;
            }
            .search-keyword .form-control {
                border: 2px solid #7c3aed;
                box-shadow: 0 0 0.65rem rgba(124, 58, 237, 0.32);
            }
            .search-voice {
                grid-column: 1 / 11;
                width: 100%;
            }
            .search-submit {
                grid-column: 1 / 11;
                width: 100%;
            }
            .search-voice .btn,
            .search-submit .btn {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: clip;
                font-size: clamp(1.2rem, 5vw, 1.7rem);
                padding-left: 0.35rem;
                padding-right: 0.35rem;
                line-height: 1.2;
            }
            .search-dialect .form-label,
            .search-dialect .form-select {
                font-size: 0.9rem;
            }
            .stats-grid {
                grid-template-columns: 1fr;
            }
            .chart-wrap {
                min-height: 320px;
            }
            .word-card-header {
                display: block;
            }
            .word-workflow-credits {
                justify-content: flex-start;
                margin-top: .7rem;
                text-align: left;
            }
            .stage-chart-layout { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
            .stage-chart-container { height: 300px; }
            .stage-legend-row { grid-template-columns: 16px minmax(0, 1fr) auto; gap: .55rem; padding: .65rem .7rem; }
            .stage-legend-percent { grid-column: 3; min-width: 60px; font-size: 1rem; }
            .stage-legend-count { grid-column: 2; font-size: 1rem; }
            .workflow-row { grid-template-columns: 1fr; gap: .4rem; padding: .9rem 1rem; }
        }
    