/* Rosewood brand tokens, taken from rosewoodcompanies.com */
:root {
  --gold: #A68E51;
  --gold-soft: rgba(166, 142, 81, 0.12);
  --gold-line: rgba(166, 142, 81, 0.45);
  --charcoal: #2B2A2C;
  --grey: #656565;
  --navy: #051D4B;
  --paper: #F5F5F5;
  --mist: #DBE1E9;
  --slate: #93A4B9;   /* Rosewood's secondary colour (site global "secondary"); marks client sign-off */
  --white: #FFFFFF;
  --black: #000000;
  /* Not a Rosewood brand colour: red was requested for posts that are missing a caption, photo or platform. */
  --alert: #B3261E;
  --alert-soft: #FBEDEC;
  --alert-line: rgba(179, 38, 30, 0.45);
  /* Also requested by the team: green = ready for review, purple = changes requested (not approved). */
  --ready: #2E7D32;
  --ready-soft: #EDF6EE;
  --changes: #6B3FA0;
  --changes-soft: #F3EEF9;

  --font-body: "Lato", sans-serif;
  --font-nav: "Montserrat", sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(43, 42, 44, 0.06), 0 2px 8px rgba(43, 42, 44, 0.04);
  --shadow-lift: 0 6px 24px rgba(43, 42, 44, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.app {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 400px;
  height: 100vh;
}
.app.no-panel { grid-template-columns: 232px minmax(0, 1fr) 0; }
.app.no-panel .preview { display: none; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--white);
  border-right: 1px solid var(--mist);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.brand { padding: 28px 28px 22px; border-bottom: 1px solid var(--mist); }
.brand img { width: 172px; margin: 0 auto; }
.brand p {
  margin: 12px 0 0;
  text-align: center;
  font-family: var(--font-nav);
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.02em;
}
.nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 0; border-radius: var(--radius);
  background: none;
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  text-align: left;
  position: relative;
}
.nav button svg { width: 18px; height: 18px; color: var(--grey); flex: none; }
.nav button:hover { background: var(--paper); }
.nav button[aria-current="page"] { background: var(--gold-soft); font-weight: 600; }
.nav button[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: var(--gold); border-radius: 2px;
}
.nav button[aria-current="page"] svg { color: var(--gold); }
.nav .count {
  margin-left: auto;
  min-width: 22px; padding: 1px 7px;
  border-radius: 11px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 12px; font-weight: 600; text-align: center;
}
.sidebar-foot { margin-top: auto; padding: 18px 20px 22px; border-top: 1px solid var(--mist); }
.signed-in { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.signed-in span { font-family: var(--font-nav); font-size: 12px; color: var(--grey); }
.signed-in b { font-size: 15px; }
.signout { width: 100%; justify-content: center; }
.mock-note { margin: 14px 0 0; font-size: 12.5px; color: var(--grey); line-height: 1.45; }

/* ---------- Sign-in ---------- */
body.signed-out .app { display: none; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--paper); }
.login-card {
  width: min(400px, 100%);
  display: flex; flex-direction: column;
  padding: 36px 36px 32px;
  background: var(--white); border: 1px solid var(--mist); border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
}
.login-logo { width: 190px; margin: 0 auto 22px; }
.login-card h1 { margin: 0; text-align: center; font-weight: 400; font-size: 24px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.login-sub { margin: 4px 0 24px; text-align: center; font-family: var(--font-nav); font-size: 13px; color: var(--grey); }
.login-card label { margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.login-card .field { width: 100%; margin-bottom: 16px; padding: 10px 12px; font-size: 15px; }
.pass-wrap { position: relative; }
.pass-wrap .field { padding-right: 46px; }
.pass-toggle { position: absolute; top: 5px; right: 5px; width: 36px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: var(--radius); background: none; color: var(--grey); }
.pass-toggle:hover { color: var(--charcoal); background: var(--paper); }
.pass-toggle svg { width: 19px; height: 19px; }
.login-error { min-height: 20px; margin: -6px 0 10px; font-size: 13.5px; color: var(--charcoal); }
.login-error:empty { display: none; }
.login-btn { justify-content: center; padding: 11px 18px; }

/* ---------- Segmented control & buttons ---------- */
.seg {
  display: inline-flex;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--white);
  padding: 2px;
}
.seg button {
  border: 0; background: none;
  padding: 6px 12px;
  border-radius: 3px;
  font-family: var(--font-nav); font-size: 13px; font-weight: 500;
  color: var(--grey);
  white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--charcoal); color: var(--white); }
.seg.full { display: flex; }
.seg.full button { flex: 1; padding: 6px 6px; }
.sidebar-foot .seg { flex-direction: column; }
.sidebar-foot .seg button { font-size: 13px; padding: 7px 10px; }

.no-image { aspect-ratio: 1 / 1; display: grid; place-items: center; background: #f2f2f2; color: #8a8a8a; font-size: 13px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gold);
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  white-space: nowrap;
}
.btn:hover { background: var(--gold-soft); }
.btn.primary { background: var(--gold); }
.btn.primary:hover { background: #B39C62; }
.btn.dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.btn.dark:hover { background: #3c3a3d; }
.btn.ready-btn { background: var(--ready); border-color: var(--ready); color: var(--white); }
.btn.ready-btn:hover { background: #256628; }
.btn.small { padding: 6px 12px; font-size: 13.5px; }
.btn svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.icon-btn {
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--mist); border-radius: var(--radius);
  background: var(--white); color: var(--charcoal);
}
.icon-btn:hover { border-color: var(--gold); }
.icon-btn svg { width: 16px; height: 16px; }

select.field, input.field, textarea.field {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--white);
  padding: 7px 10px;
  font-size: 14px;
}
select.field:focus, input.field:focus, textarea.field:focus { outline: 2px solid var(--gold-line); border-color: var(--gold); }

/* ---------- Main ---------- */
.main { overflow-y: auto; min-width: 0; }
.page { padding: 30px 36px 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-title {
  margin: 0;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.page-sub { margin: 6px 0 0; font-size: 16px; font-weight: 300; color: var(--grey); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav h2 { margin: 0 6px; font-size: 19px; font-weight: 700; min-width: 168px; text-align: center; }

.chips { display: flex; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--mist); border-radius: 16px;
  background: var(--white);
  font-family: var(--font-nav); font-size: 12.5px; font-weight: 500; color: var(--grey);
}
.chip svg { width: 14px; height: 14px; }
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--charcoal); background: var(--gold-soft); }

.legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 12px; font-size: 13px; color: var(--grey); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }

/* Status markers: the left edge carries the status, the label always names it */
.status-key { width: 4px; height: 16px; border-radius: 2px; display: inline-block; }
.s-draft { background: repeating-linear-gradient(180deg, var(--grey) 0 3px, transparent 3px 6px); }
.s-waiting { background: var(--gold); }
.s-ready { background: var(--ready); }
.s-changes { background: var(--changes); }
.s-approved { background: var(--navy); }
.s-client { background: var(--slate); }
.s-posted { background: var(--mist); }

.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px;
  border-radius: 12px;
  font-family: var(--font-nav); font-size: 11.5px; font-weight: 600;
  white-space: nowrap;
}
.status-pill svg { width: 12px; height: 12px; }
.status-pill.draft { color: var(--grey); border: 1px dashed var(--grey); }
.status-pill.waiting { color: var(--charcoal); background: var(--gold-soft); border: 1px solid var(--gold); }
.status-pill.ready { color: var(--white); background: var(--ready); }
.status-pill.changes { color: var(--white); background: var(--changes); }
.status-pill.approved { color: var(--white); background: var(--navy); }
.status-pill.client { color: var(--navy); background: var(--white); border: 1px solid var(--slate); }
.status-pill.posted { color: var(--grey); background: var(--mist); }

