:root {
    --bg: #f6f7fb;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --danger: #b91c1c;
    --warning: #b45309;
    --success: #047857;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.55;
}

a {
    color: var(--primary);
    text-decoration: none;
}

code {
    padding: 2px 6px;
    background: #eef2f7;
    border-radius: 4px;
}

.page {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: 18px;
}

.page.narrow {
    width: min(640px, 100%);
    padding-top: 56px;
}

.mobile-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    color: var(--text);
    font-weight: 800;
}

.mobile-top nav {
    display: flex;
    gap: 12px;
    font-size: 14px;
    white-space: nowrap;
}

.panel,
.job-card,
.stat-card,
.table-wrap {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.panel {
    padding: 20px;
}

h1,
h2,
h3 {
    margin: 0 0 14px;
    line-height: 1.25;
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 17px;
}

.muted {
    color: var(--muted);
}

.job-grid,
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.job-card,
.stat-card {
    padding: 18px;
}

.job-card h2 {
    margin-bottom: 8px;
}

.card-actions,
.toolbar,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.primary-btn,
.ghost-btn,
.danger-btn,
button,
.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
}

.primary-btn,
button {
    color: #fff;
    background: var(--primary);
}

.primary-btn:hover,
button:hover {
    background: var(--primary-dark);
}

.ghost-btn {
    color: var(--text);
    background: #fff;
    border-color: var(--line);
}

.danger-btn {
    color: #fff;
    background: var(--danger);
}

.small-btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
}

form {
    margin: 0;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.field input[type="checkbox"] {
    width: auto;
    min-height: auto;
    margin-right: 6px;
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field .rich {
    min-height: 240px;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.code-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
}

.alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.alert.success {
    color: var(--success);
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.alert.warning {
    color: var(--warning);
    background: #fffbeb;
    border-color: #fde68a;
}

.alert.danger {
    color: var(--danger);
    background: #fef2f2;
    border-color: #fecaca;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
}

.badge.success {
    background: #dcfce7;
    color: #166534;
}

.badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

.rich-content {
    overflow-wrap: anywhere;
}

.rich-content img {
    max-width: 100%;
    height: auto;
}

.admin-shell {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 100vh;
}

.sidebar {
    padding: 20px 14px;
    background: #111827;
    color: #fff;
}

.sidebar-title {
    margin: 0 8px 18px;
    font-weight: 800;
}

.sidebar a {
    display: block;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    color: #d1d5db;
}

.sidebar a:hover {
    background: #1f2937;
    color: #fff;
}

.admin-main {
    padding: 22px;
}

.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: #374151;
    background: #f9fafb;
    font-size: 13px;
}

.score-row {
    display: grid;
    grid-template-columns: 1.2fr 140px 1.4fr;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.score-items .item-row {
    display: grid;
    grid-template-columns: 1fr 120px 80px auto;
    gap: 10px;
    margin-bottom: 10px;
}

.empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 760px) {
    .mobile-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .page {
        padding: 14px;
    }

    .panel {
        padding: 16px;
    }

    .two-col,
    .three-col,
    .code-row,
    .score-row,
    .score-items .item-row,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px;
    }

    .sidebar-title {
        width: 100%;
        margin: 0 0 8px;
    }

    .sidebar a {
        margin: 0;
        padding: 8px 10px;
        background: #1f2937;
    }

    .admin-main {
        padding: 14px;
    }

    .admin-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Premium admin surfaces */
.admin-main {
    background:
        linear-gradient(180deg, rgba(33, 78, 69, .06), rgba(245, 246, 247, 0) 260px),
        var(--bg);
}

.admin-head {
    padding: 4px 0 10px;
}

.admin-head h1 {
    font-size: 28px;
    font-weight: 780;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.admin-metric-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(23, 26, 31, .08);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #fbfcfc);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.admin-metric-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(.35);
    transform-origin: left;
    transition: transform .22s ease;
}

.admin-metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(33, 78, 69, .28);
    box-shadow: 0 18px 42px rgba(23, 26, 31, .08);
}

.admin-metric-card:hover::after {
    transform: scaleX(1);
}

.admin-metric-card span,
.admin-metric-card em {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.admin-metric-card strong {
    display: block;
    margin: 8px 0 2px;
    color: var(--text);
    font-size: 34px;
    line-height: 1;
}

.admin-filter-panel {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
}

.admin-filter-form {
    display: grid;
    grid-template-columns: 150px 150px minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
    gap: 12px;
    align-items: end;
}

.admin-filter-form .field {
    margin-bottom: 0;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 0;
}

.admin-table-card {
    border-color: rgba(23, 26, 31, .08);
    box-shadow: 0 20px 56px rgba(23, 26, 31, .06);
}

.admin-table-card table {
    min-width: 1260px;
}

.admin-table-card tbody tr {
    transition: background-color .18s ease, transform .18s ease;
}

.admin-table-card tbody tr:hover {
    background: #fbfcfc;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.row-actions form {
    display: inline-flex;
}

.candidate-cell {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 180px;
}

.candidate-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(33, 78, 69, .16);
    border-radius: 50%;
    background: linear-gradient(135deg, #eef3f1, #fff);
    color: var(--primary);
    font-weight: 800;
}

.candidate-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.candidate-mini-tags span {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--soft);
    color: #31564e;
    font-size: 12px;
    font-weight: 700;
}

.resume-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 8px 14px;
    min-width: 320px;
}

