:root {
  /* Greenwich University master palette (Brand Hub) */
  --navy: #002D62;
  --navy-deep: #001B3D;
  --crimson: #C41E3A;
  --daylight: #F0F2F5;
  --grey: #5C6774;

  --bg: var(--daylight);
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-2: #F5F6F8;
  --text: #0F1B2D;
  --muted: var(--grey);
  --border: #DDE1E7;
  --primary: var(--navy);
  --primary-soft: rgba(0, 45, 98, .07);
  --accent: var(--crimson);
  --grad: var(--crimson);
  --ok: #157347;
  --ok-soft: rgba(21, 115, 71, .09);
  --err: var(--crimson);
  --err-soft: rgba(196, 30, 58, .08);
  --warn: #B7791F;
  --facebook: #1877f2;
  --instagram: #e1306c;
  --linkedin: #0a66c2;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0, 27, 61, .05), 0 6px 18px -10px rgba(0, 27, 61, .18);
  --stripes: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #00142E;
    --surface: #072447;
    --surface-solid: #072447;
    --surface-2: #0B2D57;
    --text: #F0F2F5;
    --muted: #A9B4C2;
    --border: rgba(240, 242, 245, .12);
    --primary: #F0F2F5;
    --primary-soft: rgba(240, 242, 245, .08);
    --ok: #4ADE80;
    --ok-soft: rgba(74, 222, 128, .1);
    --err: #F0596F;
    --err-soft: rgba(240, 89, 111, .12);
    --warn: #FBBF24;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.55 "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
h1 { font-size: 40px; line-height: 1; margin: 0; letter-spacing: -.02em; font-weight: 900; text-transform: uppercase; color: var(--navy); }
h1 i, h2 i { font-style: normal; color: var(--crimson); }
@media (prefers-color-scheme: dark) { h1 { color: var(--text); } }
h2 { font-size: 16px; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-end { display: flex; justify-content: flex-end; }
.gap-s { gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Shell */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  display: flex; flex-direction: column; padding: 28px 16px 20px; position: sticky; top: 0; height: 100vh;
  background: var(--stripes), linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff;
  border-bottom: 0; box-shadow: inset -4px 0 0 var(--crimson);
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 6px 30px; }
.brand-logo { width: 150px; height: auto; display: block; }
.brand-tag { display: flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #fff; }
.brand-tag span { width: 22px; height: 1px; background: rgba(255,255,255,.5); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px;
  border: 0; border-radius: 6px; background: none; cursor: pointer; text-align: left; color: rgba(255,255,255,.72); font-weight: 600;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: #fff; color: var(--navy); box-shadow: inset 4px 0 0 var(--crimson); }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; }
.sidebar-stats { display: grid; gap: 8px; }
.stat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.85); }
.stat strong { color: #fff; }
.stat strong { margin-left: auto; font-size: 15px; }

.main { padding: 32px 36px 72px; min-width: 0; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 6px 12px; font-size: 11px; font-weight: 800; letter-spacing: .26em;
  text-transform: uppercase; background: var(--crimson); color: #fff;
}
.hero { padding-bottom: 22px; border-bottom: 1px solid var(--border); position: relative; }
.hero::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 3px; background: var(--crimson); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.step-head p { margin: 2px 0 0; font-size: 13px; }
.step-num {
  width: 34px; height: 34px; border-radius: 4px; flex: none; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 900; font-size: 15px; box-shadow: inset 0 -3px 0 var(--crimson);
}
@media (prefers-color-scheme: dark) { .step-num { background: var(--crimson); box-shadow: none; } }
.pill { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .12em; padding: 4px 10px; border-radius: 3px; background: var(--primary-soft); color: var(--primary); }

/* Compose layout */
.compose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.sticky { position: sticky; top: 24px; }

/* Media */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer;
  padding: 30px 20px; border-radius: 8px; border: 2px dashed var(--border); background: var(--surface-2);
  transition: border-color .15s, transform .15s, background .15s;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--primary); background: var(--primary-soft); }
.dropzone.dragging { transform: scale(1.01); }
.dropzone.compact { flex-direction: row; justify-content: center; gap: 10px; padding: 14px; }
.dropzone.compact .muted { display: none; }
.drop-icon { width: 46px; height: 46px; border-radius: 6px; background: var(--navy); display: grid; place-items: center; margin-bottom: 6px; }
.dropzone.compact .drop-icon { width: 30px; height: 30px; border-radius: 4px; margin: 0; }
.drop-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dropzone.compact .drop-icon svg { width: 16px; height: 16px; }

.tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin-top: 14px; }
.thumb {
  position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--border); cursor: grab; transition: transform .15s, box-shadow .15s;
}
.thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.thumb.drag-over { outline: 3px solid var(--primary); outline-offset: 2px; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.thumb .order {
  position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.thumb .kind {
  position: absolute; bottom: 8px; left: 8px; padding: 2px 8px; border-radius: 99px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 600;
}
.thumb .remove {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; opacity: 0; transition: opacity .15s;
}
.thumb:hover .remove, .thumb:focus-within .remove { opacity: 1; }

/* Caption */
.cap-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cap-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; font-size: 13px; font-weight: 600; color: var(--muted);
}
.cap-tab .pf { width: 16px; height: 16px; border-radius: 5px; }
.cap-tab.active { background: var(--navy); color: #fff; border-color: transparent; }
.cap-tab.custom::after { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--crimson); }
textarea {
  width: 100%; resize: vertical; min-height: 150px; padding: 14px 16px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface-solid); outline: none; line-height: 1.6;
}
textarea:focus, input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.cap-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.limits { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.limit { padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.limit.over { background: var(--err-soft); color: var(--err); }
.emoji-pop {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; margin-top: 10px; padding: 8px;
  border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border);
}
.emoji-pop button { border: 0; background: none; font-size: 20px; padding: 4px; border-radius: 8px; cursor: pointer; }
.emoji-pop button:hover { background: var(--surface-2); }

/* Buttons and chips */
.chip-btn {
  border: 1px solid var(--border); background: var(--surface-solid); border-radius: 99px;
  padding: 6px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.chip-btn:hover { border-color: var(--primary); color: var(--primary); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 4px; padding: 11px 18px; font-weight: 800; cursor: pointer; text-decoration: none;
  transition: transform .1s, filter .15s, opacity .15s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--crimson); color: #fff; box-shadow: 0 10px 22px -12px rgba(196, 30, 58, .8); }
.btn-primary:not(:disabled):hover { filter: brightness(1.08) saturate(1.1); }
.btn-ghost { background: var(--surface-solid); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; padding: 15px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.link { border: 0; background: none; padding: 0; color: var(--primary); cursor: pointer; font-weight: 600; }
.link.danger { color: var(--err); }

/* Segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 6px; background: var(--surface-2); }
.seg button {
  border: 0; background: none; padding: 8px 14px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted);
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--navy); color: #fff; box-shadow: none; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.seg-small button { padding: 5px 10px; font-size: 12px; }

/* Formats */
.formats { display: grid; gap: 10px; margin-bottom: 20px; }
.format { padding: 14px; border-radius: 6px; border-left: 3px solid var(--navy); border: 1px solid var(--border); background: var(--surface-solid); display: grid; gap: 10px; }
.format.off { opacity: .45; }
.format-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.format-head .muted { margin-left: auto; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.switch input { display: none; }
.switch span { width: 36px; height: 21px; border-radius: 99px; background: var(--border); position: relative; transition: background .15s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--crimson); }
.switch input:checked + span::after { transform: translateX(15px); }

/* Account picker */
.picker-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.search { position: relative; flex: 1; min-width: 180px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; padding: 9px 12px 9px 36px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-solid); outline: none; }
.picker-actions { margin-bottom: 12px; flex-wrap: wrap; }
.groups { display: flex; flex-wrap: wrap; gap: 6px; }
.group-chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--navy); color: var(--navy);
  background: var(--primary-soft); border-radius: 4px; padding: 5px 6px 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.group-chip .x { border: 0; background: none; cursor: pointer; color: inherit; padding: 0 4px; font-size: 15px; line-height: 1; opacity: .6; }
.group-chip .x:hover { opacity: 1; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tile {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface-solid); text-align: left; transition: border-color .15s, transform .1s, box-shadow .15s;
}
.tile:hover { border-color: var(--primary); }
.tile:active { transform: scale(.98); }
.tile.on { border-color: transparent; box-shadow: 0 0 0 2px var(--navy); background: var(--primary-soft); }
.tile .who { min-width: 0; flex: 1; }
.tile .who strong { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .who span { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .tick {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border); flex: none; display: grid; place-items: center;
}
.tile.on .tick { background: var(--crimson); border-color: transparent; }
.tile.on .tick::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.av-wrap { position: relative; flex: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); object-fit: cover; display: block; }
.av-wrap .pf { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 6px; border: 2px solid var(--surface-solid); }

.save-group { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.save-group input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-solid); outline: none; }