/* ---------- Month calendar ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.cal { overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) 74px; }
.cal-head div {
  padding: 10px 12px;
  font-family: var(--font-nav); font-size: 12px; font-weight: 500; color: var(--grey);
  border-bottom: 1px solid var(--mist);
}
.cal-day {
  min-height: 128px;
  padding: 8px 8px 10px;
  border-right: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  display: flex; flex-direction: column; gap: 5px;
  min-width: 0;
}
.cal-week { padding: 10px 8px; border-bottom: 1px solid var(--mist); background: var(--paper); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--grey); }
.cal-week b { font-size: 20px; font-weight: 300; color: var(--charcoal); line-height: 1.1; }
.cw-plat { display: inline-flex; align-items: center; gap: 3px; }
.cw-plat svg { width: 11px; height: 11px; }
.cal-day.drop-day, .wb-day.drop-day { background: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--gold); }
.cal-day.outside { background: #FAFAFA; }
.cal-day.outside .daynum { color: #A5A5A5; }
.daynum { font-size: 13px; font-weight: 700; color: var(--charcoal); padding: 2px 4px; align-self: flex-start; }
.cal-day.today .daynum { color: var(--white); background: var(--gold); border-radius: 12px; padding: 2px 8px; }
.cal-day.in-week { background: rgba(166, 142, 81, 0.04); }
.day-top { display: flex; align-items: center; justify-content: space-between; }
.cal-day.open { cursor: pointer; }
.cal-day.open:hover { background: var(--gold-soft); }
.cal-day.past { background: #FAFAFA; }
.day-add {
  width: 24px; height: 24px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--gold-line); border-radius: 50%;
  background: var(--white); color: var(--gold);
  opacity: 0;
}
.day-add svg { width: 14px; height: 14px; }
.cal-day.open:hover .day-add, .day-add:focus-visible { opacity: 1; }
.day-add:hover { background: var(--gold); color: var(--white); }

.post-chip {
  display: flex; align-items: center; gap: 6px;
  width: 100%;
  padding: 5px 6px 5px 8px;
  border: 1px solid var(--mist); border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
  font-size: 12.5px; line-height: 1.25;
  min-width: 0;
}
.post-chip:hover { border-color: var(--gold-line); }
.post-chip.draft { border-left-style: dashed; border-left-color: var(--grey); }
.post-chip.waiting { border-left-color: var(--gold); }
.post-chip.changes { border-left-color: var(--changes); background: var(--changes-soft); }
.post-chip.ready { border-left-color: var(--ready); background: var(--ready-soft); }
.post-chip.ready .pc-st { color: var(--ready); }
.post-chip.approved { border-left-color: var(--navy); }
.post-chip.client { border-left-color: var(--slate); }
.post-chip.posted { border-left-color: var(--mist); background: var(--paper); color: var(--grey); }
.post-chip.selected { outline: 2px solid var(--gold); outline-offset: 0; }
/* Unfinished drafts (no caption, photo or platform) are red on every calendar, as the team asked. */
.post-chip.incomplete { border-color: var(--alert-line); border-left: 4px solid var(--alert); background: var(--alert-soft); }
.post-chip.incomplete .pc-st { color: var(--alert); }
.post-chip.incomplete .pc-thumb:empty { border: 1px dashed var(--alert-line); background: var(--white); }
.mini.incomplete { border-color: var(--alert); box-shadow: 0 0 0 1px var(--alert); }
.plan-table tr.incomplete td:first-child { border-left: 4px solid var(--alert); }
.s-incomplete { background: var(--alert); }
.legend .lg-alert { color: var(--alert); }
.post-chip.incomplete .pc-st svg { width: 11px; height: 11px; color: var(--alert); }
.plan-table tr.incomplete { background: var(--alert-soft); }
.missing-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--alert-soft); border: 1px solid var(--alert-line); color: var(--alert); font-size: 12px; font-weight: 700; white-space: nowrap; }
.missing-tag svg { width: 12px; height: 12px; }
.month-send .unfinished { color: var(--alert); font-weight: 700; }
.month-send .ready-n { color: var(--ready); font-weight: 700; }
.post-chip { flex-direction: column; align-items: stretch; gap: 4px; padding: 5px 6px 5px 7px; }
.post-chip[draggable="true"] { cursor: grab; }
.post-chip.dragging { opacity: 0.45; }
.pc-row { display: flex; gap: 6px; min-width: 0; }
.pc-thumb { position: relative; flex: none; width: 30px; height: 30px; border-radius: 3px; overflow: hidden; background: var(--paper); }
.pc-thumb img, .pc-thumb video { width: 100%; height: 100%; object-fit: cover; }
.pc-thumb .vid-badge { width: 14px; height: 14px; left: 2px; bottom: 2px; }
.pc-thumb .vid-badge svg { width: 8px; height: 8px; }
.pc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.post-chip .l1 { display: flex; align-items: center; gap: 5px; min-width: 0; }
.post-chip .tm { font-size: 11.5px; color: var(--grey); white-space: nowrap; }
.post-chip b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-cap { font-size: 11.5px; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-chip .plats { display: inline-flex; gap: 2px; color: var(--grey); margin-left: auto; flex: none; }
.post-chip .plats svg { width: 10px; height: 10px; }
.post-chip .avatar { width: 16px; height: 16px; }
.pc-st { display: flex; align-items: center; gap: 4px; font-family: var(--font-nav); font-size: 10.5px; font-weight: 500; color: var(--grey); text-transform: uppercase; letter-spacing: 0.04em; }
.pc-st svg { width: 10px; height: 10px; }
.post-chip.waiting .pc-st { color: var(--gold); }
.post-chip.approved .pc-st { color: var(--navy); }
.post-chip.changes .pc-st { color: var(--changes); }
.pc-dup { margin-left: auto; display: inline-flex; color: var(--gold); }
.pc-dup svg { width: 12px; height: 12px; }

.avatar {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--mist);
  background: var(--white);
  object-fit: contain;
  flex: none;
}
.avatar.logo { padding: 1px; }
.avatar.dark { background: var(--charcoal); border-color: var(--charcoal); }

/* ---------- Company selector ---------- */
.company-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-bottom: 22px; }
.co-tile {
  height: 74px;
  display: grid; place-items: center;
  padding: 12px 14px;
  border: 1px solid var(--mist); border-radius: var(--radius-lg);
  background: var(--white);
  position: relative;
}
.co-tile img { max-height: 42px; max-width: 100%; object-fit: contain; }
/* The chosen company gets a gold ring and a gold bar; the tile itself stays white. */
.co-tile[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.co-tile[aria-pressed="true"]::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 3px; border-radius: 2px 2px 0 0; background: var(--gold); }
.co-tile:hover { box-shadow: var(--shadow-lift); }
.co-tile[aria-pressed="true"]:hover { box-shadow: 0 0 0 2px var(--gold), var(--shadow-lift); }
.co-tile[hidden] { display: none; }
.co-find { display: flex; margin: -6px 0 12px; }
.co-find .lib-search { max-width: 260px; }

