:root {
  --bg: #f6f3f1;
  --surface: #fffdfb;
  --ink: #2b2324;
  --muted: #806f72;
  --line: #e9dfda;
  --rose: #a85f6d;
  --sage: #4d6254;
  --gold: #b98a45;
  --sidebar: #2b2627;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 900px; background: var(--bg); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.admin-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; padding: 22px 14px; background: var(--sidebar); color: #fff8f5; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 30px; }
.brand span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #c17a88; font-size: 12px; font-weight: 900; }
.brand strong { font-size: 14px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { min-height: 42px; border: 0; border-radius: 7px; background: transparent; color: #cdbfc1; text-align: left; padding: 0 12px; font-size: 14px; font-weight: 700; }
.nav-item.active { background: #4c3a3e; color: #fff8f5; }
.profile-button { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 11px; border: 0; border-radius: 7px; background: #3b3032; color: #fff8f5; text-align: left; font-size: 12px; font-weight: 850; }
.profile-button span { color: #cdbfc1; font-weight: 500; }
.workspace { min-width: 0; padding: 34px 42px; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 5px; color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-family: Georgia, serif; font-size: 32px; font-weight: 500; }
h2 { margin-bottom: 0; font-size: 17px; }
.primary-button { min-height: 40px; padding: 0 15px; border: 0; border-radius: 7px; background: linear-gradient(145deg, #2b2324, #7e3f4c); color: #fff8f5; font-size: 13px; font-weight: 850; }
.panel { display: none; }
.panel.is-active { display: block; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-grid article, .work-card, .table-card, .empty-panel { padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); font-size: 12px; }
.admin-spaced-table { margin-top: 14px; }
.metric-grid strong { display: block; margin: 14px 0 5px; font-size: 25px; }
.split-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 14px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.card-header button { padding: 0; border: 0; background: transparent; color: var(--rose); font-size: 12px; font-weight: 800; }
.work-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.work-list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; }
.work-list strong, .work-list small { display: block; font-size: 13px; }
.work-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.work-list b { color: var(--muted); font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }.rose { background:#a85f6d }.sage { background:#6c8a70 }.gold { background:#c39a57 }
.source-list { display: grid; gap: 16px; }.source-list div { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px; padding-bottom: 8px; font-size: 13px; }.source-list b { font-size: 12px; }.source-list i { position: absolute; bottom: 0; left: 0; height: 4px; border-radius: 4px; background: #c4818c; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; }.toolbar input, .toolbar select { min-height: 40px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 0 11px; }.toolbar input { width: 310px; }.icon-button { min-height: 40px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 0 12px; color: var(--muted); font-size: 13px; }
 .ticket-status { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 12px; padding: 6px 8px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; } th { padding: 0 10px 12px; color: var(--muted); font-size: 11px; } td { padding: 13px 10px; border-top: 1px solid var(--line); } td strong, td small { display: block; } td small { margin-top: 3px; color: var(--muted); font-size: 11px; }.badge { padding: 5px 8px; border-radius: 99px; font-size: 10px; font-weight: 850; }.badge.published { background:#e8eee7; color:#4d6254 }.badge.draft { background:#eee6f2; color:#6d5279 }.row-action { border:0; background:transparent; color:var(--rose); font-size:12px; font-weight:800; }
.empty-panel { min-height: 240px; display: grid; align-content: center; }.empty-panel p { max-width: 460px; margin: 10px 0 0; color: var(--muted); line-height: 1.45; }
.admin-dialog { border: 1px solid var(--line); border-radius: 8px; color: var(--ink); max-width: 480px; padding: 22px; width: calc(100% - 32px); }.admin-dialog form { display: grid; gap: 12px; }.admin-dialog label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }.admin-dialog input, .admin-dialog textarea, .admin-dialog select { border: 1px solid var(--line); border-radius: 6px; font: inherit; padding: 9px; }.admin-dialog textarea { min-height: 78px; resize: vertical; }.admin-dialog form > div { display: flex; gap: 8px; justify-content: flex-end; }.admin-dialog form > div button:first-child { background: transparent; border: 0; color: var(--muted); }