/* Platform marks */
.pf { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; flex: none; position: relative; color: #fff; font: 800 12px/1 Helvetica, Arial, sans-serif; }
.pf-facebook { background: var(--facebook); }
.pf-facebook::after { content: "f"; font-size: 1.05em; transform: translateY(1px); }
.pf-linkedin { background: var(--linkedin); }
.pf-linkedin::after { content: "in"; font-size: .85em; }
.pf-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.pf-instagram::before { content: ""; position: absolute; inset: 22%; border: 1.6px solid #fff; border-radius: 30%; }
.pf-instagram::after { content: ""; width: 24%; height: 24%; border: 1.6px solid #fff; border-radius: 50%; }
.pf-big { width: 44px; height: 44px; border-radius: 13px; font-size: 20px; }
.pf-big.pf-instagram::before, .pf-big.pf-instagram::after { border-width: 2.5px; }

/* Preview */
.preview-card h2 { margin-bottom: 14px; }
.preview { display: grid; place-items: center; }
.phone {
  width: 100%; max-width: 320px; border-radius: 28px; padding: 10px; background: #0b0a0f;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.screen { border-radius: 20px; overflow: hidden; background: #fff; color: #111; font-size: 13px; }
.screen.dark { background: #000; color: #fff; }
.p-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.p-head img, .p-head .ph-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #ddd; }
.p-head strong { font-size: 13px; }
.p-head small { display: block; color: #777; font-size: 11px; }
.p-media { position: relative; background: #eee; aspect-ratio: 1; overflow: hidden; }
.p-media.tall { aspect-ratio: 9 / 16; max-height: 480px; }
.p-media img, .p-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #999; font-size: 12px; text-align: center; padding: 20px; }
.p-dots { display: flex; justify-content: center; gap: 4px; padding: 8px 0 2px; }
.p-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c8c8c8; }
.p-dots i.on { background: #0095f6; }
.p-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); cursor: pointer; font-weight: 700; color: #111; }
.p-nav.prev { left: 8px; } .p-nav.next { right: 8px; }
.p-count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.p-actions { display: flex; gap: 14px; padding: 8px 12px 0; font-size: 18px; }
.p-caption { padding: 6px 12px 14px; white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow: auto; }
.p-caption b { margin-right: 4px; }
.story-top { position: absolute; top: 0; left: 0; right: 0; padding: 10px 12px; display: flex; align-items: center; gap: 8px; color: #fff; background: linear-gradient(rgba(0,0,0,.45), transparent); z-index: 1; }
.story-top img, .story-top .ph-av { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: #ddd; }
.story-bar { position: absolute; top: 4px; left: 8px; right: 8px; height: 2px; background: rgba(255,255,255,.5); border-radius: 2px; z-index: 2; }
.reel-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 14px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); font-size: 12px; white-space: pre-wrap; max-height: 45%; overflow: hidden; }

.feed-card { width: 100%; border-radius: 14px; overflow: hidden; background: #fff; color: #111; border: 1px solid #e6e6e6; font-size: 13px; }
.feed-card .p-text { padding: 0 12px 10px; white-space: pre-wrap; word-break: break-word; max-height: 200px; overflow: auto; }
.grid-media { display: grid; gap: 2px; background: #fff; }
.grid-media.n2 { grid-template-columns: 1fr 1fr; }
.grid-media.n3, .grid-media.n4 { grid-template-columns: 1fr 1fr; }
.grid-media.n3 > :first-child { grid-column: span 2; }
.grid-media > div { position: relative; aspect-ratio: 1; background: #eee; overflow: hidden; }
.grid-media.n1 > div { aspect-ratio: auto; max-height: 360px; }
.grid-media img, .grid-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid-media .more { position: absolute; inset: 0; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.feed-actions { display: flex; justify-content: space-around; padding: 8px; border-top: 1px solid #eee; color: #666; font-size: 12px; font-weight: 600; }

/* Summary + checks */
.summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sum-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 4px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; }
.sum-chip .pf { width: 18px; height: 18px; border-radius: 6px; font-size: 10px; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: 13px; }
.checks li { display: flex; gap: 9px; align-items: flex-start; }
.checks .i { flex: none; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; margin-top: 1px; }
.checks .ok .i { background: var(--ok); }
.checks .warn .i { background: var(--warn); }
.checks .err .i { background: var(--err); }

.spinner { width: 17px; height: 17px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.results { list-style: none; margin: 12px 0 0; padding: 0; }
.results li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; }
.results li:first-child { border-top: 0; }
.results .rname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { font-weight: 700; flex: none; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.status a { color: inherit; }
.err-msg { display: block; color: var(--err); font-size: 12px; white-space: normal; font-weight: 500; }

/* History */
.history { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.post-media img, .post-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-media .count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.post-media .text-only { padding: 24px; font-size: 15px; font-weight: 600; color: var(--text); white-space: pre-wrap; overflow: hidden; max-height: 100%; }
.post-body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.post-text { white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 13.5px; }
.post-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px 3px 4px; border-radius: 99px;
  background: var(--surface-2); text-decoration: none; color: var(--text); max-width: 100%;
}
.badge .pf { width: 16px; height: 16px; border-radius: 5px; font-size: 9px; }
.badge span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); }
.badge.err { background: var(--err-soft); color: var(--err); }
a.badge:hover { box-shadow: 0 0 0 1.5px var(--ok); }

/* Accounts */
.connect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 18px; }
.connect-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); box-shadow: var(--shadow);
  transition: transform .15s;
}
.connect-card:hover { transform: translateY(-2px); }
.connect-card div { flex: 1; display: flex; flex-direction: column; }
.connect-cta { font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 4px; background: var(--crimson); color: #fff; }
.account-list { list-style: none; margin: 0; padding: 0; }
.account-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.account-list li:first-child { border-top: 0; }
.account-list .aname { flex: 1; min-width: 0; }
.account-list .aname strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

.empty { padding: 28px 0; text-align: center; }

.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 20;
  padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: 90vw;
}
.toast.ok { background: var(--navy); color: #fff; box-shadow: inset 4px 0 0 var(--crimson), 0 10px 30px rgba(0,0,0,.2); }
.toast.err { background: var(--err); color: #fff; }

.dialog {
  border: 1px solid var(--border); border-top: 4px solid var(--crimson); border-radius: 8px; padding: 26px; width: min(460px, 92vw);
  background: var(--surface-solid); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
}
.dialog::backdrop { background: rgba(0, 27, 61, .6); backdrop-filter: blur(3px); }
.dialog h2 { font-size: 24px; font-weight: 900; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
@media (prefers-color-scheme: dark) { .dialog h2 { color: var(--text); } }
.confirm-list { list-style: none; padding: 0; margin: 14px 0 22px; max-height: 260px; overflow: auto; display: grid; gap: 8px; }
.confirm-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.confirm-list .fmt { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }

@media (max-width: 1100px) {
  .compose-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; z-index: 5; height: auto; flex-direction: row; align-items: center; padding: 10px 14px; gap: 8px; box-shadow: inset 0 -3px 0 var(--crimson); }
  .brand { padding: 0 6px 0 0; }
  .brand-logo { width: 64px; }
  .brand-tag { display: none; }
  .nav-item { color: rgba(255,255,255,.8); }
  .nav { flex-direction: row; }
  .nav-item span { display: none; }
  .sidebar-foot { display: none; }
  .main { padding: 20px 16px 56px; }
  h1 { font-size: 28px; }
  .card { padding: 18px; }
  .tiles { grid-template-columns: 1fr; }
}

/* Dark mode: navy-on-navy needs a stronger selected state. */
@media (prefers-color-scheme: dark) {
  .seg button.on, .cap-tab.active { background: var(--crimson); color: #fff; }
  .format { border-left-color: var(--crimson); }
  .tile.on { box-shadow: 0 0 0 2px var(--crimson); }
  .group-chip { border-color: var(--text); color: var(--text); }
}

/* Scheduling */
.when { display: grid; gap: 10px; margin-bottom: 14px; }
.when-seg { display: grid; grid-template-columns: 1fr 1fr; }
.when-pick { display: grid; gap: 8px; }
.when-pick input { width: 100%; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-solid); outline: none; font-weight: 600; color-scheme: light dark; }
.when-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--crimson); color: #fff; font-size: 11px; display: grid; place-items: center; }
.note { margin: -8px 0 18px; padding: 10px 14px; border-left: 3px solid var(--navy); background: var(--surface); border-radius: 4px; font-size: 13px; color: var(--muted); }
.sched-when { display: flex; align-items: center; gap: 10px; }
.sched-date { display: grid; place-items: center; width: 52px; flex: none; border-radius: 4px; overflow: hidden; border: 1px solid var(--border); text-align: center; }
.sched-date b { display: block; width: 100%; background: var(--crimson); color: #fff; font-size: 10px; letter-spacing: .14em; padding: 2px 0; }
.sched-date strong { font-size: 20px; font-weight: 900; line-height: 1.3; }
.sched-time { font-weight: 800; font-size: 15px; }
.status-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; background: var(--primary-soft); color: var(--primary); }
.status-tag.failed { background: var(--err-soft); color: var(--err); }
.status-tag.publishing { background: var(--ok-soft); color: var(--ok); }
.sched-actions { display: flex; justify-content: flex-end; gap: 14px; }
@media (prefers-color-scheme: dark) { .note { border-left-color: var(--crimson); } }

/* Inbox */
.inbox { display: grid; grid-template-columns: 250px 320px minmax(0, 1fr); gap: 14px; height: calc(100vh - 210px); min-height: 520px; }
.inbox > .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.inbox-accounts { overflow-y: auto !important; padding: 8px !important; gap: 2px; }
.ia { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; }
.ia:hover { background: var(--surface-2); }
.ia.on { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--crimson); }
.ia .who { flex: 1; min-width: 0; }
.ia .who strong { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ia .who span { font-size: 11px; color: var(--muted); }
.ia .warn-dot { color: var(--warn); font-weight: 900; }
.badge-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--crimson); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.ia-all { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 12px; flex: none; }
.inbox-search { margin: 10px; flex: none; min-width: 0; }
.convos { overflow-y: auto; flex: 1; }
.convo { display: flex; gap: 10px; padding: 12px 14px; border: 0; border-top: 1px solid var(--border); background: none; width: 100%; text-align: left; cursor: pointer; align-items: flex-start; }
.convo:hover { background: var(--surface-2); }
.convo.on { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--navy); }
.convo .initial { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 800; color: var(--navy); flex: none; position: relative; }
.convo .initial .pf { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--surface-solid); }
.convo .body { flex: 1; min-width: 0; }
.convo .top { display: flex; justify-content: space-between; gap: 8px; }
.convo .top strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo .top time { font-size: 11px; color: var(--muted); flex: none; }
.convo .snip { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo .page { font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo.unread .top strong, .convo.unread .snip { color: var(--text); font-weight: 800; }
.thread-empty { margin: auto; text-align: center; color: var(--muted); display: grid; gap: 8px; padding: 20px; }
.thread-empty span { font-size: 34px; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex: none; }
.thread-head strong { display: block; font-size: 15px; }
.thread-head span { font-size: 12px; color: var(--muted); }
.msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); }
.msg { max-width: 72%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; align-self: flex-start; background: var(--surface-solid); border: 1px solid var(--border); }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-color: transparent; }
.msg img { display: block; max-width: 220px; border-radius: 8px; margin-top: 4px; }
.msg a { color: inherit; }
.msg-time { font-size: 10.5px; color: var(--muted); align-self: center; margin: 8px 0 2px; }
.reply { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); flex: none; align-items: flex-end; }
.reply textarea { min-height: 44px; max-height: 140px; resize: none; padding: 10px 12px; }
.reply .btn { flex: none; }
.reply-note { font-size: 11.5px; color: var(--muted); padding: 0 14px 10px; flex: none; }
@media (prefers-color-scheme: dark) { .msg.me { background: var(--crimson); } .convo .initial { color: var(--text); } }
@media (max-width: 1100px) {
  .inbox { grid-template-columns: 1fr; height: auto; }
  .inbox-accounts { max-height: 220px; }
  .convos { max-height: 360px; }
  .thread { min-height: 480px; }
}

/* Ads Manager */
.select { padding: 9px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-solid); font-weight: 600; min-width: 200px; outline: none; }
.ads-head-actions { flex-wrap: wrap; justify-content: flex-end; }
.ads-toolbar { margin-bottom: 14px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); border-top: 3px solid var(--navy); }
.kpi:first-child { border-top-color: var(--crimson); }
.kpi span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kpi strong { display: block; font-size: 24px; font-weight: 900; margin-top: 4px; color: var(--navy); }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.table td.name { white-space: normal; min-width: 200px; font-weight: 700; }
.table td.name small { display: block; font-weight: 500; color: var(--muted); }
.table tr:hover td { background: var(--surface-2); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.pill-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; background: var(--surface-2); color: var(--muted); }
.pill-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-status.active { background: var(--ok-soft); color: var(--ok); }
.pill-status.paused { background: var(--primary-soft); color: var(--primary); }
.pill-status.issue { background: var(--err-soft); color: var(--err); }
.toggle-run { position: relative; width: 38px; height: 22px; border-radius: 99px; border: 0; background: var(--border); cursor: pointer; flex: none; }
.toggle-run::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.toggle-run.on { background: var(--ok); }
.toggle-run.on::after { transform: translateX(16px); }
.dialog.wizard { width: min(820px, 94vw); padding: 0; }
.wiz-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 6px; }
.wiz-steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 8px 24px 14px; border-bottom: 1px solid var(--border); counter-reset: s; flex-wrap: wrap; }
.wiz-steps li { counter-increment: s; font-size: 12px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; padding-right: 10px; }
.wiz-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 4px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-weight: 900; }
.wiz-steps li.on { color: var(--text); }
.wiz-steps li.on::before { background: var(--navy); color: #fff; box-shadow: inset 0 -2px 0 var(--crimson); }
.wiz-steps li.done::before { background: var(--ok); color: #fff; content: "✓"; }
.wiz-body { padding: 20px 24px; max-height: 60vh; overflow-y: auto; display: grid; gap: 16px; }
.wiz-foot { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--border); }
.wiz-foot .muted { flex: 1; text-align: center; }
.field { display: grid; gap: 6px; }
.field > label, .field > .lbl { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-solid); outline: none; font: inherit; }
.field textarea { min-height: 90px; }
.field .hint { font-size: 12px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.choice { text-align: left; border: 1.5px solid var(--border); background: var(--surface-solid); border-radius: 8px; padding: 14px; cursor: pointer; display: grid; gap: 4px; }
.choice strong { font-size: 14px; }
.choice span { font-size: 12px; color: var(--muted); }
.choice.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--primary-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 4px; background: var(--primary-soft); font-size: 12.5px; font-weight: 600; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 14px; }
.suggest { border: 1px solid var(--border); border-radius: 6px; background: var(--surface-solid); max-height: 200px; overflow-y: auto; }
.suggest button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--border); background: none; padding: 8px 12px; cursor: pointer; font-size: 13px; }
.suggest button:hover { background: var(--surface-2); }
.suggest small { color: var(--muted); }
.post-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.post-pick button { border: 1.5px solid var(--border); border-radius: 8px; background: var(--surface-solid); padding: 0; overflow: hidden; cursor: pointer; text-align: left; }
.post-pick button.on { border-color: var(--crimson); box-shadow: 0 0 0 2px var(--crimson); }
.post-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--surface-2); }
.post-pick span { display: block; padding: 6px 8px; font-size: 11.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.review { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 13.5px; }
.review dt { font-weight: 800; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.review dd { margin: 0; }
@media (prefers-color-scheme: dark) { .kpi strong { color: var(--text); } .choice.on { border-color: var(--crimson); box-shadow: inset 0 0 0 1px var(--crimson); } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } .review { grid-template-columns: 1fr; } }

/* Instagram tags */
.ig-people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ig-people .lbl small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.handles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-solid); min-height: 40px; }
.handles input { flex: 1; min-width: 100px; border: 0; outline: none; background: none; padding: 4px; }
.handles input:focus { box-shadow: none; }
.p-tags { padding: 6px 12px 0; font-size: 12px; color: #555; }
.spinner.dark { display: inline-block; vertical-align: -3px; width: 13px; height: 13px; border-color: var(--border); border-top-color: var(--navy); }
@media (max-width: 720px) { .ig-people { grid-template-columns: 1fr; } }

/* AI captions */
.ai-btn { border-color: var(--crimson); color: var(--crimson); }
.ai-panel { margin-top: 14px; padding: 16px; border-radius: 8px; border: 1px solid var(--border); border-left: 3px solid var(--crimson); background: var(--surface-2); display: grid; gap: 12px; }
.ai-nokey { font-size: 13px; }
.ai-opts { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: end; }
.ai-hash { padding-bottom: 10px; }
.ai-results { display: grid; gap: 10px; }
.ai-option { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 8px; padding: 12px; display: grid; gap: 8px; }
.ai-option header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ai-option header strong { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.ai-option .ai-text { white-space: pre-wrap; font-size: 13px; max-height: 180px; overflow: auto; }
.ai-option .seg button { padding: 4px 10px; font-size: 12px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.settings-grid h2 { margin-bottom: 6px; }
.settings-form { display: grid; gap: 12px; margin-top: 10px; }
.public-url { font-weight: 800; font-size: 15px; word-break: break-all; color: var(--navy); }
@media (prefers-color-scheme: dark) { .ai-option header strong, .public-url { color: var(--text); } }
@media (max-width: 720px) { .ai-opts { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- Team uploads */
.team-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 20px; }
.team-link a { font-weight: 700; color: var(--primary); word-break: break-all; }
.team-list { display: grid; gap: 18px; }
.team-card { display: grid; gap: 14px; }
.team-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.team-head h2 { margin: 2px 0 4px; font-size: 20px; }
.team-head .eyebrow { margin: 0; }
.team-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.team-caption { margin: 0; white-space: pre-wrap; font-size: 14px; line-height: 1.5; padding: 12px 14px; background: var(--surface-2); border-radius: 6px; }
.team-note { margin: 0; }
.team-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.team-photo { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--surface-2); outline: 3px solid transparent; outline-offset: -3px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .45; transition: opacity .15s; }
.team-photo.on { outline-color: var(--crimson); }
.team-photo.on img { opacity: 1; }
.team-photo input { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; accent-color: var(--crimson); }
.team-zoom { position: absolute; bottom: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; font-size: 13px; text-decoration: none; }
@media (max-width: 600px) { .team-photos { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); } }
.team-photo video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .45; transition: opacity .15s; }
.team-photo.on video { opacity: 1; }
.team-video-tag { position: absolute; bottom: 6px; left: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; pointer-events: none; }

/* ---------- Task sheet ---------- */
.card-title { margin: 0 0 14px; font-size: 18px; }
.tasks-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 18px; align-items: start; margin-bottom: 18px; }
@media (max-width: 900px) { .tasks-layout { grid-template-columns: 1fr; } }
.tasks-form { display: grid; gap: 12px; }
.tasks-form .btn { justify-self: start; }
.tasks-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .tasks-row { grid-template-columns: 1fr; } }
.team-members { display: grid; gap: 8px; }
.member-chip { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; }
.member-chip b { grid-column: 1; }
.member-chip span { grid-column: 1; }
.member-chip button { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.member-input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-solid); font: inherit; }
.task-list { display: grid; gap: 12px; }
.task-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
@media (max-width: 700px) { .task-row { grid-template-columns: 1fr; } }
.task-row.is-done { opacity: .65; }
.task-row h3 { margin: 0 0 4px; font-size: 16px; }
.task-notes { margin: 8px 0 0; font-size: 14px; white-space: pre-wrap; }
.task-side { display: grid; gap: 8px; justify-items: end; }
@media (max-width: 700px) { .task-side { justify-items: start; } }
.task-assignee { padding: 7px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-solid); font: inherit; font-size: 13px; }