.resume-profile-grid span {
    min-width: 0;
    color: #27302d;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.resume-profile-grid em {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.skill-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(33, 78, 69, .18);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    cursor: default;
}

.skill-tip:hover,
.skill-tip:focus {
    background: #fff;
    color: var(--primary-dark);
}

.skill-tip b {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 30;
    width: 320px;
    max-width: 55vw;
    padding: 12px 14px;
    border: 1px solid rgba(23, 26, 31, .12);
    border-radius: 8px;
    background: #171a1f;
    color: #fff;
    box-shadow: 0 18px 48px rgba(23, 26, 31, .2);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
    white-space: normal;
}

.skill-tip:hover b,
.skill-tip:focus b {
    opacity: 1;
    transform: translateY(0);
}

.danger-btn {
    background: #a33a32;
}

.danger-btn:hover {
    background: #842d28;
}

.sidebar {
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04);
}

.sidebar a {
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.sidebar a:hover {
    transform: translateX(2px);
}

.panel,
.table-wrap,
.stat-card {
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.panel:hover {
    border-color: rgba(33, 78, 69, .2);
}

@media (max-width: 980px) {
    .admin-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-card-grid,
    .admin-filter-form {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-wrap: wrap;
    }
}

/* Refined visual system: calmer, editorial, less template-like. */
:root {
    --bg: #f5f6f7;
    --panel: #ffffff;
    --text: #171a1f;
    --muted: #66707a;
    --line: #e3e6e8;
    --primary: #214e45;
    --primary-dark: #173a33;
    --accent: #a06a2b;
    --soft: #eef3f1;
    --danger: #a33a32;
    --warning: #98620d;
    --success: #216247;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.page {
    width: min(1040px, 100%);
    padding: 20px 16px 34px;
}

.mobile-top {
    padding: 14px 18px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(23, 26, 31, .08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 15px;
    letter-spacing: .02em;
}

.brand::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--primary);
}

.mobile-top nav a {
    color: #3f474f;
}

.mobile-top nav a:hover {
    color: var(--primary);
}

.mobile-hero {
    margin: 4px 0 24px;
    padding: 36px 28px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, #18211f 0%, #243b36 64%, #3b332b 100%);
    box-shadow: none;
}

.mobile-hero::after {
    display: none;
}

.mobile-hero.compact {
    padding: 30px 26px;
}

.mobile-hero h1 {
    max-width: 760px;
    margin-bottom: 12px;
    font-size: clamp(30px, 7vw, 48px);
    font-weight: 750;
    line-height: 1.14;
}

.mobile-hero.compact h1 {
    font-size: clamp(28px, 6vw, 40px);
}

.mobile-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, .76);
    font-size: 16px;
}

.eyebrow {
    margin-bottom: 14px;
    color: #d5c29d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.hero-stats span {
    min-height: 76px;
    padding: 18px 16px 0 0;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .12);
    border-radius: 0;
    background: transparent;
}

.hero-stats span:last-child {
    border-right: 0;
}

.hero-stats strong {
    margin-bottom: 4px;
    font-size: 26px;
    font-weight: 760;
}

