/* 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;

  --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.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-changes { background: var(--charcoal); }
.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.changes { color: var(--white); background: var(--charcoal); }
.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)); }
.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-day:nth-child(7n) { border-right: 0; }
.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(--charcoal); }
.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; }
.post-chip { flex-direction: column; align-items: stretch; gap: 3px; padding: 5px 6px 5px 7px; }
.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; }
.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: 18px; height: 18px; }

.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; }
.co-tile[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--charcoal); }
.co-tile:hover { box-shadow: var(--shadow-lift); }
.co-tile[aria-pressed="true"]:hover { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--charcoal), var(--shadow-lift); }

.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: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--charcoal); }
.handles span { display: inline-flex; align-items: center; gap: 6px; }
.handles svg { width: 14px; height: 14px; 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(--charcoal); }
.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(--charcoal); }
.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; }
.list-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 18px; border: 0; border-bottom: 1px solid var(--mist); background: none; width: 100%; text-align: left;
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--paper); }
.list-row .thumb { position: relative; width: 52px; height: 52px; border-radius: var(--radius); overflow: hidden; }
.list-row .thumb img, .list-row .thumb video { width: 100%; height: 100%; object-fit: cover; }
.list-row .t { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.list-row .d { font-size: 13.5px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.co-count { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius); border: 0; background: none; text-align: left; }
.co-count:hover { background: var(--paper); }
.co-count img { width: 30px; height: 30px; }
.co-count .n { margin-left: auto; font-weight: 700; }
.co-count .nm { font-size: 14px; }

/* ---------- Approvals ---------- */
.approval { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 18px; margin-bottom: 14px; }
.approval .aimg { position: relative; display: block; width: 180px; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; }
.approval .aimg img, .approval .aimg video { width: 100%; height: 100%; object-fit: cover; }
.approval h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.approval .meta { color: var(--grey); font-size: 14px; margin: 4px 0 10px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.approval .meta .plats { display: inline-flex; gap: 5px; }
.approval .meta svg { width: 14px; height: 14px; }
.approval blockquote { margin: 0 0 14px; padding: 0; font-size: 14.5px; color: var(--charcoal); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.approval .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.approval textarea { width: 100%; min-height: 70px; margin-bottom: 10px; }
.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 { 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-media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: var(--paper); }
.lib-media[disabled] { cursor: default; }
.lib-media img, .lib-media video { width: 100%; height: 100%; object-fit: cover; }
.lib-item audio { width: 100%; height: 34px; }
.lib-item .lb { display: flex; align-items: center; gap: 7px; padding: 8px 10px; 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; }
.lib-item .lb .lb-use { color: var(--grey); font-size: 12px; }
.lib-del { width: 22px; height: 22px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid var(--mist); border-radius: 50%; background: var(--white); color: var(--grey); }
.lib-del:hover { border-color: var(--charcoal); color: var(--charcoal); }
.lib-del svg { width: 11px; height: 11px; }
.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-bar { padding: 18px 20px; margin-bottom: 18px; border-style: dashed; border-color: var(--gold-line); }
.upload-bar.bottom { margin: 22px 0 0; }
.upload-bar.dragging-files { background: var(--gold-soft); border-color: var(--gold); }
.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-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.upload-main .btn { cursor: pointer; }
.upload-to { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.upload-note { margin: 10px 0 0; font-size: 13px; color: var(--grey); }
.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: 520px;
  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; }
.drawer {
  position: fixed; top: 0; right: 400px; bottom: 0;
  width: 520px; max-width: calc(100vw - 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: 24px 28px 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; }
.drawer .body { padding: 20px 28px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.drawer footer { padding: 16px 28px; border-top: 1px solid var(--mist); display: flex; gap: 10px; justify-content: flex-end; }
.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 { 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; }

.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 { right: 380px; }
  .drawer-scrim { right: 380px; }
  .phone { width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
