:root {
  --ink: #183330;
  --muted: #70817e;
  --line: #dfe8e5;
  --paper: #f3f6f5;
  --white: #fff;
  --teal: #187e78;
  --teal-dark: #125f5a;
  --teal-soft: #e4f2ef;
  --navy: #244f66;
  --blue: #4a7da2;
  --coral: #d96d51;
  --amber: #b7782f;
  --gold-soft: #f6e9d5;
  --green: #298362;
  --shadow: 0 18px 50px rgba(20, 51, 46, .12);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
.preview-bar { height: 35px; background: #153b37; color: white; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 11px; }
.preview-bar span { padding: 3px 8px; border-radius: 20px; background: #efb45f; color: #3f270b; font-size: 8px; letter-spacing: .12em; font-weight: 900; }
.preview-bar p { margin: 0; opacity: .78; }
.admin-shell { min-height: calc(100vh - 35px); display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: calc(100vh - 35px); background: #f9fbfa; border-right: 1px solid var(--line); padding: 24px 15px 16px; display: flex; flex-direction: column; z-index: 6; }
.admin-brand { display: block; padding: 0 8px 15px; }
.admin-brand img { display: block; width: 178px; max-width: 100%; height: auto; mix-blend-mode: multiply; }
.workspace-label { margin: 0 8px 22px; border-top: 1px solid var(--line); padding-top: 13px; display: flex; align-items: center; gap: 8px; }
.workspace-label span { background: #173e3a; color: white; border-radius: 4px; padding: 3px 5px; font-size: 7px; letter-spacing: .1em; font-weight: 900; }
.workspace-label b { font-size: 10px; color: #647773; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-nav, .side-link { min-height: 43px; width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 0 12px; display: flex; align-items: center; gap: 11px; color: #536a66; font-size: 11px; font-weight: 700; text-align: left; text-decoration: none; }
.admin-nav:hover, .side-link:hover { background: #edf3f1; }
.admin-nav.active { color: var(--teal-dark); background: var(--teal-soft); }
.admin-nav > span, .side-link > span { width: 18px; font-size: 16px; text-align: center; font-weight: 400; }
.admin-nav em { margin-left: auto; font-style: normal; background: #e6eeec; border-radius: 20px; padding: 2px 7px; font-size: 8px; }
.admin-nav em.amber { background: var(--gold-soft); color: #89551c; }
.nav-section { margin: 23px 12px 7px; font-size: 7px; letter-spacing: .15em; color: #96a39f; font-weight: 900; }
.admin-user { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.owner-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: white; font-size: 8px; font-weight: 850; }
.admin-user b, .admin-user small { display: block; }
.admin-user b { font-size: 10px; }
.admin-user small { font-size: 8px; color: var(--muted); margin-top: 2px; }
.admin-user button { margin-left: auto; border: 0; background: transparent; color: #82928f; }
main { min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 5; height: 64px; background: rgba(255,255,255,.91); border-bottom: 1px solid var(--line); padding: 0 32px; display: flex; align-items: center; justify-content: space-between; backdrop-filter: blur(12px); }
.global-search { width: min(460px, 45vw); height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfa; display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.global-search > span { color: #8c9b98; font-size: 18px; }
.global-search input { border: 0; background: transparent; outline: 0; flex: 1; font-size: 10px; }
.global-search kbd { color: #94a19e; border: 1px solid #dae3e0; background: white; border-radius: 4px; padding: 2px 5px; font-size: 7px; }
.topbar-right { display: flex; align-items: center; gap: 11px; }
.last-sync { color: #758783; font-size: 8px; display: flex; align-items: center; gap: 6px; }
.last-sync i { width: 6px; height: 6px; border-radius: 50%; background: #48a876; }
.icon-button { width: 33px; height: 33px; border: 1px solid var(--line); background: white; border-radius: 8px; position: relative; }
.icon-button i { position: absolute; width: 5px; height: 5px; background: var(--coral); border-radius: 50%; top: 5px; right: 5px; }
.primary-action, .secondary-action { border-radius: 8px; padding: 10px 14px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.primary-action { border: 0; background: var(--teal); color: white; box-shadow: 0 5px 14px rgba(24,126,120,.15); }
.primary-action:hover { background: var(--teal-dark); }
.primary-action span { margin-left: 5px; background: rgba(255,255,255,.18); border-radius: 20px; padding: 2px 6px; }
.secondary-action { border: 1px solid var(--line); background: white; }
.secondary-action:hover { border-color: #b7cac5; }
.admin-mobile-menu { display: none; border: 0; background: transparent; font-size: 18px; }
.admin-view { display: none; padding: 31px 35px 60px; max-width: 1600px; margin: 0 auto; }
.admin-view.active { display: block; animation: admin-fade .2s ease; }
@keyframes admin-fade { from { opacity: .35; transform: translateY(3px); } }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow { color: var(--teal); font-size: 8px; letter-spacing: .16em; font-weight: 900; margin: 0; }
.admin-heading h1 { margin: 4px 0 5px; font-family: Georgia, serif; font-size: 32px; letter-spacing: -.02em; font-weight: 500; }
.admin-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.heading-actions { display: flex; gap: 9px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 17px; }
.admin-metrics article { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 17px 18px; min-height: 130px; }
.admin-metrics article > div { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 9px; font-weight: 700; }
.metric-icon { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.metric-icon.teal { background: var(--teal-soft); color: var(--teal); }
.metric-icon.navy { background: #e5edf1; color: var(--navy); }
.metric-icon.blue { background: #e6eef5; color: var(--blue); }
.metric-icon.coral { background: #f8e7e2; color: var(--coral); }
.admin-metrics strong { display: block; font-family: Georgia, serif; font-size: 27px; font-weight: 500; margin: 13px 0 5px; }
.admin-metrics p { font-size: 8px; color: var(--muted); margin: 0; }
.admin-metrics p b { color: var(--green); }
.admin-dashboard-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 17px; margin-bottom: 17px; }
.lower-grid { grid-template-columns: 1.3fr .7fr; }
.admin-panel { background: white; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.panel-title { min-height: 62px; padding: 16px 18px; border-bottom: 1px solid #edf2f0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-title h2 { font-family: Georgia, serif; font-weight: 500; font-size: 17px; margin: 0 0 3px; }
.panel-title p { margin: 0; color: var(--muted); font-size: 8px; }
.panel-title select, .date-select { border: 1px solid var(--line); background: white; border-radius: 7px; padding: 7px 9px; font-size: 8px; }
.panel-title > button { border: 0; background: transparent; color: var(--teal); font-size: 8px; font-weight: 800; }
.revenue-summary { padding: 16px 20px 0; display: flex; gap: 35px; }
.revenue-summary small { display: block; font-size: 7px; letter-spacing: .1em; color: #8a9996; font-weight: 800; }
.revenue-summary strong { display: inline-block; font-family: Georgia, serif; font-size: 22px; font-weight: 500; margin-top: 4px; }
.revenue-summary span { color: var(--green); font-size: 8px; margin-left: 5px; }
.admin-chart { height: 202px; position: relative; margin: 4px 20px 0; }
.admin-chart svg { position: relative; z-index: 2; width: 100%; height: 174px; overflow: visible; }
.admin-area { fill: url(#adminArea); }
.admin-line { fill: none; stroke: var(--teal); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.chart-grid { position: absolute; inset: 9px 0 28px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid i { border-top: 1px dashed #e3ebe8; }
.chart-axis { display: flex; justify-content: space-between; color: #899895; font-size: 7px; }
.attention-item { display: grid; grid-template-columns: 31px 1fr auto; gap: 10px; align-items: center; padding: 13px 16px; border-bottom: 1px solid #edf2f0; }
.attention-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; }
.attention-icon.coral { background: #f8e7e2; color: var(--coral); }
.attention-icon.amber { background: var(--gold-soft); color: var(--amber); }
.attention-icon.blue { background: #e7eef5; color: var(--blue); }
.attention-item b, .attention-item small { display: block; }
.attention-item b { font-size: 9px; }
.attention-item small { color: var(--muted); font-size: 7px; margin-top: 3px; }
.attention-item button { border: 0; background: transparent; color: var(--teal); font-size: 8px; font-weight: 800; }
.cutoff-card { margin: 14px; background: #173f3b; border-radius: 10px; color: white; padding: 13px; display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; }
.cutoff-card > span { color: #efb55f; font-size: 19px; }
.cutoff-card b { font-size: 9px; }
.cutoff-card p { margin: 3px 0 0; color: #b7cdca; font-size: 7px; }
.cutoff-card p strong { color: white; }
.cutoff-card em { font-size: 8px; color: #efc481; font-style: normal; font-weight: 800; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 14px; text-align: left; background: #fafcfb; color: #84928f; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 14px; border-top: 1px solid #edf2f0; font-size: 8px; color: #60736f; white-space: nowrap; }
td b { color: var(--ink); }
td small { display: block; font-size: 7px; margin-top: 3px; color: var(--muted); }
.compact-table td:first-child { display: flex; align-items: center; gap: 8px; }
.compact-table tbody tr { cursor: pointer; }
.compact-table tbody tr:hover { background: #f8fbfa; }
.mini-logo { width: 27px; height: 27px; border-radius: 7px; display: inline-grid; place-items: center; color: white; font-size: 7px; font-weight: 850; flex: 0 0 auto; }
.mini-logo.large { width: 39px; height: 39px; border-radius: 10px; font-size: 9px; }
.teal-bg { background: var(--teal); }
.coral-bg { background: var(--coral); }
.blue-bg { background: var(--blue); }
.gold-bg { background: #b78a3c; }
.purple-bg { background: #756a9f; }
.gray-bg { background: #a7b0ae; }
.green-bg { background: #3d9b73; }
.good { color: var(--green); font-weight: 800; }
.activity-panel { padding-bottom: 10px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 11px 1fr; gap: 8px; padding: 12px 16px 2px; }
.timeline-item i { width: 7px; height: 7px; border-radius: 50%; margin-top: 3px; position: relative; }
.timeline-item:not(:last-child) i::after { content: ""; position: absolute; width: 1px; height: 41px; background: var(--line); top: 9px; left: 3px; }
.teal-dot { background: var(--teal); }
.blue-dot { background: var(--blue); }
.gold-dot { background: #be8b39; }
.green-dot { background: #3d9b73; }
.timeline-item b { font-size: 8px; }
.timeline-item p { color: var(--muted); margin: 2px 0; font-size: 7px; }
.timeline-item small { color: #9aa6a3; font-size: 6px; }
.crm-summary { min-height: 67px; background: white; border: 1px solid var(--line); border-radius: 11px; display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 15px; }
.crm-summary span { padding: 14px 17px; border-right: 1px solid var(--line); }
.crm-summary span:last-child { border-right: 0; }
.crm-summary small { display: block; color: #8a9895; font-size: 7px; letter-spacing: .08em; font-weight: 800; }
.crm-summary b { display: block; font-family: Georgia, serif; font-size: 19px; margin-top: 4px; font-weight: 500; }
.warning-text { color: var(--coral); }
.advertiser-table-panel { overflow: hidden; }
.table-toolbar { padding: 12px 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.table-toolbar label { flex: 1; max-width: 310px; height: 34px; border: 1px solid var(--line); border-radius: 7px; display: flex; align-items: center; gap: 7px; padding: 0 9px; background: #fbfcfc; }
.table-toolbar label span { color: #889895; font-size: 15px; }
.table-toolbar input { border: 0; background: transparent; outline: 0; flex: 1; font-size: 9px; }
.table-toolbar select, .table-toolbar > button { height: 34px; border: 1px solid var(--line); border-radius: 7px; background: white; padding: 0 10px; font-size: 8px; }
.table-scroll { overflow-x: auto; }
.advertiser-table tbody tr { cursor: pointer; }
.advertiser-table tbody tr:hover { background: #f7fbfa; }
.business-cell { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.status-pill, .health-pill { display: inline-flex; padding: 4px 8px; border-radius: 20px; font-size: 7px; font-weight: 850; }
.active-status, .green-pill { color: #277c59; background: #e1f2e8; }
.paused-status, .gray-pill { color: #6b7a77; background: #edf0ef; }
.low-status, .amber-pill { color: #96632b; background: #f5e8d5; }
.pending-status { color: #536f91; background: #e7edf5; }
.balance-low { color: var(--coral); font-weight: 800; }
.row-action { border: 0; background: transparent; color: #82918e; }
.next-action-cell { color: var(--teal); font-weight: 700; }
.table-footer { min-height: 48px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 8px; color: var(--muted); }
.table-footer div { display: flex; gap: 3px; }
.table-footer button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 5px; background: white; font-size: 8px; }
.table-footer button.active { background: var(--teal); border-color: var(--teal); color: white; }
.pipeline-stats { display: flex; gap: 23px; color: var(--muted); font-size: 9px; margin: -10px 0 18px; }
.pipeline-stats b { color: var(--ink); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.kanban-column { min-width: 220px; background: #eaf0ee; border-radius: 11px; padding: 10px; }
.kanban-column > header { padding: 4px 4px 11px; display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 6px; }
.stage-dot { width: 7px; height: 7px; border-radius: 50%; }
.stage-dot.gray { background: #899895; }
.stage-dot.amber-dot { background: #bf8438; }
.stage-dot.blue-dot { background: #5481a2; }
.stage-dot.green-dot { background: #3c966f; }
.kanban-column header b { font-size: 9px; }
.kanban-column header em { background: white; border-radius: 20px; padding: 2px 6px; font-size: 7px; font-style: normal; }
.kanban-column header small { grid-column: 2 / 4; color: var(--muted); font-size: 7px; }
.lead-card { background: white; border: 1px solid #dce5e2; border-radius: 9px; padding: 12px; margin-bottom: 9px; box-shadow: 0 2px 4px rgba(20,50,45,.03); cursor: pointer; }
.lead-card:hover { border-color: #b7cbc6; transform: translateY(-1px); }
.lead-card > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.lead-card > div em { color: #8c9b98; font-size: 6px; font-style: normal; }
.lead-card h3 { font-size: 9px; margin: 11px 0 3px; }
.lead-card p { color: var(--muted); font-size: 7px; margin: 0; }
.lead-card footer { margin-top: 13px; padding-top: 9px; border-top: 1px solid #eef2f1; display: flex; align-items: center; gap: 6px; }
.lead-card footer span { width: 19px; height: 19px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-size: 6px; font-weight: 850; }
.lead-card footer small { color: var(--muted); font-size: 7px; }
.add-card { width: 100%; border: 1px dashed #bdcbc8; background: transparent; border-radius: 8px; padding: 9px; color: #6d807c; font-size: 8px; }
.report-admin-metrics { margin-bottom: 17px; }
.report-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 17px; margin-bottom: 17px; }
.placement-bars { padding: 15px 18px 20px; display: grid; gap: 15px; }
.placement-bars > div { display: grid; grid-template-columns: 185px 1fr; gap: 12px; align-items: center; }
.placement-bars span b, .placement-bars span small { display: block; }
.placement-bars span b { font-size: 8px; }
.placement-bars span small { color: var(--muted); font-size: 7px; margin-top: 3px; }
.placement-bars > div > i { height: 7px; background: #edf2f0; border-radius: 10px; overflow: hidden; }
.placement-bars em { display: block; height: 100%; background: var(--teal); border-radius: 10px; }
.health-donut-wrap { padding: 21px; display: flex; align-items: center; justify-content: center; gap: 35px; }
.health-donut { width: 126px; height: 126px; border-radius: 50%; background: conic-gradient(#3d9b73 0 62.5%, #c49545 62.5% 83.3%, #d96d51 83.3% 95.8%, #a7b0ae 95.8%); position: relative; display: grid; place-items: center; }
.health-donut::after { content: ""; position: absolute; width: 78px; height: 78px; border-radius: 50%; background: white; }
.health-donut span { position: relative; z-index: 1; text-align: center; }
.health-donut strong, .health-donut small { display: block; }
.health-donut strong { font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.health-donut small { font-size: 7px; color: var(--muted); }
.health-donut-wrap dl { margin: 0; min-width: 130px; }
.health-donut-wrap dl div { display: flex; justify-content: space-between; margin: 8px 0; font-size: 8px; }
.health-donut-wrap dt { color: var(--muted); }
.health-donut-wrap dt i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 6px; }
.health-donut-wrap dd { margin: 0; font-weight: 850; }
.placement-report { overflow-x: auto; }
.fill-rate { display: inline-block; width: 48px; height: 5px; background: #edf2f0; border-radius: 5px; overflow: hidden; margin-right: 5px; vertical-align: middle; }
.fill-rate i { display: block; height: 100%; background: var(--teal); }
.approval-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 15px; }
.approval-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 9px 2px; font-size: 9px; font-weight: 750; }
.approval-tabs button.active { color: var(--teal); border-bottom-color: var(--teal); }
.approval-tabs span { background: #e5ecea; border-radius: 10px; padding: 2px 6px; font-size: 7px; }
.review-list { display: grid; gap: 11px; }
.review-card { position: relative; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px 16px; display: grid; grid-template-columns: 44px minmax(220px,1fr) minmax(160px,.75fr) auto auto; gap: 14px; align-items: center; }
.review-type { position: absolute; top: 7px; left: 16px; color: var(--teal); font-size: 6px; letter-spacing: .12em; font-weight: 900; }
.review-type.creative { color: #765f9c; }
.review-main h2 { font-family: Georgia, serif; font-weight: 500; font-size: 16px; margin: 0 0 3px; }
.review-main > p { margin: 0; color: var(--muted); font-size: 8px; }
.review-main > div { display: flex; gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.review-main > div span { color: #5c716d; font-size: 7px; }
.requested-tags small { display: block; color: #8b9996; font-size: 6px; letter-spacing: .1em; font-weight: 800; margin-bottom: 5px; }
.requested-tags span { display: inline-block; background: #eef3f2; border-radius: 4px; padding: 4px 6px; font-size: 7px; margin: 2px; }
.approve-action { border: 0; background: var(--teal); color: white; padding: 9px 13px; border-radius: 7px; font-size: 8px; font-weight: 850; }
.creative-thumb { width: 76px; height: 55px; border-radius: 7px; padding: 7px; color: white; display: flex; flex-direction: column; justify-content: center; }
.creative-thumb small { font-size: 4px; letter-spacing: .1em; }
.creative-thumb b { font-family: Georgia, serif; font-size: 10px; margin-top: 4px; }
.sunset-thumb { background: linear-gradient(145deg,#e99168,#6c7e84); }
.ocean-thumb { background: linear-gradient(145deg,#2b8b8c,#294d6b); }
.creative-review { grid-template-columns: 82px minmax(220px,1fr) minmax(130px,.6fr) auto auto; }
.crm-drawer { position: fixed; right: -490px; top: 0; bottom: 0; width: min(470px, 100vw); background: white; z-index: 30; box-shadow: -20px 0 60px rgba(10,40,35,.18); transition: right .25s ease; overflow-y: auto; }
.crm-drawer.open { right: 0; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(14,37,34,.38); z-index: 29; opacity: 0; pointer-events: none; transition: .25s; }
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer-head { padding: 22px 22px 15px; display: flex; justify-content: space-between; align-items: flex-start; }
.drawer-head > div { display: flex; align-items: center; gap: 11px; }
.drawer-head h2 { font-family: Georgia, serif; font-weight: 500; font-size: 21px; margin: 3px 0 0; }
.drawer-head button { border: 0; background: transparent; color: var(--muted); font-size: 21px; }
.drawer-status { padding: 0 22px 14px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 8px; }
.drawer-status > button { margin-left: auto; border: 0; background: transparent; }
.drawer-tabs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 22px; display: flex; gap: 20px; }
.drawer-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 11px 0; color: var(--muted); font-size: 8px; font-weight: 800; }
.drawer-tabs button.active { color: var(--teal); border-bottom-color: var(--teal); }
.drawer-content { padding: 17px 22px 30px; display: grid; gap: 14px; }
.contact-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.contact-card h3 { grid-column: 1 / -1; margin: 0 0 3px; font-family: Georgia, serif; font-weight: 500; font-size: 14px; }
.contact-card span { display: block; color: #899895; font-size: 6px; letter-spacing: .09em; font-weight: 850; }
.contact-card b, .contact-card a { color: var(--ink); font-size: 8px; display: block; margin-top: 3px; text-decoration: none; }
.drawer-metrics { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: 10px; }
.drawer-metrics div { padding: 13px; border-right: 1px solid var(--line); }
.drawer-metrics div:last-child { border-right: 0; }
.drawer-metrics small { display: block; color: #899895; font-size: 6px; letter-spacing: .08em; font-weight: 850; }
.drawer-metrics strong { display: block; font-family: Georgia, serif; font-size: 16px; margin-top: 5px; font-weight: 500; }
.next-action { background: var(--gold-soft); border-radius: 9px; padding: 12px; display: grid; grid-template-columns: 25px 1fr auto; gap: 9px; align-items: center; }
.next-action > span { color: var(--amber); font-size: 18px; }
.next-action small { display: block; color: #936329; font-size: 6px; letter-spacing: .08em; font-weight: 850; }
.next-action b { font-size: 8px; }
.next-action button { border: 1px solid #ddc39e; background: white; border-radius: 6px; padding: 6px 8px; color: #80531e; font-size: 7px; font-weight: 800; }
.notes-section { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.notes-section > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.notes-section h3 { margin: 0; font-family: Georgia, serif; font-size: 14px; font-weight: 500; }
.notes-section > div > button { border: 0; background: transparent; color: var(--teal); font-size: 7px; font-weight: 850; }
#note-form { margin-top: 11px; }
#note-form textarea { width: 100%; min-height: 75px; border: 1px solid var(--line); border-radius: 7px; padding: 9px; font-size: 8px; resize: vertical; }
#note-form > div { display: flex; justify-content: flex-end; gap: 7px; margin-top: 7px; }
#note-form button { border: 1px solid var(--line); border-radius: 6px; background: white; padding: 6px 9px; font-size: 7px; font-weight: 800; }
#note-form button[type="submit"] { background: var(--teal); color: white; border-color: var(--teal); }
#drawer-timeline { margin-top: 15px; display: grid; gap: 13px; }
#drawer-timeline article { display: grid; grid-template-columns: 8px 1fr; gap: 8px; }
#drawer-timeline article i { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; margin-top: 3px; }
#drawer-timeline article b { font-size: 8px; }
#drawer-timeline article p { margin: 2px 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
#drawer-timeline article small { color: #9ba6a4; font-size: 6px; }
.hidden { display: none !important; }
.admin-toast { position: fixed; right: 23px; bottom: 23px; z-index: 40; background: #153c38; color: white; border-radius: 10px; padding: 11px 15px; display: flex; gap: 9px; align-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(80px); transition: .25s; }
.admin-toast.show { opacity: 1; transform: translateY(0); }
.admin-toast > span { width: 22px; height: 22px; border-radius: 50%; background: #47a77a; display: grid; place-items: center; font-size: 9px; }
.admin-toast b, .admin-toast small { display: block; font-size: 8px; }
.admin-toast small { color: #b2cac6; margin-top: 2px; }

@media (max-width: 1120px) {
  .admin-metrics { grid-template-columns: repeat(2,1fr); }
  .admin-dashboard-grid, .lower-grid, .report-grid { grid-template-columns: 1fr; }
  .review-card, .creative-review { grid-template-columns: 50px 1fr auto; }
  .requested-tags { display: none; }
}
@media (max-width: 780px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: -255px; width: 240px; box-shadow: 15px 0 50px rgba(10,40,35,.15); transition: .25s; }
  .admin-sidebar.open { left: 0; }
  .admin-topbar { padding: 0 16px; }
  .admin-mobile-menu { display: block; }
  .global-search { width: min(310px, 55vw); }
  .global-search kbd, .last-sync { display: none; }
  .admin-view { padding: 25px 17px 50px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .crm-summary { grid-template-columns: repeat(2,1fr); }
  .crm-summary span { border-bottom: 1px solid var(--line); }
  .kanban { grid-template-columns: repeat(4, 250px); }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .preview-bar p { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .admin-metrics { grid-template-columns: 1fr; }
  .topbar-right .primary-action, .icon-button { display: none; }
  .global-search { flex: 1; width: auto; }
  .admin-heading h1 { font-size: 27px; }
  .revenue-summary { gap: 17px; flex-wrap: wrap; }
  .review-card, .creative-review { grid-template-columns: 45px 1fr; }
  .review-card > button { grid-row: 2; }
  .crm-summary { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card h3 { grid-column: auto; }
}
