:root{
    --bg:#f7f9fc;
    --card:#ffffff;
    --text:#1f2937;
    --muted:#6b7280;
    --line:#e5e7eb;
    --primary:#ff9f7a;
    --primary-dark:#f27b54;
    --soft:#fff3ee;
    --shadow:0 18px 45px rgba(20,30,50,.08);
}
*{box-sizing:border-box}
body{
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;
    color:var(--text);
    background:linear-gradient(180deg,#ffffff 0%,var(--bg) 100%);
}
.page{
    width:min(1180px,calc(100% - 32px));
    margin:40px auto;
}
.panel{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:var(--shadow);
}
.hero-panel{
    padding:30px;
    margin-bottom:22px;
}
h1{
    margin:0;
    text-align:center;
    font-size:30px;
    letter-spacing:.04em;
}
.subtext{
    text-align:center;
    margin:10px 0 24px;
    color:var(--muted);
}
textarea{
    width:100%;
    min-height:136px;
    resize:vertical;
    border:1px solid #d7dce5;
    border-radius:14px;
    padding:18px;
    outline:none;
    font-size:15px;
    line-height:1.7;
    background:#fbfcfe;
    transition:.2s;
}
textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(255,159,122,.15);
    background:#fff;
}
.primary-btn{
    width:100%;
    height:52px;
    margin-top:16px;
    border:0;
    border-radius:14px;
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    box-shadow:0 12px 24px rgba(242,123,84,.28);
}
.primary-btn:disabled{opacity:.65;cursor:not-allowed}
.table-panel{overflow:hidden}
.table-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 18px;
    border-bottom:1px solid var(--line);
    background:#fff;
}
.toolbar-title{font-weight:700}
.ghost-btn{
    border:0;
    background:var(--soft);
    color:var(--primary-dark);
    border-radius:10px;
    padding:10px 18px;
    cursor:pointer;
    font-weight:700;
}
.table-wrap{overflow:auto}
table{
    width:100%;
    min-width:900px;
    border-collapse:separate;
    border-spacing:0;
}
th,td{
    padding:16px 14px;
    border-bottom:1px solid var(--line);
    border-right:1px solid var(--line);
    text-align:center;
    white-space:nowrap;
}
th:last-child,td:last-child{border-right:0}
thead th{
    position:sticky;
    top:0;
    z-index:1;
    background:#fafafa;
    color:#6b7280;
    font-size:14px;
    font-weight:800;
}
tbody td{font-weight:700;color:#7b8190}
.card-cell{text-align:left;color:#6b7280}
.empty{
    color:#9ca3af;
    padding:34px!important;
}
.tag-warn{
    display:inline-block;
    margin-left:8px;
    padding:3px 8px;
    border-radius:999px;
    background:#fff1f2;
    color:#e11d48;
    font-size:12px;
}
.admin-layout{display:grid;grid-template-columns:300px 1fr;gap:22px;align-items:start}
.admin-card{padding:22px}.form-row{margin-bottom:14px}.form-row label{display:block;margin-bottom:8px;font-weight:700;color:#4b5563}.input,select{width:100%;height:44px;border:1px solid #d7dce5;border-radius:12px;padding:0 12px;background:#fff}.small-note{color:var(--muted);font-size:13px;line-height:1.6}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.logout{color:#ef4444;text-decoration:none;font-weight:700}.danger{color:#e11d48}
@media(max-width:760px){.page{width:calc(100% - 20px);margin:20px auto}.hero-panel{padding:18px}h1{font-size:24px}.admin-layout{grid-template-columns:1fr}}