.co-header { display: flex; align-items: center; gap: 22px; padding: 18px 22px; margin-bottom: 18px; }
.co-header .co-tile { width: 190px; height: 86px; flex: none; }
.co-header h2 { margin: 0; font-size: 22px; font-weight: 700; }
.co-header p { margin: 2px 0 8px; color: var(--grey); font-weight: 300; }
.handles { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--charcoal); }
.handles .handle { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none; color: var(--charcoal); font-size: 13.5px; text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
.handles .handle:hover { text-decoration-color: var(--gold); }
.handles svg { width: 14px; height: 14px; color: var(--gold); }
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 14px; }
.filter-bar select.field { padding-top: 5px; padding-bottom: 5px; font-size: 13px; }
.list-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.callout.dup { border-left-color: var(--gold); margin: 0; }
.callout.dup b { color: var(--charcoal); }
#dup-box:empty { display: none; }
.time-box { padding: 10px 12px; border: 1px solid var(--mist); border-left: 3px solid var(--gold); border-radius: var(--radius); background: #FFFDF8; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.time-box .tb-h { font-family: var(--font-nav); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.time-box p { margin: 0; display: flex; align-items: flex-start; gap: 6px; }
.time-box p svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.time-box .tb-ok svg { color: var(--navy); }
.time-box .tb-warn svg { color: var(--gold); }
.time-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; color: var(--grey); }
.time-box li { display: grid; grid-template-columns: 16px 70px 1fr; align-items: center; gap: 4px; }
.time-box li svg { width: 13px; height: 13px; }
.time-box li span { color: var(--charcoal); }
.time-box .tb-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.time-box .hint { display: block; font-size: 11.5px; color: var(--grey); }
.timing-note { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--grey); }
.timing-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--gold); }
.ai-cta { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; padding-left: 22px; border-left: 1px solid var(--mist); }
.ai-cta p { margin: 0; font-weight: 700; color: var(--charcoal); }
.ai-cta small { font-size: 12.5px; color: var(--grey); }
.ai-cta .btn svg { width: 17px; height: 17px; }

