/* Layer: design-refresh.css */
/* PULSE: local visual refresh, 2026-10-13.
   Existing Manrope, Radix components and brand accent retained.
   Radius scale: controls 8px, cards 10px, panels 14px.
   No route, content, event handler or API changes. */
:root,
.dark {
  --background: #141617;
  --foreground: #ebeced;
  --card: #1f2225;
  --primary: #c5f46a;
  --border: #33373b;
  --pulse-surface: #1b1d1f;
  --pulse-raised: #232629;
  --pulse-muted: #a8acb1;
  --pulse-subtle: #949aa0;
  --pulse-focus: #c5f46a;
  color-scheme: dark;
}

body { background: var(--background); color: var(--foreground); line-height: 1.55; }
button, input, textarea, select { font-family: Manrope, Arial, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--pulse-focus);
  outline-offset: 4px;
}
button:disabled, input:disabled, select:disabled {
  cursor: not-allowed;
  opacity: .55;
}
button, a, input, textarea, select {
  transition: background-color 140ms ease, border-color 140ms ease,
    color 140ms ease, box-shadow 140ms ease;
}
input, textarea, select {
  background-color: #17191b;
  border-color: #42484d;
  border-radius: 8px;
  color: var(--foreground);
  min-height: 44px;
  line-height: 1.5;
}
input::placeholder, textarea::placeholder { color: #93999f; opacity: 1; }
input:hover:not(:disabled), textarea:hover:not(:disabled), select:hover:not(:disabled) {
  border-color: #69727c;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); }
label { color: #ced1d4; font-size: 13px; font-weight: 500; gap: 8px; }
select option { color: var(--foreground); background: #1b1d1f; }
textarea { line-height: 1.65; }
.date-field { background: #17191b; border-color: #42484d; }

/* Navigation: active location is clearer than inactive utility actions. */
.side [data-slot="sidebar-inner"], [data-mobile="true"] {
  background: #181a1c;
  color: var(--foreground);
}
.side [data-slot="sidebar-header"] { padding: 27px 20px 18px; }
.side .workspace { margin-top: 24px; background: #212426; border-color: var(--border); }
.navlabel, .side .navlabel { color: var(--pulse-subtle); letter-spacing: 1.2px; font-size: 10px; }
.side [data-slot="sidebar-menu"] { gap: 6px; padding: 0 12px; }
.side [data-slot="sidebar-menu-button"],
[data-mobile="true"] [data-slot="sidebar-menu-button"] {
  height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 13px;
  color: #b3b6ba;
  font-size: 13px;
  font-weight: 500;
}
.side [data-slot="sidebar-menu-button"]:hover,
[data-mobile="true"] [data-slot="sidebar-menu-button"]:hover {
  background: #24272a;
  color: var(--foreground);
}
.side [data-slot="sidebar-menu-button"][data-active="true"],
[data-mobile="true"] [data-slot="sidebar-menu-button"][data-active="true"] {
  background: #2a2e32;
  border-color: #444a4f;
  color: var(--primary);
  font-weight: 650;
}
.side [data-slot="sidebar-footer"] { padding: 14px 16px; }
.profile { border-color: var(--border); }
.profile small, .sidehint p { color: var(--pulse-muted); }
.side .logout { color: var(--pulse-muted); border-color: var(--border); }
.topbar { height: 68px; padding: 0 32px; background: #17191b; border-color: var(--border); }
.topdate { color: var(--pulse-muted); font-size: 12px; }
.content { max-width: 1680px; padding: 32px 32px 24px; }
.pagetitle { gap: 28px; margin: 0 0 28px; }
.pagetitle h1 { margin-top: 8px; letter-spacing: -1.2px; font-size: clamp(28px, 2.5vw, 38px); font-weight: 650; line-height: 1.2; }
.eyebrow { color: #a5aaae; letter-spacing: 1.3px; font-size: 10px; }
.pagetitle p, .muted { color: var(--pulse-muted); line-height: 1.65; }
.sectionhead { margin: 28px 0 18px; gap: 16px; }
.sectionhead h2, .calendar-heading h2 { font-weight: 600; letter-spacing: -.45px; }

/* Metrics are supporting information, not competing promotional tiles. */
.stats { gap: 10px; }
.stat { background: var(--pulse-surface); border-color: var(--border); border-radius: 10px; }
.pagetitle .stat { padding: 16px 14px; }
.stat > span, .pagetitle .stat > span { color: #babec1; font-size: 12px; min-height: 36px; line-height: 1.5; }
.stat strong, .pagetitle .stat strong { font-variant-numeric: tabular-nums; color: var(--foreground); font-weight: 650; font-size: 25px !important; margin-top: 8px; }
.stat small { color: var(--pulse-muted); }
.spotlight { background: #272a2d; border-color: #535a61; }
.spotlight strong { color: var(--primary); }
.spotlight::after { display: none; }
.pagetitle .stat:nth-child(3) strong { font-size: 19px !important; white-space: nowrap; line-height: 1.72; }
.primary, .secondary { min-height: 42px; border-radius: 8px; padding: 10px 16px; font-size: 13px; font-weight: 650; line-height: 1.4; }
.primary { color: #191b1d; background: var(--primary); border-color: var(--primary); }
.primary:hover:not(:disabled) { background: #d2ff82; border-color: #d2ff82; }
.secondary { background: #232629; color: #e1e2e4; border-color: #42484d; }
.secondary:hover:not(:disabled) { background: #2e3236; border-color: #6d7781; }
.filterbar { margin: 16px 0 24px; gap: 10px; }
.filterbar > input { min-width: 220px; }
.filterbar > select { min-height: 44px; }
.queueitems { min-width: 0; }
.queueitems .secondary { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.tabbar { gap: 8px; }
.tabbar button { min-height: 40px; }

/* Kanban: four real workflow columns on wide displays. */
.board, .compactboard { gap: 14px; align-items: start; }
.column, .compactboard .column {
  background: #181a1c;
  border: 1px solid #2e3337;
  border-radius: 14px;
  padding: 14px 10px;
  min-height: 220px;
}
.column h3 { font-size: 13px; font-weight: 650; line-height: 1.5; }
.compactboard .cards {
  max-height: none;
  overflow: visible;
}
.compactwrap { border-color: #393e43; border-radius: 10px; margin-bottom: 12px; background: #212427; }
.taskcard, .compactcard {
  background: #212427;
  color: var(--foreground);
  padding: 16px 14px !important;
  min-height: 142px;
  border-color: transparent;
  box-shadow: none;
}
.taskcard:hover { background: #282b2e; border-color: #69727b; transform: none; }
.compactcard h4 { font-size: 14px !important; font-weight: 600; line-height: 1.6; min-height: 42px; -webkit-line-clamp: 3; margin: 10px 0 12px !important; }
.cardmeta, .compactcard .cardmeta { color: #b4b8bb; font-size: 11px; line-height: 1.5; gap: 8px; }
.compactcard .cardfooter { border-color: #393d42; color: #b1b5ba; gap: 8px; margin-top: 12px; padding-top: 10px; }
.compactcard .cardfooter > span { font-size: 11px; }
.cardtools { background: #1b1d1f; padding: 5px 10px; gap: 16px; }
.cardtools button { color: #bbbec2; min-height: 32px; font-size: 11px; }
.cardtools button:hover { color: var(--primary); }
.addtask { min-height: 40px; color: #acb0b4; border-radius: 8px; }
.addtask:hover { background: #25282c; color: var(--primary); }
.emptycolumn { color: var(--pulse-subtle); padding: 26px 12px; line-height: 1.6; }
.boardbottom { color: var(--pulse-subtle); margin-top: 20px; }
.tasklist .compactcard { min-height: 0; }
.filtered-board .cards { gap: 12px; }

/* Content calendar, reports, dialogs use the same surface and type scale. */
.panel, .chart-card, .plan-table { background: var(--pulse-surface); border-color: var(--border); border-radius: 14px; }
.panel { padding: 24px; }
.panel h2, .discussion h2 { font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.calendar { border-color: var(--border); background: var(--border); border-radius: 14px; }
.calendar-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
@media (min-width: 768px) {
  .calendar { min-width: 980px; }
  .calendar-post b { font-size: 12px; }
  .calendar-post small { font-size: 10px; }
}
.weekday { background: #23272a; color: #aeb2b6; font-weight: 600; }
.calendar-day { background: #1a1c1f; }
.calendar-day.outside { background: #151719; color: #969ca1; }
.calendar-day.today { box-shadow: inset 0 0 0 2px #7f868c; }
.calendar-post { background: #2a2d31; border-radius: 8px; }
.calendar-post:hover { background: #363b40; }
.calendar-post b { font-weight: 600; }
.calendar-post small { color: #bbbec2; }
.plan-table th { background: #23272a; color: #b7bbbf; font-size: 12px; font-weight: 600; }
.plan-table td { padding: 18px 20px; }
.publicationtitle { font-size: 14px; line-height: 1.6; }
.publicationdate small, .publicationformat { color: #a9aeb2; }
.plan-summary { color: var(--pulse-muted); }
.chart-card { padding: 24px; }
.chart-totals small, .kpi-charts small, .chart-legend, .measurement p { color: var(--pulse-muted); }
.reporthero { background: #282b2e; border: 1px solid #50585e; color: var(--foreground); border-radius: 14px; }
.reporthero strong { color: var(--primary); font-variant-numeric: tabular-nums; }
.reporthero .eyebrow, .reporthero p { color: #bbbec2; }
.reporthero .bars i { background: #848a90; }
.metricgrid > div { background: #1f2225; border-color: var(--border); border-radius: 10px; padding: 16px; }
.metricgrid small { color: var(--pulse-muted); }
.emptyreport, .chart-empty, .kpi-empty { color: var(--pulse-muted); }
.running { background: #262a2d; border-color: #5e666f; border-radius: 10px; }
.running > div { color: #b9bcc0; }
.memberrow span:not(.avatar), .memberrow small, .authhelp, .passwordhint { color: var(--pulse-muted); }
[data-slot="dialog-content"].detail, [data-slot="dialog-content"].taskdialog { background: #1e2124 !important; border-color: #4d545b; border-radius: 14px !important; box-shadow: 0 24px 80px #080809a6; }
.dialog-body { border-radius: 14px; padding: 30px; }
.dialog-body > [data-slot="dialog-title"] { font-size: 23px; font-weight: 650; }
.detail > [data-slot="dialog-close"], .taskdialog > [data-slot="dialog-close"] { background: #33373c; }
.discussion article { background: #1a1c1f; border-color: #393e44; border-radius: 10px; }
.discussion time { color: #a4a9ae; }
.discussion article b { color: #dadcde; }
.discussion article p { color: #d2d4d6; }
footer { color: #949aa0; border-color: var(--border); margin-top: 44px; }

/* Login: preserve the existing copy and wordmark; quiet the backdrop. */
.authstory { background: #1d2023; border-color: #3a3f44; padding: 44px 48px; }
.authstory h1 { font-size: clamp(40px, 4.8vw, 68px); font-weight: 600; letter-spacing: -2.4px; line-height: 1.15; }
.authstory p { color: #b4b8bb; line-height: 1.7; }
.authfoot { color: #a4a8ad; }
.authformwrap { background: #131517; padding: 48px; }
.authform { max-width: 390px; }
.authform h2 { font-size: 29px; font-weight: 650; letter-spacing: -.8px; }
.authform .muted { font-size: 14px; }
.authform label { margin: 24px 0; }
.authform input { min-height: 48px; }
.authform .primary { min-height: 48px; }
.authshield { border-color: #4d545a; background: #23272a; }
.authhelp { margin-top: 24px; font-size: 12px; line-height: 1.75; }

@media (min-width: 1280px) {
  .compactboard { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .compactboard.filtered-board { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (min-width: 1500px) {
  .content { padding: 36px 40px 24px; }
  .taskcard { padding: 17px 15px !important; }
}
@media (max-width: 1279px) and (min-width: 768px) {
  .content { padding: 28px 24px 20px; }
  .topbar { padding: 0 24px; }
  .compactboard { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pagetitle { grid-template-columns: 1fr; }
  .pagetitle .stats { max-width: none; }
}
@media (max-width: 767px) {
  .topbar { height: 60px; padding: 0 16px; }
  .content { padding: 24px 16px 20px; }
  .pagetitle { gap: 20px; margin-bottom: 24px; }
  .pagetitle h1 { font-size: 29px; letter-spacing: -.8px; }
  .pagetitle .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pagetitle .stat { padding: 12px; }
  .pagetitle .stat > span { font-size: 12px; min-height: 0; }
  .pagetitle .stat strong { font-size: 23px !important; }
  .compactboard { grid-template-columns: minmax(0, 1fr) !important; gap: 16px; }
  .column, .compactboard .column { padding: 14px 10px; }
  .column h3 { font-size: 14px; }
  .compactcard h4 { font-size: 15px !important; }
  .cardtools button { min-height: 42px; font-size: 12px; }
  .filterbar { gap: 8px; }
  .filterbar > input { min-width: 0; }
  .filterbar > select { min-width: 0; }
  .filterbar > select { font-size: 12px; padding-left: 10px; padding-right: 24px; }
  .filterbar .secondary { font-size: 12px; padding-left: 12px; padding-right: 12px; }
  .primary, .secondary { min-height: 44px; }
  .panel, .chart-card { padding: 18px; }
  .calendar-options { row-gap: 12px; }
  .dialog-body { padding: 24px 18px; }
  .authstory { min-height: 210px; padding: 26px 24px; }
  .authstory h1 { font-size: 36px; letter-spacing: -1.2px; }
  .authformwrap { padding: 32px 24px 40px; }
  .authform h2 { font-size: 26px; }
  footer { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Content lifecycle controls: deletion uses the existing reversible trash. */
.content-lifecycle-bar { margin: 12px 0 20px; }
.content-trash-list { margin-top: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--pulse-surface); }
.content-trash-list h3 { margin: 0 0 14px; font-size: 16px; }
.content-trash-list > div { display: grid; gap: 10px; }
.content-trash-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.content-trash-list small { color: var(--pulse-muted); font-weight: 400; }
.content-lifecycle-actions { margin: 18px 0; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--pulse-surface); }
.content-lifecycle-actions p { margin: 0 0 12px; font-size: 12px; }
.secondary.content-delete { color: #ffd0c5; border-color: #805648; background: #38251e; }
.secondary.content-delete:hover:not(:disabled) { color: #ffe5df; border-color: #bc8370; background: #4b3026; }


/* Layer: redesign.css */
/* Redesign audit, 2026-10-13. Neutral product surfaces, one brand accent.
   Scoped visual layer over the recovered application and its first refresh. */
:root, .dark {
  --background: #151618;
  --foreground: #edeeee;
  --card: #222629;
  --border: #35393e;
  --pulse-surface: #1c1e21;
  --pulse-raised: #282c2f;
  --pulse-muted: #afb3b7;
  --pulse-subtle: #9ca2a7;
}
body { background: var(--background); }
.main { background: var(--background); }
.side [data-slot="sidebar-inner"], [data-mobile="true"] { background: #1a1c1f; }
.side .workspace { background: #24282b; border-color: #373b40; }
.side [data-slot="sidebar-menu-button"]:not([data-active="true"]):hover,
[data-mobile="true"] [data-slot="sidebar-menu-button"]:not([data-active="true"]):hover { background: #2a2e32; }
.side [data-slot="sidebar-menu-button"][data-active="true"],
[data-mobile="true"] [data-slot="sidebar-menu-button"][data-active="true"] {
  background: #2e3337;
  border-color: #50565d;
  box-shadow: inset 3px 0 0 #c5f46a;
}
.sidehint { border-color: #34383d; }
.sidehint h3 { font-size: 16px; font-weight: 500; }
.sidehint p { max-width: 24ch; line-height: 1.75; }
.topbar { background: #1a1c1f; }
.pagetitle h1 { font-weight: 600; text-wrap: balance; }
.pagetitle > div > p { max-width: 65ch; text-wrap: pretty; }
.pagetitle .stats {
  background: #1d2023;
  border: 1px solid #393e42;
  border-radius: 12px;
  gap: 0;
  overflow: hidden;
}
.pagetitle .stat {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 16px 14px;
}
.pagetitle .stat + .stat { border-left: 1px solid #393e42; }
.pagetitle .stat > span { font-size: 11px; color: #b6babd; }
.pagetitle .stat strong { font-size: 26px !important; font-weight: 600; }
.pagetitle .stat:nth-child(3) strong { font-size: 18px !important; line-height: 1.88; }
.pagetitle .spotlight strong { color: #c5f46a; }
.primary, .secondary { transition-duration: 180ms; }
.secondary { background: #292d31; border-color: #464d53; color: #e4e5e6; }
.secondary:hover:not(:disabled) { background: #34393e; border-color: #7d848a; }
.primary:active:not(:disabled), .secondary:active:not(:disabled) { transform: translateY(1px); }
input, textarea, select, .date-field { background-color: #181a1d; border-color: #4b5258; }
input::placeholder, textarea::placeholder { color: #a7acb1; }
.filterbar { background: #1d1f21; padding: 12px; border-radius: 12px; border: 1px solid #34383d; }
.filterbar input { background: #16181a; }
.attentionqueue { background: #202326; border-color: #3d4248; }
.queueitems .secondary { background: transparent; border-color: #484e55; }
.column, .compactboard .column { background: #1c1e20; border-color: #34393e; border-radius: 12px; }
.column h3 { letter-spacing: -.1px; }
.compactwrap { background: #282b2e; border-color: #454c52; box-shadow: 0 3px 12px #10111238; }
.taskcard, .compactcard { background: #282b2e; }
.taskcard:hover { background: #31353a; border-color: #7d848a; }
.compactcard h4 { text-wrap: pretty; }
.compactcard .cardfooter { border-color: #444a4f; }
.cardtools { background: transparent; border-top: 1px solid #3d4248; gap: 10px; padding: 4px 8px; }
.cardtools button { padding: 5px 8px; border-radius: 5px; }
.cardtools button:hover { background: #33373c; }
.addtask { border: 1px dashed #494f55; margin-top: 4px; }
.addtask:hover { border-color: #81888f; }
.emptycolumn { font-size: 12px; }
.panel, .chart-card, .plan-table { background: #1e2023; border-color: #393d42; }
.calendar { background: #383d42; border-color: #383d42; }
.weekday { background: #262a2d; color: #c1c4c7; font-size: 11px; }
.calendar-day { background: #1e2124; }
.calendar-day.outside { background: #181a1d; }
.calendar-post { background: #303438; box-shadow: 0 2px 5px #0f101126; }
.calendar-post:hover { background: #3b4045; }
.calendar-post small { color: #ced0d3; }
.calendar-post b { color: #eff0f0; }
.calendar-day.today { box-shadow: inset 0 0 0 2px #8b9298; }
.content-lifecycle-bar > .secondary { background: transparent; }
.content-trash-list, .content-lifecycle-actions { background: #1d1f22; border-color: #444a4f; }
.content-delete-confirm { padding: 16px 0 0; margin-top: 16px; border-top: 1px solid #665043; }
.content-delete-confirm > button { margin: 0 8px 8px 0; }
[data-slot="dialog-content"].detail, [data-slot="dialog-content"].taskdialog { background: #24282b !important; border-color: #565e66; }
.discussion article { background: #1d2023; }
.authformwrap { background: #17191b; }
.authstory { background: #23262a; }
.profile .avatar { border-radius: 10px; }
@media (max-width: 767px) {
  .pagetitle .stats { border-radius: 10px; }
  .pagetitle .stat { padding: 14px; }
  .pagetitle .stat:nth-child(3) { border-left: 0; }
  .pagetitle .stat:nth-child(n+3) { border-top: 1px solid #393e42; }
  .pagetitle .stat strong { font-size: 24px !important; }
  .pagetitle .stat:nth-child(3) strong { font-size: 18px !important; line-height: 1.73; }
  .filterbar { padding: 10px; }
  .filterbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filterbar > input, .filterbar > .secondary { grid-column: 1 / -1; width: 100%; }
  .filterbar > select { width: 100%; font-size: 13px; }
  .filterbar .secondary { padding-left: 8px; padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary:active:not(:disabled), .secondary:active:not(:disabled) { transform: none; }
}

/* Reference library: an asset catalogue, with complete uncropped previews. */
.brand-board .brand-intro { margin-bottom: 22px; }
.brand-intro h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.brand-intro p { max-width: 65ch; margin: 0; font-size: 13px; line-height: 1.7; }
.reference-count { font-size: 12px; font-weight: 500; color: #c0c3c6; padding: 4px 8px; border: 1px solid #494f55; border-radius: 6px; }
.brand-board .brand-collage { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: 0; margin: 0; min-height: 0; }
.brand-board .brand-tile, .brand-board .brand-tile:nth-child(n) {
  transform: none; margin: 0; padding: 0; min-width: 0; border-radius: 10px;
  border: 1px solid #444a50; background: #23272a; overflow: hidden;
  text-align: left; display: block; width: 100%;
}
.brand-board .brand-tile:hover { transform: none; border-color: #969ba1; background: #2c3033; }
.reference-preview { aspect-ratio: 4 / 3; background: #17181a; display: flex; align-items: center; justify-content: center; padding: 14px; border-bottom: 1px solid #3b4046; overflow: hidden; }
.brand-board .reference-preview img, .brand-board .reference-preview video { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; max-height: none; aspect-ratio: auto; }
.reference-info { padding: 16px 18px; }
.brand-board .brand-tile b { display: block; margin: 0 0 8px; padding: 0; font-size: 14px; line-height: 1.5; font-weight: 600; }
.reference-info small { display: block; font-size: 11px; color: #adb1b5; }
.reference-open { display: block; margin-top: 14px; font-size: 12px; color: #c5f46a; }
.library-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 28px 0 16px; }
.library-section-heading h2 { font-size: 20px; margin: 0; }
.library-section-heading > span { font-size: 12px; }
.librarygrid .bannerpreview { transform: none; }

/* Action inbox: one row per task or material; channels stay in the context. */
.panel.queue.attention-inbox { padding: 0; overflow: hidden; border: 1px solid #3f454b; border-radius: 12px; background: #1f2224; }
.attention-inbox summary { display: flex; gap: 10px; align-items: center; padding: 16px 20px; min-height: 56px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; }
.attention-inbox summary::-webkit-details-marker { display: none; }
.attention-count { font-size: 11px; padding: 2px 7px; background: #33373b; color: #d0d2d5; border-radius: 5px; font-variant-numeric: tabular-nums; }
.attention-collapse { margin-left: auto; font-size: 20px; color: #a8acb1; transform: rotate(-90deg); }
.attention-inbox[open] .attention-collapse { transform: rotate(0); }
.attention-list { padding: 0 20px 8px; }
.attention-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 4px; border-top: 1px solid #3a3f44; text-align: left; border-radius: 0; }
.attention-row:hover { background: #282b2e; }
.attention-marker { width: 6px; height: 6px; border-radius: 50%; background: #a5aaae; flex: 0 0 auto; }
.attention-marker.overdue { background: #e7ab8d; }
.attention-marker.review { background: #cbbade; }
.attention-copy { flex: 1; min-width: 0; display: grid; gap: 5px; }
.attention-copy b { font-size: 13px; line-height: 1.5; font-weight: 500; color: #ebecee; overflow-wrap: anywhere; }
.attention-reason { color: #b9bdc1; font-size: 11px; }
.attention-reason.overdue { color: #e6b59e; }
.attention-reason.review { color: #d0bfde; }
.attention-meta { color: #a7acb1; font-size: 11px; line-height: 1.5; }
.attention-arrow { font-size: 12px; color: #c5f46a; white-space: nowrap; }
.attention-list > .muted { margin: 0; padding: 12px 4px 20px; font-size: 13px; }
.calendar-heading h2 { margin-right: auto; }
.calendar-trash-icon { width: 44px; min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #464c52; border-radius: 8px; color: #b0b4b9; background: transparent; position: relative; }
.calendar-trash-icon:hover, .calendar-trash-icon.is-active { background: #2f3337; color: #cbced1; border-color: #717a84; }
.trash-count { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 5px; background: #c5f46a; color: #191b1d; font-size: 10px; line-height: 17px; font-weight: 700; }
@media (min-width: 1600px) { .brand-board .brand-collage { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 767px) {
  .brand-board .brand-collage { gap: 12px; }
  .reference-preview { padding: 8px; aspect-ratio: 1; }
  .reference-info { padding: 12px; }
  .brand-board .brand-tile b { font-size: 12px; }
  .reference-open { font-size: 11px; }
  .attention-inbox summary { padding: 14px 16px; }
  .attention-list { padding: 0 14px 6px; }
  .attention-row { gap: 10px; align-items: flex-start; }
  .attention-marker { margin-top: 6px; }
  .attention-arrow { font-size: 0; }
  .attention-arrow::after { content: '→'; font-size: 18px; }
  .calendar-heading { gap: 8px; }
  .calendar-heading h2 { font-size: 16px; }
  .calendar-heading > .primary { padding: 10px 8px; font-size: 11px; }
}


/* Layer: studio.css */
/* PULSE / Studio direction 01. Composition, hierarchy and purposeful motion.
   No external fonts, libraries or assets. */
:root { --studio-ease: cubic-bezier(.22,1,.36,1); }
.studio-page { animation: studio-page-in 380ms var(--studio-ease) both; }
.studio-tasks, .studio-library { padding-top: 42px; }
.studio-tasks .pagetitle, .studio-library .pagetitle { position: relative; margin-bottom: 36px; }
.studio-tasks .pagetitle h1, .studio-library .pagetitle h1 {
  font-size: clamp(40px,4.4vw,68px); line-height: 1.06; letter-spacing: -.055em;
  font-weight: 500; max-width: 12ch; margin: 16px 0 20px;
}
.studio-tasks .pagetitle h1 > span, .studio-library .pagetitle h1 > span { color: #c5f46a; }
.studio-tasks .pagetitle p, .studio-library .pagetitle p { font-size: 14px; color: #acb0b4; max-width: 42ch; }
.studio-tasks .eyebrow, .studio-library .eyebrow { font-size: 10px; letter-spacing: .15em; color: #c0c3c6; }
.studio-tasks .pagetitle { grid-template-columns: minmax(0,1.3fr) minmax(330px,1fr); align-items: end; gap: 40px; }
.studio-tasks .pagetitle .stats { background: transparent; border: 0; border-radius: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
.studio-tasks .pagetitle .stat { padding: 12px 0; border: 0; border-top: 1px solid #42484d; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 4px; }
.studio-tasks .pagetitle .stat + .stat { border-left: 0; }
.studio-tasks .pagetitle .stat strong { font-size: 32px !important; margin: 0; line-height: 1.25; font-weight: 500; letter-spacing: -.04em; }
.studio-tasks .pagetitle .stat:nth-child(3) strong { font-size: 23px !important; line-height: 1.74; }
.studio-tasks .pagetitle .stat > span { min-height: 0; font-size: 11px; line-height: 1.5; color: #a5aaaf; }
.studio-tasks .panel.queue.attention-inbox { background: #202326; border: 0; border-left: 2px solid #838a90; border-radius: 0 10px 10px 0; margin-bottom: 28px; }
.studio-tasks .attention-inbox summary { padding: 14px 18px; font-size: 13px; }
.studio-tasks .attention-list { padding: 0 18px 6px; }
.studio-tasks .attention-row { padding: 12px 2px; }
@media (min-width: 1100px) {
  .studio-tasks .attention-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; }
  .studio-tasks .attention-arrow { font-size: 0; }
  .studio-tasks .attention-arrow::after { content: '↗'; font-size: 19px; }
}
.studio-tasks .filterbar { background: none; border: 0; border-radius: 0; padding: 0 0 20px; border-bottom: 1px solid #383d42; margin: 28px 0 26px; }
.studio-tasks .filterbar input { background: #1e2023; }
.studio-tasks .compactboard { gap: 22px; counter-reset: stage; }
.studio-tasks .compactboard .column { background: transparent; border: 0; padding: 0; border-radius: 0; min-height: 180px; counter-increment: stage; animation: studio-stage-in 420ms var(--studio-ease) both; }
.studio-tasks .compactboard .column:nth-child(2) { animation-delay: 45ms; }
.studio-tasks .compactboard .column:nth-child(3) { animation-delay: 90ms; }
.studio-tasks .compactboard .column:nth-child(4) { animation-delay: 135ms; }
.studio-tasks .column h3 { display: flex; align-items: center; margin: 0 0 16px; padding: 0 0 14px; border-bottom: 1px solid #444a4f; font-size: 13px; font-weight: 600; }
.studio-tasks .column h3::before { content: '0' counter(stage); margin-right: 9px; font-size: 10px; font-weight: 400; font-variant-numeric: tabular-nums; color: #8a9096; }
.studio-tasks .columnhead { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #444a4f; }
.studio-tasks .columnhead h3 { margin: 0; padding: 0; border: 0; }
.studio-tasks .columnhead > span { color: #a3a8ad; font-size: 11px; font-variant-numeric: tabular-nums; }
.studio-tasks .compactwrap { background: #26292c; border: 1px solid #3d4248; border-radius: 9px; box-shadow: 0 5px 16px #0c0d0e33; transition: border-color 180ms ease, box-shadow 220ms ease, translate 220ms var(--studio-ease); margin-bottom: 14px; overflow: hidden; }
.studio-tasks .compactwrap:hover { border-color: #788087; box-shadow: 0 10px 24px #0c0d0e66; translate: 0 -3px; }
.studio-tasks .taskcard, .studio-tasks .compactcard { background: transparent; padding: 17px 14px !important; min-height: 0; }
.studio-tasks .taskcard:hover { background: #2a2e32; }
.studio-tasks .compactcard h4 { font-weight: 500; line-height: 1.65; margin: 14px 0 18px !important; min-height: 46px; }
.studio-tasks .compactcard .cardmeta { color: #abb0b4; }
.studio-tasks .compactcard .cardmeta > span:first-child { font-size: 10px; }
.studio-tasks .compactcard .cardfooter { border: 0; margin-top: 12px; padding-top: 0; }
.studio-tasks .cardtools { border-top: 1px solid #3e4348; padding: 2px 6px; justify-content: flex-end; opacity: .72; transition: opacity 180ms ease; }
.studio-tasks .compactwrap:hover .cardtools, .studio-tasks .compactwrap:focus-within .cardtools { opacity: 1; }
.studio-tasks .addtask { border: 1px dashed #444a4f; margin: 2px 0 0; min-height: 44px; font-size: 12px; width: 100%; }
.studio-tasks .addtask:hover { background: #272a2d; border-color: #838a90; }
.studio-progress { height: 3px; background: #3d4247; border-radius: 2px; overflow: hidden; }
.studio-progress > span { display: block; height: 100%; width: 100%; background: #acb0b4; transform-origin: left; transition: transform 400ms var(--studio-ease); }

/* Library reads like a studio archive. Images are not cropped or tilted. */
.studio-library .pagetitle { display: block; padding-bottom: 32px; border-bottom: 1px solid #474d53; }
.studio-library .pagetitle h1 { font-size: clamp(48px,5.6vw,84px); max-width: 14ch; }
.studio-library .pagetitle::after { content: 'ПУЛЬС / АРХИВ'; position: absolute; right: 0; bottom: 34px; font-size: 10px; letter-spacing: .16em; color: #8f949a; writing-mode: vertical-rl; }
.studio-library .brand-board { background: none; padding: 0; border: 0; border-radius: 0; margin-bottom: 38px; }
.studio-library .brand-intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start; margin-bottom: 28px; }
.studio-library .brand-intro > .eyebrow { display: none; }
.studio-library .brand-intro h2 { font-size: 21px; letter-spacing: -.04em; margin: 0; line-height: 1.3; }
.studio-library .brand-intro p { margin: 0; font-size: 12px; max-width: 38ch; justify-self: end; }
.studio-library .brand-board .brand-collage { display: block; columns: 2; column-gap: 28px; }
.studio-library .brand-board .brand-tile, .studio-library .brand-board .brand-tile:nth-child(n) { display: inline-block; width: 100%; break-inside: avoid; background: none; border: 0; border-radius: 0; margin: 0 0 32px; overflow: visible; vertical-align: top; }
.studio-library .reference-preview { aspect-ratio: auto; min-height: 0; padding: 20px; border: 1px solid #41474d; border-radius: 10px; background: #222528; overflow: hidden; transition: background-color 260ms ease, border-color 260ms ease; }
.studio-library .brand-board .reference-preview img, .studio-library .brand-board .reference-preview video { display: block; width: 100%; height: auto !important; max-height: none !important; object-fit: contain; border-radius: 4px; transition: scale 420ms var(--studio-ease), filter 300ms ease; }
.studio-library .brand-tile:hover .reference-preview { background: #2b2f33; border-color: #898f95; }
.studio-library .brand-tile:hover .reference-preview img { scale: 1.025; }
.studio-library .reference-info { display: grid; grid-template-columns: 1fr auto; padding: 14px 0 0; column-gap: 14px; row-gap: 5px; }
.studio-library .brand-board .brand-tile b { margin: 0; grid-column: 1; font-size: 13px; line-height: 1.6; font-weight: 500; }
.studio-library .reference-info small { grid-column: 1; font-size: 10px; letter-spacing: .03em; color: #959aa0; }
.studio-library .reference-open { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 0; margin: 0; width: 34px; height: 34px; border: 1px solid #4c5259; border-radius: 50%; display: grid; place-items: center; transition: background 180ms ease, rotate 240ms var(--studio-ease); }
.studio-library .reference-open::after { content: '↗'; font-size: 18px; }
.studio-library .brand-tile:hover .reference-open { background: #34383c; rotate: 45deg; }
.studio-library .library-section-heading { padding-top: 24px; border-top: 1px solid #41474d; margin-top: 32px; }
.studio-library .library-section-heading h2 { font-size: 24px; font-weight: 500; letter-spacing: -.04em; }
.studio-library .librarygrid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.studio-library .bannerpreview { background: #23262a; border: 1px solid #41474d; padding: 14px; border-radius: 10px; transition: border-color 200ms ease, translate 280ms var(--studio-ease); }
.studio-library .bannerpreview:hover { translate: 0 -3px; border-color: #898f95; }
.studio-library .bannerpreview img { width: 100%; height: auto; max-height: 420px; object-fit: contain; background: #17191b; }
.studio-library .bannerpreview b { margin-top: 14px; font-size: 13px; font-weight: 500; }
.studio-library > details.panel { background: transparent; border: 1px dashed #4e555c; padding: 18px 20px; border-radius: 8px; }

/* Native details and Radix dialogs retain their keyboard and focus behavior. */
.studio-page details[open] > :not(summary) { animation: studio-detail-in 260ms var(--studio-ease) both; }
[data-slot="dialog-content"].detail[data-state="open"], [data-slot="dialog-content"].taskdialog[data-state="open"] { animation: studio-dialog-in 280ms var(--studio-ease) both !important; }
[data-slot="dialog-overlay"][data-state="open"] { animation: studio-overlay-in 220ms ease both; }
@keyframes studio-page-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes studio-stage-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes studio-detail-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes studio-dialog-in { from { opacity: 0; scale: .975; translate: 0 8px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes studio-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1279px) {
  .studio-tasks .pagetitle { grid-template-columns: 1fr; gap: 26px; }
  .studio-tasks .pagetitle .stats { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
  .studio-tasks .pagetitle h1 { max-width: none; }
}
@media (max-width: 767px) {
  .studio-tasks, .studio-library { padding-top: 28px; }
  .studio-tasks .pagetitle h1 { font-size: 42px; max-width: 10ch; margin: 14px 0 16px; }
  .studio-library .pagetitle h1 { font-size: 52px; max-width: 9ch; margin: 14px 0 16px; }
  .studio-tasks .pagetitle .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
  .studio-tasks .pagetitle .stat strong { font-size: 28px !important; }
  .studio-tasks .pagetitle .stat:nth-child(3) strong { font-size: 21px !important; }
  .studio-library .brand-intro { grid-template-columns: 1fr; gap: 12px; }
  .studio-library .brand-intro p { justify-self: start; max-width: 40ch; }
  .studio-library .brand-board .brand-collage { columns: 1; }
  .studio-library .reference-preview { padding: 18px; }
  .studio-library .reference-info { padding-top: 12px; }
  .studio-library .brand-board .brand-tile b { font-size: 14px; }
  .studio-library .librarygrid { grid-template-columns: 1fr; gap: 22px; }
  .studio-library .pagetitle::after { bottom: 36px; font-size: 9px; }
  .studio-tasks .compactboard { gap: 28px; }
  .studio-tasks .compactcard h4 { font-size: 15px !important; }
  .studio-tasks .cardtools { opacity: 1; }
}
@media (hover: none) {
  .studio-tasks .compactwrap:hover, .studio-library .bannerpreview:hover { translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .studio-tasks .compactwrap:hover, .studio-library .bannerpreview:hover { translate: none; }
  .studio-library .brand-tile:hover .reference-preview img { scale: 1; }
  .studio-library .brand-tile:hover .reference-open { rotate: none; }
}


/* Layer: layout-02.css */
/* PULSE — Layout 02 / studio workbench.
   Shared top navigation; task action rail; editorial calendar; contact sheet. */
:root { --workbench-line: #40464b; --workbench-quiet: #8f959b; }

@media (min-width: 768px) {
  [data-slot="sidebar-gap"] { width: 0 !important; }
  [data-slot="sidebar-container"].side {
    inset: 0 0 auto !important; left: 0 !important; width: 100% !important;
    height: 78px !important; z-index: 30; border: 0; border-bottom: 1px solid #393e44;
  }
  .side [data-slot="sidebar-inner"] { flex-direction: row; align-items: center; background: #1c1e21; padding: 0 32px; gap: 28px; }
  .side [data-slot="sidebar-header"] { padding: 0; flex-shrink: 0; }
  .side .brand { font-size: 25px; gap: 10px; }
  .side .brandmark { width: 32px; height: 32px; border-radius: 9px; }
  .side .brandmark svg { width: 22px; height: 22px; }
  .side .branddot { display: none; }
  .side .workspace, .side .navlabel, .side .sidehint { display: none; }
  .side [data-slot="sidebar-content"] { flex: 1; flex-direction: row; align-items: center; justify-content: center; min-width: 0; overflow: visible; padding: 0; }
  .side [data-slot="sidebar-menu"] { flex-direction: row; gap: 4px; padding: 0; width: auto; align-items: center; }
  .side [data-slot="sidebar-menu-button"] { padding: 0 14px; height: 44px; min-width: 0; width: auto; border-radius: 0; color: #a3a8ad; font-size: 13px; border: 0; position: relative; background: none; overflow: visible; }
  .side [data-slot="sidebar-menu-button"] > svg { display: none; }
  .side [data-slot="sidebar-menu-button"] > small { position: static; color: #c5f46a; background: #33373c; border-radius: 4px; padding: 1px 5px; font-size: 10px; margin-left: 2px; }
  .side [data-slot="sidebar-menu-button"]:hover { background: #282c2f; color: #ebecee; }
  .side [data-slot="sidebar-menu-button"][data-active="true"] { background: none; border: 0; color: #e5f3d0; box-shadow: none; }
  .side [data-slot="sidebar-menu-button"][data-active="true"]::after { content: ''; position: absolute; bottom: -17px; height: 2px; background: #c5f46a; left: 14px; right: 14px; border-radius: 2px; }
  .side [data-slot="sidebar-footer"] { padding: 0; flex-direction: row; align-items: center; gap: 14px; flex-shrink: 0; }
  .side .profile { border: 0; margin: 0; padding: 0; min-height: 0; }
  .side .profile > div { display: none; }
  .side .profile .avatar { width: 32px; height: 32px; border-radius: 50%; background: #313539; color: #cce8a7; font-size: 12px; }
  .side .logout { padding: 8px 0; height: 40px; min-height: 40px; width: auto; border: 0; background: none; font-size: 0; }
  .side .logout::after { content: 'Выйти'; font-size: 11px; color: #999ea4; }
  .main { width: 100%; padding-top: 78px; }
  .topbar { display: none; }
  .content { max-width: 1680px; margin: 0 auto; padding: 42px 48px 24px; }
  .studio-page .pagetitle { margin-bottom: 30px; }
  .studio-page .pagetitle h1 { font-size: clamp(42px,4.2vw,68px); line-height: 1.06; font-weight: 500; letter-spacing: -.055em; margin: 15px 0 17px; }
  .studio-page .pagetitle > div > p { max-width: 54ch; color: #a3a8ad; font-size: 13px; }
  .studio-page .pagetitle .eyebrow { letter-spacing: .15em; font-size: 10px; color: #999ea3; }
  .studio-page footer { margin-top: 44px; padding-top: 20px; font-size: 10px; }
}

/* Tasks: the board has the centre, the action queue occupies a narrow rail. */
.studio-tasks .pagetitle h1 { max-width: none; }
.studio-tasks .pagetitle .stats { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.studio-tasks .pagetitle .stat { border-top: 1px solid #4d545b; }
.studio-tasks .pagetitle .stat strong { font-size: 29px !important; }
.studio-tasks .pagetitle .stat:nth-child(3) strong { font-size: 20px !important; line-height: 1.81; }
.studio-tasks .filterbar { margin: 0 0 24px; padding-bottom: 20px; }
.studio-tasks .compactboard { gap: 18px; }
.studio-tasks .columnhead { border-bottom: 1px solid #535a62; }
.studio-tasks .compactwrap { background: #282c2f; border-color: #474d53; box-shadow: 0 6px 18px #10111230; }
.studio-tasks .compactwrap:hover { border-color: #8e949a; background: #2f3337; }
.studio-tasks .taskcard:hover { background: transparent; }
.studio-tasks .compactcard h4 { font-size: 14px !important; font-weight: 500; }
.studio-tasks .cardtools { border-top-color: #40464b; }
@media (min-width: 1200px) {
  .studio-tasks { display: grid; grid-template-columns: minmax(0,1fr) 254px; gap: 0 32px; }
  .studio-tasks .pagetitle { grid-column: 1 / -1; grid-row: 1; grid-template-columns: minmax(0,1.15fr) minmax(430px,1fr); align-items: end; gap: 48px; margin-bottom: 42px; }
  .studio-tasks .filterbar { grid-column: 1; grid-row: 2; margin-bottom: 28px; }
  .studio-tasks .compactboard, .studio-tasks .tasklist { grid-column: 1; grid-row: 3; }
  .studio-tasks .panel.queue.attention-inbox { grid-column: 2; grid-row: 2 / 5; align-self: start; background: transparent; border: 0; border-left: 1px solid #444a4f; padding-left: 22px; border-radius: 0; margin: 0; }
  .studio-tasks .attention-inbox summary { padding: 0 0 18px; min-height: 44px; font-size: 12px; gap: 8px; }
  .studio-tasks .attention-list { display: block; padding: 0; }
  .studio-tasks .attention-row { align-items: flex-start; gap: 9px; padding: 18px 0; }
  .studio-tasks .attention-marker { margin-top: 6px; }
  .studio-tasks .attention-copy { gap: 8px; }
  .studio-tasks .attention-copy b { font-size: 12px; line-height: 1.7; }
  .studio-tasks .attention-meta { font-size: 10px; line-height: 1.7; }
  .studio-tasks .attention-arrow { font-size: 0; margin-top: 1px; }
  .studio-tasks .attention-arrow::after { content: '↗'; font-size: 17px; }
  .studio-tasks > .muted { grid-column: 1; grid-row: 4; margin: 24px 0 0; font-size: 11px; }
  .studio-tasks > .running { grid-column: 1 / -1; grid-row: 2; }
  .studio-tasks:has(> .running) .filterbar { grid-row: 3; }
  .studio-tasks:has(> .running) .attention-inbox { grid-row: 3 / 6; }
  .studio-tasks:has(> .running) .compactboard, .studio-tasks:has(> .running) .tasklist { grid-row: 4; }
  .studio-tasks:has(> .running) > .muted { grid-row: 5; }
  .studio-tasks > footer { grid-column: 1 / -1; grid-row: 6; }
  .studio-tasks .compactboard { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
  .studio-tasks .compactboard.filtered-board { grid-template-columns: minmax(0,1fr) !important; }
}

/* Content plan: the calendar becomes the page, rather than another panel. */
.studio-content .pagetitle { display: block; padding-bottom: 28px; border-bottom: 1px solid #464c53; }
.studio-content .pagetitle h1 { max-width: none; }
.studio-content .calendar-heading { margin: 24px 0; }
.studio-content .calendar-heading h2 { font-size: 19px; font-weight: 500; letter-spacing: -.03em; }
.studio-content .calendar-controls { padding: 18px 0 24px; border-bottom: 1px solid #3f4449; margin: 0 0 24px; }
.studio-content .calendar { border-radius: 0; border-color: #43484e; background: #43484e; }
.studio-content .weekday { background: #212426; color: #a9aeb2; padding: 15px 8px; }
.studio-content .calendar-day { background: #1b1d20; min-height: 140px; padding: 10px; }
.studio-content .calendar-day.outside { background: #17181a; }
.studio-content .calendar-post { background: #32363a; border-radius: 5px; border-left: 2px solid #969ca1 !important; padding: 12px 22px 12px 10px !important; transition: background 180ms ease, translate 220ms var(--studio-ease); }
.studio-content .calendar-post:hover { background: #3c4146; translate: 0 -2px; }
.studio-content .calendar-post b { font-size: 12px; font-weight: 500; line-height: 1.6; }
@media (min-width: 1400px) {
  .studio-content { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 0 30px; }
  .studio-content .pagetitle { grid-column: 1 / -1; }
  .studio-content .calendar-heading { grid-column: 1 / -1; }
  .studio-content .calendar-controls { grid-column: 1; align-self: start; display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 0 22px 0 0; border: 0; border-right: 1px solid #3f454b; }
  .studio-content .period-control { width: 100%; justify-content: space-between; gap: 3px; }
  .studio-content .period-control label { min-width: 0; }
  .studio-content .period-control .date-field { padding: 10px 8px; gap: 7px; }
  .studio-content .period-control .date-field-value { font-size: 12px; }
  .studio-content .period-control input { width: 100%; min-width: 0; font-size: 12px; }
  .studio-content .calendar-options { flex-direction: column; align-items: stretch; margin: 0; gap: 20px; }
  .studio-content .calendar-options select { width: 100%; }
  .studio-content .calendar-options .check { font-size: 11px; }
  .studio-content .calendar-scroll { grid-column: 2; min-width: 0; }
  .studio-content .calendar { min-width: 880px; }
  .studio-content .content-lifecycle-bar { grid-column: 1 / -1; }
  .studio-content > footer { grid-column: 1 / -1; }
}

/* Library: contact sheet, all references in view, large images on opening. */
.studio-library .pagetitle { display: grid; grid-template-columns: 1fr auto; margin-bottom: 32px; padding-bottom: 32px; }
.studio-library .pagetitle h1 { font-size: clamp(48px,5.7vw,86px); max-width: none; }
.studio-library .pagetitle::after { writing-mode: initial; bottom: 36px; }
.studio-library .brand-intro { grid-template-columns: 1fr 1fr; margin-bottom: 26px; }
.studio-library .brand-intro h2 { font-size: 18px; font-weight: 500; }
.studio-library .brand-intro p { max-width: 46ch; }
.studio-library .brand-board .brand-collage { display: grid; columns: initial; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.studio-library .brand-board .brand-tile:nth-child(n) { margin: 0; min-width: 0; }
.studio-library .reference-preview { padding: 0; background: #25282c; border: 0; border-radius: 4px; }
.studio-library .brand-board .reference-preview img { border-radius: 4px; }
.studio-library .reference-info { padding-top: 15px; gap: 6px 10px; }
.studio-library .brand-board .brand-tile b { font-size: 12px; }
.studio-library .reference-open { width: 29px; height: 29px; border-color: #4d545a; }
.studio-library .reference-open::after { font-size: 15px; }
.studio-library .brand-board { margin-bottom: 32px; }
.studio-library .librarygrid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.studio-library .bannerpreview { padding: 0; background: none; border: 0; border-radius: 4px; }
.studio-library .bannerpreview img { height: auto !important; max-height: none; border-radius: 4px; }
.studio-library .bannerpreview b, .studio-library .bannerpreview small { padding: 0; }
.studio-library > details.panel { max-width: none; padding: 16px 0; border: 0; border-top: 1px solid #484e55; border-bottom: 1px solid #484e55; border-radius: 0; }
.studio-library > details.panel summary { font-size: 12px; font-weight: 500; }
.studio-library .library-section-heading { border-top: 0; margin-top: 42px; padding-top: 0; }

/* Other rooms use their own information instead of the common metric header. */
.studio-reports .pagetitle, .studio-time .pagetitle, .studio-team .pagetitle { display: block; border-bottom: 1px solid #444a4f; padding-bottom: 28px; }
.studio-reports .panel { background: transparent; padding: 0; border: 0; border-radius: 0; }
.studio-reports .chart-card { background: #1f2225; border-color: #43494f; }
.studio-reports .reporthero { background: #303439; border: 0; padding: 32px; }
.studio-time .time-panels { grid-template-columns: 1.2fr 1fr; gap: 32px; }
.studio-time .panel { background: #1f2225; border-color: #43484e; padding: 28px; }
.studio-time .time-panels > .panel:first-child { background: transparent; border: 0; padding: 24px 28px 24px 0; }
.studio-time .time-panels .bigclock { font-size: clamp(72px,9vw,138px) !important; font-weight: 400; letter-spacing: -.065em; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 34px 0; }
.studio-time .time-panels > .panel:last-child { background: #1d2023; border: 0; border-left: 1px solid #4a5057; border-radius: 0; padding-left: 32px; }
.studio-team .panel { background: transparent; border: 0; padding: 0; }
.studio-team .memberrow { padding: 22px 0; border-bottom: 1px solid #3f4449; }
@media (min-width: 1100px) {
  .studio-reports .report-charts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .side [data-slot="sidebar-inner"] { padding: 0 24px; gap: 14px; }
  .side [data-slot="sidebar-menu-button"] { padding: 0 10px; font-size: 12px; }
  .side [data-slot="sidebar-menu-button"][data-active="true"]::after { left: 10px; right: 10px; }
  .side .brand { font-size: 22px; }
  .side [data-slot="sidebar-footer"] { gap: 10px; }
  .content { padding: 34px 32px 24px; }
  .studio-tasks .pagetitle { grid-template-columns: 1fr; gap: 26px; }
  .studio-tasks .pagetitle .stats { max-width: none; }
  .studio-tasks .attention-inbox { margin-bottom: 24px; }
  .studio-library .brand-board .brand-collage, .studio-library .librarygrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .studio-library .pagetitle::after { display: none; }
}
@media (min-width: 768px) and (max-width: 959px) {
  [data-slot="sidebar-container"].side { height: 116px !important; }
  .side [data-slot="sidebar-inner"] { flex-wrap: wrap; align-content: center; justify-content: space-between; gap: 8px 14px; }
  .side [data-slot="sidebar-header"] { order: 1; }
  .side [data-slot="sidebar-footer"] { order: 2; }
  .side [data-slot="sidebar-content"] { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .side [data-slot="sidebar-menu"] { gap: 10px; }
  .side [data-slot="sidebar-menu-button"][data-active="true"]::after { bottom: -5px; }
  .main { padding-top: 116px; }
}
@media (max-width: 767px) {
  .studio-page .pagetitle { display: block; padding-bottom: 24px; border-bottom: 1px solid #41474d; }
  .studio-page .pagetitle h1 { font-size: 43px; max-width: 11ch; }
  .studio-tasks .pagetitle .stats { margin-top: 28px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
  .studio-tasks .filterbar { margin-top: 20px; }
  .studio-tasks .compactboard { gap: 30px; }
  .studio-content .calendar-day { min-height: 52px; padding: 2px; }
  .studio-content .calendar-post { padding: 12px 22px 12px 10px !important; }
  .studio-library .pagetitle h1 { font-size: 48px; max-width: 10ch; }
  .studio-library .pagetitle::after { display: none; }
  .studio-library .brand-intro { grid-template-columns: 1fr; gap: 12px; }
  .studio-library .brand-board .brand-collage, .studio-library .librarygrid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 14px; }
  .studio-library .reference-info { grid-template-columns: 1fr; gap: 5px; }
  .studio-library .reference-open { display: none; }
  .studio-library .brand-board .brand-tile b { font-size: 11px; line-height: 1.65; }
  .studio-library .reference-info small { font-size: 9px; }
  .studio-library .bannerpreview b { font-size: 11px; }
  .studio-library .bannerpreview small { font-size: 10px; }
  .studio-time .time-panels { grid-template-columns: 1fr; }
  .studio-time .time-panels > .panel:first-child { padding: 0; }
  .studio-time .time-panels .bigclock { font-size: 70px !important; margin: 28px 0; }
  .studio-time .time-panels > .panel:last-child { padding: 24px 0 0; border-left: 0; border-top: 1px solid #4a5057; background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-content .calendar-post:hover { translate: none; }
}

/* Task inspector: keep the board context instead of centring a modal form. */
@media (min-width: 768px) {
  [data-slot="dialog-content"].taskdialog {
    inset: 0 0 0 auto !important; transform: none !important;
    width: min(620px,82vw) !important; max-width: 82vw !important;
    height: 100dvh !important; max-height: 100dvh !important;
    border-radius: 0 !important; border: 0; border-left: 1px solid #5d656d;
    box-shadow: -24px 0 80px #0d0e0f70; background: #212426 !important;
  }
  .taskdialog .dialog-body { border-radius: 0; height: 100dvh; max-height: 100dvh; padding: 38px 32px; }
  .taskdialog .dialog-body > [data-slot="dialog-title"] { font-size: 27px; font-weight: 500; letter-spacing: -.035em; }
  [data-slot="dialog-content"].taskdialog[data-state="open"] { animation: workbench-inspector-in 320ms var(--studio-ease) both !important; }
}
@media (max-width: 767px) {
  [data-slot="dialog-content"].taskdialog {
    inset: auto 0 0 auto !important; transform: none !important;
    width: 100vw !important; max-width: 100vw !important; height: auto !important;
    max-height: 94dvh !important; border-radius: 18px 18px 0 0 !important;
  }
  .taskdialog .dialog-body { border-radius: 18px 18px 0 0; max-height: 94dvh; padding: 30px 20px; }
  [data-slot="dialog-content"].taskdialog[data-state="open"] { animation: workbench-sheet-in 300ms var(--studio-ease) both !important; }
}
@keyframes workbench-inspector-in { from { opacity: 0; translate: 40px 0; scale: 1; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes workbench-sheet-in { from { opacity: 0; translate: 0 24px; scale: 1; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  [data-slot="dialog-content"].taskdialog[data-state="open"] { animation: none !important; }
}


/* GRAPHITE / PULSE — user review, 13 October 2026.
   One maintained UI layer; lime remains the brand signal. */
:root, .dark {
  --background: #16181b; --foreground: #eef2ef; --card: #222529;
  --border: #3f464d; --primary: #c5f46a;
  --pulse-surface: #1f2226; --pulse-raised: #2c3035;
  --pulse-muted: #b0bbc0; --pulse-subtle: #9ba9b1; --pulse-focus: #c5f46a;
}
body, .main { background: #16181b; color: #eef2ef; }
input, textarea, select, .date-field, [data-slot="select-trigger"] { border-radius: 11px; background-color: #1b1e21; color: #edf2ef; border-color: #49525a; }
input::placeholder, textarea::placeholder { color: #98a7af; }
label { color: #ccd5d8; }
.primary { background: #c5f46a; border-color: #c5f46a; color: #182016; }
.primary:hover:not(:disabled) { background: #d5ff8c; border-color: #d5ff8c; }
.secondary { background: #2d3136; color: #e3eceb; border-color: #4a525b; border-radius: 10px; }
.secondary:hover:not(:disabled) { background: #3a4046; border-color: #738990; }
.muted { color: #aab8bf; line-height: 1.75; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid #c5f46a; outline-offset: 4px; }

/* Floating rounded navigation, with meaningful account actions. */
@media (min-width: 768px) {
  [data-slot="sidebar-container"].side { inset: 12px 16px auto !important; width: calc(100% - 32px) !important; height: 72px !important; border: 1px solid #41484f; border-radius: 18px; box-shadow: 0 8px 28px #0c0d0e38; }
  .side [data-slot="sidebar-inner"] { background: #23272a; border-radius: 18px; padding: 0 22px; gap: 22px; }
  .side [data-slot="sidebar-content"] { overflow: visible; }
  .side [data-slot="sidebar-menu"] { gap: 4px; }
  .side [data-slot="sidebar-menu-button"] { border-radius: 10px; min-height: 44px; padding: 0 13px; gap: 8px; font-size: 12px; color: #b8c4c8; }
  .side [data-slot="sidebar-menu-button"] > svg { display: block; width: 16px; height: 16px; }
  .side [data-slot="sidebar-menu-button"][data-active="true"] { background: #c5f46a; color: #192219; box-shadow: 0 3px 12px #050d0750; }
  .side [data-slot="sidebar-menu-button"][data-active="true"]::after { display: none; }
  .side [data-slot="sidebar-menu-button"][data-active="true"] > small { background: #26351c; color: #d7f6b2; }
  .side [data-slot="sidebar-menu-button"]:not([data-active="true"]):hover { background: #34393f; color: #f0f5f2; }
  .side [data-slot="sidebar-footer"] { padding: 0; }
  .main { padding-top: 96px; }
  .content { padding-top: 38px; }
}
.account-menu { position: relative; }
.account-trigger { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 12px; border: 1px solid #4e565f; border-radius: 11px; font-size: 12px; color: #e0e9e9; background: #2c3136; white-space: nowrap; }
.account-trigger:hover, .account-trigger[aria-expanded="true"] { background: #393f46; border-color: #718b92; }
.account-chevron { color: #b6c7cc; transition: rotate 220ms ease; }
.account-trigger[aria-expanded="true"] .account-chevron { rotate: 180deg; }
.account-panel { position: absolute; right: 0; top: calc(100% + 12px); width: 270px; padding: 8px; border-radius: 16px; border: 1px solid #56606a; background: #282c31; box-shadow: 0 18px 60px #090a0c90; z-index: 80; animation: graphite-pop-in 200ms var(--studio-ease) both; }
.account-identity { display: grid; gap: 6px; padding: 14px 12px 18px; border-bottom: 1px solid #474f57; margin-bottom: 6px; }
.account-identity b { font-size: 14px; font-weight: 600; }
.account-identity small { font-size: 11px; color: #aabcc4; }
.account-panel > button { display: block; width: 100%; text-align: left; padding: 12px; min-height: 44px; font-size: 12px; border-radius: 9px; color: #dae6e7; }
.account-panel > button:hover { background: #3b4248; }
.account-panel > .account-exit { border-top: 1px solid #474f57; margin-top: 6px; padding-top: 15px; color: #f1c2b8; }

/* Team: people, invitations, workspace settings and security are separate. */
.teamspace.team-redesign { display: block; }
.team-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #474e56; padding-bottom: 18px; margin-bottom: 30px; }
.team-tabs button { padding: 11px 16px; min-height: 44px; border-radius: 10px; font-size: 13px; color: #b5c3c8; border: 1px solid transparent; }
.team-tabs button:hover { background: #2c3035; }
.team-tabs button.is-active { color: #d6f8aa; background: #2c3a2b; border-color: #657c4b; }
.team-view { animation: graphite-view-in 280ms var(--studio-ease) both; }
.team-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.team-section-head h2, .team-invite h2, .team-security h2 { font-size: 25px; font-weight: 500; letter-spacing: -.035em; margin: 0 0 10px; }
.team-section-head p { margin: 0; font-size: 13px; }
.member-count { display: inline-block; vertical-align: middle; margin-left: 12px; padding: 4px 8px; border: 1px solid #5d7460; border-radius: 6px; color: #cce6ad; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.role-guide { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 28px; }
.role-guide > div { padding: 20px 22px; border: 1px solid #434a52; border-radius: 14px; background: #22262a; }
.role-guide b { font-size: 13px; font-weight: 600; }
.role-guide p { font-size: 12px; color: #a9bbc3; line-height: 1.75; margin: 8px 0 0; max-width: 60ch; }
.member-table { border: 1px solid #485057; border-radius: 16px; background: #212529; }
.member-card { display: grid; grid-template-columns: 40px minmax(180px,1fr) 130px 130px 132px; align-items: center; gap: 18px; padding: 22px; border-bottom: 1px solid #3f464e; }
.member-card:last-child { border-bottom: 0; }
.member-initial { width: 38px; height: 38px; display: grid; place-items: center; background: #3b4248; border: 1px solid #59626c; border-radius: 11px; color: #dae8e9; font-size: 14px; }
.member-identity { display: grid; gap: 6px; min-width: 0; }
.member-identity b { font-size: 14px; font-weight: 500; }
.member-identity span { font-size: 12px; color: #a7b9c2; overflow-wrap: anywhere; }
.member-role, .member-status { font-size: 12px; color: #c2d0d5; }
.member-status.active { color: #c7e6a4; }
.member-status.inactive { color: #c0a9a3; }
.member-protected { color: #8fa5af; font-size: 11px; text-align: right; }
.member-menu { position: relative; }
.member-menu > summary { padding: 10px 12px; border: 1px solid #565f69; border-radius: 9px; font-size: 12px; cursor: pointer; color: #d4e2e6; }
.member-menu > div { position: absolute; top: calc(100% + 8px); right: 0; z-index: 12; padding: 8px; min-width: 240px; border-radius: 12px; background: #2f343a; border: 1px solid #5a727b; box-shadow: 0 14px 36px #0a0b0d80; }
.member-menu button { display: block; width: 100%; text-align: left; font-size: 12px; padding: 12px; border-radius: 7px; }
.member-menu button:hover { background: #414850; }
.danger-text { color: #f3b9aa; }
.access-confirm { margin-top: 24px; padding: 24px; background: #332a29; border: 1px solid #795b53; border-radius: 14px; }
.access-confirm p { font-size: 13px; color: #d0b7af; margin: 12px 0 20px; }
.access-confirm button { margin-right: 10px; }
.team-invite, .team-security { max-width: 820px; padding: 30px; border: 1px solid #4f5860; border-radius: 18px; background: #24282b; }
.team-invite > .eyebrow { color: #b6d497; display: block; margin-bottom: 14px; }
.team-invite > p { max-width: 68ch; font-size: 13px; margin: 0 0 28px; }
.team-invite .inviteform { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: end; }
.team-invite .inviteform label { display: grid; gap: 10px; margin: 0; }
.team-invite .inviteform button { margin: 0; min-height: 44px; }
.team-invite .invite-help { font-size: 12px; color: #a6bac3; line-height: 1.8; margin: 18px 0 0; }
.inviteresult { margin-top: 28px; padding: 20px; border-radius: 12px; background: #273831; border: 1px solid #57724b; display: grid; gap: 14px; }
.pending-invitations { border-top: 1px solid #474f57; margin-top: 30px; padding-top: 26px; }
.pending-invitations h3 { font-size: 15px; margin: 0 0 18px; font-weight: 500; }
.invitation-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid #474f57; }
.invitation-row > div { display: grid; gap: 7px; }
.invitation-row b { font-size: 12px; overflow-wrap: anywhere; }
.invitation-row small { color: #a0b5c0; font-size: 11px; }
.team-security { max-width: 650px; }
.team-security > p { margin: 0 0 26px; font-size: 13px; }
.team-security form { display: grid; gap: 22px; }
.team-security form label { display: grid; gap: 10px; margin: 0; }
.field-help { font-size: 11px; color: #a7b9c1; margin: -8px 0 0; }

/* Workspace settings are composed cards, not a vertical wall of controls. */
.settings-redesign { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; border: 0; margin: 0; padding: 0; }
.settings-redesign > .team-section-head { grid-column: 1 / -1; margin-bottom: 4px; }
.setting-card { padding: 26px; border: 1px solid #4a525b; border-radius: 16px; background: #25292d; min-width: 0; }
.setting-card h3 { font-size: 17px; font-weight: 500; margin: 0 0 12px; letter-spacing: -.02em; }
.setting-card p { margin: 0 0 22px; font-size: 12px; }
.rate-setting form { display: flex; align-items: flex-end; gap: 14px; margin-top: 26px; }
.rate-setting label { display: grid; gap: 10px; margin: 0; min-width: 0; flex: 1; }
.rate-setting input { width: 100%; }
.rate-setting button { min-height: 44px; white-space: nowrap; }
.setting-switch.check { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 16px 0; margin: 0; }
.setting-switch span { display: grid; gap: 8px; }
.setting-switch b { font-size: 13px; font-weight: 500; }
.setting-switch small { color: #a8bec7; font-size: 12px; line-height: 1.7; }
.setting-switch input { flex-shrink: 0; }
.setting-card .push-settings { border-top: 1px solid #4a525b; padding-top: 22px; margin-top: 16px; }
.setting-card .push-settings h3 { font-size: 14px; }
.setting-card .push-settings p { margin: 14px 0 0; font-size: 11px; }
.backup-setting details { margin-top: 22px; }
.backup-setting details summary { font-size: 12px; color: #b8cbd2; }
.backup-setting details p { margin: 16px 0 0; }
.audit-setting { align-self: start; }
.audit-setting > summary { font-size: 15px; font-weight: 500; cursor: pointer; }
.audit-list { max-height: 340px; overflow-y: auto; margin-top: 22px; }
.audit-list p { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid #4a525b; margin: 0; }
.audit-list time { color: #8da6b3; font-size: 10px; }
.audit-list b { font-size: 12px; font-weight: 500; }

/* Rounded shells and calendar cells. */
.studio-time .time-panels > .panel:last-child { border: 1px solid #4d565e; background: #272b2f; border-radius: 18px; padding: 30px; }
.studio-content .calendar { border-radius: 18px; overflow: hidden; border: 1px solid #505861; background: #353b41; gap: 4px; padding: 4px; }
.studio-content .weekday { border-radius: 8px; background: #32383e; color: #bacfd7; }
.studio-content .calendar-day { border-radius: 10px; background: #25292d; }
.studio-content .calendar-day.outside { background: #1f2225; }
.studio-content .calendar-post { background: #373d44; border-left-color: #98bd87 !important; color: #e3efec; }
.studio-content .calendar-post:hover { background: #474e56; }
.studio-content .calendar-post small { color: #c1d5da; }
.studio-content .calendar-day.today { box-shadow: inset 0 0 0 2px #a9d16e; }
.studio-tasks .compactwrap { background: #2d3238; border-color: #515a64; }
.studio-tasks .compactwrap:hover { background: #383e45; border-color: #91acae; }
.studio-tasks .cardtools { border-color: #4a525a; }
.studio-tasks .studio-progress { background: #4f5860; }
.studio-tasks .studio-progress span { background: #c5f46a; }
.studio-tasks .panel.queue.attention-inbox { border-color: #5b656f; background: #25292d; }
@media (min-width: 1200px) {
  .studio-tasks .panel.queue.attention-inbox { border: 1px solid #4a525b; border-radius: 14px; padding: 16px; }
}
.studio-tasks .attention-row { border-color: #49525a; }
.studio-tasks .attention-copy b { color: #e0ebee; }
.studio-tasks .attention-meta { color: #a4bdc7; }
.studio-library .reference-preview { background: #2c3035; }
.studio-library .brand-tile:hover .reference-preview { background: #3f464c; }

/* Task inspector and creation sheet: rounded, with an inset from the screen. */
@media (min-width: 768px) {
  [data-slot="dialog-content"].taskdialog { inset: 16px 16px 16px auto !important; height: calc(100dvh - 32px) !important; max-height: calc(100dvh - 32px) !important; border-radius: 22px !important; background: #2a2e33 !important; border: 1px solid #607984; }
  .taskdialog .dialog-body { height: 100%; max-height: calc(100dvh - 32px); border-radius: 22px; }
}

/* Publication editor: information first, attachments and destructive action last. */
[data-slot="dialog-content"].content-editor { width: min(1120px,calc(100vw - 48px)) !important; max-width: calc(100vw - 48px) !important; height: min(920px,calc(100dvh - 48px)) !important; max-height: calc(100dvh - 48px) !important; border-radius: 22px !important; background: #2a2e33 !important; border-color: #607984; }
.content-editor .dialog-body { height: 100%; max-height: calc(100dvh - 48px); border-radius: 22px; padding: 30px 34px; display: flex; flex-direction: column; gap: 22px; }
.content-editor .dialog-body > * { order: 2; flex-shrink: 0; }
.content-editor .dialog-body > [data-slot="dialog-title"], .content-editor .dialog-body > [data-slot="dialog-description"] { order: 0; margin: 0; }
.content-editor .dialog-body > [data-slot="dialog-title"] { font-size: 25px; font-weight: 500; line-height: 1.35; letter-spacing: -.03em; }
.content-editor .dialog-body > [data-slot="dialog-description"] { color: #a8bdc8; font-size: 12px; margin-top: -12px; }
.content-editor .tabbar { order: 1; position: sticky; top: -1px; z-index: 4; background: #2a2e33; padding: 12px 0; margin: -6px 0 0; border-bottom: 1px solid #5b656f; display: flex; gap: 6px; }
.content-editor .tabbar button { min-height: 42px; border: 0; background: transparent; color: #bccfd7; border-radius: 9px; padding: 10px 18px; }
.content-editor .tabbar button.primary { background: #c5f46a; color: #172117; }
.content-editor .tabbar button:hover:not(.primary) { background: #3f464d; }
.content-editor .taskform { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin: 0; }
.content-editor .taskform > * { grid-column: 1 / -1; margin: 0; min-width: 0; }
.content-editor .taskform > label { display: grid; gap: 10px; }
.content-editor .taskform .publication-topic input { font-size: 16px; min-height: 48px; }
.content-editor .taskform .publication-copy textarea { min-height: 210px; line-height: 1.8; padding: 16px; resize: vertical; }
.content-editor .taskform > .publication-schedule, .content-editor .taskform > .publication-rubric { grid-column: auto; }
.content-editor .taskform fieldset { padding: 20px; border: 1px solid #555e67; border-radius: 13px; }
.content-editor .taskform legend { color: #d1e0e5; font-size: 12px; padding: 0 8px; }
.content-editor .taskform fieldset small { display: block; margin-top: 16px; color: #9cb6c1; line-height: 1.7; font-size: 11px; }
.content-editor .checks { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.content-editor .formrow { gap: 20px; }
.content-editor .content-attachments { padding: 18px 20px; background: #24282c; border: 1px solid #555e68; border-radius: 13px; }
.content-attachments > summary { font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; cursor: pointer; }
.content-attachments > summary span { color: #b2d58e; margin-left: auto; }
.content-attachments > summary::after { content: '⌄'; color: #b2d58e; margin-left: 12px; transition: rotate 220ms ease; }
.content-attachments[open] > summary::after { rotate: 180deg; }
.content-attachments > :not(summary) { margin-top: 20px; }
.content-attachments .media-grid { grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 16px; }
.content-attachments .media-preview { height: 140px !important; object-fit: contain; border-radius: 9px; background: #1d2024; }
.content-attachments .secondary { font-size: 11px; margin-top: 10px; min-height: 38px; }
.content-editor .taskform > details:not(.content-attachments) { padding: 18px 20px; border: 1px solid #555e68; border-radius: 13px; }
.content-editor .taskform > details summary { font-size: 12px; }
.content-editor .taskform > details p { margin: 16px 0; font-size: 11px; }
.content-editor .taskform > .muted { font-size: 11px; line-height: 1.75; margin-bottom: -10px; }
.content-editor .content-lifecycle-actions { order: 9; border: 0; border-top: 1px solid #5b656f; border-radius: 0; background: none; padding: 22px 0 0; margin: 6px 0 0; }
.content-lifecycle-actions[data-deleted="false"] > p { display: none; }
.content-editor .content-lifecycle-actions > .content-delete { border: 0; background: none; color: #f2b5a8; padding-left: 0; font-size: 12px; }
.content-editor .content-delete-confirm { padding: 18px; border: 1px solid #815e59; border-radius: 12px; background: #3a3031; }
.content-editor .content-delete-confirm p { margin: 0 0 18px; font-size: 12px; }
.content-editor .discussion, .content-editor .discussionform { margin-top: 8px; }
.content-editor .panel { margin: 0; }
.content-editor .discussion article { background: #24282d; border-color: #5b656f; }

/* Per-channel disclosures keep long forms manageable. */
.content-editor .placement-card, .content-editor .measurement-card { padding: 0; background: #262a2e; border: 1px solid #555e68; border-radius: 15px; overflow: hidden; }
.placement-card > summary, .measurement-card > summary { display: flex; align-items: center; gap: 14px; padding: 20px 22px; min-height: 62px; cursor: pointer; list-style: none; }
.placement-card > summary::-webkit-details-marker, .measurement-card > summary::-webkit-details-marker { display: none; }
.placement-card > summary::after, .measurement-card > summary::after { content: '⌄'; margin-left: auto; color: #bfdc9d; transition: rotate 240ms ease; }
.placement-card[open] > summary::after, .measurement-card[open] > summary::after { rotate: 180deg; }
.placement-card > summary b, .measurement-card > summary b { font-size: 15px; font-weight: 500; }
.placement-card > summary small, .measurement-card > summary small { font-size: 11px; color: #a9c1ce; }
.channel-date { font-size: 11px; color: #98b3c0; margin-left: auto; }
.content-editor .placement-card > form { padding: 24px; border-top: 1px solid #555e68; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.placement-card form label { display: grid; gap: 10px; margin: 0; min-width: 0; }
.placement-card .placement-copy { grid-column: 1 / -1; }
.placement-copy textarea { min-height: 180px; line-height: 1.8; padding: 16px; }
.placement-card form > button { grid-column: 1 / -1; justify-self: start; min-width: 180px; }
.measurement-help { padding: 0 4px; background: none; border: 0; border-radius: 0; }
.measurement-help summary { font-size: 12px; color: #bcd1dc; cursor: pointer; }
.measurement-help summary { padding: 8px 0; margin: 0; line-height: 1.6; min-height: 40px; }
.measurement-help p { font-size: 12px; margin: 16px 0 0; }
.measurement-card > :not(summary) { margin: 0 24px 24px; }
.measurement-card > p { padding-top: 4px; font-size: 12px; }
.measurement-form { padding: 20px; border: 1px solid #555e67; border-radius: 12px; background: #2d3237; }
.measurement-form > summary { font-size: 13px; cursor: pointer; }
.measurement-form > form { margin-top: 24px; }
.measurement-form .formrow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px 18px; margin: 24px 0; }
.measurement-form label { display: grid; gap: 10px; margin: 0; }
.measurement-card .metricgrid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.measurement-card .metricgrid > div { background: #343a40; border-color: #58616b; }

/* Scrollbars: one unobtrusive thumb, no arrow buttons. */
* { scrollbar-width: thin; scrollbar-color: #647d89 transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #647d89; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #9ab875; }
::-webkit-scrollbar-button, ::-webkit-scrollbar-button:single-button { display: none !important; width: 0 !important; height: 0 !important; }
::-webkit-scrollbar-corner { background: transparent; }
@supports selector(::-webkit-scrollbar) {
  *, .dialog-body, .compactboard .cards { scrollbar-width: auto !important; scrollbar-color: auto !important; }
  .dialog-body::-webkit-scrollbar-thumb, .compactboard .cards::-webkit-scrollbar-thumb { background: #647d89 !important; border-radius: 20px; }
  .dialog-body::-webkit-scrollbar-button, .compactboard .cards::-webkit-scrollbar-button { display: none !important; width: 0 !important; height: 0 !important; }
}

/* Motion: page, disclosure, panel and server-confirmed timer states. */
.studio-page { animation: graphite-page-in 420ms var(--studio-ease) both; }
.studio-page details[open] > :not(summary), .content-editor details[open] > :not(summary) { animation: graphite-disclosure-in 280ms var(--studio-ease) both; }
.side [data-slot="sidebar-menu-button"] { transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, translate 180ms ease; }
.side [data-slot="sidebar-menu-button"]:active { translate: 0 1px; }
.primary:active:not(:disabled), .secondary:active:not(:disabled), .account-trigger:active { scale: .98; }
[data-slot="dialog-content"].content-editor[data-state="open"] { animation: graphite-editor-in 320ms var(--studio-ease) both !important; }
.focus-state { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; padding: 7px 11px; border: 1px solid #535d66; border-radius: 30px; background: #2d3136; color: #b0c5cf; margin-top: 20px; animation: graphite-pop-in 260ms var(--studio-ease) both; }
.focus-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #829ba8; }
.is-running .focus-state { border-color: #82a956; background: #2b3b26; color: #d4f4ae; }
.is-running .focus-state::before { background: #c5f46a; animation: graphite-timer-signal 900ms ease 3; }
.bigclock { animation: graphite-clock-in 440ms var(--studio-ease) both; }
.is-running .bigclock { color: #c5f46a; text-shadow: 0 0 28px #c5f46a15; }
.is-running .time-panels > .panel:first-child { border-color: #8ead65; }
@keyframes graphite-page-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes graphite-view-in { from { opacity: 0; translate: 8px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes graphite-pop-in { from { opacity: 0; translate: 0 7px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes graphite-disclosure-in { from { opacity: 0; translate: 0 -5px; } to { opacity: 1; translate: 0 0; } }
@keyframes graphite-editor-in { from { opacity: 0; translate: 0 18px; scale: .985; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes graphite-clock-in { from { opacity: .3; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }
@keyframes graphite-timer-signal { 50% { box-shadow: 0 0 0 5px #c5f46a19; } }
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  .studio-page details:not(.member-menu), .content-editor details { interpolate-size: allow-keywords; }
  .studio-page details:not(.member-menu)::details-content, .content-editor details::details-content { block-size: 0; content-visibility: hidden; overflow: clip; transition: block-size 300ms var(--studio-ease), content-visibility 300ms allow-discrete; }
  .studio-page details:not(.member-menu)[open]::details-content, .content-editor details[open]::details-content { block-size: auto; content-visibility: visible; }
}
[data-slot="dialog-content"].content-editor[data-state="closed"] { animation: graphite-editor-out 180ms ease both !important; }
[data-slot="dialog-content"].taskdialog[data-state="closed"] { animation: graphite-inspector-out 180ms ease both !important; }
[data-slot="dialog-overlay"][data-state="closed"] { animation: graphite-overlay-out 180ms ease both; }
@keyframes graphite-editor-out { to { opacity: 0; translate: 0 12px; scale: .99; } }
@keyframes graphite-inspector-out { to { opacity: 0; translate: 20px 0; } }
@keyframes graphite-overlay-out { to { opacity: 0; } }

@media (min-width: 768px) and (max-width: 1199px) {
  [data-slot="sidebar-container"].side { height: 116px !important; }
  .side [data-slot="sidebar-inner"] { flex-wrap: wrap; align-content: center; justify-content: space-between; gap: 8px 14px; }
  .side [data-slot="sidebar-header"] { order: 1; }
  .side [data-slot="sidebar-footer"] { order: 2; }
  .side [data-slot="sidebar-content"] { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .side [data-slot="sidebar-menu-button"] { padding: 0 10px; font-size: 12px; }
  .main { padding-top: 140px; }
  .member-card { grid-template-columns: 40px minmax(160px,1fr) 120px 120px; gap: 14px; }
  .member-role { grid-column: 2; grid-row: 2; }
  .member-status { grid-column: 3; grid-row: 1; }
  .member-menu, .member-protected { grid-column: 4; grid-row: 1 / 3; }
  .settings-redesign { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 959px) {
  .side [data-slot="sidebar-menu-button"] > svg { display: none; }
}
@media (max-width: 767px) {
  .topbar { margin: 10px; border: 1px solid #4a525a; border-radius: 14px; background: #272b2f; }
  [data-mobile="true"] { background: #262b2f; }
  [data-mobile="true"] .account-menu { width: 100%; }
  [data-mobile="true"] .account-trigger { width: 100%; }
  [data-mobile="true"] .account-panel { top: auto; bottom: calc(100% + 12px); width: 100%; }
  .team-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 22px; }
  .team-tabs button { font-size: 12px; padding: 10px 11px; text-align: center; }
  .team-section-head { flex-direction: column; gap: 18px; }
  .team-section-head h2, .team-invite h2, .team-security h2 { font-size: 23px; }
  .role-guide { grid-template-columns: 1fr; gap: 12px; }
  .member-card { grid-template-columns: 36px minmax(0,1fr); gap: 12px; padding: 20px 16px; }
  .member-role { grid-column: 2; grid-row: 2; }
  .member-status { grid-column: 2; grid-row: 3; }
  .member-menu, .member-protected { grid-column: 2; grid-row: 4; text-align: left; justify-self: start; }
  .member-menu > div { left: 0; right: auto; min-width: 220px; }
  .team-invite, .team-security { padding: 22px 18px; }
  .team-invite .inviteform { grid-template-columns: 1fr; gap: 16px; }
  .team-invite .invite-help { margin-top: 20px; }
  .settings-redesign { grid-template-columns: 1fr; gap: 16px; }
  .setting-card { padding: 22px 18px; }
  .rate-setting form { flex-direction: column; align-items: stretch; }
  .rate-setting label { width: 100%; }
  .invitation-row { align-items: flex-start; }
  .studio-time .time-panels > .panel:last-child { padding: 24px 18px; border-radius: 16px; }
  .studio-content .calendar { gap: 3px; padding: 3px; border-radius: 15px; }
  .studio-content .weekday { border-radius: 6px; }
  .studio-content .calendar-day { border-radius: 7px; }
  [data-slot="dialog-content"].taskdialog { inset: auto 8px 8px auto !important; width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important; border-radius: 22px !important; background: #2a2e33 !important; }
  .taskdialog .dialog-body { border-radius: 22px; padding: 30px 20px; }
  [data-slot="dialog-content"].content-editor { width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important; height: calc(100dvh - 24px) !important; max-height: calc(100dvh - 24px) !important; border-radius: 20px !important; }
  .content-editor .dialog-body { max-height: calc(100dvh - 24px); padding: 28px 18px; border-radius: 20px; gap: 20px; }
  .content-editor .dialog-body > [data-slot="dialog-title"] { font-size: 21px; }
  .content-editor .tabbar { gap: 3px; flex-wrap: wrap; }
  .content-editor .tabbar button { font-size: 11px; padding: 10px 9px; min-height: 40px; }
  .content-editor .taskform { grid-template-columns: 1fr; gap: 22px; }
  .content-editor .taskform > .publication-schedule, .content-editor .taskform > .publication-rubric { grid-column: 1; }
  .content-editor .taskform .publication-copy textarea { min-height: 180px; }
  .content-editor .placement-card > form { grid-template-columns: 1fr; padding: 20px 16px; gap: 22px; }
  .placement-card > summary, .measurement-card > summary { padding: 18px 16px; flex-wrap: wrap; gap: 8px 12px; }
  .channel-date { width: 100%; order: 4; margin-left: 0; }
  .measurement-card > :not(summary) { margin: 0 16px 20px; }
  .measurement-form { padding: 18px 14px; }
  .measurement-form .formrow, .measurement-card .metricgrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .content-editor .checks { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  details::details-content { transition: none !important; }
  button:active { scale: 1 !important; translate: none !important; }
  [data-slot="dialog-content"].content-editor[data-state], [data-slot="dialog-content"].taskdialog[data-state] { animation: none !important; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  [data-slot="dialog-content"].taskdialog[data-state="closed"] { animation: graphite-sheet-out 180ms ease both !important; }
}
@keyframes graphite-sheet-out { to { opacity: 0; translate: 0 24px; } }

/* Task filters use the existing accessible select primitives. */
.account-chevron { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; padding: 0; border: 1px solid #c5f46a66; border-radius: 50%; background: #c5f46a16; color: #c5f46a; font-size: 22px; font-weight: 600; line-height: 1; }
.account-trigger[aria-expanded="true"] .account-chevron { background: #c5f46a; color: #1b2316; border-color: #c5f46a; }
.filterbar > .pulse-filter-select { min-width: 144px; height: 44px; border-radius: 11px; padding: 0 12px; background: #1e2226; border: 1px solid #4b555e; color: #edf0ee; gap: 12px; }
.filterbar > .pulse-filter-select > svg { color: #c5f46a; }
.pulse-select-popup { min-width: var(--radix-select-trigger-width); padding: 5px; border: 1px solid #4b555e; border-radius: 14px !important; background: #262b30 !important; color: #edf0ee !important; box-shadow: 0 14px 36px #0006; overflow: hidden; }
.pulse-select-popup .pulse-select-option { min-height: 40px; border-radius: 9px; padding: 10px 32px 10px 12px; font-size: 13px; cursor: pointer; }
.pulse-select-popup .pulse-select-option[data-highlighted] { background: #3b4249; color: #fff; outline: none; }
.pulse-select-popup .pulse-select-option[data-state="checked"] { background: #c5f46a; color: #1b2316; }
.pulse-select-popup[data-state="open"] { animation: pulse-select-in 180ms ease-out both; }
.pulse-select-popup[data-state="closed"] { animation: pulse-select-out 120ms ease both; }
@keyframes pulse-select-in { from { opacity: 0; translate: 0 -5px; } to { opacity: 1; translate: 0 0; } }
@keyframes pulse-select-out { to { opacity: 0; translate: 0 -3px; } }
.calendar-post[data-can-drag="true"] { cursor: grab; }
.calendar-post[data-can-drag="true"]:active { cursor: grabbing; }
.calendar-post.is-dragging { opacity: .38; scale: .98; }
.calendar-day.drop-target { background: #c5f46a16; box-shadow: inset 0 0 0 2px #c5f46a; transition: background-color 140ms ease, box-shadow 140ms ease; }
@media (max-width: 767px) {
  .filterbar > .pulse-filter-select { width: 100%; min-width: 0; font-size: 12px; }
}

/* Keep the scroll rail inside the rounded shell, visible only while scrolling. */
.content-editor .tabbar { isolation: isolate; }
.content-editor .tabbar::before { content: ""; position: absolute; inset: -34px -34px 0; background: inherit; z-index: -1; pointer-events: none; }
@media (max-width: 767px) {
  .content-editor .tabbar::before { inset: -30px -18px 0; }
}
[data-slot="dialog-content"].taskdialog,
[data-slot="dialog-content"].content-editor { overflow: hidden !important; padding: 6px !important; }
.taskdialog .dialog-body,
.content-editor .dialog-body { height: 100% !important; max-height: 100% !important; min-height: 0; border-radius: 17px; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.taskdialog .dialog-body.is-scrolling,
.content-editor .dialog-body.is-scrolling { scrollbar-color: #78838b transparent; }
@supports selector(::-webkit-scrollbar) {
  .taskdialog .dialog-body::-webkit-scrollbar,
  .content-editor .dialog-body::-webkit-scrollbar { width: 4px; }
  .taskdialog .dialog-body::-webkit-scrollbar-track,
  .content-editor .dialog-body::-webkit-scrollbar-track { margin-block: 15px; }
  .taskdialog .dialog-body::-webkit-scrollbar-thumb,
  .content-editor .dialog-body::-webkit-scrollbar-thumb { background: transparent !important; border-radius: 8px; }
  .taskdialog .dialog-body.is-scrolling::-webkit-scrollbar-thumb,
  .content-editor .dialog-body.is-scrolling::-webkit-scrollbar-thumb { background: #78838b !important; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-select-popup[data-state] { animation: none !important; }
}

.calendar-post[data-can-drag="true"] { user-select: none; }
.day-state-icon { display: none; }
@media (max-width: 767px) {
  .calendar .day-count { display: none; }
  .calendar .day-state-icon { display: grid; place-items: center; width: 18px; height: 18px; margin: 4px auto 0; border-radius: 50%; color: #aeb7bc; font-size: 13px; line-height: 1; }
  .day-state-icon.attention { background: #efb19222; color: #efb192; font-weight: 700; }
  .day-state-icon.review { background: #d7b4f522; color: #d7b4f5; }
  .day-state-icon.draft { color: #f0cf83; }
  .day-state-icon.ready { color: #c5f46a; }
  .day-state-icon.published { background: #c5f46a22; color: #c5f46a; }
}
