:root {
  --bg: #0d100e;
  --panel: #131714;
  --panel-2: #181d19;
  --panel-3: #20261f;
  --line: #2a302a;
  --line-soft: #222822;
  --text: #f0f2eb;
  --muted: #929b90;
  --faint: #667064;
  --accent: #d6f46b;
  --accent-dark: #1c250c;
  --gold: #d9a85c;
  --red: #e9867a;
  --blue: #89add5;
  --radius: 14px;
  --sidebar: 238px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 "Segoe UI", Inter, Arial, sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 28px 18px 20px; background: #101310; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 34px; }
.brand-mark { width: 37px; height: 42px; display: grid; place-items: center; border: 1px solid #647044; color: var(--accent); font: 700 23px Georgia, serif; transform: skew(-5deg); }
.brand strong { display: block; font-size: 13px; letter-spacing: .18em; }
.brand span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .22em; margin-top: 2px; }
.nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: 9px; padding: 11px 12px; background: transparent; color: var(--muted); text-align: left; transition: .15s ease; }
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: #22291c; color: var(--accent); }
.nav-glyph { font: 10px Consolas, monospace; color: var(--faint); width: 18px; }
.nav-item.active .nav-glyph { color: var(--accent); }
.nav-separator { height: 1px; background: var(--line-soft); margin: 14px 10px; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 18px 4px 0; border-top: 1px solid var(--line-soft); }
.local-status { display: flex; align-items: center; gap: 8px; flex: 1; }
.local-status strong, .local-status span { display: block; }
.local-status strong { font-size: 11px; font-weight: 500; }
.local-status div > span { color: var(--faint); font-size: 9px; }
.status-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px #d6f46b55; }
.avatar { width: 34px; height: 34px; border: 1px solid #47513e; border-radius: 50%; background: #2b3327; color: var(--accent); font-size: 11px; }
.main { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { min-height: 112px; padding: 26px 38px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #0d100ee8; position: sticky; top: 0; backdrop-filter: blur(14px); z-index: 10; }
.page-heading p, .eyebrow { margin: 0 0 3px; color: var(--faint); font-size: 9px; font-weight: 600; letter-spacing: .2em; }
.page-heading h1 { margin: 0; font-size: 25px; font-weight: 550; letter-spacing: -.03em; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.date-chip { color: var(--muted); font-size: 12px; }
.button { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); padding: 9px 14px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 550; transition: .15s; }
.button:hover { border-color: #59624f; background: var(--panel-3); }
.button-primary { background: var(--accent); border-color: var(--accent); color: #182007; }
.button-primary:hover { background: #e1fa8c; border-color: #e1fa8c; }
.button-danger { color: var(--red); }
.button-small { padding: 6px 10px; font-size: 11px; }
.button-ghost { background: transparent; }
.button:disabled { opacity: .5; cursor: wait; }
.plus { font-size: 17px; line-height: 1; }
.menu-button { display: none; }
.view { padding: 32px 38px 56px; max-width: 1660px; margin: auto; }
.loading { color: var(--muted); padding: 40px 0; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.hero h2 { margin: 0 0 8px; font: 400 30px/1.2 Georgia, serif; letter-spacing: -.02em; }
.hero p { color: var(--muted); max-width: 700px; margin: 0; }
.hero-meta { color: var(--faint); font-size: 11px; white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat-card { border: 1px solid var(--line-soft); background: var(--panel); border-radius: var(--radius); padding: 19px 20px; min-height: 118px; position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 70px; height: 70px; right: -25px; top: -25px; border: 1px solid #d6f46b13; transform: rotate(45deg); }
.stat-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.stat-value { font: 400 31px Georgia, serif; margin: 12px 0 4px; }
.stat-note { color: var(--faint); font-size: 11px; }
.stat-note.positive { color: var(--accent); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
.panel { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.panel-pad { padding: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.panel-head h3 { margin: 0; font-size: 13px; font-weight: 600; }
.panel-head p { margin: 3px 0 0; color: var(--faint); font-size: 11px; }
.text-link { color: var(--muted); font-size: 11px; background: none; border: 0; padding: 0; }
.text-link:hover { color: var(--accent); }
.portfolio-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); }
.product-mini { background: var(--panel); padding: 18px 20px; display: flex; align-items: center; gap: 13px; }
.product-logo { width: 42px; height: 42px; border: 1px solid color-mix(in srgb, var(--product-color) 50%, #333); border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--product-color) 12%, var(--panel-2)); color: var(--product-color); font: 600 13px Georgia, serif; flex: none; }
.product-mini strong, .product-mini span { display: block; }
.product-mini strong { font-size: 12px; font-weight: 550; }
.product-mini span { color: var(--faint); font-size: 10px; margin-top: 3px; }
.schedule-list { padding: 4px 20px 10px; }
.schedule-item { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.schedule-item:last-child { border: 0; }
.schedule-date { color: var(--accent); font: 11px Consolas, monospace; padding-top: 2px; }
.schedule-item strong { display: block; font-size: 12px; font-weight: 500; }
.schedule-item p { color: var(--muted); margin: 4px 0 0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.empty { padding: 34px 22px; color: var(--muted); text-align: center; }
.empty strong { color: var(--text); display: block; margin-bottom: 5px; font-weight: 500; }
.channel-health { padding: 8px 20px 14px; }
.health-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.health-row .health-name { flex: 1; min-width: 0; }
.health-name strong, .health-name span { display: block; }
.health-name strong { font-size: 11px; font-weight: 500; }
.health-name span { font-size: 10px; color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 20px; padding: 3px 8px; font-size: 9px; color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; }
.pill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.pill-live, .pill-active, .pill-published, .pill-ready { color: var(--accent); border-color: #3e492a; background: #202718; }
.pill-development, .pill-candidate, .pill-draft, .pill-scheduled { color: var(--gold); border-color: #4b3e27; background: #282218; }
.pill-relaunch, .pill-setup, .pill-planned, .pill-idea { color: var(--blue); border-color: #304253; background: #18232d; }
.pill-error, .pill-blocked, .pill-offline { color: var(--red); border-color: #52332f; background: #2a1c1a; }
.pill-archived { color: var(--faint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 19px; font-weight: 500; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.section-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { border: 1px solid var(--line-soft); background: var(--panel); border-radius: var(--radius); overflow: hidden; transition: .18s; }
.product-card:hover { transform: translateY(-2px); border-color: #414a3d; }
.product-cover { height: 112px; padding: 20px; background: radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--product-color) 24%, transparent), transparent 60%), linear-gradient(135deg, #1a201b, #101310); display: flex; align-items: flex-start; justify-content: space-between; }
.product-cover .product-logo { width: 52px; height: 52px; font-size: 17px; background: #11160fdd; }
.flagship { color: var(--gold); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.product-body { padding: 19px 20px; }
.product-title-row { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.product-body h3 { margin: 0; font-size: 15px; font-weight: 550; }
.product-tagline { color: var(--muted); font-size: 11px; margin: 6px 0 14px; min-height: 32px; }
.product-meta { display: flex; justify-content: space-between; color: var(--faint); font-size: 10px; border-top: 1px solid var(--line-soft); padding-top: 13px; }
.product-actions { display: flex; gap: 13px; margin-top: 14px; align-items: center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { color: var(--faint); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; text-align: left; padding: 12px 18px; background: #111511; border-bottom: 1px solid var(--line-soft); }
td { padding: 15px 18px; border-bottom: 1px solid var(--line-soft); font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #171b17; }
.cell-title { font-weight: 550; }
.cell-sub { color: var(--faint); font-size: 10px; margin-top: 3px; }
.cell-actions { text-align: right; white-space: nowrap; }
.audience { font: 16px Georgia, serif; }
.platform { display: inline-flex; align-items: center; gap: 8px; }
.platform-icon { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--panel-3); color: var(--accent); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { border: 1px solid var(--line); color: var(--muted); background: transparent; border-radius: 20px; padding: 6px 12px; font-size: 11px; }
.filter.active { color: var(--accent); border-color: #596839; background: #1d2517; }
.post-list { display: grid; gap: 12px; }
.post-card { display: grid; grid-template-columns: 5px 1fr auto; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.post-accent { background: var(--product-color, var(--line)); }
.post-main { padding: 17px 19px; min-width: 0; }
.post-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.post-kind { color: var(--faint); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.post-main h3 { margin: 0 0 6px; font-size: 14px; font-weight: 550; }
.post-text { color: var(--muted); margin: 0; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }
.post-channels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.channel-chip { background: var(--panel-3); color: var(--muted); border-radius: 5px; padding: 3px 7px; font-size: 9px; }
.post-side { min-width: 155px; padding: 18px; border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 14px; }
.post-time { color: var(--muted); font: 10px Consolas, monospace; }
.post-buttons { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.calendar-nav { display: flex; align-items: center; gap: 12px; }
.calendar-title { min-width: 145px; text-align: center; text-transform: capitalize; font: 17px Georgia, serif; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); }
.calendar-weekday { padding: 10px; color: var(--faint); font-size: 9px; text-transform: uppercase; text-align: center; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.calendar-day { min-height: 112px; padding: 9px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--panel); }
.calendar-day.outside { opacity: .35; background: #101310; }
.calendar-day.today .day-number { background: var(--accent); color: #182007; }
.day-number { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; margin-bottom: 6px; }
.calendar-post { padding: 5px 6px; border-left: 2px solid var(--accent); background: #22281f; color: #cbd3c4; font-size: 9px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.profile-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 20px; }
.profile-intro { padding: 28px; }
.profile-monogram { width: 72px; height: 82px; display: grid; place-items: center; border: 1px solid #657246; color: var(--accent); font: 30px Georgia, serif; margin-bottom: 22px; }
.profile-intro h2 { margin: 0 0 4px; font: 25px Georgia, serif; }
.profile-handle { color: var(--accent); font-size: 11px; }
.profile-headline { color: var(--muted); margin: 16px 0 22px; }
.contact-list { display: grid; gap: 8px; font-size: 11px; color: var(--muted); word-break: break-word; }
.resume-section { padding: 23px 25px; border-bottom: 1px solid var(--line-soft); }
.resume-section:last-child { border: 0; }
.resume-section h3 { margin: 0 0 13px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.resume-section p { color: #c0c7bb; margin: 0; }
.skill-list { display: flex; gap: 7px; flex-wrap: wrap; }
.skill { border: 1px solid var(--line); padding: 5px 9px; border-radius: 6px; color: var(--muted); font-size: 10px; }
.experience { display: grid; gap: 18px; }
.experience-item { display: grid; grid-template-columns: 145px 1fr; gap: 18px; }
.experience-period { color: var(--faint); font-size: 10px; }
.experience-item strong { font-size: 12px; font-weight: 550; }
.experience-item p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.integration { padding: 21px; }
.integration-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.integration h3 { margin: 0; font-size: 14px; font-weight: 550; }
.integration p { color: var(--muted); font-size: 11px; }
.code { font: 10px Consolas, monospace; color: var(--accent); background: #0c100c; border: 1px solid var(--line-soft); padding: 8px 10px; border-radius: 6px; word-break: break-word; }
.notice { border: 1px solid #414b2c; background: #1b2115; color: #bdc9a4; border-radius: 10px; padding: 14px 16px; font-size: 11px; margin-bottom: 20px; }
.notice strong { color: var(--accent); }
.activity-list { padding: 6px 20px 14px; }
.activity-item { display: grid; grid-template-columns: 115px 1fr; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.activity-item:last-child { border: 0; }
.activity-time { color: var(--faint); font: 9px Consolas, monospace; }
.modal-backdrop { position: fixed; inset: 0; background: #050705c9; backdrop-filter: blur(5px); z-index: 100; display: grid; place-items: center; padding: 24px; }
.hidden { display: none !important; }
.modal { background: #141815; border: 1px solid #363e34; border-radius: 16px; width: min(680px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: 0 24px 80px #0008; }
.modal-wide { width: min(800px, 100%); }
.modal-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: flex-start; position: sticky; top: 0; background: #141815f5; z-index: 2; }
.modal-head h2 { margin: 0; font-size: 19px; font-weight: 500; }
.icon-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; }
.form { padding: 22px 24px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 6px; margin-bottom: 15px; }
.field label { color: var(--muted); font-size: 10px; font-weight: 550; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: #0f130f; color: var(--text); border-radius: 8px; padding: 10px 11px; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #687748; box-shadow: 0 0 0 2px #d6f46b0c; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field small { color: var(--faint); font-size: 9px; }
.field-full { grid-column: 1 / -1; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checkbox-card { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 9px; color: var(--muted); font-size: 11px; }
.checkbox-card:has(input:checked) { border-color: #5b693a; color: var(--text); background: #1c2318; }
.checkbox-card input { accent-color: var(--accent); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding-top: 17px; border-top: 1px solid var(--line-soft); margin-top: 6px; }
.form-actions .left { margin-right: auto; }
.media-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.media-chip { color: var(--muted); background: var(--panel-3); padding: 5px 8px; border-radius: 5px; font-size: 9px; }
.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 8px; }
.toast { background: #242c20; border: 1px solid #4b5d35; color: var(--text); border-radius: 9px; padding: 12px 16px; box-shadow: 0 12px 35px #0007; max-width: 420px; font-size: 12px; }
.toast.error { background: #2c1c19; border-color: #633b34; }
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  :root { --sidebar: 230px; }
  .sidebar { transform: translateX(-100%); transition: .2s; }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 50px #0008; }
  .main { margin-left: 0; }
  .menu-button { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); padding: 7px; font-size: 10px; }
  .topbar { padding: 20px; min-height: 90px; }
  .page-heading p, .date-chip { display: none; }
  .page-heading h1 { font-size: 20px; }
  .view { padding: 24px 18px 40px; }
  .dashboard-grid, .settings-grid { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; flex-direction: column; }
  .hero h2 { font-size: 25px; }
  .calendar-day { min-height: 80px; padding: 5px; }
  .post-side { min-width: 125px; }
}
@media (max-width: 560px) {
  .top-actions .button { font-size: 0; width: 36px; height: 36px; padding: 0; }
  .top-actions .plus { font-size: 18px; }
  .stats-grid, .product-grid, .portfolio-row { grid-template-columns: 1fr; }
  .stat-card { min-height: 100px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .post-card { grid-template-columns: 4px 1fr; }
  .post-side { grid-column: 2; border-left: 0; border-top: 1px solid var(--line-soft); flex-direction: row; align-items: center; }
  .form-grid, .checkbox-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .experience-item { grid-template-columns: 1fr; gap: 5px; }
  .calendar-day { min-height: 60px; }
  .calendar-post { font-size: 0; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; display: inline-block; }
  .activity-item { grid-template-columns: 1fr; gap: 3px; }
  .modal-backdrop { padding: 8px; }
}
.login-screen { position: fixed; inset: 0; z-index: 300; background: radial-gradient(circle at 70% 10%, #25301b, var(--bg) 45%); display: grid; place-items: center; padding: 20px; }
.login-card { width: min(420px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 24px 80px #0008; }
.login-card .brand-mark { margin-bottom: 25px; }
.login-card h2 { margin: 7px 0 10px; font: 25px Georgia, serif; }
.login-card > p:not(.eyebrow) { color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.login-card .button { width: 100%; }
.login-error { color: var(--red); font-size: 11px; margin-top: 12px; min-height: 16px; }
.idea-card { padding: 18px 20px; }
.idea-card h3 { margin: 8px 0; font-size: 14px; font-weight: 500; }
.idea-card p { color: var(--muted); margin: 0; white-space: pre-wrap; }
.idea-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.idea-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line-soft); margin-top: 14px; padding-top: 12px; color: var(--faint); font-size: 10px; }
.idea-quick { padding: 22px; margin-bottom: 20px; }
.idea-quick textarea { min-height: 90px; }
.production-script { background: #0f130f; border: 1px solid var(--line-soft); border-radius: 8px; padding: 12px; margin-top: 12px; color: var(--muted); font-size: 11px; white-space: pre-wrap; }