.section-title {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.section-title h2 {
    font-size: 22px;
    font-weight: 760;
}

.panel,
.job-card,
.trial-card,
.upload-panel,
.auth-panel,
.rich-panel,
.stat-card,
.table-wrap {
    border-color: var(--line);
    border-radius: 8px;
    box-shadow: none;
}

.panel {
    padding: 22px;
}

.job-grid {
    gap: 12px;
}

.job-card {
    padding: 22px;
    transition: border-color .18s ease, transform .18s ease;
}

.job-card::before {
    display: none;
}

.job-card:hover {
    transform: translateY(-2px);
    border-color: rgba(33, 78, 69, .38);
    box-shadow: none;
}

.job-card h2,
.trial-card h2 {
    font-size: 21px;
    font-weight: 760;
}

.job-chip,
.badge {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.job-chip {
    color: var(--primary);
    background: var(--soft);
}

.primary-btn,
.ghost-btn,
.danger-btn,
button,
.small-btn {
    border-radius: 5px;
    font-weight: 720;
}

.primary-btn,
button {
    background: var(--primary);
}

.primary-btn:hover,
button:hover {
    background: var(--primary-dark);
}

.ghost-btn {
    border-color: #cfd6d3;
}

.field label {
    font-size: 14px;
}

.field input,
.field textarea,
.field select {
    border-color: #ccd3d0;
    border-radius: 5px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 2px solid rgba(33, 78, 69, .14);
    border-color: var(--primary);
}

.submit-switch {
    gap: 10px;
}

.submit-switch label {
    min-height: 108px;
    border-radius: 8px;
    background: #fcfdfd;
}

.submit-switch label.active {
    transform: none;
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(33, 78, 69, .12);
}

.requirement-box {
    border-radius: 8px;
    background: #fafbfb;
}

.trial-card {
    padding: 22px;
}

.timeline span {
    border-radius: 5px;
}

.result-panel,
.score-live-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfc;
}

.result-ring,
.score-orbit {
    background:
        radial-gradient(circle at center, #fff 58%, transparent 59%),
        conic-gradient(var(--primary) var(--score-percent), #e1e7e4 0);
    box-shadow: none;
}

.animated-bar span,
.score-meter span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.site-footer {
    margin-top: 28px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.site-footer p {
    margin: 0 0 6px;
}

.site-footer-contact {
    color: #3f474f;
}

.admin-shell {
    background: var(--bg);
}

.sidebar {
    background: #171a1f;
}

.sidebar-title {
    letter-spacing: .02em;
}

.sidebar a {
    border-radius: 5px;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, .08);
}

@media (max-width: 760px) {
    .page {
        padding: 14px 12px 28px;
    }

    .mobile-hero,
    .mobile-hero.compact {
        padding: 28px 20px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-stats span {
        min-height: auto;
        padding: 14px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .hero-stats span:last-child {
        border-bottom: 0;
    }
}

@property --score-percent {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 0%;
}

body {
    background:
        linear-gradient(180deg, rgba(15, 118, 110, .08), rgba(255, 255, 255, 0) 260px),
        #f4f6f3;
}

.mobile-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 16px;
    padding: 30px 22px;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(10, 15, 18, .95), rgba(18, 95, 84, .94) 58%, rgba(126, 77, 23, .92)),
        #17201f;
    box-shadow: 0 22px 50px rgba(17, 24, 39, .18);
}

.mobile-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: .28;
    pointer-events: none;
}

.mobile-hero > * {
    position: relative;
    z-index: 1;
}

.mobile-hero.compact {
    padding: 24px 20px;
}

.mobile-hero h1 {
    max-width: 680px;
    margin-bottom: 10px;
    font-size: clamp(28px, 8vw, 46px);
}

.mobile-hero.compact h1 {
    font-size: clamp(26px, 7vw, 38px);
}

.mobile-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
}

.mobile-hero a {
    color: #fff;
    text-decoration: underline;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: #b7f3dd;
    font-size: 13px;
    font-weight: 800;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.hero-stats span {
    min-height: 64px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .78);
}

.hero-stats strong {
    display: block;
    color: #fff;
    font-size: 22px;
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 14px;
}

.section-title h2 {
    margin-bottom: 4px;
}

.job-card,
.trial-card,
.upload-panel,
.auth-panel,
.rich-panel {
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.job-card {
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.job-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #0f766e, #b7791f);
}

.job-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, .35);
    box-shadow: 0 20px 46px rgba(15, 23, 42, .12);
}

.job-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 12px;
    padding: 0 9px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

.rich-panel,
.upload-panel,
.auth-panel {
    border-color: rgba(15, 118, 110, .16);
}

.requirement-box {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfc;
}

.requirement-box summary {
    cursor: pointer;
    font-weight: 800;
}

