:root {
    --ink: #142826;
    --muted: #677875;
    --paper: #f6f7f3;
    --surface: #ffffff;
    --line: #dfe8e4;
    --teal: #135f56;
    --teal-2: #1c7b6d;
    --teal-3: #e7f2ee;
    --gold: #e4a849;
    --gold-soft: #fff4df;
    --danger: #b84b48;
    --danger-soft: #fbeceb;
    --success: #397b59;
    --shadow: 0 16px 50px rgba(19, 56, 50, .08);
    --shadow-sm: 0 8px 24px rgba(19, 56, 50, .06);
    --radius: 18px;
    --radius-sm: 11px;
    --max: 1240px;
    --font: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    color: #fff;
    background: var(--teal);
}

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

a:hover {
    color: var(--teal-2);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.25;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(32px, 4.2vw, 58px);
}

h2 {
    font-size: clamp(24px, 2.7vw, 35px);
}

h3 {
    font-size: 18px;
}

code {
    padding: 2px 6px;
    color: var(--teal);
    background: var(--teal-3);
    border-radius: 5px;
    font-size: 12px;
    word-break: break-all;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(246, 247, 243, .93);
    border-bottom: 1px solid rgba(207, 219, 214, .8);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 32px;
    width: min(var(--max), calc(100% - 48px));
    min-height: 76px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    color: var(--ink);
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--teal);
    border-radius: 13px 13px 13px 4px;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 25px;
    place-items: center;
    box-shadow: 0 7px 16px rgba(19, 95, 86, .2);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 19px;
    letter-spacing: .04em;
    white-space: nowrap;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .08em;
}

