:root {
  color-scheme: dark;
  --ink: #f5f3f0;
  --muted: #aaa49e;
  --muted-2: #746f6a;
  --bg: #101112;
  --panel: rgba(28, 29, 30, 0.82);
  --panel-solid: #1b1c1d;
  --panel-soft: rgba(42, 42, 41, 0.68);
  --line: rgba(255, 244, 235, 0.1);
  --orange: #f47b35;
  --orange-light: #ff9d63;
  --amber: #f2ad5c;
  --danger: #ef766f;
  --display: "Sora", sans-serif;
  --sans: "DM Sans", sans-serif;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; color: var(--ink); background: radial-gradient(circle at 72% 14%, rgba(244, 123, 53, .12), transparent 34%), linear-gradient(145deg, #0d0e0f 0%, #121314 58%, #0e0f10 100%); font-family: var(--sans); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 2px; }
[hidden] { display: none !important; }

.ambient { position: fixed; z-index: 0; border-radius: 999px; filter: blur(80px); pointer-events: none; opacity: .36; }
.ambient-one { width: 340px; height: 340px; top: -150px; left: 28%; background: #d95718; }
.ambient-two { width: 300px; height: 300px; right: -140px; bottom: 8%; background: #6b3218; opacity: .2; }
.glass { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(31, 32, 33, .92), rgba(17, 18, 19, .94)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.035); backdrop-filter: blur(24px); }
.eyebrow { margin: 0; color: var(--orange-light); font-size: .69rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }

.login-screen { position: relative; z-index: 1; display: grid; min-height: 100vh; grid-template-columns: minmax(290px, 490px) minmax(260px, 520px); align-items: center; justify-content: center; gap: clamp(40px, 8vw, 120px); padding: 48px; overflow: hidden; }
.login-mark { position: absolute; top: 36px; left: 42px; display: grid; width: 46px; height: 58px; place-items: center; border: 1px solid rgba(244,123,53,.38); border-radius: 4px 12px 4px 4px; background: rgba(33,30,28,.82); color: var(--orange-light); font: 500 1.35rem var(--display); }
.login-card { padding: clamp(28px, 5vw, 54px); border-radius: 28px; }
.login-card h1 { margin: 18px 0 16px; font: 500 clamp(2.55rem, 5vw, 4.15rem)/.98 var(--display); letter-spacing: -.055em; }
.login-card h1 em { color: var(--orange-light); font-style: normal; font-weight: 500; }
.login-intro { max-width: 390px; margin: 0 0 34px; color: var(--muted); line-height: 1.65; }
.login-card form { display: grid; gap: 16px; }
.login-card label, .field { display: grid; gap: 8px; color: #d8d3ce; font-size: .78rem; font-weight: 500; }
.login-card input, .field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; color: var(--ink); background: rgba(12,13,14,.72); }
.field textarea { min-height: 92px; padding-top: 12px; resize: vertical; }
.login-card input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.login-note { margin: 18px 0 0; color: var(--muted-2); font-size: .72rem; text-align: center; }
.login-cover-stack { position: relative; width: min(40vw, 500px); height: 580px; perspective: 1200px; }
.login-cover { position: absolute; display: flex; width: 276px; height: 420px; flex-direction: column; justify-content: space-between; padding: 38px 30px; border: 1px solid rgba(255,255,255,.16); border-radius: 3px 18px 3px 3px; box-shadow: 0 45px 90px rgba(0,0,0,.58); font-family: var(--display); font-weight: 500; }
.login-cover span { font-size: 2.7rem; line-height: .92; letter-spacing: -.03em; }
.login-cover small { font-family: var(--sans); font-size: .68rem; letter-spacing: .22em; }
.cover-a { top: 44px; left: 40px; z-index: 3; transform: rotate(-6deg); background: radial-gradient(circle at 70% 18%, #ff975b 0 2%, transparent 2.5%), linear-gradient(154deg, #161719 0 48%, #f47b35 49% 50%, #0c0d0e 51%); }
.cover-b { top: 90px; left: 180px; z-index: 2; transform: rotate(9deg); background: radial-gradient(ellipse at 55% 78%, #f47b35 0, #61311a 35%, #121314 68%); color: #fff1e8; }
.cover-c { top: 15px; left: 200px; z-index: 1; transform: rotate(17deg); background: linear-gradient(145deg, #633318, #161719 62%); color: #ffe6d7; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 10px; padding: 9px 15px; cursor: pointer; font-size: .82rem; font-weight: 600; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, #f68a47, #df5e1b); box-shadow: 0 10px 30px rgba(224,94,27,.24), inset 0 1px 0 rgba(255,255,255,.2); }
.button-primary:hover { box-shadow: 0 14px 38px rgba(224,94,27,.34); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.03); color: #c9c3bd; }
.button-wide { width: 100%; margin-top: 5px; }
.icon-button { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); cursor: pointer; }
.form-error { min-height: 1em; margin: 0; color: var(--danger); font-size: .75rem; }

.app-shell { position: relative; z-index: 1; display: grid; min-height: 100vh; grid-template-columns: 238px minmax(0, 1fr); gap: 18px; padding: 18px; }
.sidebar { position: sticky; top: 18px; display: flex; height: calc(100vh - 36px); flex-direction: column; padding: 20px 14px 14px; border-radius: 22px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 7px 22px; border-bottom: 1px solid var(--line); }
.brand-mark { display: grid; width: 36px; height: 44px; place-items: center; border: 1px solid rgba(244,123,53,.44); border-radius: 3px 9px 3px 3px; color: var(--orange-light); background: linear-gradient(145deg, rgba(244,123,53,.2), rgba(255,255,255,.02)); font: 500 1rem var(--display); }
.brand strong, .brand span { display: block; }
.brand strong { font-family: var(--display); font-size: 1.02rem; font-weight: 500; letter-spacing: -.03em; }
.brand span { margin-top: 2px; color: var(--muted-2); font-size: .66rem; }
.main-nav { display: grid; gap: 7px; margin-top: 22px; }
.nav-item { display: grid; min-height: 47px; grid-template-columns: 31px 1fr auto; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 12px; padding: 7px 10px; color: var(--muted); background: transparent; cursor: pointer; text-align: left; font-size: .8rem; }
.nav-item:hover { color: var(--ink); background: rgba(255,255,255,.03); }
.nav-item.active { border-color: rgba(244,123,53,.2); color: var(--ink); background: linear-gradient(90deg, rgba(244,123,53,.16), rgba(76,61,52,.08)); }
.nav-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.05); color: #918b85; }
.nav-item.active .nav-icon { background: var(--orange); color: white; box-shadow: 0 8px 18px rgba(224,94,27,.26); }
.nav-count { color: var(--muted-2); font-size: .67rem; }
.nav-count.alert { min-width: 20px; padding: 3px 6px; border-radius: 999px; color: white; background: rgba(244,123,53,.8); text-align: center; }
.sidebar-focus { margin-top: auto; border: 1px solid var(--line); border-radius: 15px; padding: 15px; background: radial-gradient(circle at 100% 0, rgba(244,123,53,.18), transparent 44%), rgba(255,255,255,.025); }
.sidebar-focus strong { display: block; margin-top: 9px; font-size: .82rem; }
.sidebar-focus p:last-child { margin: 8px 0 0; color: var(--muted-2); font-size: .67rem; }
.pulse-line { height: 4px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.07); }
.pulse-line span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--orange-light)); }
.profile-menu { display: grid; grid-template-columns: 36px minmax(0,1fr) 34px; align-items: center; gap: 9px; margin-top: 12px; padding: 12px 6px 2px; }
.profile-menu strong, .profile-menu span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu strong { font-size: .72rem; }
.profile-menu span { margin-top: 3px; color: var(--muted-2); font-size: .61rem; }
.profile-menu .icon-button { width: 34px; height: 34px; color: var(--muted); }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #f47b35, #713516); font-size: .66rem; font-weight: 600; }

.main-content { min-width: 0; padding: 4px 10px 36px; }
.topbar { position: relative; z-index: 10; display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 18px 12px; background: transparent; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: .75rem; }
.breadcrumb b { font-weight: 400; opacity: .5; }
.breadcrumb strong { color: #e3ded9; font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search { display: flex; width: 220px; height: 42px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; background: rgba(18,19,20,.8); color: var(--muted-2); }
.search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .78rem; }
.search input::placeholder { color: var(--muted-2); }
.mobile-menu { display: none; }

.view-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 24px 0 22px; }
.view-heading h1 { margin: 9px 0 0; font: 500 clamp(2.1rem, 4vw, 3.3rem)/1 var(--display); letter-spacing: -.055em; }
.view-heading h1 em { color: var(--orange-light); font-style: normal; font-weight: 500; }
.view-heading > p { max-width: 410px; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.65; text-align: right; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-card, .panel, .author-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(31,32,33,.88), rgba(20,21,22,.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 18px 45px rgba(0,0,0,.2); backdrop-filter: blur(20px); }
.metric-card { position: relative; min-height: 122px; overflow: hidden; border-radius: 16px; padding: 17px; }
.metric-card::after { position: absolute; width: 90px; height: 90px; right: -38px; bottom: -50px; border-radius: 50%; background: var(--metric-color, var(--orange)); filter: blur(30px); content: ""; opacity: .18; }
.metric-label { color: var(--muted); font-size: .69rem; }
.metric-value { display: flex; min-width: 0; align-items: flex-end; gap: 12px; margin-top: 15px; }
.metric-number { min-width: 0; font: 500 1.8rem/1 var(--display); letter-spacing: -.05em; white-space: nowrap; }
.metric-delta { margin-bottom: .16rem; color: var(--orange-light); font: 500 .62rem/1.25 var(--sans); letter-spacing: 0; white-space: nowrap; }
.metric-note { margin-top: 8px; color: var(--muted-2); font-size: .66rem; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,.8fr); gap: 15px; margin-top: 15px; }
.panel { min-width: 0; overflow: hidden; border-radius: 17px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: .82rem; font-weight: 600; }
.panel-header p { margin: 5px 0 0; color: var(--muted-2); font-size: .64rem; }
.link-button { border: 0; color: var(--orange-light); background: none; cursor: pointer; font-size: .67rem; }
.project-list { display: grid; }
.project-row { display: grid; grid-template-columns: 44px minmax(150px,1.3fr) minmax(95px,.7fr) minmax(105px,.7fr) auto; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid rgba(255,244,235,.07); transition: background .2s ease; }
.project-row:hover { background: rgba(244,123,53,.045); }
.project-row:last-child { border-bottom: 0; }
.cover-thumb { position: relative; width: 34px; height: 47px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 2px 7px 2px 2px; background: var(--cover, linear-gradient(145deg,#6b3419,#171819)); box-shadow: 0 9px 18px rgba(0,0,0,.26); }
.cover-thumb::before { position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,.25); content: ""; }
.project-title strong, .project-title span, .project-meta strong, .project-meta span { display: block; }
.project-title strong { overflow: hidden; font-family: var(--display); font-size: .88rem; font-weight: 500; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.project-title span, .project-meta span { margin-top: 3px; color: var(--muted-2); font-size: .62rem; }
.project-meta strong { color: #d6d0ca; font-size: .69rem; font-weight: 500; }
.status-button, .status-pill { display: inline-flex; min-height: 27px; align-items: center; justify-content: center; border: 1px solid rgba(244,123,53,.2); border-radius: 999px; padding: 5px 9px; color: var(--orange-light); background: rgba(244,123,53,.09); font-size: .61rem; white-space: nowrap; }
.status-button { cursor: pointer; }
.status-button[data-status="Delivered"], .status-pill.good { color: #d4cec8; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.11); }
.status-button[data-status="Waiting"] { color: var(--amber); background: rgba(242,173,92,.08); border-color: rgba(242,173,92,.18); }
.reminder-list { padding: 4px 18px 10px; }
.reminder-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 13px 0; border-bottom: 1px solid rgba(255,244,235,.07); }
.reminder-item:last-child { border-bottom: 0; }
.reminder-check { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--orange); }
.reminder-copy strong, .reminder-copy span { display: block; }
.reminder-copy strong { font-size: .72rem; font-weight: 500; }
.reminder-copy span { margin-top: 4px; color: var(--muted-2); font-size: .62rem; }
.reminder-time { color: var(--muted); font-size: .61rem; }
.reminder-time.overdue { color: var(--danger); }
.reminder-item.done { opacity: .42; }
.reminder-item.done strong { text-decoration: line-through; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 2px 0 14px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { min-height: 34px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); background: rgba(255,255,255,.025); cursor: pointer; font-size: .67rem; }
.filter-chip.active { color: white; border-color: rgba(244,123,53,.36); background: rgba(244,123,53,.14); }
.project-board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.project-card { position: relative; min-height: 225px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; padding: 18px; background: linear-gradient(145deg, rgba(32,33,34,.9), rgba(17,18,19,.94)); }
.project-card::after { position: absolute; width: 150px; height: 150px; right: -70px; bottom: -80px; border-radius: 50%; background: var(--glow, #f47b35); filter: blur(44px); content: ""; opacity: .15; }
.project-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-card .cover-thumb { width: 48px; height: 66px; }
.project-card h3 { margin: 21px 0 5px; font: 500 1.15rem/1.1 var(--display); letter-spacing: -.035em; }
.project-card .author { color: var(--muted); font-size: .67rem; }
.project-card-footer { position: absolute; z-index: 1; right: 18px; bottom: 18px; left: 18px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.project-card-footer span { display: block; color: var(--muted-2); font-size: .61rem; }
.project-card-footer strong { display: block; margin-top: 3px; font-size: .72rem; font-weight: 500; }

.author-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.author-card { border-radius: 17px; padding: 19px; }
.author-top { display: flex; align-items: center; gap: 12px; }
.author-top .avatar { width: 43px; height: 43px; border-radius: 13px; }
.author-top h3 { margin: 0; font: 500 .98rem var(--display); letter-spacing: -.03em; }
.author-top p { margin: 4px 0 0; color: var(--muted-2); font-size: .64rem; }
.author-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.author-meta div { border-top: 1px solid var(--line); padding-top: 11px; }
.author-meta span, .author-meta strong { display: block; }
.author-meta span { color: var(--muted-2); font-size: .59rem; }
.author-meta strong { margin-top: 4px; font-size: .7rem; font-weight: 500; }
.author-notes { min-height: 40px; margin: 17px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.5; }

.task-summary, .marketing-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.task-summary > div, .marketing-summary > div { min-height: 86px; border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; background: linear-gradient(145deg, rgba(31,32,33,.88), rgba(20,21,22,.9)); }
.task-summary span, .task-summary strong, .marketing-summary span, .marketing-summary strong { display: block; }
.task-summary span, .marketing-summary span { color: var(--muted); font-size: .66rem; }
.task-summary strong, .marketing-summary strong { margin-top: 9px; font: 500 1.5rem var(--display); letter-spacing: -.05em; }
.task-board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; align-items: start; }
.task-column { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 13px; background: rgba(20,21,22,.66); }
.task-column > header { display: flex; align-items: center; justify-content: space-between; padding: 2px 3px 12px; }
.task-column > header h2 { margin: 0; font-size: .74rem; font-weight: 600; }
.task-column > header span { display: grid; min-width: 23px; height: 23px; place-items: center; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.045); font-size: .62rem; }
.task-stack { display: grid; gap: 9px; }
.task-card { border: 1px solid var(--line); border-radius: 13px; padding: 13px; background: linear-gradient(145deg, rgba(38,39,40,.9), rgba(25,26,27,.94)); }
.task-card.done { opacity: .55; }
.task-card.done h3 { text-decoration: line-through; }
.task-card-top, .task-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.task-card h3 { margin: 15px 0 5px; font: 500 .82rem/1.35 var(--display); letter-spacing: -.025em; }
.task-card p { margin: 0; color: var(--muted-2); font-size: .63rem; }
.task-card-footer { margin-top: 17px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .6rem; }
.task-status { border: 0; color: var(--orange-light); background: transparent; cursor: pointer; font-size: .6rem; }
.priority { border-radius: 999px; padding: 4px 7px; color: var(--muted); background: rgba(255,255,255,.05); font-size: .56rem; }
.priority-high { color: #ff9b7b; background: rgba(239,118,111,.08); }
.priority-medium { color: var(--orange-light); background: rgba(244,123,53,.08); }
.overdue-text { color: var(--danger) !important; }
.column-empty { border: 1px dashed var(--line); border-radius: 11px; padding: 24px 12px; color: var(--muted-2); font-size: .63rem; text-align: center; }

.marketing-summary { grid-template-columns: repeat(4, minmax(0,1fr)); }
.campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.campaign-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; padding: 19px; background: radial-gradient(circle at 100% 0, rgba(244,123,53,.12), transparent 34%), linear-gradient(145deg, rgba(31,32,33,.92), rgba(18,19,20,.95)); }
.campaign-card::after { position: absolute; width: 120px; height: 120px; right: -76px; bottom: -76px; border: 1px solid rgba(244,123,53,.18); border-radius: 50%; content: ""; }
.campaign-top, .campaign-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.channel-pill { border: 1px solid rgba(244,123,53,.22); border-radius: 999px; padding: 5px 8px; color: var(--orange-light); background: rgba(244,123,53,.08); font-size: .59rem; }
.campaign-dates { color: var(--muted-2); font-size: .6rem; }
.campaign-card h2 { margin: 20px 0 8px; font: 500 1.08rem/1.25 var(--display); letter-spacing: -.035em; }
.campaign-goal { min-height: 38px; margin: 0; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.campaign-progress-head { margin-top: 20px; color: var(--muted); font-size: .61rem; }
.campaign-progress-head strong { color: var(--orange-light); font-weight: 600; }
.campaign-progress { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.campaign-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--orange-light)); }
.campaign-tasks { display: grid; gap: 7px; margin-top: 18px; }
.campaign-task { display: grid; min-height: 38px; grid-template-columns: 18px 1fr; align-items: center; gap: 9px; border-bottom: 1px solid rgba(255,244,235,.06); color: #d6d0ca; font-size: .66rem; }
.campaign-task input { width: 15px; height: 15px; accent-color: var(--orange); }
.campaign-task.done { color: var(--muted-2); }
.campaign-task.done span { text-decoration: line-through; }
.add-campaign-task { position: relative; z-index: 1; margin-top: 13px; border: 0; padding: 6px 0; color: var(--orange-light); background: transparent; cursor: pointer; font-size: .64rem; }

.reminder-timeline { max-width: 860px; }
.timeline-group { margin-bottom: 22px; }
.timeline-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.timeline-group h2::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.timeline-card { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 67px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px; background: rgba(27,28,29,.82); }
.timeline-card.done { opacity: .42; }
.timeline-card.done strong { text-decoration: line-through; }
.timeline-card strong, .timeline-card span { display: block; }
.timeline-card strong { font-size: .75rem; }
.timeline-card span { margin-top: 4px; color: var(--muted-2); font-size: .62rem; }
.timeline-date { color: var(--muted); font-size: .67rem; text-align: right; }
.timeline-date.overdue { color: var(--danger); }

.empty-state { border: 1px dashed rgba(255,177,126,.2); border-radius: 17px; padding: 48px 24px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; color: var(--ink); font: 500 1.2rem var(--display); }
.empty-state span { display: block; margin-top: 8px; font-size: .72rem; }

.modal { width: min(540px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; border-radius: 20px; color: var(--ink); padding: 0; }
.modal::backdrop { background: rgba(5,5,5,.78); backdrop-filter: blur(8px); }
.modal form { padding: 22px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-header h2 { margin: 8px 0 0; font: 500 1.65rem var(--display); letter-spacing: -.04em; }
.modal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.field.full { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; transform: translateY(18px); border: 1px solid rgba(244,123,53,.24); border-radius: 11px; padding: 11px 15px; color: #fff0e8; background: rgba(53,30,19,.96); box-shadow: var(--shadow); font-size: .72rem; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

.fade-in > * { animation: reveal .5s both cubic-bezier(.2,.7,.2,1); }
.fade-in > *:nth-child(2) { animation-delay: .05s; }
.fade-in > *:nth-child(3) { animation-delay: .1s; }
.fade-in > *:nth-child(4) { animation-delay: .15s; }
@keyframes reveal { from { transform: translateY(9px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .project-board, .author-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .marketing-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-row { grid-template-columns: 44px minmax(140px,1fr) minmax(90px,.7fr) auto; }
  .project-row .project-meta:nth-of-type(3) { display: none; }
}

@media (max-width: 820px) {
  .login-screen { grid-template-columns: minmax(0, 520px); padding: 70px 20px 28px; }
  .login-mark { top: 18px; left: 20px; }
  .login-cover-stack { display: none; }
  .app-shell { grid-template-columns: 1fr; padding: 10px; }
  .sidebar { position: fixed; z-index: 30; top: 10px; bottom: 10px; left: 10px; width: 238px; height: auto; transform: translateX(-110%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-content { padding: 0 2px 28px; }
  .mobile-menu { display: grid; }
  .breadcrumb { display: none; }
  .topbar { padding-inline: 10px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .task-board, .campaign-grid { grid-template-columns: 1fr; }
  .view-heading { align-items: flex-start; flex-direction: column; }
  .view-heading > p { text-align: left; }
}

@media (max-width: 590px) {
  .top-actions { flex: 1; }
  .search { width: auto; flex: 1; }
  .top-actions .button { min-width: 42px; padding-inline: 12px; font-size: 0; }
  .top-actions .button::before { content: "+"; font-size: 1rem; }
  .metric-grid, .project-board, .author-grid { grid-template-columns: 1fr; }
  .task-summary, .marketing-summary { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 40px minmax(0,1fr) auto; }
  .project-row .project-meta { display: none; }
  .modal-fields { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .timeline-card { grid-template-columns: 26px minmax(0,1fr); }
  .timeline-date { grid-column: 2; text-align: left; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