.submit-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.submit-switch label {
    display: block;
    min-height: 112px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.submit-switch label.active {
    border-color: rgba(15, 118, 110, .55);
    box-shadow: 0 14px 30px rgba(15, 118, 110, .13);
    transform: translateY(-2px);
}

.submit-switch input {
    width: auto;
    min-height: auto;
    margin-right: 6px;
}

.submit-switch strong,
.submit-switch span {
    display: block;
}

.submit-switch span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.upload-choice {
    display: none;
    animation: fadeUp .22s ease both;
}

.upload-choice.active {
    display: block;
}

.trial-card {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.trial-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.timeline span {
    position: relative;
    padding: 10px 8px;
    border-radius: 8px;
    background: #f3f4f6;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.timeline span.done {
    background: #dcfce7;
    color: #166534;
}

.result-panel {
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 18px;
    align-items: center;
    margin: 14px 0;
    padding: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc, #eef7f3);
}

.result-ring,
.score-orbit {
    display: grid;
    place-items: center;
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 59%),
        conic-gradient(#0f766e var(--score-percent), #dbe5e2 0);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .12), 0 12px 30px rgba(15, 118, 110, .16);
    animation: scoreReveal .95s ease-out both;
}

.result-ring strong,
.score-orbit span {
    color: #0f172a;
    font-size: 28px;
    line-height: 1;
}

.result-ring small,
.score-orbit small {
    margin-top: -32px;
    color: var(--muted);
    font-size: 13px;
}

.score-detail-list {
    display: grid;
    gap: 10px;
}

.score-detail {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.score-detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.animated-bar,
.score-meter {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
}

.animated-bar span,
.score-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #b7791f);
}

.animated-bar span {
    width: var(--score-percent);
    animation: barGrow .9s ease-out both;
}

.score-detail p {
    margin: 10px 0 0;
    color: #374151;
}

.score-brief {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
}

.work-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
}

.score-live-card {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 18px;
    align-items: center;
    margin: 16px 0 6px;
    padding: 16px;
    border: 1px solid rgba(15, 118, 110, .18);
    border-radius: 8px;
    background: #f7fbf9;
}

.score-verdict {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.score-verdict.success {
    background: #dcfce7;
    color: #166534;
}

.score-verdict.danger {
    background: #fee2e2;
    color: #991b1b;
}

.score-row.enhanced {
    grid-template-columns: 1fr 230px minmax(260px, 1.3fr);
}

.score-control input[type="number"] {
    margin-top: 10px;
}

.score-range {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    accent-color: var(--primary);
}

.score-range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f766e var(--range-percent), #e5e7eb 0);
}

.score-range::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -7px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #0f766e;
    box-shadow: 0 4px 14px rgba(15, 118, 110, .35);
}

.score-range::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
}

.score-range::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: #0f766e;
}

.score-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #0f766e;
    box-shadow: 0 4px 14px rgba(15, 118, 110, .35);
}

.preset-select {
    margin-bottom: 10px;
}

.compact-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 8px;
}

.compact-switch label {
    min-height: 94px;
}

.sms-provider-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 8px 0 0;
}

.sms-provider-switch label {
    min-height: 90px;
}

.resume-review-card {
    position: relative;
    overflow: hidden;
}

.resume-review-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.resume-review-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.inline-action-form {
    margin: -4px 0 16px;
}

.resume-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.resume-highlight-item {
    min-height: 86px;
    padding: 14px;
    border: 1px solid rgba(33, 78, 69, .12);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8faf9);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.resume-highlight-item:hover {
    transform: translateY(-2px);
    border-color: rgba(33, 78, 69, .28);
    box-shadow: 0 14px 32px rgba(23, 26, 31, .06);
}

.resume-highlight-item span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.resume-highlight-item strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.resume-raw {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfc;
}

.resume-raw summary {
    cursor: pointer;
    font-weight: 800;
}

.resume-raw pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 12px 0 0;
    color: #3f474f;
    font-family: inherit;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes barGrow {
    from {
        width: 0;
    }
}

@keyframes scoreReveal {
    from {
        --score-percent: 0%;
        transform: scale(.96);
    }
    to {
        transform: scale(1);
    }
}

@media (max-width: 760px) {
    .mobile-hero {
        padding: 24px 18px;
    }

    .hero-stats,
    .submit-switch,
    .compact-switch,
    .result-panel,
    .score-live-card,
    .score-row.enhanced,
    .score-brief,
    .resume-review-head,
    .resume-highlight-grid,
    .three-col {
        grid-template-columns: 1fr;
    }

    .trial-head {
        flex-direction: column;
    }

    .result-ring,
    .score-orbit {
        width: 116px;
        height: 116px;
    }

    .work-actions {
        justify-content: flex-start;
    }
}