.main-nav,
.public-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.main-nav a,
.public-nav > a:not(.button) {
    padding: 8px 12px;
    color: #4e615d;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active,
.public-nav > a:not(.button):hover {
    color: var(--teal);
    background: var(--teal-3);
}

.public-nav {
    gap: 18px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-left: 3px;
}

.notification-link {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.badge {
    position: absolute;
    top: -10px;
    right: -15px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    color: #fff;
    background: var(--danger);
    border: 2px solid var(--paper);
    border-radius: 20px;
    font-size: 9px;
    line-height: 14px;
    text-align: center;
}

.avatar-link img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(15, 45, 43, .14);
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.text-button {
    padding: 0;
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

.text-button:hover {
    color: var(--teal);
}

.text-button.success {
    color: var(--success);
}

.text-button.danger {
    color: var(--danger);
}

.mobile-nav-toggle {
    display: none;
    flex: 0 0 auto;
    padding: 7px 12px;
    color: var(--teal);
    background: var(--teal-3);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.site-main {
    min-height: calc(100vh - 180px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 20px;
    color: var(--ink);
    background: #fff;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    color: #fff;
    background: var(--teal);
    box-shadow: 0 8px 20px rgba(19, 95, 86, .18);
}

.button.primary:hover {
    color: #fff;
    background: var(--teal-2);
    box-shadow: 0 12px 24px rgba(19, 95, 86, .24);
}

.button.secondary {
    color: var(--teal);
    background: var(--teal-3);
}

.button.light {
    color: var(--teal);
    background: #f5faf7;
    border-color: #dbe9e3;
}

.button.ghost {
    color: var(--teal);
    background: transparent;
    border-color: #cdded8;
}

.button.outline-light {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, .28);
}

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

.button.small {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
}

.button.large {
    min-height: 52px;
    padding: 13px 28px;
    border-radius: 12px;
}

.button.full {
    width: 100%;
}

.button:disabled {
    opacity: .55;
    cursor: wait;
}

.flash-stack {
    position: fixed;
    z-index: 100;
    top: 88px;
    right: 24px;
    display: grid;
    gap: 9px;
    width: min(390px, calc(100% - 32px));
}

.flash {
    padding: 13px 16px;
    color: #1e513c;
    background: #edf8f1;
    border: 1px solid #cfe8d8;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    font-size: 13px;
}

.flash.error {
    color: #783b39;
    background: #fff0ee;
    border-color: #f0cfcb;
}

.flash.warning {
    color: #725216;
    background: #fff8e9;
    border-color: #eeddb8;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 100px;
    background:
        radial-gradient(circle at 9% 95%, rgba(228, 168, 73, .14), transparent 23%),
        radial-gradient(circle at 88% 4%, rgba(55, 131, 119, .12), transparent 27%),
        linear-gradient(180deg, #f8f8f3, #f1f5f1);
}

.hero::after {
    position: absolute;
    top: -70px;
    right: 2%;
    width: 430px;
    height: 430px;
    content: "";
    border: 1px solid rgba(19, 95, 86, .09);
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    gap: 80px;
    grid-template-columns: 1.08fr .92fr;
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--teal-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #8fd0c1;
}

.hero-copy h1 {
    margin-bottom: 25px;
    font-family: "STSong", "Songti SC", serif;
    font-size: clamp(46px, 5.8vw, 78px);
    line-height: 1.08;
    letter-spacing: -.06em;
}

.hero-copy h1 em {
    color: var(--teal);
    font-style: normal;
}

.hero-copy > p {
    max-width: 570px;
    margin-bottom: 32px;
    color: #596c67;
    font-size: 17px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 38px;
    padding-top: 24px;
    color: var(--muted);
    border-top: 1px solid rgba(25, 82, 72, .13);
    font-size: 11px;
}

.trust-row span {
    display: flex;
    flex-direction: column;
}

.trust-row b {
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 13px;
}

.hero-panel {
    position: relative;
    min-height: 520px;
}

.workflow-card {
    position: absolute;
    top: 64px;
    right: 28px;
    left: 18px;
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(19, 95, 86, .08);
    border-radius: 24px;
    box-shadow: 0 35px 80px rgba(24, 74, 64, .14);
    transform: rotate(-2deg);
}

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

.workflow-head span {
    color: var(--muted);
    font-size: 12px;
}

.workflow-head strong {
    color: var(--teal);
    font-size: 22px;
}

.progress-line {
    height: 5px;
    overflow: hidden;
    background: #edf2ee;
    border-radius: 10px;
}

.progress-line span {
    display: block;
    width: 72%;
    height: 100%;
    background: linear-gradient(90deg, var(--teal), #67a995);
}

.workflow-steps {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, 1fr);
    margin: 25px 0;
}

.workflow-steps div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #9ba8a4;
    font-size: 10px;
}

.workflow-steps b {
    display: grid;
    width: 22px;
    height: 22px;
    background: #f1f3f1;
    border-radius: 50%;
    font-size: 9px;
    place-items: center;
}

.workflow-steps .done,
.workflow-steps .current {
    color: var(--ink);
}

.workflow-steps .done b {
    color: #fff;
    background: var(--teal);
}

.workflow-steps .current b {
    color: var(--teal);
    background: var(--gold-soft);
    outline: 2px solid rgba(228, 168, 73, .35);
}

.mini-delivery {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    background: #f6f8f5;
    border: 1px solid #e9efeb;
    border-radius: 13px;
}

.file-icon {
    display: grid;
    width: 44px;
    height: 48px;
    color: var(--teal);
    background: var(--teal-3);
    border-radius: 8px 8px 8px 3px;
    font-size: 10px;
    font-weight: 800;
    place-items: center;
}

.mini-delivery div:nth-child(2) {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.mini-delivery strong {
    font-size: 12px;
}

.mini-delivery small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.check-mark {
    display: grid;
    width: 25px;
    height: 25px;
    color: #fff;
    background: var(--teal);
    border-radius: 50%;
    font-size: 12px;
    place-items: center;
}

.floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(17, 75, 66, .08);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.floating-card div:not(.avatar-stack) {
    display: flex;
    flex-direction: column;
}

.floating-card small {
    color: var(--muted);
    font-size: 9px;
}

.floating-card strong {
    margin-top: 2px;
    font-size: 12px;
}

.card-top {
    top: 20px;
    left: -12px;
    transform: rotate(2deg);
}

.card-bottom {
    right: 0;
    bottom: 18px;
    transform: rotate(-1deg);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #50ab78;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(80, 171, 120, .13);
}

.avatar-stack {
    display: flex;
}

.avatar-stack i {
    display: grid;
    width: 28px;
    height: 28px;
    margin-left: -7px;
    color: #fff;
    background: var(--teal);
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 9px;
    font-style: normal;
    place-items: center;
}

.avatar-stack i:nth-child(2) {
    background: #b8823e;
}

.avatar-stack i:nth-child(3) {
    background: #566e77;
}

.section {
    padding: 90px 0;
}

.section > .section-heading,
.service-grid,
.steps-grid {
    width: min(var(--max), calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 40px;
}

.section-heading.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 12px;
    font-family: "STSong", "Songti SC", serif;
}

.section-heading p {
    color: var(--muted);
}

.service-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.service-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    color: var(--teal);
    background: var(--teal-3);
    border-radius: 12px 12px 12px 3px;
    font-size: 18px;
    font-weight: 800;
    place-items: center;
}

.service-card h3 {
    margin-bottom: 7px;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.workflow-section {
    background: #eef3ef;
}

.steps-grid {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, 1fr);
}

.step-card {
    position: relative;
    padding: 32px;
    border-left: 1px solid #d4e0da;
}

.step-card:last-child {
    border-right: 1px solid #d4e0da;
}

.step-card > span {
    display: block;
    margin-bottom: 35px;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 38px;
    font-style: italic;
    line-height: 1;
    opacity: .65;
}

.step-card h3 {
    margin-bottom: 10px;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.trust-section {
    padding-top: 60px;
}

.trust-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    padding: 55px 60px;
    color: #fff;
    background:
        radial-gradient(circle at 75% 20%, rgba(228, 168, 73, .22), transparent 28%),
        linear-gradient(120deg, #103c36, #175f55);
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(14, 62, 54, .2);
}

.trust-banner h2 {
    max-width: 740px;
    margin: 0;
    color: #fff;
    font-family: "STSong", "Songti SC", serif;
}

.site-footer {
    padding: 55px 0 30px;
    background: #eef2ee;
}

.footer-inner {
    display: grid;
    align-items: end;
    gap: 30px;
    grid-template-columns: 1fr auto;
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

.footer-inner strong {
    font-size: 18px;
}

.footer-inner p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
    font-size: 12px;
}

.copyright {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid #dae3de;
}

.auth-page {
    display: grid;
    min-height: calc(100vh - 76px);
    padding: 36px;
    place-items: center;
    background:
        radial-gradient(circle at 10% 15%, rgba(228, 168, 73, .14), transparent 23%),
        linear-gradient(140deg, #edf3ee, #f8f8f3);
}

.auth-panel {
    display: grid;
    overflow: hidden;
    width: min(1040px, 100%);
    min-height: 630px;
    grid-template-columns: .88fr 1.12fr;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 25px;
    box-shadow: 0 35px 90px rgba(22, 67, 59, .13);
}

.auth-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(228, 168, 73, .25), transparent 25%),
        linear-gradient(145deg, #103b35, #17675b);
}

.auth-intro h1 {
    margin-bottom: 24px;
    color: #fff;
    font-family: "STSong", "Songti SC", serif;
    font-size: 52px;
}

.auth-intro > p {
    color: #b8d7cf;
    line-height: 1.9;
}

.auth-quote {
    margin-top: auto;
    padding-top: 55px;
    color: #d3e9e3;
    font-family: "STSong", "Songti SC", serif;
    font-size: 15px;
}

.auth-quote small {
    display: block;
    margin-top: 12px;
    color: #83b9ab;
    font-family: var(--font);
    font-size: 10px;
}

.auth-form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 60px;
}

.form-heading {
    margin-bottom: 28px;
}

.form-heading h2 {
    margin-bottom: 5px;
    font-size: 29px;
}

.form-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.stack-form {
    display: grid;
    gap: 17px;
}

.stack-form label,
.form-panel label {
    display: grid;
    gap: 7px;
}

.stack-form label > span,
.form-panel label > span,
.role-switch legend,
.rating-field legend {
    color: #334946;
    font-size: 12px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="datetime-local"],
input[type="url"],
select,
textarea {
    width: 100%;
    min-height: 45px;
    padding: 11px 13px;
    color: var(--ink);
    background: #fbfcfa;
    border: 1px solid #d8e3de;
    border-radius: 9px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea {
    min-height: 95px;
    line-height: 1.65;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    background: #fff;
    border-color: var(--teal-2);
    box-shadow: 0 0 0 3px rgba(28, 123, 109, .1);
}

input::placeholder,
textarea::placeholder {
    color: #a5b0ad;
}

.form-note,
.form-hint {
    color: var(--muted);
    font-size: 10px;
}

.role-switch {
    display: grid;
    gap: 9px;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    margin: 0;
    border: 0;
}

.role-switch legend {
    margin-bottom: 8px;
}

.role-switch label {
    position: relative;
    cursor: pointer;
}

.role-switch input {
    position: absolute;
    opacity: 0;
}

.role-switch label > span {
    display: flex;
    flex-direction: column;
    padding: 11px 13px;
    border: 1px solid #dce5e1;
    border-radius: 9px;
    transition: all .18s ease;
}

.role-switch label > span b {
    font-size: 12px;
}

.role-switch label > span small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 400;
}

.role-switch input:checked + span {
    color: var(--teal);
    background: var(--teal-3);
    border-color: #8bbcb0;
}

.register-page {
    padding-top: 24px;
    padding-bottom: 24px;
}

.register-page .auth-panel {
    min-height: 720px;
}

.register-page .auth-form-wrap {
    padding-top: 35px;
    padding-bottom: 35px;
}

.check-list {
    display: grid;
    gap: 13px;
    padding: 0;
    margin: 30px 0 0;
    color: #cce3dd;
    font-size: 12px;
    list-style: none;
}

.check-list li::before {
    margin-right: 9px;
    color: var(--gold);
    content: "✓";
}

.form-grid {
    display: grid;
    gap: 15px;
}

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

.page-shell {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 0 80px;
}

.page-shell.narrow {
    max-width: 900px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin-bottom: 7px;
    font-family: "STSong", "Songti SC", serif;
    font-size: 42px;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
}

.eyebrow + h1 {
    margin-top: 0;
}

.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding: 38px 42px;
    color: #fff;
    background:
        radial-gradient(circle at 87% 20%, rgba(228, 168, 73, .22), transparent 25%),
        linear-gradient(115deg, #103b35, #1a675b);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(13, 62, 54, .18);
}

.dashboard-hero h1 {
    margin-bottom: 10px;
    color: #fff;
    font-family: "STSong", "Songti SC", serif;
    font-size: 42px;
}

.dashboard-hero p {
    max-width: 690px;
    margin: 0;
    color: #c1dcd5;
    font-size: 13px;
}

.notice-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 18px 0;
    padding: 15px 18px;
    background: var(--gold-soft);
    border: 1px solid #efdbac;
    border-radius: 12px;
}

.notice-strip div {
    display: flex;
    flex-direction: column;
}

.notice-strip strong {
    font-size: 12px;
}

.notice-strip span {
    color: #806a3b;
    font-size: 11px;
}

.metric-grid {
    display: grid;
    gap: 13px;
    grid-template-columns: repeat(4, 1fr);
    margin: 18px 0;
}

.metric-card {
    display: flex;
    min-height: 126px;
    flex-direction: column;
    justify-content: space-between;
    padding: 21px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
}

.metric-card > span {
    color: var(--muted);
    font-size: 11px;
}

.metric-card > strong {
    margin: 7px 0;
    font-family: Georgia, "STSong", serif;
    font-size: 26px;
    letter-spacing: -.03em;
}

.metric-card > small {
    color: #879591;
    font-size: 9px;
}

.metric-card.accent {
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
}

.metric-card.accent > span,
.metric-card.accent > small {
    color: #a9d0c7;
}

.panel {
    padding: 25px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 2px 0 rgba(20, 55, 49, .01);
}

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

.panel-head h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -.02em;
}

.panel-head > a,
.panel-head > span {
    font-size: 11px;
}

.panel-count {
    padding: 4px 9px;
    color: var(--muted);
    background: #f3f6f4;
    border-radius: 20px;
}

.panel-head .eyebrow {
    margin-bottom: 3px;
}

.content-grid {
    display: grid;
    gap: 18px;
}

.content-grid.two-one {
    grid-template-columns: 1.35fr .85fr;
}

.content-grid.equal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-panel {
    margin-top: 18px;
}

.quick-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, 1fr);
}

