:root {
    --ink: #10271d;
    --muted: #6e7f76;
    --line: #d9e5de;
    --paper: #f5f9f6;
    --card: #fff;
    --mint: #dff4e9;
    --green: #22935f;
    --green-dark: #12683f;
    --danger: #b74444;
    --shadow: 0 30px 90px rgba(26, 80, 54, .12);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 8%, rgba(107, 211, 157, .17), transparent 28rem),
        linear-gradient(180deg, #f8fbf9, var(--paper));
    font-family: "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.feedback-header {
    width: min(1240px, calc(100% - 48px));
    min-height: 88px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.feedback-brand { display: flex; align-items: center; gap: 12px; }
.feedback-brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 8px 22px rgba(25, 143, 88, .2); }
.feedback-brand span { display: grid; }
.feedback-brand strong { font-family: "STZhongsong", "Songti SC", serif; font-size: 18px; }
.feedback-brand small { margin-top: 2px; color: var(--green); font: 700 8px/1.2 ui-monospace, monospace; letter-spacing: .18em; }
.back-link { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; transition: .18s ease; }
.back-link:hover { color: var(--green-dark); background: #fff; transform: translateY(-1px); }

.feedback-main {
    width: min(1180px, calc(100% - 48px));
    margin: 78px auto 90px;
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: clamp(48px, 7vw, 110px);
    align-items: start;
}
.feedback-intro { position: sticky; top: 36px; padding-top: 24px; }
.signal { display: flex; align-items: center; gap: 9px; margin: 0 0 26px; color: var(--green); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .13em; }
.signal i { width: 8px; height: 8px; border-radius: 50%; background: #48c98c; box-shadow: 0 0 0 7px rgba(72, 201, 140, .12); }
.feedback-intro h1 { margin: 0; font-family: "STZhongsong", "Songti SC", serif; font-size: clamp(48px, 5.5vw, 78px); line-height: 1.03; letter-spacing: -.07em; }
.feedback-intro h1 em { color: var(--green); font-style: normal; }
.feedback-intro > p:not(.signal) { max-width: 420px; margin: 26px 0 38px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.feedback-promises { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.feedback-promises div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feedback-promises dt { color: var(--green); font: 700 10px/1.6 ui-monospace, monospace; }
.feedback-promises dd { margin: 0; display: grid; gap: 3px; }
.feedback-promises strong { font-size: 14px; }
.feedback-promises span { color: var(--muted); font-size: 12px; }

.feedback-card { padding: clamp(26px, 4vw, 46px); background: rgba(255, 255, 255, .94); border: 1px solid rgba(201, 220, 209, .9); border-radius: 26px; box-shadow: var(--shadow); }
.card-heading { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.card-heading > div { display: grid; gap: 7px; }
.card-heading span { color: var(--green); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .13em; }
.card-heading h2 { margin: 0; font-family: "STZhongsong", "Songti SC", serif; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.secure-mark { align-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 999px; background: var(--mint); white-space: nowrap; }
.secure-mark i { width: 6px; height: 6px; border-radius: 50%; background: #30ba78; }

.alert { margin: -10px 0 26px; padding: 14px 16px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.alert-success { color: #12683f; background: #e1f7ea; border: 1px solid #b7e8cc; }
.alert-error { color: #8f3030; background: #fff0f0; border: 1px solid #f2caca; }
.feedback-form { display: grid; gap: 25px; }
.feedback-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.feedback-form legend, .field > span, .rating-field legend { width: 100%; margin-bottom: 10px; color: #30483c; font-size: 13px; font-weight: 720; }
.feedback-form b { color: var(--green); }
.field > span { display: flex; justify-content: space-between; align-items: center; }
.field small, .field > span small { color: #98a79f; font-size: 10px; font-weight: 500; }
.choice-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.choice-chip input, .rating-options input { position: absolute; opacity: 0; pointer-events: none; }
.choice-chip span { min-height: 42px; display: grid; place-items: center; padding: 8px; color: #607169; background: #f7faf8; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; transition: .16s ease; }
.choice-chip input:checked + span { color: #fff; background: var(--green); border-color: var(--green); box-shadow: 0 7px 18px rgba(34, 147, 95, .18); }
.choice-chip input:focus-visible + span, .rating-options input:focus-visible + span { outline: 3px solid rgba(34, 147, 95, .28); outline-offset: 2px; }
.field { display: grid; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.align-end { align-items: end; }
input, textarea, select { width: 100%; color: var(--ink); background: #fbfdfc; border: 1px solid var(--line); border-radius: 12px; outline: none; transition: .16s ease; }
input { min-height: 48px; padding: 0 14px; }
textarea { resize: vertical; min-height: 150px; padding: 14px; line-height: 1.75; }
input:focus, textarea:focus, select:focus { background: #fff; border-color: #65bf91; box-shadow: 0 0 0 4px rgba(34, 147, 95, .09); }
::placeholder { color: #a9b5af; }
.rating-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rating-options span { min-height: 48px; display: grid; place-items: center; color: #718179; background: #f7faf8; border: 1px solid var(--line); border-radius: 10px; font: 700 12px/1 ui-monospace, monospace; }
.rating-options input:checked + span { color: #fff; background: var(--green-dark); border-color: var(--green-dark); }
.form-footer { margin-top: 2px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.form-footer p { max-width: 360px; margin: 0; color: #88988f; font-size: 10px; line-height: 1.7; }
.form-footer button { min-height: 52px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 22px; padding: 0 22px; color: #fff; background: var(--ink); border: 0; border-radius: 12px; font-size: 14px; font-weight: 750; transition: .18s ease; }
.form-footer button:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(18, 104, 63, .2); }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.feedback-footer { width: min(1240px, calc(100% - 48px)); min-height: 84px; margin: auto; display: flex; justify-content: space-between; align-items: center; color: #829087; border-top: 1px solid var(--line); font: 600 9px/1.5 ui-monospace, monospace; letter-spacing: .05em; }

@media (max-width: 900px) {
    .feedback-main { grid-template-columns: 1fr; margin-top: 44px; }
    .feedback-intro { position: static; padding-top: 0; }
    .feedback-intro h1 { max-width: 660px; }
    .feedback-promises { grid-template-columns: repeat(3, 1fr); }
    .feedback-promises div { grid-template-columns: 32px 1fr; padding-right: 15px; }
}

@media (max-width: 640px) {
    .feedback-header, .feedback-main, .feedback-footer { width: min(100% - 28px, 1180px); }
    .feedback-header { min-height: 72px; }
    .feedback-brand img { width: 38px; height: 38px; }
    .back-link { padding: 8px 11px; font-size: 11px; }
    .feedback-main { margin: 38px auto 58px; gap: 36px; }
    .feedback-intro h1 { font-size: 46px; }
    .feedback-intro > p:not(.signal) { margin: 20px 0 28px; font-size: 14px; }
    .feedback-promises { grid-template-columns: 1fr; }
    .feedback-promises div { grid-template-columns: 38px 1fr; }
    .feedback-card { padding: 22px 18px; border-radius: 19px; }
    .card-heading { align-items: start; }
    .secure-mark { padding: 8px; font-size: 8px !important; }
    .choice-grid { grid-template-columns: repeat(2, 1fr); }
    .choice-chip:last-child { grid-column: span 2; }
    .field-row { grid-template-columns: 1fr; }
    .form-footer { align-items: stretch; flex-direction: column; }
    .form-footer button { justify-content: space-between; }
    .feedback-footer { padding: 22px 0; align-items: flex-start; flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Admin control room */
.admin-page { min-height: 100vh; background: #f3f6f4; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 244px; display: flex; flex-direction: column; padding: 28px 20px 22px; color: #eef8f2; background: var(--ink); }
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; border-bottom: 1px solid rgba(255,255,255,.11); }
.admin-brand img { width: 42px; height: 42px; border-radius: 12px; }
.admin-brand span { display: grid; gap: 3px; }
.admin-brand strong { font-family: "STZhongsong", "Songti SC", serif; font-size: 17px; }
.admin-brand small { color: #6ed19d; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .16em; }
.admin-sidebar nav { display: grid; gap: 7px; margin-top: 28px; }
.admin-sidebar nav a { min-height: 46px; display: flex; align-items: center; gap: 13px; padding: 0 14px; color: #9bb1a5; border-radius: 10px; font-size: 13px; font-weight: 650; transition: .16s ease; }
.admin-sidebar nav a span { width: 18px; color: #6ed19d; font: 700 17px/1 ui-monospace, monospace; text-align: center; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.is-active { color: #fff; background: rgba(116, 216, 166, .12); }
.admin-profile { margin-top: auto; display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 10px; padding: 15px 12px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.08); border-radius: 13px; }
.profile-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee096; box-shadow: 0 0 0 5px rgba(94,224,150,.09); }
.admin-profile > div { display: grid; gap: 2px; }
.admin-profile strong { font-size: 12px; }
.admin-profile small { color: #859c90; font-size: 9px; }
.admin-profile form { margin: 0; }
.admin-profile button { width: 30px; height: 30px; color: #a8b9b0; background: transparent; border: 0; border-radius: 8px; }
.admin-profile button:hover { color: #fff; background: rgba(255,255,255,.08); }
.admin-main { min-height: 100vh; margin-left: 244px; padding: 46px clamp(28px, 4vw, 64px) 70px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.admin-topbar p { margin: 0 0 8px; color: var(--green); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .16em; }
.admin-topbar h1 { margin: 0; font-family: "STZhongsong", "Songti SC", serif; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.05em; }
.admin-primary, .admin-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border-radius: 10px; font-size: 12px; font-weight: 730; }
.admin-primary { color: #fff; background: var(--ink); }
.admin-primary:hover { background: var(--green-dark); }
.admin-secondary { color: #415349; background: #fff; border: 1px solid var(--line); }
.admin-alert { margin-bottom: 24px; padding: 13px 16px; border-radius: 11px; font-size: 12px; }
.admin-alert.is-success { color: #12683f; background: #dff5e8; border: 1px solid #b9e7cd; }
.admin-alert.is-error { color: #8f3030; background: #fff0f0; border: 1px solid #f2caca; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-grid article { position: relative; min-height: 124px; display: grid; align-content: space-between; padding: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.stat-grid article::after { content: ""; position: absolute; right: -23px; bottom: -35px; width: 100px; height: 100px; border: 1px solid #dcece3; border-radius: 50%; box-shadow: 0 0 0 18px rgba(223,244,233,.45); }
.stat-grid span { color: #74857c; font-size: 11px; }
.stat-grid strong { z-index: 1; font: 700 34px/1 ui-monospace, monospace; }
.stat-grid i { position: absolute; top: 20px; right: 18px; color: #57af81; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .12em; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 18px 55px rgba(28,69,48,.06); }
.filter-bar { display: grid; grid-template-columns: minmax(240px, 1fr) 150px 150px auto auto; gap: 9px; padding: 18px; border-bottom: 1px solid var(--line); }
.filter-bar input, .filter-bar select { min-height: 42px; font-size: 11px; }
.filter-bar select { padding: 0 12px; }
.search-box { position: relative; }
.search-box span { position: absolute; z-index: 1; top: 50%; left: 13px; color: #83938a; transform: translateY(-50%); }
.search-box input { padding-left: 34px; }
.filter-bar button { padding: 0 16px; color: #fff; background: var(--ink); border: 0; border-radius: 10px; font-size: 11px; font-weight: 700; }
.filter-bar > a { display: grid; place-items: center; padding: 0 8px; color: var(--green-dark); font-size: 10px; }
.table-meta { display: flex; justify-content: space-between; padding: 13px 18px; color: #83938a; background: #fafcfb; border-bottom: 1px solid var(--line); font: 600 9px/1 ui-monospace, monospace; }
.feedback-table-wrap { overflow-x: auto; }
.feedback-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.feedback-table th { padding: 13px 14px; color: #83938a; background: #fafcfb; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 700; text-align: left; white-space: nowrap; }
.feedback-table td { padding: 15px 14px; border-bottom: 1px solid #edf2ef; font-size: 11px; vertical-align: middle; }
.feedback-table tbody tr:hover { background: #fbfdfc; }
.feedback-summary { min-width: 300px; display: grid; gap: 5px; }
.feedback-summary strong { color: var(--green-dark); font: 700 10px/1 ui-monospace, monospace; }
.feedback-summary span { max-width: 420px; color: #4f6157; line-height: 1.55; }
.category-label { color: #5f7168; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-new { color: #ad6d22; background: #fff3de; }
.status-reviewing { color: #2c6ca5; background: #e8f3ff; }
.status-planned { color: #6750a4; background: #f0ebff; }
.status-resolved { color: #188355; background: #e1f6ea; }
.status-closed { color: #65736c; background: #edf1ef; }
.priority { font-size: 9px; font-weight: 700; }
.priority-high { color: #b74444; }
.priority-normal { color: #66766d; }
.priority-low { color: #8a9991; }
.rating-cell { color: #38a26d; font-size: 7px !important; letter-spacing: 1px; white-space: nowrap; }
.feedback-table time { color: #708178; white-space: nowrap; font: 600 9px/1 ui-monospace, monospace; }
.row-action { width: 30px; height: 30px; display: grid; place-items: center; color: var(--green-dark); background: #eef8f2; border-radius: 8px; }
.empty-state { height: 220px; text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { margin-bottom: 7px; font-family: "STZhongsong", "Songti SC", serif; font-size: 20px; }
.empty-state span { color: #87968e; font-size: 11px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 17px 18px; }
.pagination a, .pagination span { font-size: 10px; }
.pagination a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.pagination a.is-disabled { pointer-events: none; opacity: .38; }
.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; }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.editor-side { display: grid; gap: 16px; }
.editor-card { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 45px rgba(28,69,48,.05); }
.editor-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.editor-heading span { color: var(--green-dark); font-size: 12px; font-weight: 750; }
.editor-heading time { color: #84948b; font: 600 9px/1 ui-monospace, monospace; }
.admin-field, .admin-field-row { margin-bottom: 18px; }
.admin-field { display: grid; gap: 8px; }
.admin-field > span { color: #52645a; font-size: 11px; font-weight: 700; }
.admin-field input, .admin-field select { min-height: 44px; padding: 0 12px; font-size: 12px; }
.admin-field textarea { min-height: 110px; padding: 12px; font-size: 12px; }
.admin-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.save-button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #fff; background: var(--ink); border: 0; border-radius: 10px; font-size: 12px; font-weight: 750; }
.save-button:hover { background: var(--green-dark); }
.danger-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 18px; background: #fff8f8; border: 1px solid #f0d7d7; border-radius: 14px; }
.danger-card div { display: grid; gap: 3px; }
.danger-card strong { color: #8d3838; font-size: 11px; }
.danger-card span { color: #a87878; font-size: 9px; }
.danger-card button { padding: 8px 11px; color: #9b3939; background: #fff; border: 1px solid #e7caca; border-radius: 8px; font-size: 10px; }

/* Admin login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; color: #fff; background: var(--ink); }
.login-shell { width: min(960px, 100%); min-height: 590px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; box-shadow: 0 38px 110px rgba(0,0,0,.3); }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 42px; overflow: hidden; background: linear-gradient(145deg, #16382a, #0c2218); }
.login-story::before, .login-story::after { content: ""; position: absolute; border: 1px solid rgba(104,216,160,.15); border-radius: 50%; }
.login-story::before { width: 360px; height: 360px; right: -170px; bottom: -100px; box-shadow: 0 0 0 45px rgba(86,197,141,.03), 0 0 0 90px rgba(86,197,141,.025); }
.login-story::after { width: 100px; height: 100px; top: 100px; left: -45px; }
.login-brand { z-index: 1; display: inline-flex; align-items: center; gap: 11px; align-self: flex-start; }
.login-brand img { width: 42px; height: 42px; border-radius: 12px; }
.login-brand span { font-family: "STZhongsong", "Songti SC", serif; font-size: 17px; }
.login-story > div { z-index: 1; }
.login-story p { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: #69d49e; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .14em; }
.login-story p i { width: 7px; height: 7px; border-radius: 50%; background: #58dc95; box-shadow: 0 0 0 7px rgba(88,220,149,.1); }
.login-story h1 { margin: 0 0 22px; font-family: "STZhongsong", "Songti SC", serif; font-size: clamp(40px, 5vw, 60px); line-height: 1.08; letter-spacing: -.06em; }
.login-story h1 em { color: #68d6a0; font-style: normal; }
.login-story > div > span { color: #658274; font: 600 9px/1 ui-monospace, monospace; letter-spacing: .08em; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 58px); color: var(--ink); }
.login-heading { margin-bottom: 30px; }
.login-heading > span { color: var(--green); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .14em; }
.login-heading h2 { margin: 11px 0 7px; font-family: "STZhongsong", "Songti SC", serif; font-size: 30px; letter-spacing: -.04em; }
.login-heading p { margin: 0; color: #84948b; font-size: 11px; }
.login-card form { display: grid; gap: 17px; }
.login-card label { display: grid; gap: 8px; }
.login-card label span { color: #506158; font-size: 11px; font-weight: 700; }
.login-card input { min-height: 48px; }
.login-card form button { min-height: 50px; display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding: 0 17px; color: #fff; background: var(--ink); border: 0; border-radius: 11px; font-size: 12px; font-weight: 750; }
.login-card form button:hover { background: var(--green-dark); }
.login-back { margin-top: 26px; color: #819087; font-size: 10px; }

@media (max-width: 980px) {
    .admin-sidebar { position: static; width: auto; min-height: auto; padding: 15px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
    .admin-brand { padding: 0; border: 0; }
    .admin-sidebar nav { display: flex; justify-content: center; margin: 0; }
    .admin-sidebar nav a { min-height: 40px; }
    .admin-profile { margin: 0; }
    .admin-profile > div, .profile-dot { display: none; }
    .admin-main { margin-left: 0; padding-top: 34px; }
    .editor-grid { grid-template-columns: 1fr; }
    .editor-side { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .admin-sidebar { grid-template-columns: 1fr auto; }
    .admin-sidebar nav { grid-column: 1 / -1; order: 3; overflow-x: auto; justify-content: flex-start; }
    .admin-sidebar nav a { white-space: nowrap; }
    .admin-main { padding: 28px 14px 50px; }
    .admin-topbar { align-items: flex-start; flex-direction: column; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .search-box { grid-column: 1 / -1; }
    .filter-bar button { min-height: 42px; }
    .admin-field-row { grid-template-columns: 1fr; }
    .login-page { padding: 14px; }
    .login-shell { min-height: auto; grid-template-columns: 1fr; }
    .login-story { min-height: 290px; padding: 28px; }
    .login-card { padding: 30px 24px; }
}
