@font-face {
  font-family: Ploni;
  src: url('/assets/ploni-400.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Ploni;
  src: url('/assets/ploni-600.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Ploni;
  src: url('/assets/ploni-700.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font: Ploni, Arial, sans-serif;
  --ink: #1e1928;
  --black: #17121e;
  --smoke: #685f74;
  --description: #726b7e;
  --line: #eae5ef;
  --line-strong: #ded6e8;
  --paper: #fff;
  --canvas: #fcfbfd;
  --canvas-tint: #f8f5fc;
  --lilac: #f0ebff;
  --purple-text: #4d337d;
  --purple: #593ca0;
  --focus: #7656cc;
  --radius: 15px;
  --page-gutter: clamp(20px, 3.1vw, 55px);
  font: 16px/1.35 var(--font);
  color: var(--ink);
  background: var(--paper);
}
*,
*::after,
*::before { box-sizing: border-box; }
body { margin: 0; min-inline-size: 300px; }
a { color: var(--purple); }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button, input, select, textarea { min-inline-size: 0; }
button[aria-pressed=true] { cursor: default; }
input, textarea, select { accent-color: var(--focus); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex="0"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, p, fieldset { margin: 0; }
svg { flex: 0 0 auto; vertical-align: middle; }
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tone-lilac    { --tone: #efe9ff; --tone-border: #c9b8ef; --tone-ink: #4f337b; }
.tone-rose     { --tone: #fceaf1; --tone-border: #edb9d1; --tone-ink: #783c5c; }
.tone-sand     { --tone: #f8efdf; --tone-border: #e6cbaa; --tone-ink: #6b4b29; }
.tone-lavender { --tone: #eae5f8; --tone-border: #beb0e0; --tone-ink: #48336d; }
.tone-pearl    { --tone: #f3eff7; --tone-border: #d8ccdf; --tone-ink: #5f4968; }

.primary-button, .secondary-button, .quiet-button, .icon-button, .today-button, .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-block-size: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 13px;
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .13s, border-color .13s;
}
.primary-button { background: var(--black); color: white; }
.primary-button:hover { background: #3d2c53; }
.secondary-button { background: white; color: var(--ink); border-color: var(--line-strong); }
.secondary-button:hover { background: #f8f4fc; border-color: #c8b7de; }
.quiet-button { background: none; color: var(--purple); min-block-size: 30px; padding: 3px 6px; }
.quiet-button:hover { background: var(--lilac); }
.icon-button { min-inline-size: 34px; inline-size: 34px; min-block-size: 34px; padding: 0; background: white; border-color: var(--line); color: var(--ink); }
.icon-button:hover { background: var(--canvas-tint); border-color: var(--line-strong); }
.today-button { background: var(--canvas-tint); color: var(--purple-text); min-block-size: 30px; padding: 4px 11px; }
.today-button:hover { background: var(--lilac); }

.studio { max-inline-size: 1760px; margin-inline: auto; padding-inline: var(--page-gutter); }
.brand-logo { display: block; object-fit: contain; }
.brand-divider { display: inline-block; flex: 0 0 1px; block-size: 24px; background: var(--line-strong); }
.connection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--description);
  font-size: .89rem;
  font-weight: 600;
  white-space: nowrap;
}
.connection-dot { inline-size: 7px; block-size: 7px; border-radius: 50%; background: #8d72cb; box-shadow: 0 0 0 3px #f1eaff; }
.connection.is-stale .connection-dot { background: #a1682f; box-shadow: 0 0 0 3px #faeddf; }
.connection.is-stale { color: #765733; }

.studio { padding-block: 22px 16px; }
.demo-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  margin-block-end: 18px;
  background: #faf7ff;
  color: var(--purple-text);
  border: 1px solid #eae0fc;
  border-radius: 9px;
  font-size: .87rem;
}
.demo-notice span { font-weight: 700; }
.demo-notice a { margin-inline-start: auto; font-weight: 600; }
.page-heading {
  display: grid;
  grid-template: "brand actions profile" / auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.8vw, 28px);
  min-block-size: 48px;
  margin-block-end: 18px;
}
.heading-brand { grid-area: brand; display: flex; align-items: center; gap: clamp(9px, 1.1vw, 16px); }
.heading-brand h1 {
  color: var(--black);
  font-size: clamp(1.65rem, 2.25vw, 2.5rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.025em;
}
.heading-brand .brand-logo { flex: 0 0 auto; inline-size: clamp(48px, 4.2vw, 72px); block-size: auto; }
.planner-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px clamp(9px, 1.4vw, 20px);
}
.heading-actions, .team-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.team-actions { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(9px, 1.4vw, 20px); }
.planner-actions button { min-block-size: 38px; }
.heading-user {
  grid-area: profile;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  max-inline-size: 14rem;
}
.heading-user-copy { display: grid; gap: 1px; min-inline-size: 0; }
.heading-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.heading-user small { color: var(--description); font-size: .86rem; }

.studio-grid { display: grid; grid-template-columns: 249px minmax(0, 1fr); gap: 19px; align-items: start; }
.sidebar { display: grid; gap: 15px; }
.side-panel, .workspace { min-inline-size: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.side-panel { padding: 15px; }
.side-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-block-end: 13px; }
.side-heading h2 { font-size: 1.28rem; font-weight: 700; letter-spacing: -.012em; line-height: 1.05; }
.side-heading p { color: var(--description); font-size: .93rem; margin-block-start: 4px; }
.side-header-icon, .tool-icon, .campaign-icon, .timeline-icon, .editor-icon {
  align-items: center; justify-content: center; display: inline-flex;
  flex: 0 0 auto; background: var(--tone); color: var(--tone-ink);
}
.side-header-icon { inline-size: 35px; block-size: 35px; border-radius: 10px; }
.channel-list, .campaign-list, .commitment-list { display: grid; gap: 7px; }
.collapsible-panel .side-heading { margin-block-end: 0; }
.side-body { margin-block-start: 11px; }
.side-toggle {
  display: flex; align-items: center; gap: 6px; padding: 2px 0;
  border: 0; background: transparent; text-align: start; font: inherit; color: inherit;
}
.side-toggle svg { color: var(--description); }
.side-toggle[aria-expanded=false] svg { transform: rotate(90deg); }
.manage-commitments { font-size: .84rem; min-block-size: 26px; margin-block-start: 5px; }
.tool-card, .campaign-link {
  display: flex;
  inline-size: 100%;
  align-items: center;
  gap: 9px;
  padding: 7px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-align: start;
}
.tool-card { cursor: grab; touch-action: manipulation; }
.tool-card:active { cursor: grabbing; }
.tool-card:hover, .campaign-link:hover { background: #fcf9ff; border-color: #daccea; }
.tool-icon, .campaign-icon { inline-size: 33px; block-size: 33px; border-radius: 8px; }
.tool-text, .campaign-link > span:nth-child(2) { display: flex; flex: 1 1 auto; flex-direction: column; min-inline-size: 0; }
.tool-text strong, .campaign-link strong { font-size: .96rem; font-weight: 600; line-height: 1.12; overflow-wrap: anywhere; }
.tool-text small, .campaign-link small { color: var(--description); font-size: .8rem; line-height: 1.12; margin-block-start: 4px; }
.tool-grip, .campaign-link > svg { color: #857c8d; }
.add-channel-button {
  margin-block-start: 10px;
  display: flex; justify-content: center; align-items: center; gap: 6px;
  inline-size: 100%; min-block-size: 38px;
  border: 1px dashed #d9cde8; border-radius: 8px;
  background: #fcf9ff; color: var(--purple-text); font-weight: 600;
}
.add-channel-button:hover { background: #f4edff; border-color: #a78cc9; }
.campaign-empty { padding: 7px 0 1px; font-size: .94rem; color: var(--description); }

.workspace { overflow: hidden; }
.workspace-header { padding: 14px 15px 12px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; }
.month-controls, .nav-arrows { display: flex; align-items: center; gap: 7px; }
.month-controls { gap: 10px; }
.month-controls h2 { font-size: 1.55rem; font-weight: 700; letter-spacing: -.018em; line-height: 1.15; white-space: nowrap; }
.nav-arrows { gap: 4px; }
.nav-arrows .icon-button { min-inline-size: 29px; inline-size: 29px; min-block-size: 30px; }
.nav-arrows svg { inline-size: 16px; block-size: 16px; }
.view-switch {
  display: inline-flex; align-items: center; gap: 1px; padding: 3px;
  background: #f7f4fa; border: 1px solid #f1ebf5; border-radius: 9px;
}
.view-switch button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: #675e75; padding: 4px 9px;
  min-block-size: 29px; border: 1px solid transparent; border-radius: 6px;
  white-space: nowrap; font-weight: 600; font-size: .91rem;
}
.view-switch button svg { inline-size: 15px; block-size: 15px; }
.view-switch button:not([aria-pressed=true]):hover { background: white; color: var(--ink); }
.view-switch button[aria-pressed=true] {
  background: white; color: var(--purple-text); border-color: #e7dfee; box-shadow: 0 1px 3px #38224d0c;
}
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 12px; }
.search-field {
  display: flex; align-items: center; gap: 6px; flex: 0 1 207px; min-inline-size: 134px;
  min-block-size: 34px; border: 1px solid var(--line); border-radius: 8px; padding-inline: 9px; color: #746c7f;
}
.search-field:focus-within { border-color: var(--focus); }
.search-field input { background: none; border: 0; padding: 4px 0; inline-size: 100%; font-size: .91rem; }
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: #746a80; }
.filter-selects { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter-select { min-inline-size: 0; }
.filter-select select {
  inline-size: 100%; max-inline-size: min(19vw, 210px); min-block-size: 34px;
  padding: 5px 7px; border: 1px solid var(--line); border-radius: 8px; background: white;
  font-weight: 600; font-size: .87rem; color: #50455e;
}
.clear-filters { font-size: .86rem; }

.board-area { min-inline-size: 0; border-block: 1px solid var(--line); }
.calendar-scroll, .timeline-scroll { overflow: auto; scrollbar-color: #d5c8e3 #faf7fb; scrollbar-width: thin; }
.calendar { --event-height: 25px; --day-header: 37px; --week-height: 92px; min-inline-size: 571px; }
.weekdays, .calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays { background: #f9f7fb; }
.weekdays div {
  padding: 7px 11px; border-inline-end: 1px solid var(--line);
  font-size: .9rem; font-weight: 600; color: #675a73;
}
.weekdays div:last-child { border-inline-end: 0; }
.weekdays .weekend { color: #7c7088; background: #f8f4fa; }
.calendar-week {
  position: relative;
  isolation: isolate;
  grid-template-rows: var(--day-header) repeat(var(--lanes), var(--event-height)) minmax(7px, 1fr);
  min-block-size: var(--week-height);
  border-block-start: 1px solid var(--line);
}
.day {
  position: relative;
  grid-column: var(--column);
  grid-row: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3px;
  inline-size: 100%;
  padding: 6px 8px;
  border: 0;
  border-inline-end: 1px solid var(--line);
  border-radius: 0;
  background: white;
  font-weight: 600;
  text-align: start;
}
.day:is(button):hover, .day:is(button):focus-visible { background: #fbf8ff; }
.day:is(button):focus-visible { outline-offset: -2px; }
.day:nth-child(7) { border-inline-end: 0; }
.day.weekend { background: #fdfbfe; }
.day-outside { background: #f9f7fa !important; color: #8b8296; }
.day-current { background: #fbf7ff; }
.day-number {
  display: inline-grid; place-items: center; inline-size: 24px; block-size: 24px;
  border-radius: 50%; font-size: .98rem; line-height: 1; flex: 0 0 auto;
}
.day-current .day-number { color: #fff; background: var(--black); }
.day-plus {
  visibility: hidden; color: var(--purple-text); background: var(--lilac); border-radius: 5px; margin-block-start: 2px;
  inline-size: 19px; block-size: 19px; display: inline-grid; place-items: center;
}
.day:hover .day-plus, .day:focus-visible .day-plus { visibility: visible; }
.event-bar, .timeline-marker {
  grid-column: var(--column) / span var(--span);
  z-index: 1;
  display: flex; min-inline-size: 0; align-items: center; gap: 4px;
  background: var(--tone); color: var(--tone-ink);
  border: 1px solid transparent; border-inline-start: 2px solid var(--tone-border);
  border-radius: 5px; text-align: start; padding: 1px 5px;
  white-space: nowrap; overflow: hidden;
  font-weight: 600; font-size: .87rem; line-height: 1.1;
}
.event-bar { grid-row: calc(var(--lane) + 1); margin: 0 3px 3px; }
.event-bar svg { inline-size: 13px; block-size: 13px; }
.event-bar span, .timeline-marker span { overflow: hidden; text-overflow: ellipsis; }
.event-bar time { margin-inline-start: auto; direction: ltr; }
.event-bar:is(button):hover, .timeline-marker:is(button):hover { border-color: var(--tone-border); filter: saturate(1.25); }
.event-bar[draggable], .timeline-marker[draggable] { cursor: grab; }
.event-bar[draggable]:active, .timeline-marker[draggable]:active { cursor: grabbing; }
.event-bar:focus-visible, .timeline-marker:focus-visible { outline-offset: 0; }
.campaign-bar, .campaign-marker { border: 1px solid var(--tone-border); font-weight: 700; }
.continued-start { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: 0; border-inline-start-style: dashed; }
.continued-end { border-start-end-radius: 0; border-end-end-radius: 0; margin-inline-end: 0; border-inline-end: 1px dashed var(--tone-border); }
.drop-glow { background: #eae0ff !important; box-shadow: inset 0 0 0 2px #a180df; }
.is-dragging .event-bar, .is-dragging .timeline-marker { pointer-events: none; }

.timeline-scroll { max-block-size: min(70vh, 780px); }
.timeline { --label-width: 161px; --slot-width: 24px; min-inline-size: calc(var(--label-width) + var(--slot-width) * var(--days)); }
.timeline-head, .timeline-row { display: grid; grid-template-columns: var(--label-width) minmax(0, 1fr); }
.timeline-head {
  position: sticky; inset-block-start: 0; z-index: 4; background: #f9f7fb; border-block-end: 1px solid var(--line);
}
.timeline-head-label, .timeline-label, .timeline-group-label { border-inline-end: 1px solid var(--line); }
.timeline-head-label {
  position: sticky; inset-inline-start: 0; z-index: 3; display: flex; align-items: center;
  background: #f9f7fb; padding: 6px 10px; font-size: .91rem; font-weight: 600; color: #62566f;
}
.timeline-dates, .timeline-slots { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); min-inline-size: 0; }
.timeline-date { text-align: center; border-inline-end: 1px solid var(--line); padding: 3px 0; }
.timeline-date span, .timeline-date strong { display: block; line-height: 1.2; }
.timeline-date span { color: var(--description); font-size: .74rem; }
.timeline-date strong { font-size: .96rem; }
.timeline-date.weekend, .timeline-cell.weekend { background: #faf7fc; }
.timeline-date.day-current { background: #ece3ff; }
.timeline-row { min-block-size: 42px; border-block-end: 1px solid var(--line); }
.timeline-label, .timeline-group-label { position: sticky; inset-inline-start: 0; z-index: 2; background: white; }
.timeline-label {
  display: flex; min-inline-size: 0; align-items: center; gap: 6px;
  padding: 4px 8px; color: var(--ink); border: 0; border-inline-end: 1px solid var(--line);
  border-radius: 0; text-align: start;
}
.timeline-label:is(button):hover { background: #f7f1fd; }
.timeline-label:is(button):focus-visible { outline-offset: -2px; }
.timeline-label .timeline-icon { inline-size: 24px; block-size: 24px; }
.timeline-icon { inline-size: 27px; block-size: 27px; border-radius: 6px; }
.timeline-row-text { display: flex; flex-direction: column; min-inline-size: 0; }
.timeline-row-text strong, .timeline-row-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
.timeline-row-text strong { font-size: .91rem; font-weight: 600; }
.timeline-row-text small { font-size: .75rem; color: var(--description); }
.timeline-cell { grid-row: 1; grid-column: var(--column); border-inline-end: 1px solid var(--line); }
.timeline-today { background: #faf5ff; }
.timeline-marker { grid-row: 1; margin: 6px 2px; align-self: stretch; }
.timeline-marker.point, .timeline-marker:not(:has(span)) { padding: 0; justify-content: center; }
.timeline-campaign { min-block-size: 46px; }
.timeline-group-label { display: flex; justify-content: space-between; align-items: center; background: #fdfaff; }
.timeline-group-label .timeline-label { position: static; border: 0; flex: 1 1 auto; background: transparent; block-size: 100%; }
.timeline-group-label .icon-button { inline-size: 22px; min-inline-size: 22px; min-block-size: 24px; margin-inline-end: 4px; }
.timeline-group-label .icon-button svg { inline-size: 13px; }
.timeline-child .timeline-label { padding-inline-start: 15px; }
.timeline-subheading {
  position: sticky; inset-inline-start: 0; z-index: 2; background: #faf7fc; padding: 5px 10px;
  color: #706179; font-size: .85rem; font-weight: 600; inline-size: var(--label-width); border-inline-end: 1px solid var(--line);
}
.timeline-empty {
  display: grid; place-items: center; min-block-size: 267px; color: var(--description); text-align: center;
  background: repeating-linear-gradient(-90deg, white 0 23px, #f9f7fb 23px 24px);
}
.timeline-empty > div { padding: 15px 22px; border: 1px solid var(--line); background: white; border-radius: 11px; }
.timeline-empty svg { color: var(--purple-text); }
.timeline-empty p { margin-block: 6px 9px; }

.workspace-footer, .tv-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 9px; row-gap: 6px;
  padding: 8px 14px; color: var(--description); font-size: .88rem;
}
[data-legend] { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.legend-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.legend-swatch { color: var(--tone-ink); background: var(--tone); display: inline-grid; place-items: center; inline-size: 18px; block-size: 18px; border-radius: 4px; }

.tv-layout {
  min-block-size: 100vh; min-block-size: 100dvh;
  block-size: 100vh; block-size: 100dvh;
  padding: clamp(15px, 2.35vw, 42px);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(9px, 1.2vw, 20px);
}
.tv-top, .tv-brand, .tv-actions { display: flex; align-items: center; }
.tv-top { justify-content: space-between; gap: 13px; }
.tv-brand { gap: clamp(9px, 1.6vw, 25px); }
.tv-brand .brand-logo { inline-size: clamp(43px, 5.1vw, 84px); block-size: auto; }
.tv-brand .brand-divider { block-size: min(5vw, 48px); }
.tv-kicker { font-size: clamp(.88rem, 1.1vw, 1.35rem); color: var(--smoke); font-weight: 600; }
.tv-brand h1 { font-size: clamp(1.65rem, 3vw, 4rem); line-height: 1; letter-spacing: -.025em; margin-block-start: 4px; white-space: nowrap; }
.tv-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tv-actions .icon-button { inline-size: 39px; min-block-size: 39px; }
.tv-board { min-block-size: 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.tv-board [data-scroll-container] { block-size: 100%; max-block-size: none; }
.tv-board .calendar {
  --event-height: clamp(37px, 4.4vh, 60px);
  --day-header: clamp(34px, 4vh, 50px);
  --week-height: clamp(62px, 11.5vh, 160px);
  display: grid; grid-template-rows: auto 1fr; min-block-size: 100%;
}
.tv-board .calendar .weeks { display: grid; grid-auto-rows: minmax(min-content, 1fr); }
.tv-board .weekdays div { font-size: clamp(.92rem, 1.03vw, 1.4rem); }
.tv-board .event-bar { font-size: clamp(.84rem, 1.12vw, 1.6rem); padding-inline: 6px; }
.tv-event-copy { display: grid; min-inline-size: 0; gap: 1px; }
.tv-event-copy strong, .tv-event-copy small { overflow: hidden; text-overflow: ellipsis; }
.tv-event-copy strong { font-weight: 700; }
.tv-event-copy small { font-size: .72em; font-weight: 600; line-height: 1.1; }
.tv-board .event-bar svg { inline-size: clamp(14px, 1.07vw, 21px); block-size: clamp(14px, 1.07vw, 21px); }
.tv-board .day-number { font-size: clamp(.98rem, 1.24vw, 1.6rem); inline-size: clamp(24px, 2.1vw, 38px); block-size: clamp(24px, 2.1vw, 38px); }
.tv-board .timeline { --slot-width: 21px; --label-width: clamp(150px, 16vw, 255px); }
.tv-board .timeline-row { min-block-size: clamp(37px, 5vh, 67px); }
.tv-board .timeline-date strong { font-size: clamp(.88rem, 1.35vw, 1.5rem); }
.tv-board .timeline-row-text strong, .tv-board .timeline-marker { font-size: clamp(.88rem, 1.12vw, 1.5rem); }
.tv-board .timeline-row-text small { font-size: clamp(.76rem, .88vw, 1.2rem); }
.tv-footer { padding: 0 3px; font-size: clamp(.86rem, 1.02vw, 1.22rem); }
.tv-today { color: var(--description); white-space: nowrap; }

.boot {
  min-block-size: min(600px, 95vh); display: grid; align-content: center; justify-items: center;
  padding: 25px; gap: 12px; text-align: center;
}
.boot p { color: var(--description); }
.boot h1 { line-height: 1; }
.signin-qr { inline-size: 220px; block-size: 220px; background: white; border: 1px solid var(--line-strong); border-radius: 14px; padding: 8px; }
.heading-user .sign-out { flex: 0 0 auto; }

.editor-dialog {
  background: white; border: 1px solid var(--line-strong); border-radius: 17px; padding: 0;
  inline-size: min(493px, calc(100% - 24px)); max-inline-size: none; max-block-size: calc(100% - 28px);
  box-shadow: 0 28px 85px #2d1d4439; color: var(--ink);
}
.editor-dialog::backdrop { background: #2b203653; }
.editor-top {
  position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 10px; padding: 14px 16px; background: white; border-block-end: 1px solid var(--line);
}
.editor-icon { inline-size: 42px; block-size: 42px; border-radius: 11px; }
.editor-top h2 { font-size: 1.57rem; line-height: 1.05; }
.editor-top p { color: var(--description); font-size: .91rem; margin-block-start: 4px; }
.editor-body { padding: 13px 16px 16px; display: grid; gap: 11px; }
.form-field { display: grid; gap: 3px; align-content: start; min-inline-size: 0; }
.form-field > span, .audience-field legend, .color-field legend { font-size: .95rem; font-weight: 600; }
.form-field :is(input, select, textarea) {
  inline-size: 100%;
  min-block-size: 36px;
  border: 1px solid var(--line-strong); border-radius: 7px; background: white;
  padding: 6px 9px; font-size: .98rem;
}
.form-field input:is([type=date], [type=time]) { text-align: start; min-inline-size: 0; }
.form-field textarea { resize: vertical; min-block-size: 51px; }
.date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.commitment-fields { display: grid; gap: 11px; padding: 0; margin: 0; border: 0; min-inline-size: 0; }
.commitment-children, .commitment-child-list, .commitment-child-fields, .commitment-group { display: grid; gap: 8px; }
.commitment-children > p { color: var(--description); font-size: .9rem; }
.commitment-child, .commitment-preview, .commitment-management-row {
  background: #fcf9ff; border: 1px solid var(--line); border-radius: 9px;
}
.commitment-child > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px;
  cursor: pointer; list-style: none; overflow-wrap: anywhere;
}
.commitment-child > summary::-webkit-details-marker { display: none; }
.commitment-child[open] > summary svg { transform: rotate(180deg); }
.commitment-child-fields { padding: 0 11px 11px; }
.commitment-child-fields > button { justify-self: start; }
.commitment-preview, .commitment-management-row { padding: 9px 11px; }
.commitment-preview ul { margin-block: 6px 0; padding: 0; list-style: none; }
.commitment-preview li, .commitment-management-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.commitment-preview li { padding-block: 5px; }
.commitment-preview li + li { border-block-start: 1px solid var(--line); }
.commitment-management-row small { display: block; color: var(--description); }
.commitment-management-actions { display: flex; align-items: center; gap: 6px; }
.audience-field, .color-field { border: 0; padding: 0; min-inline-size: 0; }
.audience-field legend, .color-field legend { padding: 0 0 4px; }
.audience-options { display: flex; flex-wrap: wrap; gap: 5px; }
.audience-choice input, .swatch-control input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.audience-choice span {
  display: block; padding: 4px 9px; border-radius: 6px; background: white;
  border: 1px solid var(--line); color: #594f65; white-space: nowrap; cursor: pointer;
}
.audience-choice input:checked + span { background: #f4ecff; border-color: #c7b3ea; color: var(--purple-text); font-weight: 600; }
.audience-choice input:focus-visible + span, .swatch-control input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.color-options { display: flex; gap: 7px; }
.swatch-control span {
  display: grid; place-items: center; cursor: pointer; inline-size: 29px; block-size: 29px;
  border-radius: 7px; background: var(--tone); color: var(--tone-ink); border: 1px solid var(--tone-border);
}
.swatch-control input:not(:checked) + span svg { display: none; }
.swatch-control input:checked + span { border-color: var(--tone-ink); }
.editor-footer {
  position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 16px; border-block-start: 1px solid var(--line); background: white;
}
.editor-footer-actions { margin-inline-start: auto; display: flex; gap: 7px; }
.delete-button { border: 0; padding: 7px 2px; background: transparent; color: #903b56; font-weight: 600; }
.delete-button:hover { color: #651c34; }
.form-warning, .form-error, .delete-confirm {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  padding: 7px 10px; border: 1px solid #ead1ad; border-radius: 7px; color: #694c31; background: #fcf3e5;
  scroll-margin-block: 70px;
}
.form-warning > div { display: flex; align-items: flex-start; gap: 5px; }
.form-warning svg { margin-block-start: 2px; }
.form-warning button, .form-error button { background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; }
.form-error, .delete-confirm { color: #7b314b; background: #fef1f5; border-color: #f0c7d8; }
.delete-confirm p { flex: 1 1 auto; }
.danger-button { color: white; background: #873653; }
.campaign-activity-panel { border-block-start: 1px solid var(--line); padding-block-start: 10px; display: grid; gap: 6px; }
.campaign-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.campaign-panel-heading h3 { font-size: 1rem; font-weight: 600; }
.campaign-panel-heading button { font-size: .9rem; min-block-size: 28px; padding-block: 3px; }
.campaign-child {
  display: flex; align-items: center; gap: 7px; min-inline-size: 0; padding: 5px; border: 1px solid var(--line);
  border-radius: 7px; background: white; text-align: start;
}
.campaign-child:hover { background: #faf6fc; }
.campaign-child strong { flex: 1 1 auto; overflow-wrap: anywhere; font-weight: 600; }
.child-date { direction: ltr; white-space: nowrap; color: var(--description); font-size: .84rem; }
.toast-area { position: fixed; inset-block-end: 16px; inset-inline-end: 18px; z-index: 10; }
.toast {
  display: flex; align-items: center; gap: 7px; max-inline-size: calc(100vw - 36px); padding: 9px 14px;
  border: 1px solid #e4daf1; border-radius: 8px; background: white; color: var(--purple-text);
  box-shadow: 0 9px 27px #38254d18; font-weight: 600;
}
.toast-error { border-color: #f0c7d8; color: #7b314b; }

@media (min-width: 1400px) {
  .studio-grid { grid-template-columns: 275px minmax(0, 1fr); gap: 22px; }
  .calendar { --week-height: 104px; }
  .timeline { --label-width: 180px; }
}
@media (max-width: 1050px) {
  .studio-grid { grid-template-columns: 218px minmax(0, 1fr); gap: 11px; }
  .side-panel { padding: 11px; }
  .workspace-header { padding-inline: 11px; }
  .page-heading { column-gap: 10px; }
  .planner-actions { column-gap: 8px; }
  .team-actions { padding-inline-start: 8px; }
  .planner-actions button { font-size: .93rem; padding-inline: 8px; gap: 5px; }
  .planner-actions svg { inline-size: 16px; block-size: 16px; }
  .heading-user { max-inline-size: 10rem; }
}
@media (min-width: 861px) and (max-width: 960px) {
  .planner-actions button:not(.primary-button) > svg { display: none; }
  .planner-actions button { padding-inline: 7px; }
  .heading-user { max-inline-size: 9rem; gap: 5px; }
}
@media (max-width: 860px) {
  .page-heading {
    grid-template: "brand profile" "actions actions" / minmax(0, 1fr) auto;
    gap: 10px;
  }
  .planner-actions { justify-content: start; }
  .team-actions { border: 0; padding: 0; }
}
@media (max-width: 760px) {
  :root { --page-gutter: 12px; }
  .studio { padding-block-start: 16px; }
  .studio-grid { display: flex; flex-direction: column; align-items: stretch; }
  .sidebar { display: contents; }
  .channel-panel { order: 1; }
  .workspace { order: 2; }
  .campaign-panel { order: 3; }
  .channel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { padding: 5px; }
  .tool-grip { display: none; }
  .workspace-header { padding: 10px; }
  .filter-bar { display: grid; }
  .filter-select select { max-inline-size: 42vw; }
  .workspace-footer { align-items: flex-start; flex-direction: column; }
  .tv-actions .connection:not(.is-stale) { display: none; }
  .tv-today { display: none; }
  .tv-footer { font-size: .8rem; }
  .tv-board .calendar { min-inline-size: 510px; }
}
@media (max-width: 390px) {
  .heading-brand h1 { font-size: 1.5rem; }
  .heading-brand .brand-logo { inline-size: 40px; }
  .heading-user { max-inline-size: 8rem; gap: 4px; }
  .heading-user .sign-out { padding-inline: 3px; }
  .month-controls { gap: 6px; }
  .month-controls h2 { font-size: 1.34rem; }
  .demo-notice { flex-wrap: wrap; gap: 3px 7px; }
  .demo-notice a { margin-inline-start: 0; }
  .tool-icon { inline-size: 28px; block-size: 28px; }
  .tv-brand .brand-logo { display: none; }
  .tv-brand .brand-divider { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.user-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f4eff9; color: #68547a; }
.heading-user .user-avatar { flex: 0 0 34px; }
.request-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 5px; background: #ece3fa; color: #593583; font-size: .8rem; }
.app-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 2px 0; color: #786e84; font-size: .82rem; }
.app-footer > div { display: flex; align-items: center; gap: 9px; }
.app-footer .display-link { font-size: .82rem; font-weight: 400; color: #6a557f; text-decoration: none; }
.app-footer .display-link:hover { text-decoration: underline; }
.app-footer .connection { font-size: .8rem; }
.app-footer .connection-dot { width: 5px; height: 5px; }
.demo-role-label { display: flex; align-items: center; gap: 7px; }
.demo-role-label select { border: 1px solid #ded0ee; border-radius: 6px; background: white; padding: 3px 8px; }
.team-dialog { inline-size: min(650px, calc(100% - 24px)); }
.team-body { padding: 16px; display: grid; gap: 12px; }
.team-card { border: 1px solid var(--line); padding: 14px; border-radius: 11px; background: #fff; }
.team-card-header { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 8px; }
.team-card-header h3 { font-size: 1.2rem; line-height: 1.15; }
.team-subtitle { color: var(--description); font-size: .91rem; margin-top: 3px; }
.request-status { flex-shrink: 0; padding: 3px 8px; border-radius: 5px; font-size: .84rem; font-weight: 600; background: #f3eff8; color: #674e84; }
.request-status.pending { background: #f8efdf; color: #6b4b29; }
.request-status.approved { background: #ede7fa; color: #523577; }
.request-status.rejected { background: #fceaf1; color: #783c5c; }
.request-details { display: grid; gap: 5px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; }
.request-details > div { min-width: 0; }
.request-details dt { font-size: .86rem; color: var(--description); }
.request-details dd { margin: 0; overflow-wrap: anywhere; }
.request-note { color: #594966; font-size: .96rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.request-review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.request-review-actions .form-field { flex-basis: 100%; }
.team-empty { text-align: center; padding: 30px 10px; color: var(--description); }
.team-role-description { color: var(--description); font-size: .94rem; margin: 8px 0 12px; }
.user-role-form { display: flex; gap: 8px; align-items: end; }
.user-role-form label { flex: 1; }
.user-role-form select { width: 100%; border: 1px solid var(--line-strong); padding: 7px 10px; border-radius: 7px; background: white; }
.team-error { color: #7b314b; background: #fef1f5; border: 1px solid #f0c7d8; border-radius: 7px; padding: 8px 10px; margin-top: 8px; }
.team-dialog textarea { width: 100%; min-height: 55px; border: 1px solid var(--line-strong); border-radius: 7px; padding: 7px; resize: vertical; }
.team-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.team-list-heading p { color: var(--description); }
.team-intro { color: var(--description); font-size: .95rem; }
.team-card-title { min-width: 0; flex: 1; display: grid; gap: 3px; }
.team-card-title strong { font-size: 1.1rem; line-height: 1.2; overflow-wrap: anywhere; }
.team-card-title small { color: var(--description); font-size: .86rem; }
summary.team-card-header { cursor: pointer; list-style: none; align-items: center; }
summary.team-card-header::-webkit-details-marker { display: none; }
.request-card:not([open]) .team-card-header { margin: 0; }
.request-card:not([open]) .team-card-header > svg:last-child { transform: rotate(90deg); }
.request-review-buttons { display: flex; gap: 7px; margin-inline-start: auto; }
.request-reviewed { color: var(--description); font-size: .9rem; margin: 8px 0; }
.user-role-form { display: block; }
.user-role-controls { display: flex; gap: 8px; align-items: end; }
.user-role-controls .form-field { flex: 1; }
.user-role-form .user-avatar { flex: 0 0 34px; }
.self-label { display: inline; padding-inline-start: 6px; }
.role-help { color: #796b85; font-size: .87rem; }
.request-card-body { border-top: 1px solid var(--line); padding-top: 3px; }
@media (max-width:480px) {
  .team-card-header { flex-wrap: wrap; }
  .team-card-title { min-width: 135px; }
  .team-list-heading { flex-wrap: wrap; }
  .request-review-buttons { flex-wrap: wrap; }
}