.quick-grid a {
    display: flex;
    min-height: 135px;
    flex-direction: column;
    padding: 17px;
    color: var(--ink);
    background: #f7f9f7;
    border: 1px solid #e8eeea;
    border-radius: 12px;
    transition: all .18s ease;
}

.quick-grid a:hover {
    color: var(--ink);
    background: var(--teal-3);
    border-color: #b9d6ce;
    transform: translateY(-2px);
}

.quick-grid a > span {
    display: grid;
    width: 32px;
    height: 32px;
    margin-bottom: auto;
    color: var(--teal);
    background: #fff;
    border-radius: 9px;
    place-items: center;
}

.quick-grid a b {
    margin-top: 18px;
    font-size: 13px;
}

.quick-grid a small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.task-mini-list,
.notification-mini-list {
    display: grid;
    gap: 2px;
}

.task-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 5px;
    color: var(--ink);
    border-top: 1px solid #edf1ee;
}

.task-mini:first-child {
    border-top: 0;
}

.task-mini:hover {
    color: var(--teal);
}

.task-mini div {
    display: grid;
    gap: 3px;
}

.task-mini strong {
    font-size: 12px;
}

.task-mini small {
    color: var(--muted);
    font-size: 9px;
}

.task-mini b {
    white-space: nowrap;
    font-family: Georgia, serif;
    font-size: 15px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 8px;
    color: #4e6661;
    background: #eef3f0;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.status-open,
.status-pending {
    color: #896117;
    background: #fff4db;
}

.status-accepted,
.status-approved,
.status-active {
    color: #216653;
    background: #e4f4ed;
}

.status-submitted {
    color: #285b81;
    background: #e8f3fb;
}

.status-returned {
    color: #8b4c2f;
    background: #fbeddf;
}

.status-completed,
.status-user {
    color: #376d4a;
    background: #eaf5ec;
}

.status-cancelled,
.status-rejected,
.status-disabled {
    color: #76504d;
    background: #f4eae9;
}

.status-teacher,
.status-admin {
    color: #2b5e54;
    background: #e8f2ef;
}

.notification-mini {
    display: flex;
    gap: 11px;
    padding: 12px 3px;
    color: var(--ink);
    border-top: 1px solid #edf1ee;
}

.notification-mini:first-child {
    border-top: 0;
}

.notification-mini > i {
    width: 7px;
    height: 7px;
    margin-top: 6px;
    background: #d8e2de;
    border-radius: 50%;
}

.notification-mini.unread > i {
    background: var(--gold);
}

.notification-mini div {
    min-width: 0;
}

.notification-mini strong {
    display: block;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-mini p {
    display: -webkit-box;
    overflow: hidden;
    margin: 3px 0;
    color: var(--muted);
    font-size: 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notification-mini small {
    color: #9ba8a5;
    font-size: 8px;
}

.empty-state {
    padding: 65px 30px;
    color: var(--muted);
    background: #f7f9f7;
    border: 1px dashed #d4e0db;
    border-radius: 14px;
    text-align: center;
}

.empty-state.compact {
    padding: 30px 20px;
}

.empty-state strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
}

.empty-state p {
    margin: 0;
    font-size: 12px;
}

.tabs {
    display: flex;
    gap: 3px;
    margin-bottom: 18px;
    padding: 4px;
    background: #e9efeb;
    border-radius: 10px;
    width: fit-content;
}

.tabs a {
    padding: 8px 18px;
    color: var(--muted);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.tabs a.active {
    color: var(--teal);
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 50, 43, .08);
}

.filter-bar {
    display: flex;
    gap: 9px;
    margin-bottom: 22px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.filter-bar input,
.filter-bar select {
    min-height: 39px;
    padding: 8px 11px;
    font-size: 12px;
}

.filter-bar .search-field {
    flex: 1;
}

.task-card-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.task-card {
    display: flex;
    min-height: 290px;
    flex-direction: column;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid transparent;
    border-radius: 15px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.task-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.task-card.urgent {
    border-top-color: var(--gold);
}

.task-card-top {
    display: flex;
    align-items: center;
    gap: 7px;
}

.urgent-pill {
    display: inline-flex;
    padding: 3px 7px;
    color: #805b17;
    background: var(--gold-soft);
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
}

.task-category {
    margin-left: auto;
    color: #81908c;
    font-size: 9px;
}

.task-card h2 {
    margin: 15px 0 7px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.45;
}

.task-card h2:hover {
    color: var(--teal);
}

.task-card > p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 11px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.task-card-meta {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    margin-top: auto;
    padding: 12px 0;
    border-top: 1px solid #edf1ee;
    border-bottom: 1px solid #edf1ee;
}

.task-card-meta div {
    display: flex;
    flex-direction: column;
}

.task-card-meta span {
    color: var(--muted);
    font-size: 8px;
}

.task-card-meta strong {
    margin-top: 2px;
    font-size: 13px;
}

.task-card-meta div:first-child strong {
    color: var(--teal);
    font-family: Georgia, serif;
    font-size: 17px;
}

.task-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 13px;
}

.user-line {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 9px;
}

.user-line img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
}

.form-panel {
    padding: 0;
    overflow: hidden;
}

.form-section {
    display: grid;
    gap: 20px;
    padding: 30px 34px;
    border-bottom: 1px solid var(--line);
}

.form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 4px;
}

.form-section-head > span {
    display: grid;
    width: 33px;
    height: 33px;
    color: var(--teal);
    background: var(--teal-3);
    border-radius: 9px;
    font-family: Georgia, serif;
    font-size: 11px;
    place-items: center;
}

.form-section-head h2 {
    margin: 0;
    font-size: 18px;
}

.form-section-head p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.budget-summary {
    display: grid;
    gap: 1px;
    overflow: hidden;
    grid-template-columns: repeat(4, 1fr);
    background: #e4ebe7;
    border: 1px solid #e1e9e5;
    border-radius: 11px;
}

.budget-summary > div {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: #f8faf8;
}

.budget-summary span {
    color: var(--muted);
    font-size: 9px;
}

.budget-summary strong {
    margin-top: 4px;
    font-family: Georgia, serif;
    font-size: 15px;
}

.budget-summary .budget-total {
    background: var(--teal-3);
}

.budget-summary .budget-total strong {
    color: var(--teal);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 22px 34px;
    background: #f8faf8;
}

.file-field input[type="file"] {
    padding: 8px;
    font-size: 11px;
}

.file-field small,
.form-panel label > small {
    color: var(--muted);
    font-size: 9px;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 10px;
}

.detail-layout {
    display: grid;
    align-items: start;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 330px;
}

.detail-main {
    display: grid;
    gap: 18px;
}

.detail-side {
    position: sticky;
    top: 95px;
    display: grid;
    gap: 15px;
}

.task-detail-head h1 {
    margin: 17px 0 10px;
    font-family: "STSong", "Songti SC", serif;
    font-size: 37px;
    line-height: 1.3;
}

.task-detail-flags {
    display: flex;
    align-items: center;
    gap: 7px;
}

.task-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: 10px;
}

