:root { color-scheme: light; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; color: #23211d; background: #f3efe6; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
.hidden { display: none !important; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #f6dca8, transparent 34%), #f3efe6; }
.login-card { width: min(460px, 100%); padding: 44px; border: 1px solid #d8d0c1; border-radius: 24px; background: rgba(255,255,255,.86); box-shadow: 0 22px 70px rgba(64,49,23,.12); }
.login-card h1 { margin: 8px 0 12px; font-size: 32px; line-height: 1.2; }
.login-card > p { color: #716b60; }
label { display: grid; gap: 8px; margin-top: 20px; font-weight: 600; }
input { width: 100%; padding: 13px 14px; border: 1px solid #cfc7b9; border-radius: 10px; background: white; }
.primary { width: 100%; margin-top: 28px; padding: 14px; border: 0; border-radius: 10px; color: white; background: #b45f37; font-weight: 700; cursor: pointer; }
.message, .error { color: #a43c2c; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 232px 1fr; }
aside { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 18px; background: #26251f; color: white; }
.brand { display: grid; gap: 3px; padding: 0 12px 26px; }
.brand span { font-size: 25px; font-weight: 800; letter-spacing: .08em; }
.brand small { color: #aaa597; }
nav { display: grid; gap: 5px; }
.nav-item, .logout { border: 0; border-radius: 9px; padding: 11px 12px; text-align: left; color: #d9d5cb; background: transparent; cursor: pointer; }
.nav-item:hover, .nav-item.active { color: white; background: #3b3931; }
.logout { margin-top: auto; color: #bdb7a8; }
.content { min-width: 0; padding: 42px clamp(24px, 5vw, 72px) 80px; }
.view-header { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.view-header h2 { max-width: 760px; margin: 5px 0 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.15; }
.view-header time { color: #817a6d; font-size: 13px; }
.eyebrow { margin: 0; color: #a65732; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h3 { margin-top: 38px; font-size: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.metric-grid.depth-1 { grid-template-columns: 1fr; margin-top: 12px; }
.metric-card { min-width: 0; padding: 19px; border: 1px solid #ded7c9; border-radius: 14px; background: rgba(255,255,255,.75); }
.metric-card > span { display: block; margin-bottom: 10px; color: #746f65; font-size: 13px; }
.metric-card > strong { font-size: 28px; }
.table-wrap { overflow-x: auto; border: 1px solid #ded7c9; border-radius: 14px; background: rgba(255,255,255,.78); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 15px; border-bottom: 1px solid #e6e0d5; text-align: left; white-space: nowrap; }
th { color: #716b60; background: #f7f4ee; font-size: 12px; }
.text-action, .secondary-action { border: 1px solid #c9bda9; border-radius: 8px; color: #7b4229; background: #fffaf1; cursor: pointer; }
.text-action { padding: 6px 10px; }
.secondary-action { margin: 18px 0; padding: 9px 14px; }
.text-action:hover, .secondary-action:hover { background: #f4e4cc; }
.empty, .loading, .error { padding: 30px; border: 1px dashed #d0c6b5; border-radius: 14px; background: rgba(255,255,255,.45); }
.pill { display: inline-block; margin: 3px; padding: 4px 8px; border-radius: 99px; background: #ece5d8; }
@media (max-width: 760px) { .admin-shell { grid-template-columns: 1fr; } aside { position: relative; height: auto; } nav { grid-template-columns: repeat(2, 1fr); } .logout { margin-top: 20px; } .view-header { display: block; } }