/* ---------- Week review ---------- */
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.review-head .note { color: var(--grey); font-size: 14px; }
.week-cols { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.week-col h3 { margin: 0 0 8px; font-family: var(--font-nav); font-size: 13px; font-weight: 600; color: var(--charcoal); }
.week-col h3 span { font-weight: 400; color: var(--grey); }
.week-col .empty { border: 1px dashed var(--mist); border-radius: var(--radius-lg); padding: 18px 10px; text-align: center; color: #9a9a9a; font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.mini {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  padding: 0;
  display: flex; flex-direction: column;
  width: 100%;
}
.mini:hover { box-shadow: var(--shadow-lift); }
.mini.selected { outline: 2px solid var(--gold); }
.mini .mh { display: flex; align-items: center; gap: 7px; padding: 8px 9px; font-size: 12.5px; font-weight: 700; min-width: 0; }
.mini .mh span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .mimg { position: relative; aspect-ratio: 1 / 1; background: var(--paper); }
.mini .mimg img, .mini .mimg video { width: 100%; height: 100%; object-fit: cover; }
.mini .multi { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 10px; }
.mini .mcap { padding: 8px 9px 4px; font-size: 12.5px; line-height: 1.4; color: var(--charcoal); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini .mfoot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 9px 9px; }
.mini .mfoot .plats { display: flex; gap: 4px; color: var(--grey); }
.mini .mfoot .plats svg { width: 13px; height: 13px; }
.mini .mtime { font-size: 12px; color: var(--grey); padding: 0 9px; }

.co-rows { display: flex; flex-direction: column; gap: 14px; }
.co-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; }
.co-row .co-tile { height: 70px; }
.co-row .co-name { margin: 8px 0 0; font-size: 13px; color: var(--grey); text-align: center; }
.co-row .row-cards { display: grid; grid-template-columns: repeat(auto-fill, 168px); gap: 12px; }
.co-row .none { color: #9a9a9a; font-size: 13.5px; padding: 24px 0; }

.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; align-items: start; }
.profiles.single { grid-template-columns: minmax(0, 600px); justify-content: center; }
.igp { overflow: hidden; padding-top: 18px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: #000; }
.igp-top { display: flex; align-items: center; gap: 16px; padding: 0 16px; }
.igp-pic { width: 76px; height: 76px; flex: none; border-radius: 50%; border: 1px solid #dbdbdb; object-fit: contain; background: #fff; }
.igp-pic.dark { background: var(--charcoal); }
.igp-id { min-width: 0; }
.igp-id > b { display: block; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.igp-id > span { font-size: 13px; color: #737373; }
.igp-stats { display: flex; gap: 14px; margin-top: 6px; font-size: 13px; white-space: nowrap; }
.igp-stats b { font-weight: 600; }
.igp-bio { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px 0; font-size: 13px; line-height: 1.4; }
.igp-link { display: inline-flex; align-items: center; gap: 4px; color: #00376B; font-weight: 600; }
.igp-link svg { width: 13px; height: 13px; }
.igp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 16px; }
.igp-btns span { padding: 6px 0; border-radius: 8px; background: #efefef; text-align: center; font-size: 13px; font-weight: 600; }
.igp-tabs { display: flex; border-top: 1px solid #dbdbdb; }
.igp-tabs span { flex: 1; display: flex; justify-content: center; padding: 9px 0; color: #8e8e8e; }
.igp-tabs span.on { color: #000; box-shadow: inset 0 1px 0 #000; }
.igp-tabs svg { width: 20px; height: 20px; }
.igp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.igp-grid .cell { position: relative; display: block; aspect-ratio: 3 / 4; padding: 0; border: 0; background: #efefef; }
.igp-grid .cell img, .igp-grid .cell video { width: 100%; height: 100%; object-fit: cover; }
.igp-grid .cell.selected::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--gold); }
.igp-grid .stack-ico { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; color: #fff; filter: drop-shadow(0 0 2px rgba(0,0,0,.5)); }
.igp-grid .sched {
  position: absolute; left: 6px; bottom: 6px;
  padding: 1px 7px 1px 6px; border-left: 3px solid; border-radius: 3px;
  background: rgba(255, 255, 255, 0.95); color: var(--charcoal);
  font-family: var(--font-nav); font-size: 11px; font-weight: 600;
}
.sched.draft { border-left-color: var(--grey); }
.sched.waiting { border-left-color: var(--gold); }
.sched.changes { border-left-color: var(--changes); }
.sched.ready { border-left-color: var(--ready); }
.sched.approved { border-left-color: var(--navy); }
.sched.client { border-left-color: var(--slate); }
.igp-grid .cell[draggable="true"] { cursor: grab; }
.igp-grid .cell.dragging { opacity: 0.4; }
.igp-grid .cell.drop::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--charcoal); background: rgba(166, 142, 81, 0.25); }
.igp-grid .cell.add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--gold-line);
  color: var(--charcoal); font-family: var(--font-nav); font-size: 12.5px; font-weight: 600;
}
.igp-grid .cell.add svg { width: 22px; height: 22px; color: var(--gold); }
.igp-grid .cell.add:hover { background: var(--gold-soft); }
.grids-head { margin: 0 0 14px; color: var(--grey); font-size: 14px; }
.grids-foot { margin: 16px 0 0; }

/* ---------- List (planning sheet) ---------- */
.plan-wrap { overflow-x: auto; }
.plan-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.plan-table th { position: sticky; top: 0; z-index: 1; background: var(--white); text-align: left; font-family: var(--font-nav); font-size: 12px; font-weight: 500; color: var(--grey); padding: 11px 12px; border-bottom: 1px solid var(--mist); }
.plan-table td { padding: 14px 12px; border-bottom: 1px solid var(--mist); vertical-align: top; font-size: 13.5px; }
.plan-table tbody tr { cursor: pointer; }
.plan-table tbody tr:hover { background: var(--paper); }
.plan-table tbody tr td:first-child { border-left: 4px solid transparent; }
.plan-table tr.draft td:first-child { border-left: 4px dashed var(--grey); }
.plan-table tr.waiting td:first-child { border-left-color: var(--gold); }
.plan-table tr.changes td:first-child { border-left-color: var(--changes); }
.plan-table tr.ready td:first-child { border-left-color: var(--ready); }
.plan-table tr.approved td:first-child { border-left-color: var(--navy); }
.plan-table tr.client td:first-child { border-left-color: var(--slate); }
.plan-table tr.posted td:first-child { border-left-color: var(--mist); }
.plan-table tr.selected { background: var(--gold-soft); }
.pt-co { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.pt-plats { display: flex; flex-direction: column; gap: 4px; }
.pt-plats span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pt-plats svg { width: 14px; height: 14px; color: var(--grey); }
.pt-img { position: relative; width: 150px; }
.pt-img img, .pt-img video { width: 150px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.pt-img .multi { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 10px; }
.pt-caps { display: flex; flex-direction: column; gap: 12px; max-width: 460px; max-height: 260px; overflow-y: auto; white-space: pre-line; line-height: 1.45; }
.pt-caps b { display: block; margin-bottom: 2px; font-size: 12.5px; }
.pt-date { white-space: nowrap; font-weight: 700; }
.pt-date span { display: block; font-weight: 400; color: var(--grey); }

/* ---------- Dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.stat b { font-size: 34px; font-weight: 300; line-height: 1.1; color: var(--charcoal); }
.stat span { font-size: 15px; color: var(--charcoal); font-weight: 700; }
.stat small { color: var(--grey); font-size: 13.5px; }
.stat.accent { border-top: 3px solid var(--gold); }
.section-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--charcoal); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.list { padding: 4px 0; }
.so-bar .s-draft { background: repeating-linear-gradient(90deg, var(--grey) 0 4px, transparent 4px 7px); }
.att-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--mist); }
.att-row:last-of-type { border-bottom: 0; }
.att-row .thumb { position: relative; width: 52px; height: 52px; border-radius: var(--radius); overflow: hidden; }
.att-row .thumb img, .att-row .thumb video { width: 100%; height: 100%; object-fit: cover; }
.att-main { min-width: 0; }
.att-main .t { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.att-main .d { font-size: 13.5px; color: var(--grey); display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.att-main .plats { display: inline-flex; gap: 4px; }
.att-main .plats svg { width: 13px; height: 13px; }
.att-more { display: block; width: 100%; padding: 12px 18px; border: 0; border-top: 1px solid var(--mist); background: none; font-family: var(--font-nav); font-size: 13px; color: var(--charcoal); text-align: center; }
.att-more:hover { background: var(--paper); }
.dash-week { margin-bottom: 16px; }
.stat:hover { border-color: var(--gold-line); }
.status-overview { padding: 16px 20px; margin-bottom: 26px; }
.so-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.so-head .section-title { margin-bottom: 10px; }
.so-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--paper); }
.so-bar span { display: block; min-width: 6px; }
.so-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 13.5px; }
.so-legend span { display: inline-flex; align-items: center; gap: 7px; }
.so-legend span.zero { color: var(--grey); }
.so-legend b { font-weight: 700; }
.week-board-wrap { margin-bottom: 26px; }
.week-board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: hidden; }
.wb-day { min-height: 150px; padding: 10px 8px; border-right: 1px solid var(--mist); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wb-day:last-child { border-right: 0; }
.wb-day.gap { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(219, 225, 233, 0.45) 8px 9px); }
.wb-day.today .wb-top b { color: var(--white); background: var(--gold); border-radius: 12px; padding: 0 8px; }
.wb-top { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; margin-bottom: 4px; }
.wb-top span { font-family: var(--font-nav); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); }
.wb-top b { font-size: 18px; font-weight: 700; line-height: 1.3; }
.wb-top small { font-size: 12px; color: var(--grey); }
.wb-add { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 6px; border: 1px dashed var(--gold-line); border-radius: var(--radius); background: var(--white); font-size: 12.5px; color: var(--charcoal); }
.wb-add svg { width: 13px; height: 13px; color: var(--gold); }
.wb-add:hover { background: var(--gold-soft); }
.wb-none { margin-top: auto; font-size: 12px; color: var(--grey); }
.co-list { padding: 6px 0; }
.co-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 18px; border: 0; border-bottom: 1px solid var(--mist); background: none; text-align: left; }
.co-row:last-child { border-bottom: 0; }
.co-row:hover { background: var(--paper); }
.co-row .avatar { width: 26px; height: 26px; }
.co-row .nm { font-size: 14px; font-weight: 700; }
.co-row .n { margin-left: auto; font-size: 13px; color: var(--charcoal); }
.co-row.gap .n { color: var(--grey); }
.co-row > svg { width: 14px; height: 14px; color: var(--grey); }

/* ---------- Approvals ---------- */
.appr-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--mist); margin-bottom: 16px; overflow-x: auto; }
.appr-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 11px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font-family: var(--font-nav); font-size: 13.5px; color: var(--grey); white-space: nowrap; }
.appr-tabs button[aria-selected="true"] { color: var(--charcoal); font-weight: 600; border-bottom-color: var(--gold); }
.appr-tabs .count { min-width: 22px; padding: 1px 7px; border-radius: 11px; background: var(--paper); color: var(--charcoal); font-size: 12px; font-weight: 600; text-align: center; }
.appr-tabs button[aria-selected="true"] .count { background: var(--gold); color: var(--white); }
.appr { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 16px; margin-bottom: 12px; }
.appr.selected { outline: 2px solid var(--gold-line); }
.appr-media { position: relative; display: block; width: 132px; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper); cursor: zoom-in; }
.appr-media img, .appr-media video { width: 100%; height: 100%; object-fit: cover; }
.appr-media .multi { position: absolute; top: 6px; right: 6px; padding: 1px 7px; border-radius: 10px; background: rgba(43, 42, 44, 0.8); color: #fff; font-size: 11px; font-weight: 700; }
.appr-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.appr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.appr-score { margin-left: auto; }
.appr-title { margin: 0; font-size: 16.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appr .meta { color: var(--grey); font-size: 13.5px; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.appr .meta .plats { display: inline-flex; gap: 5px; }
.appr .meta svg { width: 14px; height: 14px; }
.appr-caps { display: grid; gap: 8px; margin: 2px 0 4px; }
.appr-caps b { display: block; font-family: var(--font-nav); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.appr-caps p { margin: 2px 0 0; font-size: 14px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.appr .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.appr textarea { width: 100%; min-height: 70px; margin-bottom: 6px; }
.appr .callout { margin: 0; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: none; font-family: var(--font-nav); font-size: 12.5px; color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.link-btn svg { width: 13px; height: 13px; transform: rotate(90deg); transition: transform 0.15s; }
.link-btn[aria-expanded="true"] svg { transform: rotate(-90deg); }
.appr-hist ol { list-style: none; margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--mist); display: grid; gap: 8px; }
.appr-hist li { font-size: 13.5px; }
.appr-hist li > span { display: block; font-size: 12px; color: var(--grey); }
.appr-hist q { display: block; margin-top: 2px; color: var(--grey); font-style: italic; }
.queue-empty { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.queue-empty > svg { width: 22px; height: 22px; color: var(--navy); flex: none; }
.queue-empty div { display: flex; flex-direction: column; }
.queue-empty span { color: var(--grey); font-size: 14px; }
.callout { padding: 10px 14px; border-left: 3px solid var(--charcoal); background: var(--paper); font-size: 14px; margin: 0 0 12px; }
.callout b { display: block; font-size: 13px; color: var(--grey); font-weight: 700; }
.muted { color: var(--grey); font-size: 14px; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--grey); }
.empty-state h3 { margin: 0 0 6px; color: var(--charcoal); font-size: 18px; }

/* ---------- Library ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.lib-folder { margin-bottom: 26px; }
.folder-head { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--mist); background: none; text-align: left; font-size: 16px; }
.folder-head span { color: var(--grey); font-size: 13.5px; }
.folder-head .folder-open { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-nav); font-size: 13px; color: var(--charcoal); }
.folder-head .folder-open svg { width: 14px; height: 14px; }
.folder-head:hover .folder-open { color: var(--gold); }
.folder-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; }
.folder-title .btn { margin-left: auto; }
.lib-item { position: relative; border: 1px solid var(--mist); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.lib-item:hover { box-shadow: var(--shadow-lift); }
.lib-item.picked { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-line); }
.lib-media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; }
.lib-media img, .lib-media video { width: 100%; height: 100%; object-fit: cover; }
.lib-check { position: absolute; top: 8px; left: 8px; z-index: 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: var(--radius); background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transition: opacity 0.12s; }
.lib-item:hover .lib-check, .lib-item.picked .lib-check, .lib-check:focus-within { opacity: 1; }
.lib-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.lib-item .lb { display: flex; align-items: center; gap: 7px; padding: 8px 10px 6px; font-size: 13px; }
.lib-item .lb .lb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.lib-item .lb .lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.lib-item .lb .lb-use { color: var(--grey); font-size: 12px; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 9px; }
.lb-tags span, .tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--charcoal); font-size: 11.5px; }
.modal .body.asset-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .modal .body.asset-body { grid-template-columns: 1fr; } }
.lib-page.dropzone.dragging-files { outline: 2px dashed var(--gold); outline-offset: 8px; border-radius: var(--radius-lg); background: var(--gold-soft); }
.lib-upload { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.lib-upload .btn { cursor: pointer; }
.drop-note { margin: -10px 0 16px; font-size: 13px; color: var(--grey); }
.lib-tools { flex-wrap: wrap; }
.lib-search { position: relative; flex: 1 1 260px; max-width: 380px; display: flex; align-items: center; }
.lib-search svg { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--grey); pointer-events: none; }
.lib-search input { width: 100%; padding-left: 34px; }
details.menu { position: relative; }
details.menu summary { list-style: none; cursor: pointer; }
details.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 260px; padding: 6px; background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.menu-list button { display: block; width: 100%; padding: 8px 10px; border: 0; background: none; text-align: left; font-size: 13.5px; color: var(--charcoal); border-radius: 3px; }
.menu-list button:hover { background: var(--paper); }
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 16px; border-color: var(--gold-line); background: #FFFDF8; position: sticky; top: 0; z-index: 5; }
.bulk-bar select.field, .bulk-bar input.field { padding-top: 5px; padding-bottom: 5px; font-size: 13px; }
.bulk-bar input.field { width: 170px; }
.bulk-field { display: inline-flex; gap: 4px; }
.link-btn.plain { margin-left: auto; }
.sub-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.sub-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--mist); border-radius: 999px; background: var(--white); font-size: 13px; color: var(--charcoal); }
.sub-chip span { color: var(--grey); font-size: 12px; }
.sub-chip[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.sub-chip[aria-pressed="true"] span { color: var(--mist); }
.lib-hint { margin: -4px 0 14px; font-size: 13px; color: var(--grey); }
.picker button { position: relative; }
.pick-used { position: absolute; left: 3px; bottom: 3px; padding: 0 5px; border-radius: 8px; background: rgba(43, 42, 44, 0.8); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; }
/* File details window */
.modal.wide { width: min(1000px, calc(100vw - 32px)); }
.modal.wide header h2 { text-transform: none; letter-spacing: 0.02em; color: var(--charcoal); font-weight: 700; }
.asset-preview { position: sticky; top: 0; display: grid; place-items: center; min-height: 280px; max-height: calc(100vh - 200px); background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.asset-preview img, .asset-preview video { max-width: 100%; max-height: calc(100vh - 200px); object-fit: contain; display: block; }
.asset-audio { width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.asset-audio .audio-tile { height: 160px; }
.asset-audio audio { width: 100%; }
.asset-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.asset-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13.5px; }
.asset-facts dt { color: var(--grey); }
.asset-facts dd { margin: 0; overflow-wrap: anywhere; }
.asset-side .fgroup { margin: 0; }
.asset-side .fgroup select.field, .asset-side .fgroup input.field, .asset-side textarea.field { width: 100%; }
.tag-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag-edit .tag button { width: 16px; height: 16px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--grey); }
.tag-edit .tag button svg { width: 10px; height: 10px; }
.tag-edit .tag button:hover { color: var(--charcoal); background: var(--white); }
.tag-edit input.field { flex: 1; min-width: 140px; padding-top: 5px; padding-bottom: 5px; }
.asset-side .kw-chips { margin-top: 8px; }
.asset-uses h3 { margin: 0 0 8px; font-size: 15px; }
.asset-uses .callout { margin-bottom: 10px; }
.use-h { margin: 8px 0 4px; font-family: var(--font-nav); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.use-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: var(--radius); background: none; text-align: left; font-size: 13.5px; }
.use-row:hover { background: var(--paper); }
.use-row .status-pill { margin-left: auto; }
@media (max-width: 900px) { .asset-preview { position: static; } }
.audio-tile { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; color: var(--charcoal); font-size: 12.5px; text-align: center; overflow-wrap: anywhere; }
.audio-tile svg { width: 34px; height: 34px; color: var(--gold); }
.vid-badge { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; pointer-events: none; }
.vid-badge svg { width: 13px; height: 13px; }
.igp-grid .cell .vid-badge { left: auto; right: 6px; bottom: auto; top: 6px; }
.upload-to { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.editor-drop { padding: 12px; border: 1.5px dashed var(--gold-line); border-radius: var(--radius-lg); }
.editor-drop.dragging-files { background: var(--gold-soft); border-color: var(--gold); }
.drop-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--grey); }
.thumbs .th[draggable="true"] { cursor: grab; }
.thumbs .th.dragging { opacity: 0.4; }
.upload-errors { margin: 10px 0 0; padding: 10px 14px 10px 30px; border-left: 3px solid var(--charcoal); background: var(--paper); font-size: 13.5px; }

/* ---------- Settings ---------- */
table.settings { width: 100%; border-collapse: collapse; }
table.settings th { text-align: left; font-family: var(--font-nav); font-size: 12px; font-weight: 500; color: var(--grey); padding: 12px 16px; border-bottom: 1px solid var(--mist); }
table.settings td { padding: 12px 16px; border-bottom: 1px solid var(--mist); vertical-align: middle; font-size: 14px; }
table.settings tr:last-child td { border-bottom: 0; }
table.settings .co-tile { width: 130px; height: 52px; padding: 8px 10px; }
table.settings .co-tile img { max-height: 30px; }
table.settings .pfp { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--mist); object-fit: contain; background: #fff; }
table.settings .pfp.dark { background: var(--charcoal); }
.tag-soft { display: inline-block; font-size: 12px; color: var(--grey); border: 1px solid var(--mist); border-radius: 10px; padding: 0 8px; margin-top: 4px; }
.plat-list { display: flex; gap: 8px; color: var(--charcoal); }
.plat-list svg { width: 16px; height: 16px; }
.plat-list .off { color: #c8c8c8; }

/* ---------- Preview panel ---------- */
.preview {
  background: var(--white);
  border-left: 1px solid var(--mist);
  display: flex; flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
.pv-head { padding: 22px 24px 0; display: flex; align-items: flex-start; gap: 12px; }
.pv-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.pv-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--grey); }
.pv-head .icon-btn { margin-left: auto; }
.tabs { display: flex; gap: 0; padding: 14px 16px 0; border-bottom: 1px solid var(--mist); }
.tabs button {
  border: 0; background: none;
  padding: 9px 8px 10px;
  font-family: var(--font-nav); font-size: 13px; font-weight: 500; color: var(--grey);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tabs button svg { width: 14px; height: 14px; }
.tabs button[aria-selected="true"] { color: var(--charcoal); border-bottom-color: var(--gold); font-weight: 600; }
.tabs button[disabled] { color: #c5c5c5; cursor: not-allowed; }
.feed-controls { display: flex; flex-direction: column; gap: 8px; padding: 12px 24px 0; }
.feed-row { display: flex; gap: 8px; align-items: center; }
.feed-row select.field { flex: 1; min-width: 0; }
/* Profile grid inside the phone: same markup as the calendar's Profile grids, scaled to the phone. */
.igp.in-phone { padding-top: 12px; }
.igp.in-phone .igp-top { gap: 12px; padding: 0 12px; }
.igp.in-phone .igp-pic { width: 60px; height: 60px; }
.igp.in-phone .igp-id > b { font-size: 14px; }
.igp.in-phone .igp-stats { gap: 10px; font-size: 12px; }
.igp.in-phone .igp-bio { padding: 8px 12px 0; font-size: 12px; }
.igp.in-phone .igp-btns { padding: 10px 12px; }
.igp.in-phone .igp-btns span { font-size: 12px; padding: 5px 0; }
.igp.in-phone .igp-tabs span { padding: 7px 0; }
.igp.in-phone .igp-grid { gap: 1px; }
.igp.in-phone .igp-grid .sched { font-size: 10px; left: 4px; bottom: 4px; padding: 0 5px 0 4px; }
.igp.in-phone .igp-grid .cell.add { font-size: 11px; }
.pv-body { padding: 18px 24px 8px; display: flex; justify-content: center; }
.pv-actions { padding: 6px 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.pv-actions .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pv-msg { text-align: center; padding: 40px 24px; color: var(--grey); font-size: 14px; }

/* ---------- Phone ---------- */
.phone {
  width: 330px;
  height: min(690px, calc(100vh - 250px));
  min-height: 440px;
  background: var(--black);
  border-radius: 48px;
  padding: 11px;
  box-shadow: 0 0 0 1.5px #3a3a3a, var(--shadow-lift);
  position: relative;
  flex: none;
}
.phone .screen {
  width: 100%; height: 100%;
  border-radius: 38px;
  background: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #000;
  font-size: 13.5px;
  line-height: 1.35;
}
.phone .island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 14px; z-index: 3; }
.statusbar { height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0 30px; font-weight: 600; font-size: 14px; }
.statusbar .sb-icons { display: flex; gap: 5px; align-items: center; }
.statusbar svg { height: 11px; width: auto; }
.appbar { flex: none; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #efefef; }
.appbar svg { width: 22px; height: 22px; }
.appbar .ig-word { font-family: "Lato", sans-serif; font-style: italic; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.appbar .fb-word { color: #0866FF; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; }
.appbar .li-search { flex: 1; margin: 0 10px; height: 30px; border-radius: 4px; background: #EEF3F8; display: flex; align-items: center; gap: 6px; padding: 0 10px; color: #666; font-size: 13px; }
.appbar .li-search svg { width: 14px; height: 14px; }
.appbar .li-in { width: 26px; height: 26px; border-radius: 4px; background: #0A66C2; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; font-family: Arial, sans-serif; }
.feed { flex: 1; overflow-y: auto; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.tabbar { flex: none; height: 52px; border-top: 1px solid #efefef; display: flex; align-items: center; justify-content: space-around; padding-bottom: 6px; }
.tabbar svg { width: 22px; height: 22px; color: #111; }
.tabbar .me { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #ddd; object-fit: contain; background: #fff; }

.sp { border-bottom: 1px solid #efefef; }
.sp-head { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
.sp-head .pfp { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; border: 1px solid #e6e6e6; background: #fff; flex: none; }
.sp-head .pfp.dark { background: var(--charcoal); border-color: var(--charcoal); }
.sp-head .pfp.ring { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #d62976; }
.sp-head .who { flex: 1; min-width: 0; }
.sp-head .who b { font-weight: 600; font-size: 13.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-head .who small { color: #65676B; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.sp-head .who small svg { width: 11px; height: 11px; }
.sp-head .more { width: 18px; height: 18px; color: #333; }
.sp-media { position: relative; background: #f2f2f2; }
.sp-media .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sp-media .track::-webkit-scrollbar { display: none; }
.sp-media .track .slide { position: relative; flex: none; width: 100%; scroll-snap-align: start; }
.sp-media.ig .track .slide { aspect-ratio: 1 / 1; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-media .count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: 11.5px; padding: 2px 8px; border-radius: 11px; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.88); color: #262626; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.car-btn.prev { left: 8px; }
.car-btn.next { right: 8px; }
.car-btn svg { width: 14px; height: 14px; }
.dots { display: flex; justify-content: center; gap: 4px; padding: 8px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; }
.dots i.on { background: #0095F6; }
.ig-actions { display: flex; align-items: center; gap: 14px; padding: 8px 12px 4px; }
.ig-actions svg { width: 23px; height: 23px; }
.ig-actions .save { margin-left: auto; }
.ig-actions-wrap { position: relative; }
.ig-actions-wrap .dots { position: absolute; left: 0; right: 0; top: 4px; padding: 0; pointer-events: none; }
.cap { margin: 2px 12px 10px; white-space: pre-line; overflow-wrap: anywhere; }
.cap.clamp { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.cap .more-link { color: #737373; border: 0; background: none; padding: 0; font-size: inherit; }
.cap b { font-weight: 600; }
.cap .tag.ig { color: #00376B; }
.cap .tag.fb { color: #0064D1; font-weight: 600; }
.cap .tag.li { color: #0A66C2; font-weight: 600; }
.sp-time { padding: 0 12px 12px; color: #737373; font-size: 11.5px; }
.sp-fb .cap { margin: 0 12px 10px; }
.fb-grid .slide { position: relative; }
/* Facebook / LinkedIn multi-photo collages */
.cg { display: grid; gap: 2px; }
.cg .tile { position: relative; overflow: hidden; background: #f2f2f2; }
.cg .tile img, .cg .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg.c2 { grid-template-columns: 1fr 1fr; }
.cg.c2 .tile { aspect-ratio: 4 / 5; }
.cg.t1b2 { grid-template-columns: 1fr 1fr; }
.cg.t1b3 { grid-template-columns: repeat(3, 1fr); }
.cg.t1b2 .tile:first-child, .cg.t1b3 .tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.cg.t1b2 .tile:not(:first-child), .cg.t1b3 .tile:not(:first-child) { aspect-ratio: 1 / 1; }
.cg.t2b3 { grid-template-columns: repeat(6, 1fr); }
.cg.t2b3 .tile:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 1 / 1; }
.cg.t2b3 .tile:nth-child(n+3) { grid-column: span 2; aspect-ratio: 1 / 1; }
.more-n { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 26px; font-weight: 600; }
.fb-bar { display: flex; justify-content: space-around; padding: 6px 4px 8px; border-top: 1px solid #e4e6eb; margin: 0 12px; color: #65676B; font-weight: 600; font-size: 13px; }
.fb-bar span, .li-bar span { display: inline-flex; align-items: center; gap: 5px; }
.fb-bar svg, .li-bar svg { width: 17px; height: 17px; }
.sp-fb { border-bottom: 6px solid #f0f2f5; }
.sp-li { border-bottom: 6px solid #f4f2ee; }
.sp-li .cap { margin: 0 12px 10px; }
.li-bar { display: flex; justify-content: space-around; padding: 8px 4px 10px; border-top: 1px solid #e8e8e8; margin: 0 12px; color: #5e5e5e; font-weight: 600; font-size: 12px; }
.li-bar span { flex-direction: column; gap: 2px; }
.li-follow { color: #0A66C2; font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 2px; }
.li-follow svg { width: 15px; height: 15px; }
.feed-date { padding: 10px 12px 4px; font-size: 11px; color: #8a8a8a; background: #fff; font-weight: 600; letter-spacing: 0.02em; }
.feed-empty { padding: 60px 20px; text-align: center; color: #8a8a8a; }

/* ---------- Drawer (post editor) ---------- */
.drawer-scrim { position: fixed; top: 0; bottom: 0; left: 0; right: 400px; background: rgba(43, 42, 44, 0.28); z-index: 20; }
.app.no-panel ~ .drawer-scrim { right: 0; }
/* The composer fills the space between the sidebar and the preview panel, which becomes "Preview and publishing". */
.drawer {
  position: fixed; top: 0; bottom: 0; left: 232px; right: 400px;
  background: var(--white);
  border-left: 1px solid var(--mist);
  box-shadow: var(--shadow-lift);
  z-index: 21;
  display: flex; flex-direction: column;
}
.app.no-panel ~ .drawer { right: 0; }
.drawer header { padding: 20px 26px 14px; border-bottom: 1px solid var(--mist); display: flex; align-items: flex-start; gap: 12px; }
.drawer header h2 { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.drawer header p { margin: 4px 0 0; color: var(--grey); font-size: 14px; }
.drawer header .icon-btn { margin-left: auto; }
.composer { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); }
.cmp-side { padding: 16px 22px 24px; overflow-y: auto; border-right: 1px solid var(--mist); display: flex; flex-direction: column; gap: 12px; }
.cmp-side .editor-drop { padding: 10px; }
.cmp-side .thumbs .th, .cmp-side .thumbs .add { width: 62px; height: 62px; }
.cmp-side .thumbs .add { font-size: 11.5px; }
.cmp-side .drop-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.4; }
.cmp-main { padding: 16px 26px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.cmp-h { margin: 6px 0 0; font-family: var(--font-nav); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.cmp-h:first-child { margin-top: 0; }
.cmp-h label { font: inherit; }
.cmp-h .opt { text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.cmp-main .cap-tabs { overflow-x: auto; scrollbar-width: none; }
.cmp-main .cap-tabs button { white-space: nowrap; }
.cmp-side .fgroup > label, .cmp-side .fgroup > .lbl { font-size: 13px; margin-bottom: 4px; }
.cmp-main textarea.caption { flex: 1 1 auto; min-height: 260px; resize: none; font-size: 15.5px; line-height: 1.6; padding: 14px 16px; }
.cmp-main .cap-tabs { margin-bottom: 4px; }
.cap-inherit { padding: 18px 0; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kw-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--mist); border-radius: 999px; background: var(--white); font-size: 12.5px; color: var(--charcoal); }
.kw-chip svg { width: 12px; height: 12px; color: var(--gold); }
.kw-chip:hover { border-color: var(--gold-line); }
.kw-chip[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }
.cmp-side .hint { margin: 0; font-size: 12.5px; color: var(--grey); }
.pv-publish { position: sticky; bottom: 0; margin-top: auto; background: var(--white); border-top: 1px solid var(--mist); }
.pv-publish p { margin: 0 0 10px; font-size: 13px; }
.pv-publish .row { justify-content: flex-end; }
@media (max-width: 1100px) {
  .composer { grid-template-columns: 1fr; overflow-y: auto; }
  .cmp-side, .cmp-main { overflow: visible; }
  .cmp-side { border-right: 0; border-bottom: 1px solid var(--mist); }
}
.fgroup > label, .fgroup > .lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.fgroup .hint { font-size: 13px; color: var(--grey); margin: -2px 0 8px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.frow .field, .fgroup select.field, .fgroup textarea.field, .fgroup input.field { width: 100%; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; }
.check {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--mist); border-radius: var(--radius);
  font-size: 14px; background: var(--white);
}
.check input { accent-color: var(--gold); width: 16px; height: 16px; margin: 0; }
.check.off { color: #b5b5b5; background: var(--paper); }
.check svg { width: 15px; height: 15px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs .th { position: relative; width: 74px; height: 74px; }
.thumbs .th img, .thumbs .th video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.thumbs .th .vid-badge { width: 20px; height: 20px; left: 4px; bottom: 4px; }
.thumbs .th button { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--mist); background: #fff; display: grid; place-items: center; padding: 0; }
.thumbs .th button svg { width: 11px; height: 11px; }
.thumbs .th .rm { top: -6px; right: -6px; }
.thumbs .th .mv { bottom: -6px; left: -6px; }
.thumbs .th-n { position: absolute; top: 4px; left: 4px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: rgba(43, 42, 44, 0.8); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.thumbs .add { width: 74px; height: 74px; border: 1.5px dashed var(--gold-line); border-radius: var(--radius); background: var(--white); color: var(--grey); font-size: 12.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; line-height: 1.2; cursor: pointer; }
.thumbs .add svg { width: 18px; height: 18px; color: var(--gold); }
.thumbs .add:hover { background: var(--gold-soft); }
.picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; padding: 10px; border: 1px solid var(--mist); border-radius: var(--radius); max-height: 190px; overflow-y: auto; }
.picker button { padding: 0; border: 0; background: none; }
.picker button { position: relative; aspect-ratio: 1 / 1; }
.picker img, .picker video { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.picker .vid-badge { width: 18px; height: 18px; left: 3px; bottom: 3px; }
.cap-tabs { display: flex; border-bottom: 1px solid var(--mist); margin-bottom: 10px; }
.cap-tabs button { border: 0; background: none; padding: 7px 12px 9px; font-family: var(--font-nav); font-size: 13px; color: var(--grey); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.cap-tabs button svg { width: 13px; height: 13px; }
.cap-tabs button[aria-selected="true"] { color: var(--charcoal); border-bottom-color: var(--gold); font-weight: 600; }
.cap-tabs .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
textarea.caption { min-height: 150px; resize: vertical; line-height: 1.5; }
.cap-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--grey); margin-top: 6px; }
.cap-meta span { white-space: pre-wrap; }
.cap-meta button { border: 0; background: none; color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; padding: 0; font-size: 12.5px; }

/* ---------- Brainstorm window ---------- */
.modal-scrim { position: fixed; inset: 0; background: rgba(43, 42, 44, 0.35); z-index: 30; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 31;
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  background: var(--white); border-top: 3px solid var(--gold); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
}
.modal header { padding: 22px 26px 14px; border-bottom: 1px solid var(--mist); display: flex; align-items: flex-start; gap: 12px; }
.modal header h2 { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.modal header p { margin: 4px 0 0; color: var(--grey); font-size: 14px; }
.modal header .icon-btn { margin-left: auto; flex: none; }
.modal .body { padding: 18px 26px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal .seg button { display: inline-flex; align-items: center; gap: 6px; }
.modal .seg svg { width: 14px; height: 14px; }
.modal textarea.field, .modal select.field { width: 100%; }
.modal .opt { font-weight: 400; color: var(--grey); font-size: 13px; }
.bs-prompt { font-size: 13px; line-height: 1.5; background: var(--paper); resize: vertical; }
.bs-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bs-actions .btn { text-decoration: none; }
.modal .hint { margin: 8px 0 0; font-size: 13px; color: var(--grey); }
.bs-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--paper); border-radius: var(--radius); }
.bs-next p { margin: 0; font-weight: 700; }
.idea-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.idea-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--paper); }
.idea-list li div { flex: 1; min-width: 0; }
.idea-list b { font-size: 13px; color: var(--grey); }
.idea-list p { margin: 2px 0 0; white-space: pre-line; }

/* ---------- Sending a month to Meredith ---------- */
.month-send, .notice { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; border-left: 3px solid var(--gold); }
.month-send > div, .notice > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.month-send span, .notice span { color: var(--grey); font-size: 14px; }
.notice > svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.modal .lead { margin: 0; line-height: 1.55; }

/* ---------- Caption score ---------- */
.score { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px; border: 1px solid currentColor; border-radius: 999px; font-family: var(--font-nav); font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1.4; }
.score b { min-width: 24px; height: 24px; padding: 0 4px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--white); font-size: 12px; font-weight: 600; }
.score.strong { color: var(--navy); }
.score.strong b { background: var(--navy); }
.score.good { color: var(--gold); }
.score.good b { background: var(--gold); }
.score.weak { color: var(--grey); border-color: var(--mist); }
.score.weak b { background: var(--paper); color: var(--charcoal); border: 1px solid var(--mist); }
.score-box:empty { display: none; }
.score-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.score-lbl { font-size: 13px; font-weight: 700; }
.score-plats { display: inline-flex; gap: 12px; color: var(--grey); font-size: 13px; }
.score-plats span { display: inline-flex; align-items: center; gap: 4px; }
.score-plats svg { width: 14px; height: 14px; }
.score-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; border: 0; background: none; font-family: var(--font-nav); font-size: 13px; color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.score-more svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform 0.15s; }
.score-more[aria-expanded="true"] svg { transform: rotate(-90deg); }
.score-detail { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--mist); border-radius: var(--radius); display: grid; gap: 12px; }
.sd-plat > b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.sd-plat > b svg { width: 14px; height: 14px; }
.sd-plat > b span { color: var(--grey); font-weight: 400; }
.sd-plat ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--grey); display: grid; gap: 3px; }
.sd-plat li b { color: var(--charcoal); }
.sd-plat p { margin: 4px 0 0; font-size: 13.5px; color: var(--grey); }
.score-detail .hint { margin: 0; font-size: 12.5px; color: var(--grey); }
.score-summary ul { margin: 6px 0 0; padding-left: 18px; color: var(--grey); font-size: 13px; }
.score-summary .row { display: flex; align-items: center; gap: 10px; }
.drawer .opt { font-weight: 400; color: var(--grey); font-size: 13px; }
.appr .meta .score { margin-right: 4px; }

/* ---------- Celebrations (celebrate.js) ---------- */
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
.rings-fx { position: fixed; inset: 0; z-index: 59; display: grid; place-items: center; background: rgba(43, 42, 44, 0.25); cursor: pointer; }
.rings-card { width: 300px; padding: 34px 28px 28px; border-radius: 36px; background: var(--charcoal); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.rings-card svg { width: 200px; height: 200px; margin-bottom: 14px; transition: filter 0.4s; }
.rings-fx.closed svg { filter: drop-shadow(0 0 10px rgba(166, 142, 81, 0.65)); }
.rings-card b { color: var(--white); font-size: 22px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; }
.rings-card span { color: var(--slate); font-family: var(--font-nav); font-size: 14px; }

.toast {
  position: fixed; left: 50%; top: 18px; transform: translateX(-50%); pointer-events: none; max-width: min(640px, calc(100vw - 40px));
  background: var(--charcoal); color: var(--white);
  padding: 10px 18px; border-radius: var(--radius); font-size: 14px;
  box-shadow: var(--shadow-lift); z-index: 40;
}

@media (max-width: 1280px) {
  .app { grid-template-columns: 220px minmax(0, 1fr) 380px; }
  .drawer { left: 220px; right: 380px; }
  .drawer-scrim { right: 380px; }
  .phone { width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