.task-description {
    margin-top: 25px;
    padding-top: 24px;
    color: #3e514e;
    border-top: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.95;
}

.action-note {
    margin-top: 22px;
    padding: 15px 17px;
    background: var(--gold-soft);
    border: 1px solid #ecd9ad;
    border-radius: 10px;
}

.action-note strong {
    display: block;
    font-size: 11px;
}

.action-note p {
    margin: 4px 0 0;
    color: #705d38;
    font-size: 11px;
}

.submission-box {
    margin-top: 22px;
    padding: 20px;
    background: #f6faf7;
    border: 1px solid #dcebe3;
    border-radius: 12px;
}

.submission-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.submission-head h2 {
    margin: 0;
    font-size: 17px;
}

.submission-head .eyebrow {
    margin-bottom: 2px;
}

.submission-head > span {
    color: var(--muted);
    font-size: 9px;
}

.submission-box > p {
    color: #435752;
    font-size: 12px;
}

.file-download {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #e1e9e4;
    border-radius: 9px;
}

.file-download > span {
    display: grid;
    width: 35px;
    height: 39px;
    color: var(--teal);
    background: var(--teal-3);
    border-radius: 6px;
    font-size: 8px;
    font-weight: 800;
    place-items: center;
}

.file-download div {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.file-download strong {
    font-size: 11px;
}

.file-download small {
    color: var(--muted);
    font-size: 8px;
}

.file-download b {
    color: var(--teal);
}

.timeline {
    padding-left: 4px;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 16px;
    padding-bottom: 25px;
    color: #9aa7a4;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    position: absolute;
    top: 12px;
    bottom: -2px;
    left: 5px;
    width: 1px;
    content: "";
    background: #dfe7e3;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item > i {
    z-index: 1;
    width: 11px;
    height: 11px;
    margin-top: 5px;
    background: #dfe7e3;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #d5e0db;
}

.timeline-item.done {
    color: var(--ink);
}

.timeline-item.done > i {
    background: var(--teal);
    box-shadow: 0 0 0 1px var(--teal);
}

.timeline-item div {
    display: flex;
    flex-direction: column;
}

.timeline-item strong {
    font-size: 11px;
}

.timeline-item p,
.timeline-item small {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.price-panel {
    background: linear-gradient(145deg, #fff, #f5faf7);
}

.price-panel > span {
    color: var(--muted);
    font-size: 10px;
}

.price-panel > strong {
    display: block;
    margin: 3px 0;
    color: var(--teal);
    font-family: Georgia, serif;
    font-size: 34px;
}

.price-panel > p {
    color: #a07329;
    font-size: 9px;
}

.price-panel dl {
    margin: 20px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.price-panel dl div {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 10px;
}

.price-panel dt {
    color: var(--muted);
}

.price-panel dd {
    margin: 0;
    font-weight: 600;
}

.profile-mini {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.profile-mini .eyebrow {
    align-self: flex-start;
}

.profile-mini img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #edf4f0;
}

.profile-mini > strong {
    margin-top: 10px;
}

.profile-mini > small {
    color: var(--muted);
    font-size: 9px;
}

.profile-mini > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    font-size: 10px;
}

.profile-mini > div span {
    color: var(--muted);
}

.action-panel {
    display: grid;
    gap: 9px;
}

.action-panel form {
    margin: 0;
}

.action-panel h3 {
    margin: 0;
    font-size: 15px;
}

.action-hint {
    margin: 8px 0 0;
    color: #94a09d;
    font-size: 8px;
    text-align: center;
}

.inline-action-panel {
    padding: 13px;
    background: #f6f8f6;
    border: 1px solid #e3eae6;
    border-radius: 10px;
}

.inline-action-panel .stack-form {
    gap: 10px;
}

.inline-note {
    padding: 11px 13px;
    color: #6b5b37;
    background: var(--gold-soft);
    border-radius: 8px;
    font-size: 9px;
}

.chat-panel {
    padding-bottom: 18px;
}

.chat-online {
    color: var(--success);
    font-size: 9px;
}

.chat-online i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 3px;
    background: #4ba876;
    border-radius: 50%;
}

.panel-head h2 small {
    margin-left: 7px;
    color: var(--gold);
    font-size: 9px;
    font-weight: 500;
}

.chat-messages {
    display: flex;
    overflow-y: auto;
    height: 340px;
    flex-direction: column;
    gap: 13px;
    padding: 17px;
    background:
        linear-gradient(rgba(247, 250, 247, .94), rgba(247, 250, 247, .94)),
        radial-gradient(circle at 20% 30%, #bdd9d1 1px, transparent 1px);
    background-size: auto, 15px 15px;
    border: 1px solid #e8eeea;
    border-radius: 11px;
}

.chat-empty {
    margin: auto;
    color: #9aa7a3;
    font-size: 11px;
}

.chat-message {
    display: flex;
    max-width: 77%;
    flex-direction: column;
}

.chat-message.mine {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-message.theirs {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-bubble {
    padding: 10px 13px;
    color: #314541;
    background: #fff;
    border: 1px solid #e3ebe7;
    border-radius: 12px 12px 12px 3px;
    font-size: 12px;
    line-height: 1.65;
    word-break: break-word;
}

.mine .chat-bubble {
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
    border-radius: 12px 12px 3px 12px;
}

.chat-message small {
    margin-top: 3px;
    color: #97a39f;
    font-size: 8px;
}

.emoji-row {
    display: flex;
    gap: 5px;
    padding: 9px 0 5px;
}

.emoji-row button {
    width: 28px;
    height: 28px;
    padding: 0;
    background: #f4f7f4;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.emoji-row button:hover {
    background: var(--gold-soft);
}

.chat-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-form textarea {
    min-height: 49px;
    max-height: 130px;
}

.rating-field {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: 0;
}

.rating-field legend {
    width: 100%;
    margin-bottom: 8px;
}

.rating-field input {
    position: absolute;
    opacity: 0;
}

.rating-field label {
    cursor: pointer;
}

.rating-field label span {
    display: inline-flex;
    padding: 7px 10px;
    color: #9a825b;
    background: var(--gold-soft);
    border-radius: 7px;
    font-size: 11px;
}

.rating-field input:checked + span {
    color: #fff;
    background: var(--gold);
}

.review-display .stars {
    color: var(--gold);
    font-size: 21px;
    letter-spacing: 3px;
}

.review-display p {
    margin: 8px 0 4px;
    color: #3e514e;
}

.review-display small {
    color: var(--muted);
    font-size: 9px;
}

.wallet-grid {
    display: grid;
    gap: 13px;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 18px;
}

.wallet-card {
    display: flex;
    min-height: 145px;
    flex-direction: column;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
}

.wallet-card.primary {
    color: #fff;
    background:
        radial-gradient(circle at 90% 5%, rgba(228, 168, 73, .25), transparent 32%),
        linear-gradient(135deg, #103f38, #1c7064);
    border-color: transparent;
}

.wallet-card > span {
    color: var(--muted);
    font-size: 10px;
}

.wallet-card.primary > span,
.wallet-card.primary > small {
    color: #b8d8d0;
}

.wallet-card > strong {
    margin: auto 0 4px;
    font-family: Georgia, serif;
    font-size: 27px;
}

.wallet-card > small {
    color: var(--muted);
    font-size: 8px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

th {
    padding: 11px 12px;
    color: #81908c;
    background: #f7f9f7;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .03em;
    text-align: left;
    white-space: nowrap;
}

td {
    padding: 13px 12px;
    border-top: 1px solid #edf1ee;
    vertical-align: top;
}

.amount-col {
    font-family: Georgia, serif;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.positive {
    color: var(--success);
}

.negative {
    color: var(--danger);
}

.tx-type {
    display: inline-flex;
    padding: 3px 7px;
    color: #566964;
    background: #f1f5f2;
    border-radius: 5px;
    font-size: 9px;
}

.table-sub {
    display: block;
    margin-top: 3px;
    color: #8a9793;
    font-size: 8px;
    font-weight: 400;
}

.promo-hero {
    display: grid;
    align-items: center;
    gap: 40px;
    grid-template-columns: 1fr auto;
    margin-bottom: 18px;
    padding: 45px 50px;
    color: #fff;
    background:
        radial-gradient(circle at 75% 25%, rgba(228, 168, 73, .25), transparent 28%),
        linear-gradient(120deg, #103b35, #1b685c);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(13, 62, 54, .16);
}

.promo-hero h1 {
    margin-bottom: 14px;
    color: #fff;
    font-family: "STSong", "Songti SC", serif;
    font-size: 42px;
}

.promo-hero > div:first-child > p {
    max-width: 680px;
    color: #bfdbd4;
    font-size: 12px;
}

.promo-rate-row {
    display: flex;
    gap: 40px;
    margin-top: 25px;
}

.promo-rate-row div {
    display: flex;
    flex-direction: column;
}

.promo-rate-row span {
    color: #91c4b8;
    font-size: 9px;
}

.promo-rate-row strong {
    margin-top: 2px;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 23px;
}

.invite-card {
    display: flex;
    align-items: center;
    min-width: 225px;
    flex-direction: column;
    padding: 16px;
    color: var(--ink);
    background: #fff;
    border-radius: 16px;
}

.invite-card img {
    display: block;
    width: 190px;
    height: 190px;
    border-radius: 8px;
}

.invite-card > span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 9px;
}

.invite-card > strong {
    color: var(--teal);
    font-family: monospace;
    font-size: 23px;
    letter-spacing: .13em;
}

.invite-card > small {
    color: var(--muted);
    font-size: 8px;
    text-align: center;
}

.invite-link-panel {
    margin-bottom: 18px;
}

.invite-link-panel h2 {
    margin: 0;
}

.copy-row {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.copy-row input {
    flex: 1;
    background: #f5f8f6;
}

.invite-link-panel > p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.invitee-list,
.commission-list {
    display: grid;
}

.invitee-item,
.commission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid #edf1ee;
}

.invitee-item:first-child,
.commission-item:first-child {
    border-top: 0;
}

.invitee-item div,
.commission-item div {
    display: flex;
    flex-direction: column;
}

.invitee-item strong,
.commission-item strong {
    font-size: 11px;
}

.invitee-item small,
.commission-item small {
    color: var(--muted);
    font-size: 8px;
}

.invitee-item b,
.commission-item b {
    color: var(--success);
    font-family: Georgia, serif;
    font-size: 13px;
}

.commission-item p {
    margin: 2px 0;
    color: var(--muted);
    font-size: 10px;
}

.rules-panel {
    margin-top: 18px;
}

.rules-panel ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 11px;
}

.notification-page-list {
    padding: 0;
    overflow: hidden;
}

.notification-row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px 20px;
    color: var(--ink);
    border-bottom: 1px solid #edf1ee;
}

.notification-row:last-child {
    border-bottom: 0;
}

.notification-row.unread {
    background: #fbfdfb;
}

.notification-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    color: var(--teal);
    background: var(--teal-3);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    place-items: center;
}

.notification-row div {
    flex: 1;
}

.notification-row strong {
    font-size: 12px;
}

.notification-row p {
    margin: 3px 0;
    color: var(--muted);
    font-size: 10px;
}

.notification-row small {
    color: #96a29f;
    font-size: 8px;
}

.notification-row > b {
    color: var(--gold);
    font-size: 9px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.profile-header > img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 50%;
}

.profile-header > div:nth-child(2) {
    flex: 1;
}

.profile-header h2 {
    margin: 4px 0 2px;
    font-size: 23px;
}

.profile-header p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.profile-summary {
    display: flex;
    gap: 35px;
}

.profile-summary div {
    display: flex;
    flex-direction: column;
}

.profile-summary span {
    color: var(--muted);
    font-size: 9px;
}

.profile-summary strong {
    margin-top: 2px;
    font-size: 14px;
}

.verification-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: var(--gold-soft);
    border: 1px solid #ecdaac;
    border-radius: 12px;
}

.verification-banner.verified {
    background: #eaf5ee;
    border-color: #cae4d3;
}

.verification-banner strong {
    font-size: 12px;
}

.verification-banner p {
    margin: 3px 0 0;
    color: #715f3b;
    font-size: 10px;
}

.verification-banner.verified p {
    color: #4b6a59;
}

.page-shell > .panel {
    margin-bottom: 16px;
}

.admin-layout {
    display: grid;
    min-height: calc(100vh - 76px);
    grid-template-columns: 225px minmax(0, 1fr);
    background: #f2f5f2;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 25px 15px;
    color: #d7e6e2;
    background: #102f2b;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px 25px;
}

.admin-brand > span {
    display: grid;
    width: 37px;
    height: 37px;
    color: #163b35;
    background: var(--gold);
    border-radius: 10px 10px 10px 3px;
    font-family: "STKaiti", serif;
    font-size: 20px;
    place-items: center;
}

.admin-brand div {
    display: flex;
    flex-direction: column;
}

.admin-brand strong {
    color: #fff;
    font-size: 13px;
}

.admin-brand small {
    color: #7ca39a;
    font-size: 8px;
}

.admin-sidebar nav {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: #98b9b1;
    border-radius: 8px;
    font-size: 11px;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    color: #fff;
    background: #1b4a43;
}

.admin-sidebar nav a b {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    color: #153b35;
    background: var(--gold);
    border-radius: 20px;
    font-size: 8px;
    line-height: 18px;
    text-align: center;
}

.back-site {
    margin-top: auto;
    padding: 12px;
    color: #789b92;
    font-size: 10px;
}

.admin-content {
    min-width: 0;
    padding: 30px;
}

.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.admin-heading h1 {
    margin: 0;
    font-size: 30px;
}

.admin-heading .eyebrow {
    margin-bottom: 2px;
    font-size: 8px;
}

.admin-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.admin-identity strong {
    font-size: 11px;
}

.admin-identity small {
    color: var(--muted);
    font-size: 8px;
}

.admin-metrics {
    margin-top: 0;
}

.chart-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1.4fr 1fr;
    margin-bottom: 16px;
}

.admin-chart {
    height: 315px;
}

.chart-empty {
    display: grid;
    height: 100%;
    color: #8b9894;
    background: #f7f9f7;
    border: 1px dashed #dce5e1;
    border-radius: 11px;
    font-size: 11px;
    text-align: center;
    place-items: center;
}

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

.operations-grid a {
    display: flex;
    min-height: 110px;
    flex-direction: column;
    padding: 15px;
    color: var(--ink);
    background: #f6f8f6;
    border-radius: 10px;
}

.operations-grid a strong {
    color: var(--teal);
    font-family: Georgia, serif;
    font-size: 26px;
}

.operations-grid a span {
    margin-top: auto;
    font-size: 10px;
    font-weight: 700;
}

.operations-grid a small {
    color: var(--muted);
    font-size: 8px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.compact-tabs {
    margin: 0;
}

.admin-table {
    min-width: 850px;
}

.admin-table td {
    vertical-align: middle;
}

.admin-table a {
    font-weight: 600;
}

.action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-inline {
    min-width: 245px;
    margin-top: 8px;
    text-align: left;
}

.pending-row {
    background: #fffdf7;
}

.button-pair {
    display: flex;
    gap: 6px;
}

.settings-rate-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, 1fr);
}

.license-status-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 16px;
    padding: 25px;
    color: #fff;
    background: linear-gradient(120deg, #103d37, #1b665a);
    border-radius: 16px;
}

.license-status-panel h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 21px;
}

.license-status-panel p {
    margin: 0;
    color: #a9cec5;
    font-size: 9px;
}

.license-status-panel code {
    color: #d7eee8;
    background: rgba(255, 255, 255, .1);
}

.license-seal {
    display: grid;
    width: 82px;
    height: 82px;
    flex: 0 0 auto;
    color: #fff;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 8px;
    letter-spacing: .12em;
    place-items: center;
}

.license-seal.ok {
    border-color: rgba(100, 217, 165, .6);
    box-shadow: inset 0 0 0 5px rgba(100, 217, 165, .06);
}

.latest-code-panel textarea {
    margin-bottom: 10px;
    font-family: monospace;
    font-size: 10px;
}

.plan-grid {
    display: grid;
    gap: 13px;
    grid-template-columns: repeat(3, 1fr);
}

.plan-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: #f8faf8;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.plan-card > span {
    color: var(--teal);
    font-size: 11px;
    font-weight: 700;
}

