:root {
  color-scheme: dark;
  --night: #11100e;
  --night-deep: #0b0a09;
  --leather: #1a1612;
  --leather-raised: #261c15;
  --line: #564434;
  --line-soft: rgba(232, 194, 123, .22);
  --bone: #f2e6d0;
  --parchment: #b7a993;
  --sand: #e8c27b;
  --sand-bright: #f5d99f;
  --ember: #c64f32;
  --ember-bright: #ec7450;
  --sage: #8aa06b;
  --shadow: 0 20px 60px rgba(0, 0, 0, .36);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--bone); background: radial-gradient(circle at 86% -10%, rgba(198, 79, 50, .2), transparent 30rem), radial-gradient(circle at 8% 4%, rgba(232, 194, 123, .09), transparent 28rem), linear-gradient(165deg, #17110d 0%, var(--night) 46%, var(--night-deep) 100%); }
a { color: inherit; }
code { padding: 2px 5px; color: var(--sand-bright); font-family: inherit; font-size: .9em; font-weight: 800; border: 1px solid rgba(232, 194, 123, .2); border-radius: 5px; background: rgba(232, 194, 123, .08); }
.app-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); font-weight: 760; text-decoration: none; letter-spacing: -.02em; }
.brand strong { color: var(--sand); }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; color: #2b180d; font-size: 11px; font-weight: 950; letter-spacing: -.08em; border: 1px solid rgba(245, 217, 159, .8); border-radius: 8px 14px 8px 14px; background: linear-gradient(135deg, var(--sand-bright), #b17637); box-shadow: 0 8px 24px rgba(232, 194, 123, .18); }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--parchment); font-size: 13px; }
.user-chip img { width: 26px; height: 26px; border-radius: 50%; background: var(--leather-raised); }
.user-chip a { margin-left: 5px; color: var(--bone); font-weight: 800; text-decoration: none; }
.main-content { padding-top: 42px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 44px 0 30px; }
.eyebrow { margin-bottom: 9px; color: var(--sand); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 12px; font-size: clamp(36px, 6vw, 62px); letter-spacing: -.055em; line-height: .98; }
h1 span { color: var(--sand-bright); }
h2 { margin-bottom: 0; font-size: 24px; letter-spacing: -.03em; }
.hero p { max-width: 620px; margin-bottom: 0; color: var(--parchment); font-size: 16px; line-height: 1.6; }
.bot-status { display: flex; align-items: center; min-width: 270px; padding: 13px; border: 1px solid var(--line); border-radius: 12px 18px 12px 18px; background: linear-gradient(145deg, rgba(38, 28, 21, .96), rgba(17, 16, 14, .9)); box-shadow: var(--shadow); }
.bot-status img { width: 48px; height: 48px; margin-right: 12px; border: 1px solid rgba(232, 194, 123, .25); border-radius: 10px; object-fit: cover; }
.bot-status div { min-width: 0; }
.bot-status strong, .bot-status span, .bot-status small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-status span { margin-top: 2px; color: var(--parchment); font-size: 12px; }
.bot-status small { margin-top: 6px; color: var(--sand); font-size: 11px; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: 15px 22px 15px 22px; background: linear-gradient(145deg, rgba(38, 28, 21, .96), rgba(24, 20, 17, .98)); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.panel-heading p { max-width: 380px; margin-bottom: 0; color: var(--parchment); font-size: 13px; line-height: 1.55; text-align: right; }
.dashboard-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; margin-top: 18px; }
.stacked-form, .upload-form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: #d9cbb4; font-size: 12px; font-weight: 780; }
input, select, textarea { width: 100%; color: var(--bone); font: inherit; font-size: 14px; border: 1px solid #68523d; border-radius: 8px; outline: none; background: rgba(10, 9, 8, .76); transition: border-color .15s, box-shadow .15s; }
input, select { min-height: 41px; padding: 0 12px; }
textarea { min-height: 90px; padding: 11px 12px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--sand); box-shadow: 0 0 0 3px rgba(232, 194, 123, .13); }
input[type=file] { padding: 9px; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toggle-row { display: flex; align-items: center; gap: 9px; width: fit-content; color: var(--bone); cursor: pointer; }
.toggle-row input { width: 17px; min-height: 17px; accent-color: var(--ember); }
.embed-fields { display: grid; gap: 15px; padding: 18px; border: 1px dashed rgba(232, 194, 123, .4); border-radius: 11px; background: rgba(6, 5, 4, .26); }
.form-actions { display: flex; align-items: center; gap: 14px; }
.form-actions span { color: var(--parchment); font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 15px; color: var(--bone); font: inherit; font-size: 13px; font-weight: 850; text-decoration: none; cursor: pointer; border: 1px solid #70563e; border-radius: 8px; background: #30251d; transition: transform .14s, filter .14s, background .14s; }
.button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.button-primary { color: #fff4df; border-color: #ea7757; background: linear-gradient(135deg, var(--ember-bright), #9e301f); box-shadow: 0 10px 20px rgba(198, 79, 50, .24); }
.button-large { min-height: 47px; padding: 0 20px; font-size: 15px; }
.button-ghost { color: #dccfb9; background: transparent; }
.profile-current { display: flex; align-items: center; gap: 13px; margin: -2px 0 20px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(5, 4, 3, .25); }
.profile-current img { width: 50px; height: 50px; border: 1px solid var(--line-soft); border-radius: 10px; object-fit: cover; }
.profile-current strong, .profile-current span { display: block; }
.profile-current span { margin-top: 3px; color: var(--parchment); font-size: 12px; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 13px; }
.upload-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-top: 13px; }
.clear-form { margin-top: 13px; }
.notice { margin-bottom: 18px; padding: 13px 15px; border-radius: 10px; font-size: 14px; font-weight: 680; }
.notice-success { color: #d9e7bf; border: 1px solid rgba(138, 160, 107, .5); background: rgba(79, 95, 57, .26); }
.notice-error, .auth-error { color: #ffd0c4; border: 1px solid rgba(236, 116, 80, .45); background: rgba(129, 44, 27, .24); }
.auth-card { width: min(600px, 100%); margin: min(13vh, 100px) auto 0; padding: 36px; border: 1px solid var(--line); border-radius: 18px 26px 18px 26px; background: linear-gradient(145deg, rgba(47, 33, 23, .98), rgba(22, 18, 15, .98)); box-shadow: var(--shadow); }
.auth-card h1 { font-size: clamp(35px, 5.5vw, 55px); }
.auth-card p { max-width: 480px; color: var(--parchment); line-height: 1.65; }
.auth-error { margin: 20px 0; padding: 11px 13px; border-radius: 8px; }
.auth-note { margin: 16px 0 0 !important; font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.metric { min-height: 108px; padding: 16px; border: 1px solid rgba(118, 91, 63, .7); border-radius: 10px; background: rgba(8, 7, 6, .32); }
.metric span, .metric small { display: block; color: var(--parchment); font-size: 11px; font-weight: 760; letter-spacing: .02em; }
.metric strong { display: block; margin-top: 9px; color: var(--bone); font-size: 28px; line-height: 1; letter-spacing: -.05em; }
.metric small { margin-top: 7px; }
.metric-alert { border-color: rgba(236, 116, 80, .46); background: linear-gradient(145deg, rgba(123, 43, 27, .3), rgba(8, 7, 6, .34)); }
.analytics-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.analytics-split h3 { margin: 0 0 11px; font-size: 14px; letter-spacing: -.01em; }
.day-list { display: grid; gap: 6px; }
.day-list > div { display: grid; grid-template-columns: 1.1fr .68fr .68fr 1fr; gap: 8px; align-items: center; min-height: 36px; padding: 0 11px; border: 1px solid rgba(104, 82, 61, .72); border-radius: 8px; color: var(--parchment); background: rgba(6, 5, 4, .2); font-size: 12px; }
.day-list b { color: #b7d58c; font-size: 12px; }
.day-list i { color: #ff9a7a; font-style: normal; font-weight: 760; }
.day-list em { color: #e2d4bd; font-style: normal; text-align: right; }
.event-list { display: grid; gap: 7px; max-height: 292px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.event-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid rgba(104, 82, 61, .72); border-radius: 8px; color: #e2d7c5; font-size: 12px; }
.event-list li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-kind { color: var(--sand); font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.event-list time, .empty-state { color: var(--parchment) !important; font-size: 10px; }
.empty-state { font-size: 12px; line-height: 1.5; }
.safety-note { margin: -5px 0 16px; padding: 12px 14px; border: 1px solid rgba(232, 194, 123, .3); border-radius: 9px; color: #e1d6c5; background: rgba(232, 194, 123, .08); font-size: 12px; line-height: 1.55; }
.approval-list { display: grid; gap: 10px; }
.approval-card { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #68523d; border-radius: 11px; background: rgba(5, 4, 3, .26); }
.approval-card > img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; background: var(--leather-raised); }
.approval-card > div:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.approval-card strong, .approval-card span, .approval-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.approval-card span, .approval-card small { color: var(--parchment); font-size: 11px; }
.approval-actions { display: flex !important; flex-direction: row !important; gap: 7px; margin-left: auto; }
.approval-actions form { margin: 0; }
.approval-actions .button { min-height: 34px; padding: 0 11px; font-size: 11px; }
.outlaw-hero { padding-bottom: 22px; }
.outlaw-post { display: grid; gap: 16px; margin: 0 0 18px; padding: 20px; border: 1px solid rgba(232, 194, 123, .34); border-radius: 16px 24px 16px 24px; background: linear-gradient(145deg, rgba(56, 39, 25, .72), rgba(22, 18, 15, .98)); box-shadow: var(--shadow); }
.post-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.post-heading h2 { margin: 0; font-size: 20px; }
.post-heading .eyebrow { margin-bottom: 6px; }
.post-heading p { max-width: 290px; margin: 0; color: var(--parchment); font-size: 12px; line-height: 1.55; text-align: right; }
.dashboard-search { display: grid; gap: 7px; color: #e4d7c2; font-size: 11px; font-weight: 820; letter-spacing: .04em; text-transform: uppercase; }
.dashboard-search input { min-height: 44px; border-color: rgba(232, 194, 123, .34); background: rgba(5, 4, 3, .58); }
.dashboard-search input:focus { border-color: var(--sand); box-shadow: 0 0 0 3px rgba(232, 194, 123, .12); }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.category-tab { min-height: 35px; padding: 0 12px; color: var(--parchment); font: inherit; font-size: 12px; font-weight: 820; cursor: pointer; border: 1px solid #624c38; border-radius: 999px; background: rgba(10, 8, 6, .56); transition: .16s ease; }
.category-tab:hover, .category-tab.is-active { color: #2a180c; border-color: var(--sand-bright); background: linear-gradient(135deg, var(--sand-bright), #bd7f3b); box-shadow: 0 7px 16px rgba(232, 194, 123, .16); }
.dashboard-result { margin: -4px 0 0; color: var(--parchment); font-size: 12px; }
.dashboard-section[hidden] { display: none; }
.discord-mod-guide { border-color: rgba(232, 194, 123, .28); background: linear-gradient(145deg, rgba(55, 38, 24, .54), rgba(24, 20, 17, .98)); }
.moderation-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.moderation-guide-grid article { display: grid; gap: 7px; min-height: 112px; padding: 16px; border: 1px solid rgba(232, 194, 123, .2); border-radius: 11px; background: rgba(6, 5, 4, .28); }
.moderation-guide-grid strong { color: var(--sand-bright); font-size: 13px; }
.moderation-guide-grid span { color: var(--parchment); font-size: 12px; line-height: 1.55; }
.outlaw-auth-card { border-color: rgba(232, 194, 123, .4); background: linear-gradient(145deg, rgba(62, 42, 25, .88), rgba(22, 18, 15, .98)); }
.outlaw-auth-card .button-primary { color: #fff4df; }
@media (max-width: 980px) { .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .analytics-split { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .hero, .panel-heading, .post-heading { align-items: flex-start; flex-direction: column; } .bot-status { width: 100%; } .panel-heading p, .post-heading p { text-align: left; } .dashboard-grid, .moderation-guide-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .app-shell { width: min(100% - 22px, 1180px); } .topbar { align-items: flex-start; flex-direction: column; } .main-content { padding-top: 20px; } .hero { padding: 28px 0 25px; } .panel, .auth-card, .outlaw-post { padding: 19px; border-radius: 14px; } .form-grid, .inline-form, .upload-form { grid-template-columns: 1fr; } .form-actions { align-items: stretch; flex-direction: column; } .form-actions .button { width: 100%; } .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metric:last-child { grid-column: span 2; } .day-list > div { grid-template-columns: 1fr .7fr .7fr; } .day-list em, .event-list time { display: none; } .event-list li { grid-template-columns: auto minmax(0, 1fr); } .approval-card { align-items: flex-start; flex-wrap: wrap; } .approval-card > div:nth-child(2) { width: calc(100% - 58px); } .approval-actions { width: 100%; margin-left: 54px; } .category-tabs { gap: 6px; } .category-tab { flex: 1 1 auto; } }