.plan-card > strong {
    margin: 8px 0 0;
    font-family: Georgia, serif;
    font-size: 25px;
}

.plan-card > small {
    color: var(--muted);
    font-size: 9px;
}

.plan-card > p {
    min-height: 50px;
    margin: 15px 0;
    color: var(--muted);
    font-size: 9px;
}

.plan-card form {
    margin-top: auto;
}

@media (max-width: 1080px) {
    .nav-wrap {
        gap: 18px;
    }

    .main-nav a {
        padding: 7px 8px;
        font-size: 12px;
    }

    .hero-grid {
        gap: 35px;
    }

    .hero-copy h1 {
        font-size: 58px;
    }

    .workflow-card {
        right: 10px;
        left: 0;
        padding: 22px;
    }

    .task-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .metric-grid,
    .wallet-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .settings-rate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .nav-wrap {
        min-height: 68px;
    }

    .mobile-nav-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        right: 18px;
        left: 18px;
        display: none;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .nav-user {
        margin-left: 0;
        flex: 0 0 auto;
    }

    .public-nav > a:not(.button) {
        display: none;
    }

    .hero {
        padding: 55px 0 70px;
    }

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

    .hero-copy h1 {
        font-size: 52px;
    }

    .hero-panel {
        min-height: 430px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-card:nth-child(3) {
        border-top: 1px solid #d4e0da;
    }

    .step-card:nth-child(4) {
        border-top: 1px solid #d4e0da;
    }

    .trust-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 40px;
    }

    .auth-page {
        padding: 20px;
    }

    .auth-panel {
        grid-template-columns: 1fr;
    }

    .auth-intro {
        padding: 38px;
    }

    .auth-intro h1 {
        font-size: 40px;
    }

    .auth-quote,
    .check-list {
        display: none;
    }

    .auth-form-wrap {
        padding: 36px;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-grid.two-one,
    .content-grid.equal {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
        grid-row: 1;
        grid-template-columns: repeat(2, 1fr);
    }

    .action-panel {
        grid-column: 1 / -1;
    }

    .promo-hero {
        grid-template-columns: 1fr;
        padding: 35px;
    }

    .invite-card {
        width: 230px;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: block;
        padding: 12px 18px;
    }

    .admin-brand,
    .back-site {
        display: none;
    }

    .admin-sidebar nav {
        display: flex;
        overflow-x: auto;
        max-width: 100%;
        scrollbar-width: thin;
    }

    .admin-sidebar nav a {
        white-space: nowrap;
    }

    .admin-content {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .nav-wrap,
    .hero-grid,
    .section > .section-heading,
    .service-grid,
    .steps-grid,
    .trust-banner,
    .footer-inner,
    .page-shell {
        width: calc(100% - 28px);
    }

    .brand-copy small,
    .notification-link {
        display: none;
    }

    .nav-wrap {
        gap: 9px;
    }

    .brand-copy strong {
        font-size: 16px;
    }

    .mobile-nav-toggle {
        padding: 7px 9px;
        font-size: 11px;
    }

    .public-nav {
        gap: 7px;
    }

    .public-nav .button {
        padding: 7px 10px;
        font-size: 10px;
    }

    .hero-copy h1 {
        font-size: 43px;
    }

    .hero-copy > p {
        font-size: 14px;
    }

    .hero-actions .button {
        flex: 1;
        padding-right: 13px;
        padding-left: 13px;
        font-size: 12px;
    }

    .hero-panel {
        min-height: 370px;
    }

    .workflow-card {
        top: 40px;
        right: 0;
        padding: 18px;
    }

    .workflow-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-steps span {
        display: none;
    }

    .card-top {
        left: 0;
    }

    .card-bottom {
        bottom: 0;
    }

    .section {
        padding: 65px 0;
    }

    .service-grid,
    .task-card-grid,
    .content-grid.equal,
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        border-right: 1px solid #d4e0da;
        border-bottom: 1px solid #d4e0da;
    }

    .trust-banner {
        padding: 30px 25px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .auth-page {
        padding: 12px;
    }

    .auth-intro {
        padding: 28px;
    }

    .auth-intro h1 {
        margin-bottom: 12px;
        font-size: 34px;
    }

    .auth-intro > p {
        margin: 0;
        font-size: 12px;
    }

    .auth-form-wrap {
        padding: 28px 22px;
    }

    .register-page .auth-panel {
        min-height: 0;
    }

    .form-grid.two,
    .role-switch,
    .settings-rate-grid {
        grid-template-columns: 1fr;
    }

    .flash-stack {
        top: 76px;
        right: 14px;
    }

    .page-shell {
        padding-top: 27px;
        padding-bottom: 55px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .page-heading h1,
    .dashboard-hero h1 {
        font-size: 33px;
    }

    .dashboard-hero {
        padding: 28px 24px;
    }

    .metric-grid,
    .wallet-grid {
        grid-template-columns: 1fr 1fr;
    }

    .metric-card,
    .wallet-card {
        min-height: 115px;
        padding: 16px;
    }

    .metric-card > strong,
    .wallet-card > strong {
        font-size: 21px;
    }

    .panel {
        padding: 18px;
    }

    .quick-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar {
        flex-direction: column;
    }

    .budget-summary {
        grid-template-columns: 1fr 1fr;
    }

    .form-section,
    .form-actions {
        padding: 23px 20px;
    }

    .form-actions .button {
        flex: 1;
    }

    .detail-side {
        grid-template-columns: 1fr;
    }

    .task-detail-head h1 {
        font-size: 29px;
    }

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

    .chat-messages {
        height: 300px;
    }

    .chat-message {
        max-width: 88%;
    }

    .promo-hero {
        padding: 28px 22px;
    }

    .promo-hero h1 {
        font-size: 31px;
    }

    .promo-rate-row {
        gap: 20px;
    }

    .promo-rate-row strong {
        font-size: 18px;
    }

    .copy-row {
        flex-direction: column;
    }

    .profile-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .profile-summary {
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .verification-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-content {
        padding: 15px;
    }

    .admin-heading h1 {
        font-size: 24px;
    }

    .admin-identity {
        display: none;
    }

    .operations-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-table {
        min-width: 0;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        display: block;
        padding: 10px 0;
        border-top: 1px solid var(--line);
    }

    .admin-table td {
        display: grid;
        gap: 10px;
        grid-template-columns: 95px 1fr;
        padding: 7px 4px;
        border: 0;
    }

    .admin-table td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 8px;
        font-weight: 700;
    }

    .license-status-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .license-seal {
        width: 60px;
        height: 60px;
    }

    table:not(.admin-table) thead {
        display: none;
    }

    table:not(.admin-table) tr {
        display: block;
        padding: 10px 0;
        border-top: 1px solid var(--line);
    }

    table:not(.admin-table) td {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        padding: 5px 2px;
        border: 0;
        text-align: right;
    }

    table:not(.admin-table) td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 8px;
        font-weight: 700;
        text-align: left;
    }
}
