    @font-face { font-family: Inter; src: url('/assets/releases/f23e40552d1e9bbfe0f109c616db8e7999fbe02141580f945ba223fe18f2fb6e/prototype-snapshot/assets/fonts/inter/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
    :root {
      color-scheme: light;
      --nav-width: 72px; --filter-width: 276px; --header-height: 72px;
      --blue: #075cff; --blue-hover: #004bd8; --blue-soft: #edf4ff; --blue-muted: #5f79a8;
      --text: #0e1b3d; --muted: #64708d; --faint: #98a2b7; --border: #dbe2ee; --border-strong: #c9d3e3;
      --canvas: #f7f9fc; --surface: #ffffff; --surface-subtle: #f6f8fc; --draft: #aeb7c7; --scheduled: #f2a31b; --error: #ef2b32; --lime: #9de51b;
      --card-radius: 8px; --control-radius: 7px; --status-dot-size: 7px; --legend-font-size: 12px; --shadow-button: 0 8px 20px rgba(7, 92, 255, .17);
      --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1);
      --motion-fast: 140ms; --motion-ui: 180ms; --motion-overlay: 250ms;
      font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-synthesis: style; color: var(--text); background: var(--canvas);
    }
    * { box-sizing: border-box; }
    html, body { width: 100%; min-width: 320px; height: 100%; margin: 0; overflow: hidden; }
    body { background: var(--canvas); font-size: 14px; line-height: 1.45; }
    button, input { font: inherit; } button { color: inherit; } button, label, input[type="checkbox"] { cursor: pointer; }
    ::selection { color: #fff; background: var(--blue); }
    :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 10px; background: #bdc7d8; background-clip: padding-box; }
    .icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
    .icon { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .icon.remix-icon { fill: currentColor; stroke: none; }
    .icon.small { width: 17px; height: 17px; }

    .app {
      width: 100vw; height: 100vh; display: grid;
      grid-template-columns: var(--nav-width) minmax(0, 1fr) var(--filter-width);
      grid-template-rows: var(--header-height) minmax(0, 1fr);
      overflow: hidden; border: 1px solid var(--border-strong); background: var(--canvas);
      transition: grid-template-columns 220ms var(--ease-in-out);
    }
    .app.nav-open { --nav-width: 258px; }
    .app.filters-collapsed { --filter-width: 72px; }
    .sidebar { grid-column: 1; grid-row: 1 / 3; width: var(--nav-width); min-width: var(--nav-width); min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--border); background: var(--surface); }
    .brand { height: var(--header-height); flex: 0 0 var(--header-height); display: flex; align-items: center; gap: 13px; padding: 0 20px; border-bottom: 1px solid var(--border); color: #0a0f1e; font-size: 18px; font-weight: 700; white-space: nowrap; }
    .brand-mark { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--blue); }
    .brand-mark svg { width: 22px; height: 22px; }
    .brand-name { width: 0; overflow: hidden; opacity: 0; transition: opacity 120ms ease; }
    .nav-open .brand-name { width: auto; overflow: visible; opacity: 1; }
    .sidebar-scroll-shell { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
    .sidebar-scroll-shell::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .nav-list { display: flex; flex-direction: column; gap: 8px; padding: 28px 10px 12px; }
    .nav-item, .nav-toggle { position: relative; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; text-decoration: none; white-space: nowrap; }
    .nav-open .nav-item, .nav-open .nav-toggle { justify-content: flex-start; gap: 14px; padding: 0 14px; }
    .nav-item:hover, .nav-toggle:hover { background: var(--surface-subtle); }
    .nav-item.active { background: #f1f3f7; }
    .nav-item.active::before { content: ""; position: absolute; left: -10px; top: 8px; width: 3px; height: 32px; border-radius: 0 3px 3px 0; background: var(--lime); }
    .nav-icon { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; }
    .nav-label { width: 0; overflow: hidden; opacity: 0; transition: opacity 120ms ease; }
    .nav-open .nav-label { width: auto; overflow: visible; opacity: 1; }
    .mini-calendar { display: none; padding: 22px 20px 16px; border-top: 1px solid var(--border); }
    .nav-open .mini-calendar { display: block; }
    .mini-calendar-head { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); align-items: center; margin-bottom: 18px; font-weight: 650; }
    .mini-calendar-nav { display: contents; color: var(--muted); }
    .mini-calendar-head [data-mini-calendar-label] { grid-column: 2 / 7; grid-row: 1; text-align: center; white-space: nowrap; }
    .mini-calendar-nav button { grid-row: 1; justify-self: center; }
    .mini-calendar-nav [data-mini-calendar-shift="-1"] { grid-column: 1; }
    .mini-calendar-nav [data-mini-calendar-shift="1"] { grid-column: 7; }
    .mini-calendar-arrow-anchor { position: relative; font-size: 12px; font-weight: 400; color: transparent; }
    .mini-calendar-arrow-anchor .icon { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); }
    .mini-calendar-nav button:hover .icon { color: var(--text); }
    .mini-calendar-nav [data-mini-calendar-shift="-1"] .icon { left: -6.020833px; }
    .mini-calendar-nav [data-mini-calendar-shift="1"] .icon { right: -6.020833px; }
    .mini-calendar-nav button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; color: inherit; background: transparent; cursor: pointer; }
    .mini-calendar-nav button:hover { color: var(--text); background: var(--surface-subtle); }
    .mini-calendar-nav button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
    .mini-weekdays, .mini-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
    .mini-weekdays { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
    .mini-day { position: relative; width: 100%; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: inherit; background: transparent; font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; cursor: default; }
    .mini-day.adjacent { color: #aeb7c7; }
    .mini-day.is-today { border-radius: 6px; color: #244d91; background: color-mix(in srgb, var(--blue) 12%, transparent); }
    .mini-day.is-open { border-radius: 6px; color: #244d91; box-shadow: inset 0 0 0 1px var(--blue); }
    .mini-day:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
    .mini-day .mini-dots { position: absolute; left: 50%; bottom: 1px; display: flex; gap: 2px; transform: translateX(-50%); }
    .mini-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--blue); }
    .mini-dot.draft { background: var(--draft); } .mini-dot.scheduled { background: var(--scheduled); } .mini-dot.error { background: var(--error); }
    .nav-toggle-wrap { position: relative; z-index: 2; flex: 0 0 auto; margin-top: auto; padding: 10px 10px 18px; background: var(--surface); }
    .nav-open .nav-toggle-wrap { margin-top: 0; }
    .nav-toggle { color: var(--muted); }

    .topbar { grid-column: 2 / 4; grid-row: 1; min-width: 0; display: flex; align-items: center; gap: 15px; overflow: hidden; padding: 0 28px; border-bottom: 1px solid var(--border); background: var(--surface); white-space: nowrap; }
    .page-title { flex: 0 0 auto; margin: 0; color: #090d18; font-size: 22px; line-height: 1; font-weight: 600; letter-spacing: -.025em; }
    .title-divider { width: 1px; height: 18px; background: var(--border); }
    .current-period { display: flex; align-items: center; gap: 9px; color: #283858; font-size: 15px; font-variant-numeric: tabular-nums; }
    .current-period, .primary-button { flex: 0 0 auto; }
    .primary-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; padding: 0 19px; border: 0; border-radius: 7px; color: #fff; background: var(--blue); box-shadow: var(--shadow-button); font-size: 14.5px; font-weight: 550; text-decoration: none; }
    .primary-button:hover { background: var(--blue-hover); }
    .mobile-filter-button { display: none; }
    .mobile-filter-backdrop { display: none; }

    .workspace-scroll-shell { position: relative; z-index: 1; grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; overflow: hidden; background: var(--canvas); }
    .workspace { --workspace-pad-x: 34px; --workspace-pad-top: 30px; position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: auto; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; padding: var(--workspace-pad-top) var(--workspace-pad-x) 34px; background: var(--canvas); }
    .work-surface { width: 100%; min-width: 840px; container-type: inline-size; }
    .toolbar { position: sticky; z-index: 5; top: calc(var(--workspace-pad-top) * -1); min-height: 44px; display: grid; grid-template-columns: max-content minmax(0,1fr) max-content; align-items: center; gap: 16px; margin: calc(var(--workspace-pad-top) * -1) calc(var(--workspace-pad-x) * -1) 5px; padding: var(--workspace-pad-top) var(--workspace-pad-x) 12px; background: var(--canvas); }
    .segmented { width: max-content; display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--control-radius); background: var(--surface); }
    .segmented { justify-self: start; }
    .tab { position: relative; min-width: 74px; height: 41px; padding: 0 14px; border: 0; border-right: 1px solid var(--border); background: transparent; color: #263556; transition: color 120ms ease, background-color 120ms ease; }
    .tab:first-child { border-radius: 6px 0 0 6px; }
    .tab:last-child { border-radius: 0 6px 6px 0; }
    .tab:last-child { border-right: 0; }
    .tab:hover:not([aria-selected="true"]) { background: var(--surface-subtle); }
    .tab[aria-selected="true"] { z-index: 1; color: var(--blue); background: #fff; box-shadow: 0 0 0 1px var(--blue); }
    .tab:focus-visible { z-index: 2; }
    .date-controls { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
    .control { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border: 1px solid var(--border-strong); border-radius: var(--control-radius); background: var(--surface); color: #253556; white-space: nowrap; }
    .control:hover { border-color: #9cabc2; background: #fbfcfe; }
    .control.icon-only { width: 43px; padding: 0; }
    #date-picker-toggle { width: clamp(150px, 18vw, 220px); min-width: 0; overflow: hidden; }
    #date-picker-label { overflow: hidden; text-overflow: ellipsis; }
    #calendar-today { flex: 0 0 auto; }
    .calendar-period-picker {
      position: absolute; z-index: 24; top: calc(100% + 2px); left: 50%; width: 324px;
      max-height: min(520px, calc(100vh - var(--header-height) - 92px)); overflow-y: auto;
      padding: 12px; border: 1px solid var(--border-strong); border-radius: 12px;
      background: #fff; box-shadow: 0 14px 34px rgba(31,48,78,.16);
      transform: translateX(-50%);
    }
    .calendar-period-picker[hidden] { display: none; }
    .period-picker-head { min-height: 40px; display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; align-items: center; margin-bottom: 6px; }
    .period-picker-head strong { color: #182744; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
    .period-picker-nav { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #263556; background: transparent; }
    .period-picker-nav:hover { background: #eef3fb; }
    .period-picker-weekdays, .period-picker-days, .period-week-row { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
    .period-picker-weekdays span { min-height: 26px; display: grid; place-items: center; color: #7a879f; font-size: 10px; font-weight: 650; }
    .period-picker-days { gap: 2px; }
    .period-picker-day { min-width: 0; min-height: 38px; padding: 0; border: 0; border-radius: 8px; color: #263556; background: transparent; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; }
    .period-picker-day:hover, .period-week-row:hover { background: #f4f7fc; }
    .period-picker-day.adjacent, .period-week-row .adjacent { color: #a8b1c2; }
    .period-picker-day.is-current { position: relative; color: #075cff; box-shadow: inset 0 0 0 1px #8eb2ff; font-weight: 650; }
    .period-picker-day.is-current::after { content: ""; position: absolute; right: 50%; bottom: 3px; width: 3px; height: 3px; border-radius: 50%; background: #075cff; transform: translateX(50%); }
    .period-picker-day[aria-selected="true"] { color: #fff; background: var(--blue); font-weight: 650; }
    .period-picker-day.is-current[aria-selected="true"]::after { background: #fff; }
    .period-picker-weeks { display: grid; gap: 3px; }
    .period-week-row { min-height: 40px; padding: 0; border: 0; border-radius: 8px; color: #263556; background: transparent; font: inherit; }
    .period-week-row span { display: grid; place-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
    .period-week-row.is-current { position: relative; box-shadow: inset 0 0 0 1px #b7caff; }
    .period-week-row.is-current::after { content: ""; position: absolute; top: 5px; right: 6px; width: 4px; height: 4px; border-radius: 50%; background: #075cff; }
    .period-week-row[aria-selected="true"] { color: #075cff; background: #edf3ff; box-shadow: inset 0 0 0 1px #8eb2ff; font-weight: 650; }
    .period-month-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
    .period-month-button { min-width: 0; min-height: 42px; padding: 0 6px; border: 1px solid #dce3ee; border-radius: 8px; color: #263556; background: #fff; font: inherit; font-size: 12px; }
    .period-month-button:hover { border-color: #9fb2cf; background: #f8faff; }
    .period-month-button.is-current { position: relative; border-color: #8eb2ff; color: #075cff; font-weight: 650; }
    .period-month-button.is-current::after { content: ""; position: absolute; top: 6px; right: 7px; width: 4px; height: 4px; border-radius: 50%; background: #075cff; }
    .period-month-button[aria-selected="true"] { border-color: var(--blue); color: #075cff; background: #edf3ff; font-weight: 650; }
    .toolbar-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 16px; }
    .toolbar-right.is-inactive { visibility: hidden; pointer-events: none; }
    .toolbar-right[hidden] { display: none; }
    #calendar-sort[hidden] { display: none; }
    .sort { min-width: 154px; justify-content: space-between; }
    .sort .sort-direction { transition: transform 160ms ease; }
    .sort[data-direction="desc"] .sort-direction { transform: scaleY(-1); }
    .calendar-empty-state { min-height: 240px; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 36px; border: 1px dashed var(--border-strong); border-radius: var(--card-radius); color: var(--muted); background: rgba(255,255,255,.46); text-align: center; }
    .calendar-empty-state strong { color: #263556; font-size: 15px; }
    .calendar-empty-state span { max-width: 42ch; font-size: 13px; line-height: 1.5; }
    .view-heading { display: flex; align-items: baseline; gap: 8px; margin: 0 0 18px; font-size: 15px; font-weight: 650; }
    .view-heading .meta { color: var(--muted); font-weight: 450; font-variant-numeric: tabular-nums; } .view-heading .meta::before { content: "·"; margin-right: 8px; }

    .day-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, 260px); grid-auto-rows: 322px; gap: 14px; }
    .post-card { min-width: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; container-type: inline-size; border: 1px solid var(--border); border-radius: var(--card-radius); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 140ms ease, background-color 140ms ease; }
    .post-card:hover { border-color: #aebbd0; background: #fefeff; }
    .post-media { height: 142px; flex: 0 0 142px; padding: 7px 7px 0; }
    .post-media img { width: 100%; height: 100%; display: block; border-radius: 6px; object-fit: cover; }
    .post-body { min-height: 0; flex: 1; display: flex; flex-direction: column; padding: 14px 14px 12px; }
    .post-card.text-only .post-body { padding: 27px 18px 14px; }
    .post-text { display: -webkit-box; overflow: hidden; color: #233557; font-size: 14px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
    .text-only .post-text { max-width: 27ch; font-size: 15px; line-height: 1.65; -webkit-line-clamp: 5; }
    .post-footer { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 7px; margin-top: auto; padding-top: 12px; color: #53617e; font-size: 11.5px; }
    .platform { min-width: 0; display: inline-flex; align-items: center; gap: 8px; }
    .icon-only-platform { width: 21px; height: 21px; flex: 0 0 21px; display: inline-grid; place-items: center; }
    .platform-icon { width: 21px; height: 21px; flex: 0 0 21px; display: block; object-fit: contain; object-position: center; opacity: 1; }
    .post-time { color: #344564; font-variant-numeric: tabular-nums; }
    .status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
    .status::before { content: ""; width: var(--status-dot-size); height: var(--status-dot-size); flex: 0 0 var(--status-dot-size); border-radius: 50%; background: var(--blue); }
    .status.draft::before { background: var(--draft); } .status.scheduled { color: #8a5a00; } .status.scheduled::before { background: var(--scheduled); } .status.error { color: #b81f27; } .status.error::before { background: var(--error); }
    @container (max-width: 245px) { .post-footer .platform > span:last-child { display: none; } }

    .week-legend, .month-legend { display: flex; align-items: center; justify-content: flex-start; gap: 20px; margin: -3px 0 12px; color: var(--muted); font-size: var(--legend-font-size); line-height: 1.35; }
    .week-legend { min-width: 0; }
    .month-legend { min-width: 0; }
    .week-carousel { width: 100%; }
    .week-grid { width: 1236px; margin-inline: auto; display: grid; grid-template-columns: repeat(7, 168px); gap: 10px; align-items: start; }
    .week-column { width: 168px; display: grid; grid-template-rows: 38px repeat(5, 118px); gap: 9px; }
    .week-day { display: flex; align-items: center; justify-content: center; gap: 7px; border-bottom: 2px solid transparent; color: #1f3155; font-size: 13px; }
    .week-day.today { color: var(--blue); border-color: var(--blue); }
    .week-card, .week-empty { width: 168px; height: 118px; min-width: 0; min-height: 0; border: 1px solid var(--border); border-radius: var(--card-radius); background: var(--surface); }
    .week-empty { background: rgba(255,255,255,.45); }
    .week-card { display: flex; flex-direction: column; padding: 13px 12px 11px; overflow: hidden; color: var(--text); text-decoration: none; transition: border-color 140ms ease, background-color 140ms ease; }
    .week-card:hover { border-color: #aebbd0; background: #fefeff; }
    .week-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #24375d; font-size: 11px; font-variant-numeric: tabular-nums; }
    .week-card-signals { min-width: 0; display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
    .week-card-top .icon-only-platform, .week-card-top .platform-icon { width: 17px; height: 17px; flex-basis: 17px; }
    .week-status-dot { width: var(--status-dot-size); height: var(--status-dot-size); flex: 0 0 var(--status-dot-size); border-radius: 50%; background: var(--blue); }
    .week-status-dot.draft { background: var(--draft); } .week-status-dot.scheduled { background: var(--scheduled); } .week-status-dot.error { background: var(--error); }
    .week-content { min-height: 0; display: flex; gap: 9px; margin-top: 13px; }
    .week-thumb { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 4px; object-fit: cover; }
    .week-text { display: -webkit-box; overflow: hidden; color: #152b58; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }

    @container (min-width: 1360px) {
      .week-grid { width: 1320px; min-width: 1320px; }
      .week-grid { grid-template-columns: repeat(7, 180px); }
      .week-column, .week-card, .week-empty { width: 180px; }
    }
    @container (min-width: 1540px) {
      .week-grid { width: 1460px; min-width: 1460px; }
      .week-grid { grid-template-columns: repeat(7, 200px); }
      .week-column, .week-card, .week-empty { width: 200px; }
    }

    .legend-item, .month-status { display: inline-flex; align-items: center; gap: 7px; }
    .dot { width: var(--status-dot-size); height: var(--status-dot-size); flex: 0 0 var(--status-dot-size); border-radius: 50%; background: var(--blue); } .dot.draft { background: var(--draft); } .dot.scheduled { background: var(--scheduled); } .dot.error { background: var(--error); }
    .month-grid { width: 1236px; min-width: 1236px; height: auto; margin-inline: auto; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 42px; grid-auto-rows: 132px; overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--card-radius); background: var(--surface); }
    .month-weekday { display: grid; place-items: center; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border-strong); background: #f3f6fb; color: #263556; font-size: 13px; font-weight: 650; }
    .month-cell { position: relative; min-width: 0; min-height: 0; padding: 16px; border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 0; background: var(--surface); color: inherit; font: inherit; text-align: start; }
    button.month-cell { cursor: pointer; transition: background-color 140ms ease; }
    button.month-cell:hover { background: #f4f8ff; }
    button.month-cell:focus-visible { z-index: 1; outline: 2px solid var(--blue); outline-offset: -3px; }
    .month-grid > :nth-child(7n) { border-right: 0; }
    .month-grid > :nth-last-child(-n + 7) { border-bottom: 0; }
    .month-cell.adjacent { color: #9ba5b8; background: #f7f9fc; } .month-cell.selected { background: #eaf2ff; }
    .month-cell-head { position: absolute; z-index: 1; top: 16px; right: 16px; left: 16px; min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
    .month-number { transform: translateY(-3px); font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
    .month-platforms { min-width: 0; display: flex; align-items: center; gap: 5px; margin: -3px -2px 0 auto; }
    .month-platform-item { display: grid; flex: 0 0 auto; place-items: center; }
    .month-platforms .icon-only-platform, .month-platforms .platform-icon { width: 20px; height: 20px; flex-basis: 20px; }
    .month-platform-overflow { display: inline-grid; min-width: 24px; height: 20px; padding: 0 5px; place-items: center; border: 1px solid #e4e9f1; border-radius: 6px; background: #f5f7fb; color: #66748f; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
    .month-platform-overflow.compact { display: none; }
    .month-summary { position: absolute; inset: 37px 10px 9px; display: grid; align-content: center; justify-items: center; gap: 8px; }
    .month-ring { position: relative; width: 68px; height: 68px; display: grid; flex: 0 0 68px; place-items: center; border-radius: 50%; background: var(--month-ring, #fff); }
    .month-ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
    .month-ring.empty { border: 1px solid var(--border-strong); background: var(--surface); }
    .month-ring.empty::after { display: none; }
    .month-ring strong { position: relative; z-index: 1; color: #152b58; font-size: 19px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
    .month-ring strong.three-digits { font-size: 16px; }
    .month-statuses { display: flex; align-items: center; justify-content: center; gap: 9px; color: #53617e; font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
    .month-status { gap: 4px; }
    .month-status .dot { width: 7px; height: 7px; }
    @container (max-width: 950px) {
      .month-cell { padding: 12px 10px; }
      .month-cell-head { top: 12px; right: 10px; left: 10px; gap: 6px; }
      .month-number { transform: translateY(-2px); font-size: 14px; }
      .month-platforms { gap: 3px; margin: -2px 0 0 auto; }
      .month-platforms .icon-only-platform, .month-platforms .platform-icon { width: 16px; height: 16px; flex-basis: 16px; }
      .month-platform-item.secondary, .month-platform-overflow.wide { display: none; }
      .month-platform-overflow.compact { display: inline-grid; }
      .month-platform-overflow { min-width: 21px; height: 18px; padding: 0 4px; font-size: 10px; }
      .month-summary { inset-inline: 6px; }
      .month-statuses { gap: 6px; font-size: 9px; }
      .month-status { gap: 3px; } .month-status .dot { width: 6px; height: 6px; }
    }
    @container (min-width: 1360px) {
      .month-grid { width: 1320px; min-width: 1320px; }
    }
    @container (min-width: 1540px) {
      .month-grid { width: 1460px; min-width: 1460px; }
    }

    .filters { position: relative; z-index: 2; grid-column: 3; grid-row: 2; width: var(--filter-width); min-width: var(--filter-width); min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-left: 1px solid var(--border); background: var(--surface); }
    .filters-scroll-shell { position: relative; min-width: 0; min-height: 0; flex: 1 1 auto; overflow: hidden; }
    .filters-content { width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 30px 24px 18px; }
    .filter-toggle-wrap { margin-top: auto; padding: 10px 10px 18px; }
    .filter-toggle { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; white-space: nowrap; }
    .filter-toggle:hover { background: var(--surface-subtle); }
    .filter-toggle-icon { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; transform: scaleX(-1); }
    .filter-toggle-label { opacity: 1; transition: opacity 120ms ease; }
    .filters-collapsed .filters-scroll-shell { display: none; }
    .filters-collapsed .filter-toggle { justify-content: center; gap: 0; padding: 0; }
    .filters-collapsed .filter-toggle-label { width: 0; overflow: hidden; opacity: 0; }
    .filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
    .filters-title { margin: 0; font-size: 15px; font-weight: 650; }
    .reset-button { padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 13px; cursor: pointer; }
    .reset-button:hover { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 3px; }
    .search-wrap { position: relative; margin-bottom: 27px; }
    .search-wrap .icon { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; color: #6d7c9c; transform: translateY(-50%); pointer-events: none; }
    .search { width: 100%; height: 43px; padding: 0 13px 0 42px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text); background: var(--surface); outline: 0; }
    .search::placeholder { color: #8b96ad; opacity: 1; } .search:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(7,92,255,.12); }
    .filter-group { padding: 0 0 25px; } .filter-group + .filter-group { padding-top: 25px; border-top: 1px solid var(--border); }
    .filter-label { margin-bottom: 11px; font-size: 13px; font-weight: 650; }
    .filter-row { min-height: 41px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; color: #31415f; font-size: 13px; }
    .filter-name { width: 154px; flex: 0 0 154px; display: flex; align-items: center; gap: 10px; min-width: 0; }
    .filter-row input { appearance: none; width: 18px; height: 18px; flex: 0 0 18px; margin: 0; border: 1px solid #bdc8da; border-radius: 3px; background: #fff; }
    .filter-row input:checked { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 4px #fff; }
    .filter-row .platform-icon { width: 19px; height: 19px; flex-basis: 19px; }
    .filter-count { width: 28px; flex: 0 0 28px; color: var(--blue-muted); text-align: right; font-variant-numeric: tabular-nums; } .filter-count.error { color: var(--error); }
    /* Editor concept page. It deliberately reuses the calendar shell geometry,
       type scale, borders and controls instead of introducing a second visual world. */
    .editor-page { --nav-width: 72px; --preview-width: 368px; position: fixed; inset: 0; z-index: 30; display: none; min-width: 1000px; overflow: hidden; border: 1px solid var(--border-strong); color: var(--text); background: var(--canvas); }
    .editor-page.is-open { display: grid; grid-template-columns: var(--nav-width) minmax(0, 1fr); grid-template-rows: var(--header-height) minmax(0, 1fr); transition: grid-template-columns 220ms var(--ease-in-out); }
    .editor-page.nav-open { --nav-width: 258px; }
    .editor-page .sidebar { grid-column: 1; grid-row: 1 / 3; }
    .editor-header { grid-column: 2; grid-row: 1; }
    .editor-close { display: none; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: 8px; color: #53617b; background: transparent; cursor: pointer; }
    .editor-close svg { width: 21px; height: 21px; fill: currentColor; }
    .editor-close:hover { color: #1d2d4d; background: #f1f4f8; }
    .editor-close:focus-visible { outline: 2px solid #8eb2ff; outline-offset: 2px; }
    .editor-save-status { display: inline-flex; min-width: 0; align-items: center; gap: 7px; color: #75819a; font-size: 12px; line-height: 1; transform: translateY(2px); }
    .editor-save-status[hidden] { display: none; }
    .editor-save-status::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #075cff; content: ""; }
    .editor-save-status[data-state="saved"]::before { background: #1f9d62; }
    .editor-save-status[data-state="error"] { color: #cf3344; }
    .editor-save-status[data-state="error"]::before { background: #ef3348; }
    .publication-error-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin: 22px 30px; padding: 15px 16px; border: 1px solid #edc9cd; border-radius: 10px; color: #40262b; background: #fff8f8; }
    .publication-error-panel[hidden] { display: none; }
    .publication-error-copy { min-width: 0; }
    .publication-error-copy strong { display: block; margin-bottom: 4px; color: #9d2731; font-size: 13px; line-height: 1.35; }
    .publication-error-copy p { max-width: 68ch; margin: 0; color: #624b50; font-size: 12px; line-height: 1.5; }
    .publication-error-action { min-height: 36px; padding: 0 13px; border: 1px solid #d8aeb3; border-radius: 7px; color: #9d2731; background: #fff; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
    .publication-error-action:hover { border-color: #c8878f; background: #fffdfd; }
    .publication-error-action:focus-visible { outline: 2px solid #075cff; outline-offset: 2px; }
    .publication-error-panel:not([hidden]) + .format-bar { border-top: 1px solid #e1e6ef; }
    .section-copy.has-publication-error { border-radius: 6px; outline: 2px solid rgba(199,62,77,.2); outline-offset: 2px; }
    .media-tile.has-publication-error { border-color: #cf3344; box-shadow: 0 0 0 2px rgba(207,51,68,.14); }
    @media (max-width: 760px) { .publication-error-panel { grid-template-columns: 1fr; align-items: start; } .publication-error-action { justify-self: start; } }
    @keyframes editor-operation-spin { to { transform: rotate(360deg); } }
    .editor-actions-footer { --action-frame-left: max(34px, (100% - 900px) / 2); --action-frame-width: clamp(652px, calc(100% - 68px), 900px); position: relative; z-index: 5; isolation: isolate; display: flex; width: 100%; min-height: 70px; box-sizing: border-box; justify-content: flex-end; align-items: flex-start; gap: 10px; margin-top: -10px; padding: 18px max(24px, calc(100% - var(--action-frame-left) + var(--action-scroll-x, 0px) - var(--action-frame-width) + 16px)) 12px 24px; background: transparent; }
    .editor-actions-footer::before { position: absolute; z-index: -1; inset: 0 auto 0 calc(var(--action-frame-left) - var(--action-scroll-x, 0px)); width: var(--action-frame-width); box-sizing: border-box; border: 1px solid #d7dfed; border-bottom: 0; border-radius: 10px 10px 0 0; background: #fff; box-shadow: 0 -10px 24px rgba(29, 48, 82, .07); content: ""; }
    .editor-actions-footer .control, .editor-actions-footer .primary-button { height: 40px; }
    .editor-actions-footer .primary-button { margin-left: 0; }
    .editor-delete-button { position: absolute; left: calc(var(--action-frame-left) - var(--action-scroll-x, 0px) + 16px); height: 40px; padding: 0 14px; border: 1px solid #efc8cc; border-radius: 7px; color: #b52a33; background: #fff; font: inherit; font-size: 13px; font-weight: 620; cursor: pointer; }
    .editor-delete-button:hover { border-color: #dda6ac; background: #fff7f7; }
    .editor-delete-button.is-exit { border-color: #cbd5e4; color: #34435f; background: #fff; }
    .editor-delete-button.is-exit:hover { border-color: #aebbd0; background: #f7f9fc; }
    .editor-delete-button[hidden] { display: none; }
    .editor-copy-action { display: flex; align-items: flex-end; flex-direction: column; gap: 7px; }
    .editor-copy-note { color: #77839a; font-size: 11px; line-height: 1.35; text-align: right; white-space: nowrap; }
    .publish-label { display: inline-flex; align-items: center; gap: 9px; }
    .publish-count { display: inline-grid; min-width: 21px; height: 20px; box-sizing: border-box; place-items: center; padding: 0 6px; border-radius: 6px; color: #fff; background: rgba(255,255,255,.18); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 650; line-height: 1; }
    .editor-actions-footer button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
    .editor-actions-footer button[data-busy="true"] { cursor: wait; opacity: 1; }
    .editor-actions-footer .primary-button[data-busy="true"] { background: #3d78ff; box-shadow: 0 5px 14px rgba(7,92,255,.16); }
    .editor-actions-footer button[data-busy="true"]::before { width: 14px; height: 14px; flex: 0 0 14px; box-sizing: border-box; border: 2px solid color-mix(in srgb, currentColor 28%, transparent); border-top-color: currentColor; border-radius: 50%; content: ""; animation: editor-operation-spin .72s linear infinite; }
    .editor-actions-footer button[data-busy="true"] { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
    .calendar-result-toast { position: fixed; z-index: 80; top: 18px; left: 50vw; display: grid; grid-template-columns: 34px minmax(0,auto); width: max-content; max-width: calc(100vw - 28px); box-sizing: border-box; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid #dce5e0; border-radius: 12px; color: #173c2d; background: #fff; box-shadow: 0 18px 50px rgba(28,48,70,.16); font-size: 14px; font-weight: 650; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, -8px); transition: opacity 180ms ease, transform 240ms cubic-bezier(.16,1,.3,1); }
    .calendar-result-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
    #calendar-result-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .calendar-result-mark { position: relative; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #e8f7ef; }
    .calendar-result-mark::before { position: absolute; top: 50%; left: 50%; width: 9px; height: 5px; border-bottom: 2px solid #21865d; border-left: 2px solid #21865d; content: ""; transform: translate(-50%,-65%) rotate(-45deg); }
    .calendar-result-mark svg { display: none; width: 19px; height: 19px; fill: currentColor; }
    .calendar-result-toast.is-delete, .calendar-result-toast.is-error { border-color: #efd9dc; color: #69252d; }
    .calendar-result-toast.is-delete .calendar-result-mark, .calendar-result-toast.is-error .calendar-result-mark { color: #c3343e; background: #fbecef; }
    .calendar-result-toast.is-delete .calendar-result-mark::before { display: none; }
    .calendar-result-toast.is-delete .calendar-result-mark svg { display: block; }
    .calendar-result-toast.is-error .calendar-result-mark::before { width: auto; height: auto; border: 0; color: #c3343e; content: "!"; font-size: 20px; font-weight: 750; line-height: 1; transform: translate(-50%,-52%); }
    .editor-shell { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--preview-width); overflow: hidden; transition: grid-template-columns 220ms var(--ease-in-out); }
    .editor-page.preview-collapsed { --preview-width: 72px; }
    .editor-page.is-published-view .format-bar, .editor-page.is-published-view .stream-sheet > .stream-block, .editor-page.is-published-view .threads-chain-editor { display: none; }
    .published-summary { display: none; padding: 28px 30px 30px; }
    .editor-page.is-published-view .published-summary { display: block; }
    .published-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid #e5eaf2; }
    .published-summary-head h3 { margin: 0 0 6px; color: #172440; font-size: 18px; line-height: 1.3; }
    .published-summary-head p { margin: 0; color: #77839a; font-size: 12px; }
    .published-summary-status { display: inline-flex; align-items: center; gap: 7px; color: #2e7958; font-size: 12px; font-weight: 650; white-space: nowrap; }
    .published-summary-status::before { width: 7px; height: 7px; border-radius: 50%; background: #28a467; content: ""; }
    .published-summary-section { padding: 22px 0; border-bottom: 1px solid #e5eaf2; }
    .published-summary-section:last-child { padding-bottom: 0; border-bottom: 0; }
    .published-summary-label { display: block; margin-bottom: 10px; color: #71809b; font-size: 12px; font-weight: 650; }
    .published-summary-text { max-width: 72ch; overflow-wrap: anywhere; color: #233250; font-size: 14px; line-height: 1.65; }
    .published-summary-text:empty::before { color: #98a3b7; content: "Текст не добавлен"; }
    .published-summary-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 10px; }
    .published-summary-media figure { min-width: 0; margin: 0; }
    .published-summary-media img, .published-summary-media video { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; background: #eef2f7; object-fit: cover; }
    .published-summary-media figcaption { margin-top: 6px; overflow: hidden; color: #77839a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
    .published-summary-empty { color: #98a3b7; font-size: 12px; }
    .published-summary-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
    .published-summary-details div { min-width: 0; }
    .published-summary-details dt { margin-bottom: 4px; color: #7c88a0; font-size: 11px; }
    .published-summary-details dd { margin: 0; color: #2b3956; font-size: 13px; font-weight: 600; }
    .published-threads-chain { display: grid; }
    .published-threads-item { min-width: 0; padding: 18px 0; border-bottom: 1px solid #e8ecf3; }
    .published-threads-item:first-child { padding-top: 0; }
    .published-threads-item:last-child { padding-bottom: 0; border-bottom: 0; }
    .published-threads-item > header { margin-bottom: 9px; color: #566580; font-size: 12px; }
    .published-threads-element, .published-summary-poll { margin-top: 15px; }
    .published-threads-element > span, .published-summary-poll > strong { display: block; margin-bottom: 8px; color: #71809b; font-size: 11px; font-weight: 650; }
    .published-summary-poll-question { margin-bottom: 10px; color: #17233d; font-size: 14px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
    .published-summary-poll ol, .published-summary-poll-list { display: grid; gap: 7px; margin: 0; padding-left: 22px; color: #2b3956; font-size: 13px; line-height: 1.45; }
    .editor-page.is-single-platform .platform-choice:not(.is-active) { display: none; }
    .editor-main-scroll-shell, .preview-scroll-shell { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
    .editor-main-scroll-shell { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
    .editor-main-scroll { width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: auto; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: auto; overscroll-behavior-y: contain; }
    [data-overlay-scrollbars] { scrollbar-width: none; -ms-overflow-style: none; }
    [data-overlay-scrollbars]::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .overlay-scrollbar { position: absolute; z-index: 4; top: 3px; right: 2px; bottom: 3px; width: 4px; opacity: 0; pointer-events: none; transition: opacity 180ms ease-out; }
    .overlay-scrollbar.is-visible { opacity: 1; }
    .overlay-scrollbar[hidden] { display: none; }
    .overlay-scrollbar-thumb { position: absolute; top: 0; left: 0; width: 4px; min-height: 28px; border-radius: 4px; background: rgba(158,173,198,.86); transform: translateY(0); }
    .overlay-scrollbar.is-horizontal { top: auto; right: 3px; bottom: 2px; left: 3px; width: auto; height: 4px; }
    .overlay-scrollbar.is-horizontal .overlay-scrollbar-thumb { width: auto; min-width: 28px; height: 4px; min-height: 0; transform: translateX(0); }
    .editor-main { min-width: 720px; padding: 30px 34px 34px; }
    .editor-board { min-height: 740px; }
    .platform-manager { padding: 16px 24px 15px; border-bottom: 1px solid #e1e6ef; background: #fff; }
    .platform-manager-head { display: flex; align-items: baseline; margin-bottom: 12px; }
    .platform-manager-head strong { color: #253454; font-size: 13px; }
    .platform-tabs { display: flex; width: calc(100% + 18px); align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 14px 26px; margin-left: -18px; padding-left: 18px; overflow: visible; }
    .platform-tabs::-webkit-scrollbar { display: none; }
    .platform-choice { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; height: 42px; color: #69758b; background: transparent; cursor: grab; transition: transform var(--motion-ui) var(--ease-in-out); }
    .platform-choice[hidden], .platform-close[hidden], .platform-add-option[hidden] { display: none; }
    .platform-choice.is-dragging { opacity: 0; }
    .platform-choice.drag-over { color: var(--blue); }
    .platform-drag { position: absolute; top: 0; left: -14px; width: 10px; height: 100%; opacity: 0; }
    .platform-choice:hover .platform-drag { opacity: .48; }
    .platform-drag::before { position: absolute; top: 15px; left: 1px; width: 2px; height: 2px; border-radius: 50%; background: #9ba7ba; box-shadow: 0 5px #9ba7ba, 0 10px #9ba7ba, 4px 0 #9ba7ba, 4px 5px #9ba7ba, 4px 10px #9ba7ba; content: ""; }
    .platform-tab { display: inline-flex; align-items: center; gap: 9px; height: 100%; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; font-size: 14px; font-weight: 400; cursor: pointer; }
    .platform-choice.is-active .platform-tab { color: #14264a; font-weight: 650; }
    .platform-tab:focus-visible { outline: 2px solid rgba(23,105,255,.38); outline-offset: 2px; border-radius: 6px; }
    .platform-tab .platform-icon { width: 22px; height: 22px; }
    .platform-close { display: grid; width: 26px; height: 26px; margin-left: 2px; padding: 0; place-items: center; border: 0; border-radius: 6px; color: #8490a6; background: transparent; cursor: pointer; }
    .platform-close:hover { color: #31405d; background: #f0f3f8; }
    .platform-close svg { width: 15px; height: 15px; fill: currentColor; }
    .platform-add-wrap { position: relative; flex: 0 0 auto; }
    .platform-add-button { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 1px solid #d4ddeb; border-radius: 8px; color: var(--blue); background: #fff; cursor: pointer; }
    .platform-add-button:hover { border-color: #b8c8e1; background: #f5f8ff; }
    .platform-add-button svg { width: 17px; height: 17px; fill: currentColor; }
    .platform-add-menu { position: absolute; z-index: 12; top: calc(100% + 8px); left: 0; width: 196px; overflow: hidden; border: 1px solid #d9e1ed; border-radius: 10px; background: #fff; box-shadow: 0 14px 34px rgba(29,46,78,.14); }
    .platform-add-menu[hidden] { display: none; }
    .platform-add-option { display: flex; width: 100%; min-height: 43px; align-items: center; gap: 10px; padding: 0 14px; border: 0; color: #253451; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
    .platform-add-option:hover { background: #f5f7fb; }
    .platform-add-option .platform-icon { width: 20px; height: 20px; }
    .platform-add-hint { display: block; box-sizing: border-box; width: 100%; margin: 0; padding: 11px 14px 12px; border-top: 1px solid #edf0f5; color: #7a869c; font-size: 11px; line-height: 1.45; }
    .editor-page.is-published-view .platform-close, .editor-page.is-published-view .platform-add-wrap { display: none; }
    .platform-content-dot { width: 8px; height: 8px; border: 1.5px solid #a9b4c7; border-radius: 50%; background: #fff; }
    .platform-content-dot.has-content { border-color: var(--blue); background: var(--blue); }
    .tool-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 7px; color: #45536f; background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
    .tool-button:hover { border-color: #d8e1ef; background: #f7f9fc; }
    .tool-button[aria-pressed="true"] { border-color: #cbdcff; color: var(--blue); background: var(--blue-soft); }
    .format-icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
    .char-count { margin-left: auto; color: #8a95a9; font-size: 12px; font-variant-numeric: tabular-nums; }
    .media-tile { position: relative; height: 94px; overflow: hidden; border-radius: 7px; background: #e9edf4; }
    .media-tile img { width: 100%; height: 100%; object-fit: cover; }
    .media-tile > img, .media-tile > video, .preview-media-item > img, .preview-media-item > video { transition: filter .18s ease, transform .18s ease; }
    .media-tile.is-spoiler > img, .media-tile.is-spoiler > video, .preview-media-item.is-spoiler > img, .preview-media-item.is-spoiler > video { filter: blur(15px); transform: scale(1.08); }
    .media-add { display: grid; height: 94px; place-items: center; border: 1px dashed #bfcbe0; border-radius: 7px; color: #63708a; background: #fbfcfe; font-size: 13px; }
    .media-add:disabled { border-color: #d9dfe8; color: #929caf; background: #f7f8fa; cursor: not-allowed; }
    .schedule-panel { margin-top: 14px; border: 1px solid #d7dfed; border-radius: 10px; background: #fff; }
    .schedule-copy strong { display: block; font-size: 14px; }
    .schedule-copy span { color: #7a869d; font-size: 12px; }
    .switch { position: relative; width: 36px; height: 20px; margin-left: auto; border: 0; border-radius: 10px; background: #c5cede; cursor: pointer; }
    .switch::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(21,35,60,.2); content: ""; }
    .switch.on { background: var(--blue); }
    .switch.on::after { left: 19px; }
    .stream-sheet { overflow: hidden; border: 1px solid #d7dfed; border-radius: 10px; background: #fff; }
    .stream-sheet .platform-tabs { margin-left: -18px; }
    .stream-block { padding: 22px 24px; }
    .stream-block + .stream-block { border-top: 1px solid #e1e6ef; }
    .stream-block.media-stream-block { border-top-color: #eef1f5; }
    .stream-label { display: flex; align-items: center; margin-bottom: 12px; color: #68758d; font-size: 12px; font-weight: 600; }
    .stream-label > span:last-child { margin-left: auto; color: #8b96aa; font-weight: 400; }
    .threads-topic-field { display: flex; max-width: 360px; align-items: center; gap: 7px; margin: 0 0 13px; color: #8b96aa; font-size: 13px; line-height: 1.5; }
    .threads-topic-field[hidden] { display: none; }
    .threads-topic-field > span { flex: 0 0 auto; color: #9ca6b8; font-size: 17px; }
    .threads-topic-input { width: 100%; min-width: 0; padding: 2px 0; border: 0; border-bottom: 1px solid transparent; outline: 0; color: #243452; background: transparent; font: inherit; }
    .threads-topic-input::placeholder { color: #9aa4b5; opacity: 1; }
    .threads-topic-input:focus { border-bottom-color: #b9c9e5; }
    .stream-media { display: grid; grid-template-columns: repeat(auto-fill, 160px); gap: 12px; align-items: start; justify-content: start; }
    .stream-media .media-tile, .stream-media .media-add { width: 160px; height: 126px; }
    .stream-media .media-tile > img, .stream-media .media-tile > video { user-select: none; -webkit-user-drag: none; }
    .stream-media .media-tile { border: 1px solid #dfe5ef; background: #f5f7fa; }
    .stream-media .media-tile { min-width: 0; cursor: grab; transition: border-color .16s ease, box-shadow .16s ease, opacity .16s ease; }
    .stream-media .media-tile:active { cursor: grabbing; }
    .stream-media .media-tile { transition: transform var(--motion-ui) var(--ease-in-out); }
    .stream-media .media-tile.is-dragging { opacity: 0; }
    .stream-media .media-tile.is-uploading { cursor: progress; }
    .stream-media .media-tile.drag-before { border-color: #91b3ff; box-shadow: inset 3px 0 0 var(--blue); }
    .stream-media .media-tile.drag-after { border-color: #91b3ff; box-shadow: inset -3px 0 0 var(--blue); }
    .drag-ghost { position: fixed !important; z-index: 2147483647 !important; top: 0 !important; left: -10000px !important; box-sizing: border-box !important; margin: 0 !important; pointer-events: none !important; transform: none !important; transition: none !important; opacity: 1 !important; }
    .platform-choice.drag-ghost { padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 28px rgba(30,47,79,.18); }
    .media-pointer-ghost { position: fixed !important; z-index: 2147483647 !important; top: 0 !important; left: 0 !important; width: 160px !important; height: 126px !important; overflow: hidden !important; box-sizing: border-box !important; margin: 0 !important; border: 1px solid #91b3ff !important; border-radius: 8px !important; background: var(--surface) !important; box-shadow: 0 12px 28px rgba(30,47,79,.2) !important; opacity: .98 !important; pointer-events: none !important; touch-action: none !important; transition: none !important; will-change: transform; }
    .media-pointer-ghost .media-action, .media-pointer-ghost .media-order-actions { display: none !important; }
    .media-pointer-ghost > img, .media-pointer-ghost > video { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
    .drag-ghost .media-action { display: none !important; }
    .media-tile video { width: 100%; height: 100%; object-fit: cover; }
    .stream-media .media-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

    .media-action { position: absolute; z-index: 2; right: 8px; display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 7px; color: #fff; background: rgba(18,29,49,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transform: translateX(4px); transition: opacity .18s ease, visibility .18s ease, transform .18s ease, color .14s ease; cursor: pointer; }
    .media-action svg { width: 18px; height: 18px; fill: currentColor; }
    .media-spoiler { top: 8px; }
    .media-remove { bottom: 8px; }
    .media-order-actions { display: none; }
    .media-tile:focus-within .media-action, .media-tile.is-controls-visible .media-action { opacity: 1; visibility: visible; transform: translateX(0); }
    @media (hover: hover) and (pointer: fine) { .media-tile:hover .media-action { opacity: 1; visibility: visible; transform: translateX(0); } }
    @media (hover: none), (pointer: coarse) { .media-action { opacity: 1; visibility: visible; transform: none; } }
    .media-action:hover { color: #fff; }
    .media-action:focus-visible { outline: 2px solid #fff; outline-offset: 1px; opacity: 1; visibility: visible; transform: translateX(0); }
    .media-add { cursor: pointer; }
    .media-input { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .media-error { display: none; margin: 10px 0 0; padding: 9px 11px; border: 1px solid #efd0d3; border-radius: 7px; color: #a9232b; background: #fff7f7; font-size: 12px; line-height: 1.45; }
    .media-error:not(:empty) { display: block; }
    .media-error-list { margin: 0; padding-left: 18px; }
    .media-error-list li + li { margin-top: 4px; }
    .storage-dialog-backdrop { position: fixed; z-index: 180; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(22,32,52,.34); }
    .storage-dialog-backdrop[hidden] { display: none; }
    .storage-dialog { width: min(620px, 100%); max-height: min(720px, calc(100dvh - 48px)); overflow: hidden; border: 1px solid #d8e0ed; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(25,42,70,.2); }
    .storage-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; border-bottom: 1px solid #e5eaf2; }
    .storage-dialog-head h3 { margin: 0 0 6px; color: #172440; font-size: 18px; }
    .storage-dialog-head p { margin: 0; color: #71809a; font-size: 12px; line-height: 1.5; }
    .storage-dialog-close { width: 30px; height: 30px; border: 0; color: #53617b; background: transparent; font-size: 23px; cursor: pointer; }
    .storage-dialog-list { max-height: 390px; overflow: auto; padding: 8px 24px; }
    .storage-file { display: grid; grid-template-columns: auto 44px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf0f5; }
    .storage-file:last-child { border-bottom: 0; }
    .storage-file input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
    .storage-file-preview { width: 44px; height: 44px; overflow: hidden; border-radius: 7px; background: #edf1f6; }
    .storage-file-preview img, .storage-file-preview video { width: 100%; height: 100%; object-fit: cover; }
    .storage-file-copy { min-width: 0; }
    .storage-file-copy strong { display: block; overflow: hidden; color: #253451; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
    .storage-file-copy span { display: block; margin-top: 4px; color: #7c88a0; font-size: 11px; }
    .storage-file-size { color: #4b5974; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .storage-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 24px 20px; border-top: 1px solid #e5eaf2; }
    .storage-dialog-actions button { height: 38px; padding: 0 15px; border: 1px solid #cad5e5; border-radius: 7px; color: #34435f; background: #fff; font: inherit; cursor: pointer; }
    .storage-dialog-actions .primary { border-color: var(--blue); color: #fff; background: var(--blue); }
    .storage-dialog-actions .primary:disabled { cursor: not-allowed; opacity: .45; }
    .publication-delete-copy { margin: 0; color: #53617a; font-size: 13px; line-height: 1.55; }
    .publication-delete-dialog { width: auto; min-width: 0; max-width: calc(100vw - 40px); }
    .publication-delete-actions { display: flex; flex-wrap: nowrap; justify-content: safe center; gap: 9px; width: 100%; box-sizing: border-box; padding: 15px 22px 20px; overflow: visible; border-top: 1px solid #edf0f5; }
    .publication-delete-actions button { min-height: 38px; padding: 0 14px; border: 1px solid #cbd5e4; border-radius: 7px; color: #34435f; background: #fff; font: inherit; font-size: 13px; font-weight: 620; white-space: nowrap; cursor: pointer; }
    .publication-delete-actions .delete-all { border-color: #efc8cc; color: #b52a33; }
    .publication-delete-actions .delete-current { border-color: #b52a33; color: #fff; background: #b52a33; }
    .editor-close-dialog { width: min(420px, calc(100vw - 40px)); }
    .editor-close-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px 20px; border-top: 1px solid #edf0f5; }
    .editor-close-actions button { min-height: 40px; padding: 0 15px; border: 1px solid #cbd5e4; border-radius: 7px; color: #34435f; background: #fff; font: inherit; font-size: 13px; font-weight: 620; cursor: pointer; }
    .editor-close-actions .discard { border-color: #efc8cc; color: #b52a33; }
    .editor-close-actions .discard:hover { border-color: #dda6ac; background: #fff7f7; }
    .editor-close-actions .primary { border-color: var(--blue); color: #fff; background: var(--blue); }
    .sr-only { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .media-viewer { position: fixed; z-index: 120; inset: 0; display: grid; width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh; grid-template-rows: auto minmax(0, 1fr) auto; box-sizing: border-box; overflow: hidden; padding: 22px; color: #f8faff; background: rgba(13, 21, 37, .86); }
    .media-viewer[hidden] { display: none; }
    .media-viewer-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; width: min(1120px, 100%); margin: 0 auto 16px; }
    .media-viewer-meta { min-width: 0; }
    .media-viewer-name { display: block; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
    .media-viewer-count { display: block; margin-top: 3px; color: #bac4d5; font-size: 12px; }
    .media-viewer-close, .media-viewer-nav { min-height: 36px; padding: 0 13px; border: 1px solid rgba(218,225,236,.28); border-radius: 7px; color: #f8faff; background: rgba(255,255,255,.1); font: inherit; font-size: 13px; cursor: pointer; }
    .media-viewer-close:hover, .media-viewer-nav:hover:not(:disabled) { background: rgba(255,255,255,.17); }
    .media-viewer-close:focus-visible, .media-viewer-nav:focus-visible { outline: 2px solid #8fb4ff; outline-offset: 2px; }
    .media-viewer-stage { position: relative; display: grid; min-width: 0; min-height: 0; overflow: hidden; place-items: center; }
    .media-viewer-stage img, .media-viewer-stage video { display: block; width: auto; height: auto; max-width: min(1120px, 100%); max-height: 100%; min-height: 0; border-radius: 8px; object-fit: contain; opacity: 1; box-shadow: 0 22px 60px rgba(0,0,0,.32); transition: opacity .16s ease; }
    .media-viewer-stage video { background: #080d17; }
    .media-viewer-stage.is-loading img, .media-viewer-stage.is-loading video { opacity: 0; }
    .media-viewer-status { position: absolute; inset: 0; display: grid; place-items: center; color: #d4dbea; font-size: 13px; text-align: center; }
    .media-viewer-status[hidden] { display: none; }
    .media-viewer-actions { display: flex; justify-content: center; gap: 8px; width: min(1120px, 100%); margin: 16px auto 0; }
    .media-viewer-nav:disabled { opacity: .38; cursor: default; }
    .stream-schedule { display: flex; width: min(100%, 600px); gap: 12px; align-items: center; }
    .stream-schedule .schedule-copy { min-width: 0; flex: 1 1 auto; }
    .stream-schedule .switch { flex: 0 0 36px; margin-left: 0; }
    .stream-schedule strong { font-size: 14px; }
    .schedule-details { display: none; width: min(100%, 600px); padding-top: 18px; }
    .schedule-panel.is-on .schedule-details { display: block; }
    .schedule-common { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: #52617c; font-size: 12px; cursor: pointer; }
    .schedule-common input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
    .schedule-platforms { overflow: visible; border: 1px solid #e1e6ef; border-radius: 8px; background: #fff; }
    .schedule-platform-item { display: grid; grid-template-columns: minmax(118px, 1fr) auto auto; gap: 12px; align-items: center; min-height: 52px; padding: 8px 11px; }
    .schedule-platform-item + .schedule-platform-item { border-top: 1px solid #eef1f5; }
    .schedule-platform-name { display: flex; min-width: 0; align-items: center; gap: 8px; color: #263553; font-size: 13px; font-weight: 600; }
    .schedule-platform-name .platform-mark { width: 20px; height: 20px; flex: 0 0 20px; }
    .schedule-platform-icons { display: flex; align-items: center; gap: 5px; }
    .schedule-platform-icons > span { display: grid; width: 20px; height: 20px; place-items: center; }
    .schedule-platform-icons .platform-mark { width: 18px; height: 18px; }
    .schedule-datetime { position: relative; z-index: 1; grid-column: -2 / -1; }
    .schedule-datetime:focus-within { z-index: 8; }
    .schedule-datetime-field { display: grid; width: 222px; height: 34px; grid-template-columns: 126px 1px 38px 8px 38px; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #d4ddeb; border-radius: 7px; color: #253454; background: #fff; transition: border-color .14s ease, box-shadow .14s ease, background .14s ease; }
    .schedule-datetime-field:focus-within { border-color: #8eb2ff; box-shadow: 0 0 0 3px rgba(7,92,255,.1); }
    .schedule-datetime-field.is-invalid { border-color: #e39aa0; color: #a83f3f; background: #fff8f8; }
    .schedule-date-trigger, .schedule-time-trigger { height: 30px; padding: 0; border: 0; border-radius: 6px; color: inherit; background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
    .schedule-date-trigger:hover, .schedule-time-trigger:hover, .schedule-date-trigger[aria-expanded="true"], .schedule-time-trigger[aria-expanded="true"] { color: #145fdc; background: #edf4ff; }
    .schedule-date-trigger:focus-visible, .schedule-time-trigger:focus-visible { outline: 2px solid rgba(23,105,255,.28); outline-offset: -2px; }
    .schedule-datetime-divider { width: 1px; height: 16px; background: linear-gradient(to bottom,transparent,rgba(103,119,151,.24) 22%,rgba(103,119,151,.24) 78%,transparent); }
    .schedule-date-popover, .schedule-time-popover { position: absolute; z-index: 20; bottom: calc(100% + 7px); border: 1px solid rgba(123,143,178,.24); background: rgba(255,255,255,.98); box-shadow: 0 12px 30px rgba(38,58,96,.16),0 2px 7px rgba(38,58,96,.07); opacity: 1; transform: none; transform-origin: bottom center; transition: opacity var(--motion-ui) var(--ease-out), transform var(--motion-ui) var(--ease-out); }
    @starting-style { .schedule-date-popover, .schedule-time-popover { opacity: 0; transform: translateY(4px) scale(.95); } }
    .schedule-date-popover { top: -259px; right: 0; bottom: auto; width: 218px; padding: 9px; border-radius: 12px; }
    .schedule-date-popover > header { display: grid; grid-template-columns: 25px minmax(0,1fr) 25px; align-items: center; gap: 4px; margin-bottom: 5px; }
    .schedule-date-popover > header button { width: 25px; height: 25px; padding: 0; border: 0; border-radius: 7px; color: #647698; background: transparent; cursor: pointer; font-size: 18px; }
    .schedule-date-popover > header button:hover, .schedule-date-popover > header button:focus-visible { color: #145fdc; background: #edf4ff; outline: 0; }
    .schedule-date-popover > header strong { color: #1e2e50; font-size: 11px; text-align: center; }
    .schedule-date-weekdays, .schedule-date-days { display: grid; grid-template-columns: repeat(7,1fr); }
    .schedule-date-weekdays span { padding: 2px 0 4px; color: #8a96ae; font-size: 8px; text-align: center; }
    .schedule-date-days { gap: 1px; }
    .schedule-date-days button { display: grid; height: 25px; padding: 0; place-items: center; border: 0; border-radius: 7px; color: #344463; background: transparent; cursor: pointer; font-size: 9px; }
    .schedule-date-days button:hover, .schedule-date-days button:focus-visible { color: #145fdc; background: #eaf2ff; outline: 0; }
    .schedule-date-days button.outside { color: #b6becd; }
    .schedule-date-days button.today { box-shadow: inset 0 0 0 1px #9bb9ee; }
    .schedule-date-days button.selected { color: #fff; background: #3479df; box-shadow: 0 3px 9px rgba(23,105,255,.2); }
    .schedule-date-today { height: 25px; margin-top: 6px; padding: 0 9px; border: 0; border-radius: 7px; color: #536787; background: #f4f7fc; cursor: pointer; font-size: 9px; font-weight: 620; }
    .schedule-time-popover { width: 46px; max-height: 174px; box-sizing: border-box; padding: 4px 3px; overflow: auto; overscroll-behavior: contain; border-radius: 10px; scrollbar-width: none; }
    .schedule-time-popover.hour { right: 48px; }
    .schedule-time-popover.minute { right: 2px; }
    .schedule-time-popover::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .schedule-time-popover button { display: grid; width: 100%; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 7px; color: #2c3955; background: transparent; cursor: pointer; font-size: 11px; font-variant-numeric: tabular-nums; }
    .schedule-time-popover button:hover, .schedule-time-popover button:focus-visible { color: #145fdc; background: #edf4ff; outline: 0; }
    .schedule-time-popover button.selected { color: #fff; background: #3479df; font-weight: 680; }
    .schedule-error { display: none; margin: 9px 0 0; color: #b12b34; font-size: 12px; }
    .schedule-error.is-visible { display: block; }
    @media (max-width: 760px) {
      .schedule-details { padding-top: 16px; }
      .schedule-common { margin-bottom: 8px; }
      .schedule-platforms { border: 0; border-radius: 0; background: transparent; }
      .schedule-platform-item { grid-template-columns: 1fr auto; gap: 7px; }
      .schedule-platform-item { padding: 10px 0; }
      .schedule-platform-item + .schedule-platform-item { border-top-color: #edf1f6; }
      .schedule-platform-icons { justify-self: end; }
      .schedule-datetime { width: 100%; grid-column: 1 / -1; }
      .schedule-datetime-field { border: 0; background: #f3f6fa; transition: box-shadow .14s ease, background .14s ease; }
      .schedule-datetime-field:focus-within { background: #eef4ff; box-shadow: 0 0 0 2px rgba(7,92,255,.18); }
      .schedule-datetime-field.is-invalid { color: #a83f3f; background: #fff1f2; box-shadow: inset 0 0 0 1px #e7a5ab; }
    }
    .stream-sheet .schedule-panel { position: relative; margin-top: 0; border: 0; border-radius: 0; }
    .stream-sheet .schedule-panel::before { position: absolute; top: 0; right: 24px; left: 24px; height: 1px; background: #f0f2f6; content: ""; }
    .format-bar { position: relative; display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 24px; border-bottom: 1px solid #e1e6ef; background: #fafbfd; }
    .format-controls { display: flex; align-items: center; gap: 4px; }
    .format-bar .tool-button { min-width: 34px; }
    .format-bar .tool-button.with-label { width: auto; padding: 0 10px; white-space: nowrap; }
    .format-divider { width: 1px; height: 22px; margin: 0 6px; background: #dce3ee; }
    .format-hint { margin-left: auto; color: #8792a6; font-size: 12px; }
    .link-editor { position: absolute; z-index: 20; top: calc(100% - 2px); width: min(360px, calc(100% - 32px)); padding: 14px; border: 1px solid #d6deeb; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(29, 43, 72, .14); }
    .link-editor[hidden] { display: none; }
    .link-editor label { display: block; margin-bottom: 8px; color: #263553; font-size: 13px; font-weight: 600; }
    .link-editor-row { display: flex; align-items: center; gap: 8px; }
    .link-editor-input { min-width: 0; height: 38px; flex: 1 1 auto; padding: 0 11px; border: 1px solid #cbd5e5; border-radius: 7px; color: #142344; background: #fff; font: inherit; font-size: 14px; outline: 0; }
    .link-editor-input:focus { border-color: #8eb2ff; box-shadow: 0 0 0 3px rgba(7, 92, 255, .12); }
    .link-editor-input[aria-invalid="true"] { border-color: #e44b52; box-shadow: 0 0 0 3px rgba(239, 43, 50, .1); }
    .link-editor-apply { height: 38px; padding: 0 13px; border: 0; border-radius: 7px; color: #fff; background: var(--blue); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
    .link-editor-apply:hover { background: var(--blue-hover); }
    .link-editor-footer { min-height: 24px; display: flex; align-items: flex-end; gap: 12px; margin-top: 8px; }
    .link-editor-error { flex: 1 1 auto; color: #bd222a; font-size: 12px; line-height: 1.35; }
    .link-editor-action { padding: 0; border: 0; color: #52617d; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
    .link-editor-action:hover { color: var(--blue); }
    .link-editor-remove { color: #bd222a; }
    .link-editor-remove:hover { color: #981920; }
    .section-canvas { width: min(900px, 100%); min-width: 652px; margin: 0 auto; }
    .section-canvas .format-bar { background: #fff; }
    .section-copy { min-width: 0; min-height: 205px; padding: 0; overflow-wrap: anywhere; outline: 0; font-size: 17px; line-height: 1.72; word-break: break-word; }
    .editor-preview { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-left: 1px solid var(--border); background: #fff; }
    .preview-head { min-height: 72px; flex: 0 0 72px; display: flex; align-items: flex-start; padding: 30px 24px 0; }
    .preview-head h2 { margin: 0; font-size: 15px; }
    .preview-head, .preview-scroll-shell { width: 368px; box-sizing: border-box; transform: translateX(0); transition: transform 220ms var(--ease-in-out); }
    .preview-scroll-shell { flex: 1 1 auto; }
    .preview-body { width: 100%; height: 100%; min-height: 0; box-sizing: border-box; overflow: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 2px 18px 28px; }
    .preview-toggle-wrap { margin-top: auto; padding: 10px 10px 18px; }
    .preview-toggle { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; white-space: nowrap; cursor: pointer; }
    .preview-toggle:hover { background: var(--surface-subtle); }
    .preview-toggle-icon { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; }
    .preview-toggle-label { opacity: 1; transition: opacity 120ms ease; }
    .preview-platform { display: flex; width: 100%; justify-content: center; margin: 0 auto 18px; }
    .preview-platform-tab { display: inline-flex; align-items: center; gap: 7px; color: #14264a; font-size: 13px; font-weight: 650; }
    .preview-platform-tab .platform-icon { width: 18px; height: 18px; }
    .social-mock { width: 100%; min-height: 220px; max-width: 330px; margin: 0 auto; padding: 18px; border: 1px solid #d8e0eb; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(30,48,78,.08); }
    .social-head { display: flex; align-items: center; gap: 10px; }
    .social-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: #1a2741; font-size: 12px; font-weight: 700; }
    .social-mock[data-platform="telegram"] .social-avatar { background: #178fc8; }
    .social-mock[data-platform="threads"] .social-avatar { background: #17191d; }
    .social-mock[data-platform="max"] .social-avatar { background: #5368df; }
    .social-account strong { display: block; font-size: 13px; }
    .social-account span { color: #7c879b; font-size: 11px; }
    .social-copy { min-width: 0; margin: 15px 0; overflow-wrap: anywhere; color: #1b2945; font-size: 14px; line-height: 1.55; word-break: break-word; }
    .social-copy:empty { display: none; }
    .social-copy a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
    .section-copy tg-spoiler, .social-copy tg-spoiler, .section-copy [data-threads-spoiler], .threads-reply-copy [data-threads-spoiler], .social-copy [data-threads-spoiler], .threads-card-copy [data-threads-spoiler] { padding: .08em .34em; border-radius: 3px; color: inherit; background: #eef1f5; }
    .section-copy code, .social-copy code { padding: .08em .28em; border-radius: 3px; background: #eef1f6; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
    .section-copy mark, .social-copy mark { color: inherit; background: #fff0a6; }
    .section-copy blockquote, .social-copy blockquote { margin: .7em 0; padding-left: 12px; border-left: 2px solid #aebbd0; color: #42516d; }
    .section-copy h1, .social-copy h1 { margin: .45em 0; font-size: 1.22em; line-height: 1.35; }
    .social-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; overflow: hidden; aspect-ratio: 1.6; border-radius: 9px; background: #e8ecf3; }
    .preview-media-item { min-width: 0; min-height: 0; overflow: hidden; }
    .preview-media-item:only-child { grid-column: 1 / -1; }
    .social-media img, .social-media video { width: 100%; height: 100%; object-fit: cover; }
    .social-media.is-empty { display: none; }
    .platform-preview-gallery { display: grid; gap: 3px; overflow: hidden; border-radius: 9px; background: #e8ecf3; }
    .platform-preview-gallery-row { display: flex; min-width: 0; height: 112px; gap: 3px; overflow: hidden; }
    .platform-preview-gallery-row.is-hero { height: auto; min-height: 132px; max-height: 210px; }
    .platform-preview-gallery-row.count-2 { height: 126px; }
    .platform-preview-gallery-cell { position: relative; min-width: 0; flex: 1 1 0; overflow: hidden; background: #e8ecf3; }
    .platform-preview-gallery-cell img, .platform-preview-gallery-cell video { display: block; width: 100%; height: 100%; object-fit: cover; }
    .platform-preview-gallery-row.is-hero .platform-preview-gallery-cell img { height: auto; min-height: 132px; max-height: 210px; object-fit: cover; }
    .platform-preview-gallery-row.is-hero .platform-preview-gallery-cell video { min-height: 132px; max-height: 210px; }
    .platform-preview-gallery-cell.is-spoiler img, .platform-preview-gallery-cell.is-spoiler video { filter: blur(15px); transform: scale(1.08); }
    .social-footer { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 14px; color: #7b879c; font-size: 11px; }
    .preview-empty { min-height: 182px; display: none; place-items: center; padding: 24px; color: #758199; text-align: center; font-size: 13px; line-height: 1.55; }
    .preview-empty strong { display: block; margin-bottom: 5px; color: #263657; font-size: 14px; }
    .social-mock.is-empty { display: grid; box-shadow: 0 8px 20px rgba(30,48,78,.05); }
    .social-mock.is-empty .preview-empty { display: grid; }
    .social-mock.is-empty .social-head, .social-mock.is-empty .social-copy, .social-mock.is-empty .social-media, .social-mock.is-empty .social-footer { display: none; }
    .social-mock.is-empty .threads-card-chain { display: none; }
    .social-mock[data-platform="threads"] { min-height: 0; max-width: 360px; padding: 18px 16px 16px; color: #111; }
    .threads-card-chain { display: grid; gap: 0; }
    .threads-card-post { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 11px; padding-bottom: 18px; }
    .threads-card-post:last-child { padding-bottom: 0; }
    .threads-card-post:not(:last-child)::before { position: absolute; top: 43px; bottom: 4px; left: 18px; width: 2px; background: #dedede; content: ""; }
    .threads-card-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #fff; background: #111; font-size: 13px; font-weight: 700; }
    .threads-card-content { min-width: 0; }
    .threads-card-head { display: flex; min-height: 24px; align-items: center; gap: 7px; }
    .threads-card-head strong { overflow: hidden; color: #111; font-size: 13px; font-weight: 700; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
    .threads-card-head time { flex: 0 0 auto; color: #8b8b8b; font-size: 11px; }
    .threads-card-more { display: grid; width: 24px; height: 24px; margin-left: auto; place-items: center; border: 0; color: #222; background: transparent; }
    .threads-card-more::before { width: 3px; height: 3px; border-radius: 50%; background: currentColor; box-shadow: -6px 0 currentColor, 6px 0 currentColor; content: ""; }
    .threads-card-copy { min-width: 0; margin: 2px 0 10px; overflow-wrap: anywhere; color: #111; font-size: 13px; line-height: 1.48; white-space: pre-wrap; word-break: break-word; }
    .threads-card-copy:empty { display: none; }
    .threads-card-poll { display: grid; gap: 7px; margin: 3px 0 12px; }
    .threads-card-poll-option { --poll-fill: 0%; position: relative; display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 13px; overflow: hidden; border: 1px solid #e1e1e1; border-radius: 12px; color: #111; background: #fff; font-size: 12px; line-height: 1.2; }
    .threads-card-poll-option::before { position: absolute; inset: 0 auto 0 0; width: var(--poll-fill); background: #111; content: ""; }
    .threads-card-poll-option span, .threads-card-poll-option b { position: relative; z-index: 1; }
    .threads-card-poll-option span { position: absolute; top: 50%; right: 13px; left: 13px; overflow: hidden; padding-right: 42px; color: transparent; background-image: linear-gradient(90deg, #fff 0 var(--poll-fill), #111 var(--poll-fill) 100%); background-position: -13px 0; background-size: calc(100% + 26px) 100%; background-clip: text; font-weight: 620; text-overflow: ellipsis; transform: translateY(-50%); white-space: nowrap; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .threads-card-poll-option b { margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums; }
    .threads-card-media { display: flex; width: 100%; max-width: 100%; min-height: 0; align-items: stretch; gap: 9px; margin: 4px 0 15px; padding: 0 0 3px; overflow-x: auto; overflow-y: hidden; cursor: grab; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
    .threads-card-media::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .threads-card-media:active, .threads-card-media.is-dragging { cursor: grabbing; user-select: none; }
    .threads-card-media .preview-media-item { position: relative; flex: 0 0 45%; aspect-ratio: .8 / 1; border-radius: 12px; background: #f1f1f1; }
    .threads-card-media.count-1 .preview-media-item { flex-basis: 100%; aspect-ratio: 1.55 / 1; }
    .threads-card-media.count-2 .preview-media-item { flex-basis: calc((100% - 9px) / 2); }
    .threads-card-media img, .threads-card-media video { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
    .threads-card-actions { display: flex; align-items: center; gap: 23px; padding-top: 1px; color: #343434; }
    .threads-card-actions svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
    .threads-chain-editor { display: none; border-top: 1px solid #e1e6ef; }
    .threads-chain-editor.is-visible { display: block; }
    .threads-reply-editor { position: relative; padding: 20px 24px 18px 56px; }
    .threads-reply-editor + .threads-reply-editor { border-top: 0; background-image: linear-gradient(to right, transparent 0 56px, #edf0f5 56px 100%); background-repeat: no-repeat; background-position: top left; background-size: 100% 1px; }
    .threads-reply-editor::before { position: absolute; top: 0; bottom: -1px; left: 34px; width: 1px; background: #cfd7e4; content: ""; }
    .threads-reply-editor::after { position: absolute; top: 34px; left: 34px; width: 13px; height: 1px; background: #cfd7e4; content: ""; }
    .threads-reply-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
    .threads-reply-head strong { color: #40506d; font-size: 12px; font-weight: 650; }
    .threads-reply-count { margin-left: auto; color: #8a95a8; font-size: 11px; font-variant-numeric: tabular-nums; }
    .threads-reply-remove { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 0; color: #27344e; background: transparent; cursor: pointer; }
    .threads-reply-remove:hover { color: #0f1b31; }
    .threads-reply-remove svg { width: 18px; height: 18px; fill: currentColor; }
    .threads-reply-format-bar { display: flex; align-items: center; margin: 0 0 8px; }
    .threads-reply-format-bar .tool-button.with-label { width: auto; padding: 0 10px; }
    .threads-reply-copy { min-height: 92px; padding: 0; outline: 0; color: #162442; font-size: 15px; line-height: 1.65; }
    .threads-reply-media-block { position: relative; margin: 16px -24px -18px -56px; padding: 16px 24px 18px 56px; }
    .threads-reply-media-block::before { position: absolute; top: 0; right: 24px; left: 56px; height: 1px; background: #f0f2f6; content: ""; }
    .threads-reply-media-block .stream-label { margin-bottom: 12px; }
    .threads-reply-media-block .stream-media { grid-template-columns: repeat(auto-fill, 160px); }
    .threads-reply-media-block .media-tile, .threads-reply-media-block .media-add { width: 160px; height: 126px; }
    .threads-attachment-choice { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; }
    .threads-attachment-choice button { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #d6deea; border-radius: 7px; color: #42516c; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
    .threads-attachment-choice button:hover { border-color: #b8c8e3; color: var(--blue); background: #f8faff; }
    .threads-attachment-choice b { color: var(--blue); font-size: 17px; font-weight: 450; line-height: 1; }
    .threads-poll-editor { display: grid; grid-column: 1 / -1; gap: 9px; }
    .threads-poll-options { display: grid; gap: 8px; }
    .threads-poll-option { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 7px; }
    .threads-poll-option input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #d7dfeb; border-radius: 7px; outline: 0; color: #1b2a47; background: #fff; font: inherit; font-size: 13px; }
    .threads-poll-option input:focus { border-color: #aebfdd; }
    .threads-poll-option-remove { display: grid; width: 28px; height: 40px; place-items: center; padding: 0; border: 0; color: #7c8799; background: transparent; cursor: pointer; font-size: 18px; }
    .threads-poll-option-remove:hover { color: #27344e; }
    .threads-poll-footer { display: flex; min-height: 32px; align-items: center; gap: 10px; }
    .threads-poll-action { padding: 0; border: 0; color: #4f5e79; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
    .threads-poll-action:hover { color: var(--blue); }
    .threads-poll-action.remove { margin-left: auto; color: #7a6470; }
    .threads-poll-action:disabled { color: #a6afbd; cursor: default; }
    .threads-poll-delete-confirm { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #68758a; font-size: 11px; }
    .threads-poll-delete-confirm button { height: 28px; padding: 0 8px; border: 0; border-radius: 6px; color: #4f5e79; background: #f1f4f8; font: inherit; font-size: 11px; cursor: pointer; }
    .threads-poll-delete-confirm .confirm { color: #fff; background: #b52a33; }
    .threads-add-reply { min-height: 34px; padding: 0 10px; border: 1px solid #d6deea; border-radius: 7px; color: #4f5e79; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
    .threads-add-reply:hover { border-color: #b8c8e3; color: var(--blue); background: #f8faff; }
    .threads-delete-confirm { display: flex; min-width: 0; align-items: center; gap: 7px; margin-left: auto; }
    .threads-delete-confirm span { color: #5f6c83; font-size: 11px; white-space: nowrap; }
    .threads-delete-confirm button { height: 28px; padding: 0 8px; border: 0; border-radius: 6px; color: #4f5e79; background: #f1f4f8; font: inherit; font-size: 11px; cursor: pointer; }
    .threads-delete-confirm .confirm { color: #fff; background: #b52a33; }
    .threads-add-reply-wrap { position: relative; padding: 14px 24px 18px 56px; }
    .threads-add-reply-wrap::before { position: absolute; top: 0; left: 34px; width: 1px; height: 31px; background: #cfd7e4; content: ""; }
    .threads-add-reply-wrap::after { position: absolute; top: 30px; left: 34px; width: 13px; height: 1px; background: #cfd7e4; content: ""; }
    .threads-settings { display: none; border-top: 1px solid #e1e6ef; }
    .threads-settings.is-visible { display: block; }
    .threads-settings-list { display: grid; width: min(100%, 600px); gap: 12px; }
    .threads-setting-row { display: grid; min-height: 48px; grid-template-columns: minmax(280px, 1fr) 264px; gap: 24px; align-items: center; }
    .threads-setting-copy strong { display: block; color: #263652; font-size: 13px; font-weight: 600; }
    .threads-setting-copy span { display: block; margin-top: 2px; color: #8490a5; font-size: 11px; line-height: 1.35; }
    .threads-setting-row .switch { margin-left: 0; justify-self: end; }
    .threads-setting-select { appearance: none; width: 100%; height: 36px; padding: 0 34px 0 11px; border: 1px solid #d5deeb; border-radius: 7px; outline: 0; color: #2d3d5a; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2355637c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 6px center / 16px 16px; font: inherit; font-size: 12px; }
    .threads-setting-select:focus { border-color: #9eb8e7; box-shadow: 0 0 0 2px rgba(7,92,255,.09); }
    .telegram-settings { display: none; border-top: 1px solid #e1e6ef; }
    .telegram-settings.is-visible { display: block; }
    .telegram-settings .threads-setting-row.is-disabled { opacity: .55; }
    .telegram-settings .switch:disabled { cursor: not-allowed; }
    .telegram-position-control { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border: 1px solid #d5deeb; border-radius: 7px; background: #f3f6fa; }
    .telegram-position-control button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 5px; color: #68758c; background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
    .telegram-position-control button[aria-pressed="true"] { color: #145be7; background: #fff; box-shadow: 0 1px 3px rgba(34,57,94,.1); font-weight: 600; }
    .telegram-poll-block { position: relative; display: none; border-top: 1px solid #e1e6ef; }
    .telegram-poll-block.is-visible { display: block; }
    .telegram-poll-block.is-launch { padding: 14px 24px 18px 56px; }
    .telegram-poll-block.is-reply { padding-left: 56px; }
    .telegram-poll-block.is-reply::before { position: absolute; top: 0; bottom: -1px; left: 34px; width: 1px; background: #cfd7e4; content: ""; }
    .telegram-poll-block.is-reply::after { position: absolute; top: 34px; left: 34px; width: 13px; height: 1px; background: #cfd7e4; content: ""; }
    .telegram-poll-block.is-launch::before { position: absolute; top: 0; left: 34px; width: 1px; height: 31px; background: #cfd7e4; content: ""; }
    .telegram-poll-block.is-launch::after { position: absolute; top: 30px; left: 34px; width: 13px; height: 1px; background: #cfd7e4; content: ""; }
    .telegram-poll-editor { display: grid; width: min(100%, 600px); gap: 12px; }
    .telegram-poll-head { display: flex; min-height: 32px; align-items: center; gap: 12px; }
    .telegram-poll-head strong { color: #263652; font-size: 13px; font-weight: 600; }
    .telegram-poll-remove { display: grid; width: 28px; height: 28px; margin-left: auto; place-items: center; padding: 0; border: 0; color: #68758c; background: transparent; cursor: pointer; }
    .telegram-poll-remove svg { width: 17px; height: 17px; fill: currentColor; }
    .telegram-poll-reply-setting { display: flex; min-height: 28px; align-items: center; gap: 9px; color: #53617a; font-size: 11px; cursor: pointer; }
    .telegram-poll-reply-setting.is-disabled { color: #98a2b4; cursor: not-allowed; }
    .telegram-poll-reply-setting input { appearance: none; width: 16px; height: 16px; flex: 0 0 16px; margin: 0; border: 1px solid #b8c4d7; border-radius: 4px; background: #fff; }
    .telegram-poll-reply-setting input:checked { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 2.5 2.5L12 5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }
    .telegram-poll-reply-setting input:focus-visible { outline: 2px solid rgba(7,92,255,.22); outline-offset: 2px; }
    .telegram-poll-reply-setting input:disabled { background-color: #f1f3f7; }
    .telegram-poll-question, .telegram-poll-option input { box-sizing: border-box; width: 100%; height: 38px; padding: 0 11px; border: 1px solid #d5deeb; border-radius: 7px; outline: 0; color: #263652; background: #fff; font: inherit; font-size: 12px; }
    .telegram-poll-question:focus, .telegram-poll-option input:focus { border-color: #9eb8e7; box-shadow: 0 0 0 2px rgba(7,92,255,.07); }
    .telegram-poll-options { display: grid; gap: 8px; }
    .telegram-poll-option { display: grid; grid-template-columns: 14px minmax(0,1fr) 28px; align-items: center; gap: 8px; }
    .telegram-poll-option::before { width: 11px; height: 11px; border: 1px solid #9aabc5; border-radius: 50%; content: ""; }
    .telegram-poll-option-remove { display: grid; width: 28px; height: 38px; place-items: center; padding: 0; border: 0; color: #7c8799; background: transparent; cursor: pointer; font-size: 18px; }
    .telegram-poll-footer { display: flex; min-height: 32px; align-items: center; gap: 16px; }
    .telegram-poll-add-option { padding: 0; border: 0; color: var(--blue); background: transparent; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
    .telegram-poll-add-option:disabled { color: #9aa5b8; cursor: not-allowed; }
    .telegram-poll-multiple { display: flex; align-items: center; gap: 9px; color: #53617a; font-size: 11px; }
    .telegram-poll-note { color: #8490a5; font-size: 11px; line-height: 1.4; }
    .telegram-poll-launch { display: block; }
    .telegram-poll-launch button { min-height: 34px; padding: 0 10px; border: 1px solid #d6deea; border-radius: 7px; color: #4f5e79; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
    .telegram-poll-launch button:hover { border-color: #b8c8e3; color: var(--blue); background: #f8faff; }
    .telegram-poll-launch b { margin-right: 7px; color: var(--blue); font-size: 16px; font-weight: 450; line-height: 1; }
    .social-mock[data-platform="telegram"] { display: grid; min-height: 0; gap: 10px; padding: 0; border: 0; background: transparent; box-shadow: none; }
    .telegram-preview-message { min-width: 0; padding: 16px; overflow-wrap: anywhere; border: 1px solid #d8e0eb; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(30,48,78,.07); word-break: break-word; }
    .telegram-preview-message.telegram-preview-post { padding-bottom: 12px; }
    .telegram-preview-message .platform-preview-gallery { margin-right: -10px; margin-left: -10px; }
    .telegram-preview-message .social-head + .platform-preview-gallery, .social-mock[data-platform="max"] .social-head + .platform-preview-gallery { margin-top: 15px; }
    .telegram-preview-meta { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: #8490a6; font-size: 10px; }
    .telegram-preview-reactions, .telegram-preview-stats { display: flex; align-items: center; gap: 5px; }
    .telegram-preview-reaction { min-height: 24px; padding: 3px 7px; border: 0; border-radius: 12px; color: #53627d; background: #e8eef8; cursor: pointer; font: inherit; }
    .telegram-preview-reaction:hover { background: #dce7f8; }
    .telegram-preview-reaction:focus-visible { outline: 2px solid rgba(7,92,255,.25); outline-offset: 2px; }
    .telegram-preview-stats { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
    .telegram-preview-stats svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
    .telegram-link-preview { display: grid; gap: 3px; margin: 12px 0 2px; padding: 10px 12px; border: 1px solid #dbe3ef; border-radius: 8px; color: #56647c; background: #f3f7fb; font-size: 10px; line-height: 1.4; }
    .telegram-link-preview strong { color: #263652; font-size: 11px; }
    .telegram-link-preview small { color: #2a8bcb; font-size: 9px; }
    .social-mock[data-platform="max"] .platform-preview-gallery { margin-right: -10px; margin-left: -10px; border-radius: 10px; }
    .social-mock[data-platform="max"] { display: grid; min-height: 0; gap: 10px; padding: 0; border: 0; background: transparent; box-shadow: none; }
    .social-mock[data-platform="telegram"].is-empty, .social-mock[data-platform="threads"].is-empty, .social-mock[data-platform="max"].is-empty { width: 100%; min-height: 0; max-width: 360px; padding: 18px 16px 16px; border: 1px solid #d8e0eb; background: #fff; box-shadow: 0 8px 20px rgba(30,48,78,.05); }
    .max-preview-message { min-width: 0; padding: 16px 16px 12px; overflow-wrap: anywhere; border: 1px solid #d8e0eb; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(30,48,78,.07); word-break: break-word; }
    .max-preview-message > .platform-preview-gallery { margin-right: -10px; margin-left: -10px; }
    .max-preview-message > .social-head + .platform-preview-gallery { margin-top: 15px; }
    .max-link-preview { display: grid; gap: 3px; margin: 12px 0 2px; padding: 10px 12px; border: 1px solid #dfe3f2; border-radius: 8px; color: #59647d; background: #f4f5fb; font-size: 10px; line-height: 1.4; }
    .max-link-preview strong { color: #263652; font-size: 11px; }
    .max-link-preview small { color: #5368df; font-size: 9px; }
    .max-preview-meta { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: #8490a6; font-size: 10px; }
    .max-preview-reactions, .max-preview-stats { display: flex; align-items: center; gap: 5px; }
    .max-preview-reaction { min-height: 24px; padding: 3px 7px; border: 0; border-radius: 12px; color: #59647d; background: #eef0f8; cursor: pointer; font: inherit; }
    .max-preview-reaction:hover { background: #e3e6f3; }
    .max-preview-reaction:focus-visible { outline: 2px solid rgba(83,104,223,.25); outline-offset: 2px; }
    .max-preview-stats { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
    .social-mock.is-empty .max-preview-message { display: none; }
    .telegram-preview-reply { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: #2789c1; font-size: 10px; font-weight: 600; }
    .telegram-preview-reply::before { width: 3px; height: 20px; border-radius: 2px; background: #2789c1; content: ""; }
    .telegram-preview-poll { display: grid; gap: 8px; }
    .telegram-preview-poll > strong { color: #1b2945; font-size: 13px; }
    .telegram-preview-poll-options { display: grid; gap: 7px; }
    .telegram-preview-poll-option { display: flex; min-height: 34px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #dbe3ef; border-radius: 9px; color: #263652; background: #fff; font-size: 11px; }
    .telegram-preview-poll-option::before { width: 11px; height: 11px; flex: 0 0 11px; border: 1px solid #8395b2; border-radius: 50%; content: ""; }
    .telegram-preview-poll small { color: #7b879c; font-size: 10px; }
    .telegram-preview-poll em { color: #53627d; font-size: 10px; font-style: normal; }
    .threads-card-topic { max-width: 104px; overflow: hidden; color: #333; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
    .threads-card-topic::before { margin-right: 5px; color: #9a9a9a; content: "›"; }
    .editor-page.preview-collapsed .preview-head, .editor-page.preview-collapsed .preview-scroll-shell { transform: translateX(100%); pointer-events: none; }
    .editor-page.preview-collapsed .preview-toggle { justify-content: center; gap: 0; padding: 0; }
    .editor-page.preview-collapsed .preview-toggle-label { width: 0; overflow: hidden; opacity: 0; }


    .connections-view { display: none; width: min(920px, 100%); margin: 0 auto; padding: 2px 0 36px; }
    .app.connections-open { grid-template-columns: var(--nav-width) minmax(0, 1fr); }
    .app.connections-open .workspace-scroll-shell { grid-column: 2; }
    .app.connections-open .filters { display: none; }
    .app.connections-open .calendar-surface { display: none; }
    .app.connections-open .connections-view { display: block; }
    .connections-intro { margin-bottom: 18px; }
    .connections-intro h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
    .settings-view { display: none; width: min(760px, 100%); margin: 0 auto; padding: 2px 0 42px; }
    .app.settings-open { grid-template-columns: var(--nav-width) minmax(0, 1fr); }
    .app.settings-open .workspace-scroll-shell { grid-column: 2; }
    .app.settings-open .filters, .app.settings-open .calendar-surface, .app.settings-open .connections-view { display: none; }
    .app.settings-open .settings-view { display: block; }
    .billing-view { display: none; width: min(820px, 100%); margin: 0 auto; padding: 2px 0 42px; }
    .app.billing-open { grid-template-columns: var(--nav-width) minmax(0, 1fr); }
    .app.billing-open .workspace-scroll-shell { grid-column: 2; }
    .app.billing-open .filters, .app.billing-open .calendar-surface, .app.billing-open .connections-view, .app.billing-open .settings-view { display: none; }
    .app.billing-open .billing-view { display: block; }
    .help-view { display: none; width: min(760px,100%); margin: 0 auto; padding: 2px 0 36px; }
    .app.help-open { grid-template-columns: var(--nav-width) minmax(0,1fr); }
    .app.help-open .workspace-scroll-shell { grid-column: 2; }
    .app.help-open .filters, .app.help-open .calendar-surface, .app.help-open .connections-view, .app.help-open .settings-view, .app.help-open .billing-view { display: none; }
    .app.help-open .help-view { display: block; }
    .help-list { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
    .help-section + .help-section { border-top: 1px solid var(--border); }
    .help-section > summary, .help-platform > summary { list-style: none; cursor: pointer; }
    .help-section > summary::-webkit-details-marker, .help-platform > summary::-webkit-details-marker { display: none; }
    .help-section > summary { min-height: 76px; display: flex; box-sizing: border-box; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; color: #14213d; background: #fff; }
    .help-section > summary:hover { background: #f9fbff; }
    .help-section > summary:focus-visible, .help-platform > summary:focus-visible { position: relative; z-index: 1; outline: 3px solid rgba(18,95,255,.18); outline-offset: -3px; }
    .help-section > summary > span { min-width: 0; display: grid; gap: 5px; }
    .help-section > summary strong { font-size: 14px; }
    .help-section > summary small { color: #68758e; font-size: 12px; }
    .help-section > summary > .icon, .help-platform > summary > .icon { flex: 0 0 auto; color: #71809a; transition: transform .2s cubic-bezier(.16,1,.3,1); }
    .help-section[open] > summary > .icon, .help-platform[open] > summary > .icon { transform: rotate(180deg); }
    .help-section[open] > summary { color: #0f56de; background: #f6f9ff; }
    .help-content { padding: 24px 26px 28px; border-top: 1px solid #e7edf6; color: #43516b; background: #fff; font-size: 13px; line-height: 1.65; }
    .help-content p { max-width: 70ch; }
    .help-content a { color: #075ce5; font-weight: 600; text-underline-offset: 3px; }
    .help-content code { padding: 1px 5px; border-radius: 4px; color: #233657; background: #edf2fa; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: .92em; }
    .help-copy > :first-child, .help-steps p { margin-top: 0; }
    .help-copy > :last-child, .help-steps p:last-child { margin-bottom: 0; }
    .help-copy h3 { margin: 26px 0 8px; color: #172641; font-size: 14px; line-height: 1.35; }
    .help-copy ul { display: grid; gap: 8px; margin: 10px 0 18px; padding-left: 20px; }
    .help-steps { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: help-step; }
    .help-steps > li { position: relative; min-height: 28px; padding-left: 42px; counter-increment: help-step; }
    .help-steps > li::before { position: absolute; top: 0; left: 0; width: 27px; height: 27px; display: grid; border-radius: 50%; color: #075ce5; background: #eaf1ff; content: counter(help-step); font-size: 12px; font-weight: 700; line-height: 1; place-items: center; }
    .help-steps > li > strong { display: block; margin-bottom: 5px; color: #172641; font-size: 13px; }
    .help-steps > li > p { margin-bottom: 0; }
    .help-steps.compact { gap: 19px; }
    .help-platforms { display: grid; gap: 10px; margin-top: 24px; }
    .help-platform { overflow: hidden; border: 1px solid #dbe3ef; border-radius: 10px; background: #fff; }
    .help-platform > summary { min-height: 62px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 0 16px; color: #192945; }
    .help-platform > summary:hover { background: #fafcff; }
    .help-platform > summary > strong { font-size: 13px; }
    .help-platform > summary > span { color: #72809a; font-size: 12px; }
    .help-platform > div { padding: 22px 20px 24px; border-top: 1px solid #e7edf6; background: #fbfcfe; }
    .help-support { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
    .help-support h3 { margin: 0; color: #172641; font-size: 15px; line-height: 1.35; }
    .help-support p { margin: 5px 0 0; color: #68758e; font-size: 12px; line-height: 1.5; }
    .help-support .help-support-status { color: #075ce5; font-weight: 600; }
    .help-support .settings-save { flex: 0 0 auto; }
    .billing-intro { margin-bottom: 24px; }
    .billing-intro h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
    .billing-stack { display: grid; gap: 28px; }
    .billing-group h3 { margin: 0 0 12px; color: var(--text); font-size: 14px; line-height: 1.3; }
    .billing-panel { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
    .billing-current { padding: 28px 30px; }
    .billing-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 11px; color: #287252; font-size: 12px; font-weight: 650; }
    .billing-status::before { width: 8px; height: 8px; border-radius: 50%; background: #2b9b67; content: ""; }
    .billing-plan-name { display: block; color: var(--text); font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
    .billing-current p { max-width: 530px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; font-variant-numeric: tabular-nums; }
    .billing-primary { min-height: 40px; padding: 0 17px; border: 0; border-radius: 7px; color: #fff; background: var(--blue); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
    .billing-primary:hover { background: #0050df; }
    .billing-primary:disabled { background: #6d9dff; cursor: not-allowed; }
    .billing-primary[aria-busy="true"] { cursor: wait; }
    .billing-renew { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 14px 22px; padding: 24px; }
    .billing-renew-copy { grid-column: 1 / -1; }
    .billing-renew-copy strong { display: block; color: var(--text); font-size: 14px; }
    .billing-renew-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
    .billing-renew-control { position: relative; width: min(100%, 430px); }
    .billing-period-select { width: 100%; height: 44px; box-sizing: border-box; padding: 0 44px 0 13px; border: 1px solid #ccd6e6; border-radius: 8px; color: #253653; background: #fff; font: inherit; font-size: 13px; font-weight: 600; appearance: none; cursor: pointer; }
    .billing-period-select:hover { border-color: #9fb2cf; }
    .billing-period-select:focus { border-color: var(--blue); outline: 3px solid rgba(18,95,255,.12); }
    .billing-renew-control::after { position: absolute; top: 50%; right: 15px; width: 7px; height: 7px; border-right: 1.5px solid #576a8d; border-bottom: 1.5px solid #576a8d; content: ""; pointer-events: none; transform: translateY(-67%) rotate(45deg); }
    .billing-renew-action { display: grid; justify-items: stretch; gap: 8px; }
    .billing-renew-action .billing-primary { min-width: 166px; height: 44px; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .billing-provider-note { margin: 0; color: #75839a; font-size: 11px; line-height: 1.4; text-align: center; }
    .billing-success { position: fixed; top: 18px; left: 50vw; z-index: 80; display: grid; grid-template-columns: 34px minmax(0,auto); width: max-content; max-width: calc(100vw - 28px); box-sizing: border-box; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid #dce5e0; border-radius: 12px; color: #173c2d; background: #fff; box-shadow: 0 18px 50px rgba(28,48,70,.16); font-size: 14px; font-weight: 650; white-space: nowrap; transform: translate(-50%,-8px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .24s cubic-bezier(.16,1,.3,1); }
    .billing-success > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .billing-success.visible { transform: translate(-50%,0); opacity: 1; }
    .billing-success-mark { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #e8f7ef; }
    .billing-success-mark::after { position: absolute; top: 50%; left: 50%; width: 9px; height: 5px; border-bottom: 2px solid #21865d; border-left: 2px solid #21865d; content: ""; transform: translate(-50%,-65%) rotate(-45deg); }
    .billing-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
    .billing-table th { height: 42px; padding: 0 22px; color: #71809a; background: #fafbfe; font-size: 11px; font-weight: 600; text-align: left; }
    .billing-table td { height: 76px; padding: 0 22px; border-top: 1px solid #e8ecf3; color: var(--muted); font-size: 12px; }
    .billing-table th:nth-child(2), .billing-table td:nth-child(2) { width: 16%; }
    .billing-table th:nth-child(3), .billing-table td:nth-child(3) { width: 17%; }
    .billing-table th:nth-child(4), .billing-table td:nth-child(4) { width: 24%; }
    .billing-table th:nth-child(5), .billing-table td:nth-child(5) { width: 16%; text-align: right; }
    .billing-table td { font-variant-numeric: tabular-nums; }
    .billing-table td:last-child { color: #34425f; font-weight: 600; text-align: right; }
    .billing-table th:first-child, .billing-table td:first-child { width: 20%; }
    .billing-table th:nth-child(2), .billing-table td:nth-child(2) { width: 18%; }
    .billing-table th:nth-child(3), .billing-table td:nth-child(3) { width: 24%; text-align: center; }
    .billing-table th:nth-child(4), .billing-table td:nth-child(4) { width: 24%; }
    .billing-table th:nth-child(5), .billing-table td:nth-child(5) { width: 14%; text-align: right; }
    .billing-table td.billing-history-empty { width: auto; padding-inline: 16px; color: var(--muted); font-weight: 400; text-align: center; }
    .billing-demo-note { display: block; margin-top: 9px; color: #7a879b; font-size: 11px; font-weight: 400; }
    .settings-intro { margin-bottom: 20px; }
    .settings-intro h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
    .settings-panel { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
    .settings-section { padding: 30px 32px; }
    .settings-section + .settings-section { border-top: 1px solid var(--border); }
    .settings-section-head { margin-bottom: 24px; }
    .settings-section-head h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
    .settings-section-head p { max-width: 600px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
    .settings-fields { display: grid; gap: 18px; }
    .settings-field { display: grid; gap: 7px; min-width: 0; }
    .settings-field label { color: #34425f; font-size: 12px; font-weight: 600; }
    .settings-field input, .settings-field select { width: 100%; height: 42px; box-sizing: border-box; padding: 0 12px; border: 1px solid #ccd6e6; border-radius: 8px; color: var(--text); background: #fff; font: inherit; font-size: 13px; }
    .settings-field select { padding-right: 42px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2.25 4.25 3.75 3.5 3.75-3.5' fill='none' stroke='%23576a8d' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
    .settings-field input:focus, .settings-field select:focus { border-color: var(--blue); outline: 3px solid rgba(18,95,255,.12); }
    .settings-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
    .settings-save { min-height: 40px; padding: 0 17px; border: 0; border-radius: 7px; color: #fff; background: var(--blue); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
    .settings-save:hover { background: #0050df; }
    .settings-feedback { color: #347658; font-size: 12px; }
    .settings-platform-defaults { display: flex; flex-wrap: wrap; gap: 10px; }
    .settings-platform-default { position: relative; display: inline-flex; min-width: 170px; min-height: 46px; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #d5deeb; border-radius: 9px; color: #34425f; background: #fff; cursor: grab; transition: opacity .16s ease, border-color .16s ease, background .16s ease; }
    .settings-platform-default:active { cursor: grabbing; }
    .settings-platform-default.is-dragging { opacity: .42; }
    .settings-platform-default.is-drag-target { border-color: #7ea7ed; background: #f1f6ff; }
    .settings-platform-drag { width: 10px; height: 18px; flex: 0 0 10px; background-image: radial-gradient(circle, #93a2b9 1.2px, transparent 1.3px); background-size: 5px 5px; background-position: center; }
    .settings-platform-default-toggle { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 10px; cursor: pointer; }
    .settings-platform-default:has(input:checked) { border-color: #9bb9ef; background: #f6f9ff; }
    .settings-platform-default.is-order-moved { border-color: #7ea7ed; background: #edf4ff; }
    .settings-platform-default input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
    .settings-platform-default .platform-icon { width: 20px; height: 20px; }
    .settings-platform-default strong { font-size: 13px; }
    .settings-platform-order-actions { display: none; }
    .settings-platform-error { min-height: 17px; margin: 9px 0 0; color: #b92e3b; font-size: 12px; }
    .setting-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 18px 0; }
    .setting-line:first-of-type { padding-top: 0; }
    .setting-line + .setting-line { border-top: 1px solid #e8ecf3; }
    .setting-line-copy strong, .setting-line-copy span { display: block; }
    .setting-line-copy strong { font-size: 14px; }
    .setting-line-copy span { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
    .settings-secondary, .settings-danger { min-height: 38px; padding: 0 14px; border: 1px solid #ccd6e6; border-radius: 7px; color: #263755; background: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
    .settings-danger { border-color: #edc6ca; color: #b92e3b; }
    .settings-info-list { display: grid; border-top: 1px solid #edf0f5; }
    .settings-info-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; min-height: 68px; border-bottom: 1px solid #edf0f5; }
    .settings-info-copy { display: grid; min-width: 0; gap: 4px; }
    .settings-info-copy > span { color: #72809a; font-size: 12px; font-weight: 600; }
    .settings-info-copy > strong { overflow-wrap: anywhere; color: #1e2d4b; font-size: 14px; font-weight: 560; }
    .settings-pending { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 14px; border: 1px solid #d8e4f8; border-radius: 9px; background: #f6f9ff; }
    .settings-pending[hidden] { display: none; }
    .settings-pending-copy { display: grid; gap: 3px; color: #52627e; font-size: 12px; line-height: 1.45; }
    .settings-pending-copy strong { color: #233657; font-size: 13px; }
    .settings-pending-actions { display: flex; gap: 7px; }
    .settings-pending-actions button { border: 0; color: #125fff; background: transparent; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
    .settings-dialog-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; padding: 20px; place-items: center; background: rgba(19,31,55,.28); backdrop-filter: blur(3px); }
    .settings-dialog-backdrop[hidden] { display: none; }
    .settings-dialog { width: min(420px,100%); overflow: hidden; border: 1px solid rgba(165,179,204,.55); border-radius: 13px; background: #fff; box-shadow: 0 24px 64px rgba(25,42,73,.20),0 4px 14px rgba(25,42,73,.08); }
    .settings-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 22px 16px; }
    .settings-dialog-head h3 { margin: 0 0 5px; color: #162442; font-size: 18px; line-height: 1.25; }
    .settings-dialog-head p { margin: 0; color: #72809a; font-size: 12px; line-height: 1.5; }
    .settings-dialog-close { flex: 0 0 auto; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; color: #53627d; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; }
    .settings-dialog-close:hover { background: #f1f4f8; }
    .settings-dialog-body { display: grid; gap: 15px; padding: 4px 22px 20px; }
    .settings-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px 20px; border-top: 1px solid #edf0f5; }
    .settings-dialog-error { height: 18px; min-height: 18px; margin: -2px 0 0; overflow: hidden; color: #b92e3b; font-size: 12px; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
    .settings-dialog-danger-copy { margin: 0; color: #4e5e79; font-size: 13px; line-height: 1.55; }
    .settings-dialog .settings-danger.confirm { color: #fff; border-color: #b92e3b; background: #b92e3b; }
    .session-list { border-top: 1px solid #e8ecf3; }
    .session-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 0; }
    .session-row + .session-row { border-top: 1px solid #e8ecf3; }
    .session-device strong, .session-device span { display: block; }
    .session-device strong { font-size: 13px; }
    .session-device span { margin-top: 4px; color: var(--muted); font-size: 11px; }
    .session-current { color: #27815d; font-size: 11px; font-weight: 650; }
    @media (max-width: 560px) {
      .settings-section { padding: 22px 20px; }
      .settings-info-row { min-height: 72px; }
      .settings-pending { grid-template-columns: 1fr; }
      .setting-line { grid-template-columns: 1fr; gap: 12px; }
      .setting-line > button { justify-self: start; }
      .billing-current { padding: 22px 20px; }
      .billing-renew { grid-template-columns: 1fr; align-items: stretch; }
      .billing-renew-action { justify-content: stretch; }
      .billing-renew-action .billing-primary { width: 100%; }
      .billing-table th, .billing-table td { padding: 0 16px; }
      .billing-table th:nth-child(2), .billing-table td:nth-child(2), .billing-table th:nth-child(4), .billing-table td:nth-child(4) { display: none; }
    }
    .connection-list { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
    .connection-item + .connection-item { border-top: 1px solid var(--border); }
    .connection-summary { width: 100%; min-height: 102px; display: grid; grid-template-columns: minmax(190px, .8fr) minmax(210px, 1.12fr) auto; align-items: center; gap: clamp(18px, 2.4vw, 28px); padding: 20px clamp(20px, 2vw, 24px); border: 0; background: transparent; color: var(--text); text-align: left; }
    .connection-summary:hover { background: #fafbfe; }
    .connection-platform { display: flex; align-items: center; gap: 11px; min-width: 0; }
    .connection-platform .icon-only-platform, .connection-platform .platform-icon { width: 28px; height: 28px; flex: 0 0 28px; }
    .connection-platform strong { font-size: 15px; line-height: 1.2; font-weight: 650; }
    .connection-state { min-width: 0; }
    .connection-state-line { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 13px; font-weight: 650; }
    .connection-state-line::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #18a957; }
    .connection-item[data-state="empty"] .connection-state-line { color: var(--muted); }
    .connection-item[data-state="empty"] .connection-state-line::before { background: #b7c0d1; }
    .connection-item[data-state="error"] .connection-state-line { color: #c52f37; }
    .connection-item[data-state="error"] .connection-state-line::before { background: #e34850; }
    .connection-item[data-state="pending"] .connection-state-line { color: #9a6410; }
    .connection-item[data-state="pending"] .connection-state-line::before { background: #e8a323; }
    .connection-state p { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; line-height: 1.45; }
    .connection-action { display: flex; align-items: center; gap: 12px; color: var(--blue); font-size: 13px; font-weight: 650; white-space: nowrap; }
    .connection-action .icon { width: 16px; height: 16px; transition: transform 160ms ease; }
    .connection-item.is-open .connection-action .icon { transform: rotate(180deg); }
    .connection-details { height: 0; margin: 0 clamp(20px, 2vw, 24px); padding: 0; overflow: hidden; border-top: 0 solid #e9edf5; opacity: 0; visibility: hidden; pointer-events: none; transition: height 200ms var(--ease-out), opacity 200ms var(--ease-out); }
    .connection-item.is-open .connection-details { padding: 22px 0 24px; border-top-width: 1px; opacity: 1; visibility: visible; pointer-events: auto; }
    .connection-setup { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(320px, 1.28fr); gap: clamp(28px, 3.5vw, 40px); }
    .connection-guide { color: var(--muted); font-size: 12px; line-height: 1.5; }
    .connection-guide strong { display: block; margin-bottom: 7px; color: var(--text); font-size: 14px; }
    .connection-guide p { margin: 0; }
    .connection-steps { display: grid; gap: 16px; }
    .connection-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
    .connection-step[hidden], .connection-setup-actions[hidden] { display: none; }
    .connection-step.single { display: block; }
    .connection-step-number { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 700; }
    .connection-step-body strong { display: block; margin: 2px 0 5px; font-size: 13px; }
    .connection-step-body p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
    .connection-step-body a { color: var(--blue); font-weight: 650; text-decoration: none; text-underline-offset: 3px; }
    .connection-step-body a:hover { text-decoration: underline; }
    .connection-verification { margin-top: 12px; padding: 12px 14px; border: 1px solid #dde4f0; border-radius: 9px; background: #f8faff; }
    .connection-verification code { display: inline-block; margin-bottom: 7px; color: var(--text); font: 700 14px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
    .connection-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
    .connection-fields.single { grid-template-columns: minmax(0, 1fr); }
    .connection-field { min-width: 0; }
    .connection-field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; }
    .connection-field label a { color: var(--blue); text-decoration: none; text-underline-offset: 2px; }
    .connection-field label a:hover { text-decoration: underline; }
    .connection-field input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; outline: none; }
    .connection-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,92,255,.1); }
    .connection-field input[aria-invalid="true"] { border-color: #df3f48; box-shadow: 0 0 0 3px rgba(223,63,72,.08); }
    .connection-setup-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-left: 36px; }
    .connection-feedback { min-height: 18px; color: var(--muted); font-size: 12px; }
    .connection-buttons { display: flex; gap: 8px; }
    .connection-button { min-height: 38px; padding: 0 15px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
    .connection-button:hover { border-color: #aebbd2; background: #f7f9fd; }
    .connection-button.primary { border-color: var(--blue); color: #fff; background: var(--blue); }
    .connection-button.danger { border-color: #e2b9bd; color: #b72d35; }
    .connection-button[disabled] { opacity: .62; cursor: wait; }
    .connection-button.is-complete[disabled] { cursor: default; }
    .connection-management { min-width: 0; max-width: 640px; }
    .connection-management h3 { margin: 0 0 7px; font-size: 15px; line-height: 1.35; }
    .connection-management > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
    .connection-checklist { display: grid; gap: 8px; margin: 16px 0 0; padding: 14px 16px 14px 34px; border: 1px solid #ead9db; border-radius: 10px; background: #fffafb; color: var(--text); font-size: 12px; line-height: 1.45; }
    .connection-checklist li { padding-inline-start: 2px; }
    .connection-management .connection-buttons { margin-top: 18px; }
    .connection-management .connection-feedback { display: block; margin-top: 10px; }
    body.auth-open { overflow: hidden; }
    body.auth-open .app { display: none; }
    .auth-page { display: none; min-height: 100vh; grid-template-columns: minmax(0, 1fr); color: #10182b; background: #f4f6fa; }
    body.auth-open .auth-page { display: grid; }
    body.session-pending .auth-page, body.session-pending .app { display: none; }
    .auth-main { position: relative; display: grid; min-width: 0; min-height: 100vh; place-items: center; padding: 52px 28px; overflow: hidden; }
    .auth-main::before { position: absolute; width: 480px; height: 480px; border: 1px solid rgba(18,95,255,.08); border-radius: 50%; content: ""; transform: translate(43vw,-38vh); }
    .auth-panel { position: relative; z-index: 1; width: min(100%, 404px); }
    .auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
    .auth-brand .brand-mark { width: 32px; height: 32px; }
    .auth-brand strong { font-size: 18px; letter-spacing: -.02em; }
    .auth-copy { margin-bottom: 22px; }
    .auth-copy h1 { margin: 0; color: #0b1020; font-size: clamp(30px,4vw,38px); line-height: 1.08; letter-spacing: -.035em; }
    .auth-copy p { margin: 12px 0 0; color: #66748e; font-size: 14px; line-height: 1.55; }
    .auth-form { display: grid; gap: 14px; }
    .auth-form[hidden], .auth-copy[hidden], .auth-create[hidden], .auth-prototype-note[hidden], .auth-verification[hidden] { display: none; }
    .auth-field { display: grid; gap: 7px; }
    .auth-password-group { display: grid; gap: 8px; }
    .auth-field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
    .auth-field label, .auth-field-row label { color: #293956; font-size: 13px; font-weight: 650; }
    .auth-link { padding: 0; border: 0; color: #075cff; background: transparent; font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
    .auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
    .auth-input-wrap { position: relative; }
    .auth-input { width: 100%; height: 46px; box-sizing: border-box; padding: 0 13px; border: 1px solid #cbd5e4; border-radius: 8px; outline: 0; color: #14223d; background: #fff; font: inherit; font-size: 14px; transition: border-color 140ms ease, box-shadow 140ms ease; }
    .auth-input::placeholder { color: #8995aa; }
    .auth-input:hover { border-color: #aebbd0; }
    .auth-input:focus { border-color: #075cff; box-shadow: 0 0 0 3px rgba(7,92,255,.12); }
    .auth-input[aria-invalid="true"] { border-color: #d43d4c; box-shadow: 0 0 0 3px rgba(212,61,76,.1); }
    .auth-input-wrap .auth-input { padding-right: 46px; }
    .auth-password-toggle { position: absolute; top: 50%; right: 7px; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 7px; color: #65748f; background: transparent; cursor: pointer; transform: translateY(-50%); }
    .auth-password-toggle:hover { color: #233553; background: #f1f4f8; }
    .auth-password-toggle svg { width: 18px; height: 18px; fill: currentColor; }
    .auth-submit { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 0; border-radius: 8px; color: #fff; background: #075cff; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; box-shadow: 0 9px 22px rgba(7,92,255,.18); transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
    .auth-submit:hover { background: #0051e5; box-shadow: 0 11px 25px rgba(7,92,255,.22); }
    .auth-submit:active { transform: translateY(1px); }
    .auth-submit:disabled { cursor: wait; box-shadow: none; opacity: .72; }
    .auth-submit-spinner { display: none; width: 14px; height: 14px; box-sizing: border-box; border: 2px solid color-mix(in srgb, currentColor 28%, transparent); border-top-color: currentColor; border-radius: 50%; animation: commercial-login-spin 1.1s linear infinite; }
    .auth-submit.is-loading .auth-submit-spinner { display: block; }
    .auth-message { min-height: 18px; margin: -6px 0 0; color: #c33140; font-size: 12px; line-height: 1.45; }
    .auth-action-block { display: grid; gap: 4px; }
    .auth-action-block .auth-message { height: 18px; min-height: 18px; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .auth-action-block .auth-message:empty { display: block; visibility: hidden; }
    .auth-action-block .auth-submit { width: 100%; }
    .auth-message.is-success { color: #287252; }
    .auth-message.is-neutral { color: #52627d; }
    .auth-message:empty { display: none; }
    .auth-create { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid #dfe5ee; color: #66748e; font-size: 13px; text-align: center; }
    .auth-create .auth-link { margin-left: 4px; font-size: inherit; font-weight: 650; }
    .auth-prototype-note { margin: 20px 0 0; color: #8a95a8; font-size: 11px; line-height: 1.45; text-align: center; }
    .auth-strength { display: grid; gap: 6px; margin-top: 1px; }
    .auth-strength-bar { position: relative; height: 3px; overflow: hidden; border-radius: 3px; background: #dfe5ee; }
    .auth-strength-fill { position: absolute; inset: 0; border-radius: inherit; background: #d43d4c; transform: scaleX(0); transform-origin: left center; transition: transform 220ms ease-out, background-color 180ms ease; }
    .auth-strength[data-level="weak"] .auth-strength-fill { background: #d43d4c; transform: scaleX(.34); }
    .auth-strength[data-level="medium"] .auth-strength-fill { background: #d99216; transform: scaleX(.67); }
    .auth-strength[data-level="strong"] .auth-strength-fill { background: #2b8a60; transform: scaleX(1); }
    .auth-strength-copy { margin: 0; color: #7b879d; font-size: 11px; line-height: 1.4; }
    .auth-strength[data-level="weak"] .auth-strength-copy { color: #bd3442; }
    .auth-strength[data-level="medium"] .auth-strength-copy { color: #9a650d; }
    .auth-strength[data-level="strong"] .auth-strength-copy { color: #287252; }
    .auth-verification { display: grid; justify-items: start; }
    .auth-verification-mark { display: grid; width: 44px; height: 44px; margin-bottom: 20px; place-items: center; border-radius: 50%; color: #fff; background: #2b8a60; font-size: 22px; font-weight: 700; }
    .auth-verification h1 { margin: 0; color: #0b1020; font-size: clamp(30px,4vw,38px); line-height: 1.08; letter-spacing: -.035em; }
    .auth-verification p { margin: 13px 0 0; color: #66748e; font-size: 14px; line-height: 1.55; }
    .auth-verification strong { color: #293956; font-weight: 650; overflow-wrap: anywhere; }
    .auth-verification-actions { display: grid; width: 100%; gap: 12px; margin-top: 28px; }
    .auth-secondary { min-height: 42px; padding: 0 16px; border: 1px solid #cbd5e4; border-radius: 8px; color: #293956; background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
    .auth-secondary:hover { border-color: #aebbd0; background: #f8f9fc; }
    .auth-dialog-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(24,35,56,.28); backdrop-filter: blur(3px); }
    .auth-dialog-backdrop[hidden] { display: none; }
    .auth-dialog { width: min(100%,420px); box-sizing: border-box; padding: 24px; border: 1px solid #d5deeb; border-radius: 12px; background: #fff; box-shadow: 0 18px 48px rgba(24,39,70,.15); }
    .settings-dialog-backdrop, .storage-dialog-backdrop, .auth-dialog-backdrop, .media-viewer { opacity: 1; transition: opacity var(--motion-overlay) var(--ease-out); }
    .settings-dialog, .storage-dialog, .auth-dialog { opacity: 1; transform: none; transform-origin: center; transition: opacity var(--motion-overlay) var(--ease-out), transform var(--motion-overlay) var(--ease-out); }
    .settings-dialog-backdrop[data-motion-state="closed"], .storage-dialog-backdrop[data-motion-state="closed"], .auth-dialog-backdrop[data-motion-state="closed"], .media-viewer[data-motion-state="closed"] { opacity: 0; }
    .settings-dialog-backdrop[data-motion-state="closed"] .settings-dialog, .storage-dialog-backdrop[data-motion-state="closed"] .storage-dialog, .auth-dialog-backdrop[data-motion-state="closed"] .auth-dialog { opacity: 0; transform: scale(.96); }
    .platform-add-menu { opacity: 1; transform: none; transform-origin: 18px 0; transition: opacity var(--motion-ui) var(--ease-out), transform var(--motion-ui) var(--ease-out); }
    @starting-style { .platform-add-menu:not([hidden]) { opacity: 0; transform: scale(.95); } }
    .auth-dialog-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: start; }
    .auth-dialog-head[hidden], .auth-dialog-form[hidden] { display: none; }
    .auth-dialog h2 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
    .auth-dialog-head p { margin: 8px 0 18px; color: #66748e; font-size: 13px; line-height: 1.5; }
    .auth-dialog-close { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 0; border-radius: 7px; color: #56657d; background: transparent; font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
    .auth-dialog-close:hover { background: #f1f4f8; }
    .auth-dialog-form { display: grid; gap: 14px; }
    .auth-dialog-form > .auth-message { height: 18px; min-height: 18px; margin: 0; overflow: hidden; color: #c33140; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
    .auth-dialog-form > .auth-message:empty { display: block; visibility: hidden; }
    .auth-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
    .auth-dialog-cancel { min-height: 40px; padding: 0 14px; border: 1px solid #cbd5e4; border-radius: 8px; color: #293956; background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
    .auth-dialog-send { min-height: 40px; padding: 0 15px; border: 0; border-radius: 8px; color: #fff; background: #075cff; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
    .auth-dialog-send:disabled { cursor: wait; opacity: .7; }
    .auth-dialog-success { display: grid; min-height: 236px; box-sizing: border-box; align-content: center; justify-items: center; padding: 12px 8px; text-align: center; }
    .auth-dialog-success[hidden] { display: none; }
    .auth-dialog-success-mark { display: grid; width: 42px; height: 42px; margin-bottom: 16px; place-items: center; border-radius: 50%; color: #fff; background: #2b8a60; font-size: 22px; font-weight: 700; line-height: 1; }
    .auth-dialog-success h2 { margin: 0; }
    .auth-dialog-success p { width: 100%; max-width: 48ch; margin: 9px 0 22px; color: #66748e; font-size: 13px; line-height: 1.5; text-wrap: balance; }
    @keyframes auth-spin { to { transform: rotate(360deg); } }
    @media (max-width: 680px) {
      .auth-main { padding: 32px 20px; place-items: start center; }
      .auth-panel { padding-top: max(20px,6vh); }
      .auth-brand { margin-bottom: 28px; }
      .auth-main::before { display: none; }
    }
    @media (max-width: 760px) {
      :root { --header-height: 60px; --mobile-toolbar-height: 116px; }
      html { width: 100%; height: 100%; overflow: hidden; }
      body { width: 100%; height: 100%; min-width: 0; overflow: hidden; overscroll-behavior: none; }
      .app, .app.nav-open, .app.connections-open, .app.settings-open, .app.billing-open, .app.help-open {
        --nav-width: 0px; --filter-width: 0px;
        position: fixed; inset: 0; width: 100%; height: 100vh; min-height: 0; max-height: none;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: var(--header-height) minmax(0, 1fr);
        padding-bottom: calc(68px + env(safe-area-inset-bottom)); border: 0;
        transition: none;
      }
      html body .app.connections-open, html body .app.settings-open, html body .app.billing-open, html body .app.help-open {
        grid-template-columns: minmax(0,1fr) !important;
      }
      @supports (height: 100dvh) {
        .app, .app.nav-open, .app.connections-open, .app.settings-open, .app.billing-open, .app.help-open { height: 100dvh; }
      }
      .app > .sidebar {
        position: fixed; z-index: 40; right: 0; bottom: 0; left: 0;
        width: 100%; min-width: 0; height: calc(68px + env(safe-area-inset-bottom));
        border: 0; border-top: 1px solid var(--border);
        padding-bottom: env(safe-area-inset-bottom); box-sizing: border-box; background: rgba(255,255,255,.98);
      }
      .app > .sidebar .brand, .app > .sidebar .mini-calendar, .app > .sidebar .nav-toggle-wrap { display: none; }
      .app > .sidebar .sidebar-scroll-shell { width: 100%; overflow: visible; }
      .app > .sidebar .nav-list { width: 100%; height: 68px; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; padding: 5px 4px 4px; box-sizing: border-box; }
      .app > .sidebar .nav-item, .app.nav-open > .sidebar .nav-item {
        width: 100%; min-width: 0; min-height: 58px; flex-direction: column; justify-content: center; gap: 3px;
        padding: 0 2px; border-radius: 8px; text-align: center; transform: none;
        touch-action: manipulation; -webkit-tap-highlight-color: transparent; contain: layout paint;
      }
      .app > .sidebar .nav-item:active { background: #e9eef7; transform: none; }
      .app > .sidebar .nav-item.active::before { top: auto; right: 12px; bottom: -4px; left: 12px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
      @media (hover: none) { .app > .sidebar .nav-item:not(.active):hover { background: transparent; } }
      .app > .sidebar .nav-icon { width: 23px; height: 23px; flex-basis: 23px; }
      .app > .sidebar .nav-icon .icon { width: 19px; height: 19px; }
      .app > .sidebar .nav-label, .app.nav-open > .sidebar .nav-label {
        width: 100%; overflow: hidden; opacity: 1; color: #53617e; font-size: 9.5px;
        line-height: 1.1; text-overflow: ellipsis;
      }
      .app > .sidebar .nav-item:nth-child(3) .nav-label { font-size: 0; }
      .app > .sidebar .nav-item:nth-child(3) .nav-label::after { content: "Тариф"; font-size: 9.5px; }
      .app > .topbar { grid-column: 1; grid-row: 1; gap: 10px; padding: 0 14px; }
      .app > .topbar .page-title { min-width: 0; overflow: hidden; font-size: 19px; text-overflow: ellipsis; }
      .app > .topbar .title-divider, .app > .topbar .current-period { display: none; }
      .app > .topbar .primary-button { min-height: 42px; padding: 0 15px; font-size: 0; }
      .app > .topbar .primary-button::after { content: "Создать"; font-size: 13px; }
      .app > .topbar .mobile-filter-button {
        display: inline-flex; min-height: 42px; margin-left: auto; padding: 0 15px;
        align-items: center; justify-content: center; border: 1px solid var(--border-strong);
        border-radius: 7px; color: #253556; background: #fff; font: inherit; font-size: 13px;
      }
      .app > .topbar .mobile-filter-button[hidden] { display: none; }
      .app > .topbar .mobile-filter-button[aria-expanded="true"] { border-color: #8eb2ff; color: var(--blue); background: #f5f8ff; }
      .app > .topbar .primary-button {
        position: fixed; z-index: 65; right: 14px; bottom: calc(82px + env(safe-area-inset-bottom));
        min-width: 92px; height: 50px; margin: 0; box-shadow: 0 8px 24px rgba(7,92,255,.22);
      }
      .workspace-scroll-shell {
        grid-column: 1; grid-row: 2; width: 100%; max-width: 100%;
        height: calc(100% - var(--mobile-toolbar-height)); margin-top: var(--mobile-toolbar-height);
        overflow: hidden;
      }
      .workspace { --workspace-pad-x: 14px; --workspace-pad-top: 14px; width: 100%; max-width: 100%; padding-top: 14px; padding-bottom: 24px; overflow-x: hidden; overscroll-behavior: contain; }
      .work-surface { min-width: 0; }
      .toolbar {
        position: fixed; z-index: 18; top: var(--header-height); right: 0; left: 0;
        height: var(--mobile-toolbar-height); box-sizing: border-box;
        grid-template-columns: minmax(0,1fr) 44px; grid-template-rows: 44px 44px; gap: 8px;
        margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--canvas);
      }
      .segmented { grid-column: 1; grid-row: 1; width: 100%; transform: none; }
      .tab { min-width: 0; min-height: 44px; flex: 1 1 0; padding: 0 10px; }
      .date-controls { position: static; grid-column: 1 / -1; grid-row: 2; width: 100%; display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; transform: none; }
      .date-controls .control { min-width: 0; min-height: 44px; padding: 0 10px; }
      #date-picker-toggle { width: 100%; min-width: 0; max-width: none; overflow: hidden; }
      .date-controls .control:nth-child(2) span { overflow: hidden; text-overflow: ellipsis; }
      #calendar-today { display: none; }
      .toolbar-right { grid-column: 2; grid-row: 1; width: 44px; height: 44px; display: grid; place-items: center; align-self: start; justify-self: end; transform: none; }
      #calendar-sort { width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: inline-flex; align-self: center; justify-content: center; padding: 0; }
      #calendar-sort[hidden] { display: none; }
      .sort #calendar-sort-label { display: none; }
      .calendar-period-picker {
        position: absolute; z-index: 24; top: calc(100% + 8px); right: 14px; left: 14px;
        width: auto; transform: none;
        max-height: calc(100dvh - var(--header-height) - var(--mobile-toolbar-height) - 92px);
        overflow-y: auto; padding: 12px; border: 1px solid var(--border-strong); border-radius: 12px;
        background: #fff; box-shadow: 0 14px 34px rgba(31,48,78,.16);
      }
      .calendar-period-picker[hidden] { display: none; }
      .period-picker-head { min-height: 44px; display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; margin-bottom: 6px; }
      .period-picker-head strong { color: #182744; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
      .period-picker-nav { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #263556; background: transparent; }
      .period-picker-nav:active { background: #eef3fb; }
      .period-picker-weekdays, .period-picker-days, .period-week-row { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
      .period-picker-weekdays span { min-height: 28px; display: grid; place-items: center; color: #7a879f; font-size: 10px; font-weight: 650; }
      .period-picker-days { gap: 2px; }
      .period-picker-day { min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 8px; color: #263556; background: transparent; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; }
      .period-picker-day.adjacent { color: #a8b1c2; }
      .period-picker-day.is-current { position: relative; color: #075cff; box-shadow: inset 0 0 0 1px #8eb2ff; font-weight: 650; }
      .period-picker-day.is-current::after { content: ""; position: absolute; right: 50%; bottom: 5px; width: 3px; height: 3px; border-radius: 50%; background: #075cff; transform: translateX(50%); }
      .period-picker-day[aria-selected="true"] { color: #fff; background: var(--blue); font-weight: 650; }
      .period-picker-day.is-current[aria-selected="true"]::after { background: #fff; }
      .period-picker-weeks { display: grid; gap: 3px; }
      .period-week-row { min-height: 44px; padding: 0; border: 0; border-radius: 8px; color: #263556; background: transparent; font: inherit; }
      .period-week-row span { display: grid; place-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
      .period-week-row .adjacent { color: #a8b1c2; }
      .period-week-row.is-current { position: relative; box-shadow: inset 0 0 0 1px #b7caff; }
      .period-week-row.is-current::after { content: ""; position: absolute; top: 5px; right: 6px; width: 4px; height: 4px; border-radius: 50%; background: #075cff; }
      .period-week-row[aria-selected="true"] { color: #075cff; background: #edf3ff; box-shadow: inset 0 0 0 1px #8eb2ff; font-weight: 650; }
      .period-month-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
      .period-month-button { min-width: 0; min-height: 46px; padding: 0 6px; border: 1px solid #dce3ee; border-radius: 8px; color: #263556; background: #fff; font: inherit; font-size: 12px; }
      .period-month-button.is-current { position: relative; border-color: #8eb2ff; color: #075cff; font-weight: 650; }
      .period-month-button.is-current::after { content: ""; position: absolute; top: 6px; right: 7px; width: 4px; height: 4px; border-radius: 50%; background: #075cff; }
      .period-month-button[aria-selected="true"] { border-color: var(--blue); color: #075cff; background: #edf3ff; font-weight: 650; }
      .view-heading { flex-wrap: wrap; margin-bottom: 14px; }
      .day-grid { grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; gap: 12px; }
        .post-card { width: 100%; }
      .post-card:not(.text-only) {
        display: grid; height: 168px;
        grid-template-columns: clamp(112px,34vw,132px) minmax(0,1fr);
      }
      .post-card:not(.text-only) .post-media {
        width: 100%; height: 100%; min-height: 0; padding: 8px 0 8px 8px;
      }
      .post-card:not(.text-only) .post-body { min-width: 0; padding: 13px 13px 11px 12px; }
      .post-card:not(.text-only) .post-text { font-size: 13.5px; line-height: 1.45; -webkit-line-clamp: 4; }
      .post-card:not(.text-only) .post-footer .platform {
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to right,#000 0,#000 calc(100% - 18px),transparent 100%);
        mask-image: linear-gradient(to right,#000 0,#000 calc(100% - 18px),transparent 100%);
      }
      .post-card:not(.text-only) .post-footer .platform > span:last-child {
        display: block; min-width: 0; overflow: hidden; white-space: nowrap;
      }
      .post-card.text-only { height: 158px; }
      .post-card.text-only .post-body { width: 100%; padding: 16px 16px 12px; }
      .post-card.text-only .post-text { max-width: none; font-size: 14px; line-height: 1.55; -webkit-line-clamp: 4; }
      .post-card .post-footer { padding-top: 9px; }
      .calendar-surface { padding-bottom: 72px; }
      .week-legend, .month-legend {
        width: 100%; min-width: 0; display: flex; align-items: center; justify-content: center;
        flex-wrap: nowrap; gap: clamp(5px,2vw,10px); margin-bottom: 10px;
        font-size: clamp(8px,2.4vw,10px); white-space: nowrap;
      }
      .week-legend .legend-item, .month-legend .legend-item { gap: 4px; }
      .week-grid {
        --mobile-week-column: 176px;
        width: max-content; min-width: 0; box-sizing: content-box;
        margin-inline: 0; padding-inline: calc((100vw - var(--mobile-week-column)) / 2);
        grid-template-columns: repeat(7,var(--mobile-week-column)); gap: 10px;
      }
      .week-carousel {
        width: calc(100% + 28px); margin-inline: -14px; overflow-x: auto; overflow-y: hidden;
        overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
      }
      .week-carousel::-webkit-scrollbar { display: none; width: 0; height: 0; }
      .week-column {
        width: var(--mobile-week-column); grid-template-rows: 34px repeat(5,108px); gap: 8px;
        scroll-snap-align: center; scroll-snap-stop: always;
      }
      .week-card, .week-empty { width: 156px; height: 108px; justify-self: center; }
      .week-card { padding: 11px 10px 9px; }
      .week-content { gap: 7px; margin-top: 9px; }
      .week-thumb { width: 40px; height: 40px; flex-basis: 40px; }
      .week-text { font-size: 11.5px; line-height: 1.5; -webkit-line-clamp: 3; }
      .month-grid {
        width: calc(100% + 16px); min-width: 0; margin-inline: -8px;
        grid-template-columns: repeat(7,minmax(0,1fr)); grid-template-rows: 32px; grid-auto-rows: 76px;
        border-radius: 8px;
      }
      .month-weekday { font-size: 10px; }
      .month-cell { padding: 6px; }
      .month-cell-head { top: 6px; right: 6px; left: 6px; }
      .month-number { transform: none; font-size: 11px; }
      .month-platforms { display: none; }
      .month-summary { inset: 21px 2px 3px; gap: 0; }
      .month-ring { width: clamp(30px,9vw,36px); height: clamp(30px,9vw,36px); flex-basis: auto; }
      .month-ring::after { inset: 5px; }
      .month-ring strong { font-size: 11px; }
      .month-ring strong.three-digits { font-size: 9px; }
      .month-statuses { display: none; }
      .connections-view, .settings-view, .billing-view, .help-view {
        width: 100%; min-width: 0; box-sizing: border-box;
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
      }
      html body .app.connections-open .workspace-scroll-shell, html body .app.settings-open .workspace-scroll-shell, html body .app.billing-open .workspace-scroll-shell, html body .app.help-open .workspace-scroll-shell {
        grid-column: 1 !important; grid-row: 2; width: 100% !important; max-width: 100%; height: 100%; margin-top: 0;
      }
      .app.connections-open .workspace, .app.settings-open .workspace, .app.billing-open .workspace, .app.help-open .workspace { height: 100%; padding-top: 16px; overflow-y: auto; }
      .connections-intro, .settings-intro, .billing-intro { margin-bottom: 14px; }
      .connections-intro h2, .settings-intro h2, .billing-intro h2 { font-size: 20px; }
      .connection-summary { grid-template-columns: minmax(0,1fr) auto; gap: 12px; min-height: 118px; padding: 17px 16px; }
      .connection-platform { grid-column: 1; grid-row: 1; }
      .connection-action { grid-column: 2; grid-row: 1; }
      .connection-state { grid-column: 1 / 3; grid-row: 2; }
      .connection-details { margin-inline: 16px; padding-inline: 0; }
      .connection-item.is-open .connection-details { padding-block: 18px 20px; }
      .connection-setup { grid-template-columns: minmax(0,1fr); gap: 18px; }
      .connection-fields, .connection-fields.single { grid-template-columns: minmax(0,1fr); }
      .connection-step { grid-template-columns: 28px minmax(0,1fr); gap: 10px; }
      .connection-step.single { grid-template-columns: minmax(0,1fr); }
      .connection-setup-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; padding-left: 0; }
      .connection-buttons { width: 100%; display: grid; grid-template-columns: minmax(0,1fr); }
      .connection-button { width: 100%; min-height: 44px; }
      .settings-panel, .billing-panel { min-width: 0; border-radius: 10px; }
      .settings-section { padding: 22px 16px; }
      .settings-section-head { margin-bottom: 18px; }
      .settings-section-head h3 { font-size: 16px; }
      .settings-section-head p { font-size: 12.5px; }
      .settings-info-row { grid-template-columns: minmax(0,1fr) auto; gap: 12px; min-height: 76px; }
      .settings-secondary, .settings-danger, .settings-save { min-height: 44px; }
      .settings-actions { align-items: stretch; flex-direction: column; margin-top: 20px; }
      .settings-actions .settings-save, .settings-actions .settings-danger { width: 100%; }
      .settings-platform-defaults { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
      .settings-platform-default { width: 100%; min-width: 0; min-height: 56px; box-sizing: border-box; padding: 0 6px 0 14px; cursor: default; }
      .settings-platform-default:active { cursor: default; }
      .settings-platform-drag { display: none; }
      .settings-platform-order-actions { display: grid; flex: 0 0 auto; grid-template-columns: 44px 44px; gap: 2px; }
      .settings-platform-order-actions button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: 7px; color: #526381; background: transparent; touch-action: manipulation; }
      .settings-platform-order-actions button:active { color: var(--blue); background: #e8f0ff; }
      .settings-platform-order-actions button:focus-visible { outline: 2px solid rgba(23,105,255,.42); outline-offset: -2px; }
      .settings-platform-order-actions button:disabled { color: #b8c1d0; background: transparent; }
      .settings-platform-order-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
      .settings-platform-order-actions button:first-child svg { transform: rotate(90deg); }
      .settings-platform-order-actions button:last-child svg { transform: rotate(-90deg); }
      .setting-line { grid-template-columns: minmax(0,1fr); gap: 12px; }
      .session-row { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
      .setting-line > button { width: 100%; justify-self: stretch; }
      .setting-line[data-editor-autosave] { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
      .setting-line[data-editor-autosave] > .switch { width: 44px; justify-self: end; }
      .session-row > button { width: auto; justify-self: end; }
      .session-current { justify-self: start; }
      .settings-pending-actions { flex-wrap: wrap; gap: 4px 12px; }
      .settings-pending-actions button { min-height: 36px; }
      .billing-stack { gap: 20px; }
      .billing-current { padding: 22px 18px; }
      .billing-renew { grid-template-columns: minmax(0,1fr); gap: 16px; padding: 20px 18px; }
      .billing-renew-copy { grid-column: 1; }
      .billing-renew-control { width: 100%; }
      .billing-period-select { min-height: 48px; font-size: 16px; }
      .billing-renew-action { width: 100%; }
      .billing-renew-action .billing-primary { width: 100%; min-width: 0; min-height: 48px; }
      .billing-table { table-layout: auto; }
      .billing-table th, .billing-table td { height: 58px; padding: 0 10px; white-space: nowrap; }
      .billing-table th:first-child, .billing-table td:first-child { width: 35%; padding-left: 14px; }
      .billing-table th:nth-child(3), .billing-table td:nth-child(3) { width: 30%; text-align: center; }
      .billing-table th:last-child, .billing-table td:last-child { width: 35%; padding-right: 14px; }
      .billing-success { width: max-content; max-width: calc(100vw - 28px); }
      .help-view { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
      .help-list { border-radius: 10px; }
      .help-section > summary { min-height: 76px; padding: 14px 16px; touch-action: manipulation; }
      .help-section > summary strong { font-size: 13.5px; line-height: 1.35; }
      .help-section > summary small { font-size: 11.5px; line-height: 1.4; }
      .help-content { padding: 20px 16px 24px; font-size: 13px; line-height: 1.62; }
      .help-steps { gap: 20px; }
      .help-steps > li { padding-left: 38px; }
      .help-platform > summary { min-height: 66px; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; padding: 10px 14px; touch-action: manipulation; }
      .help-platform > summary > strong { grid-column: 1; }
      .help-platform > summary > .icon { grid-column: 2; grid-row: 1; }
      .help-platform > div { padding: 20px 14px 22px; }
      .help-support { align-items: stretch; flex-direction: column; gap: 16px; padding: 20px 18px; }
      .help-support .settings-save { width: 100%; min-height: 46px; }
      .filters {
        position: fixed; z-index: 70; top: calc(var(--header-height) + 10px); right: 8px;
        bottom: calc(78px + env(safe-area-inset-bottom));
        width: min(82vw, 310px); min-width: 0; max-height: none;
        border: 1px solid var(--border-strong); border-radius: 12px;
        box-shadow: -10px 10px 28px rgba(29,48,82,.13); transition: transform 220ms var(--ease-out);
      }
      .filters-scroll-shell { min-height: 0; overflow: hidden; }
      .mobile-filter-backdrop {
        position: fixed; z-index: 69; inset: var(--header-height) 0 calc(68px + env(safe-area-inset-bottom));
        display: block; padding: 0; border: 0; background: transparent;
      }
      .filters-content { height: 100%; padding: 20px 16px 12px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
      .filter-toggle-wrap { display: none; }
      .filter-name { width: auto; flex: 1 1 auto; }
      .filter-count { margin-left: auto; }
      .filters-collapsed .filters {
        display: none;
      }
      .filters-collapsed .mobile-filter-backdrop { display: none; }
      .filter-row { min-height: 44px; }
      .filter-row input { width: 20px; height: 20px; flex-basis: 20px; }
      .editor-page, .editor-page.is-open, .editor-page.nav-open, .editor-page.preview-collapsed {
        --nav-width: 0px; --preview-width: 100%;
        width: 100%; height: 100vh; min-width: 0; min-height: 0; border: 0;
        grid-template-columns: minmax(0,1fr); grid-template-rows: var(--header-height) minmax(0,1fr);
        padding-bottom: 0; box-sizing: border-box;
      }
      @supports (height: 100dvh) { .editor-page, .editor-page.is-open, .editor-page.nav-open, .editor-page.preview-collapsed { height: 100dvh; } }
      .editor-page .sidebar { display: none; }
      .editor-page .sidebar .brand, .editor-page .sidebar .mini-calendar, .editor-page .sidebar .nav-toggle-wrap { display: none; }
      .editor-page .sidebar .sidebar-scroll-shell { width: 100%; overflow: visible; }
      .editor-page .sidebar .nav-list { width: 100%; height: 68px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; padding: 5px 4px 4px; box-sizing: border-box; }
      .editor-page .sidebar .nav-item, .editor-page.nav-open .sidebar .nav-item {
        width: 100%; min-width: 0; min-height: 58px; flex-direction: column; justify-content: center; gap: 3px;
        padding: 0 2px; border-radius: 8px; text-align: center; transform: none; touch-action: manipulation;
      }
      .editor-page .sidebar .nav-item.active::before { top: auto; right: 12px; bottom: -4px; left: 12px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
      .editor-page .sidebar .nav-icon { width: 23px; height: 23px; flex-basis: 23px; }
      .editor-page .sidebar .nav-icon .icon { width: 19px; height: 19px; }
      .editor-page .sidebar .nav-label, .editor-page.nav-open .sidebar .nav-label { width: 100%; opacity: 1; overflow: hidden; color: #53617e; font-size: 9.5px; line-height: 1.1; text-overflow: ellipsis; }
      .editor-page .sidebar .nav-item:nth-child(3) .nav-label { font-size: 0; }
      .editor-page .sidebar .nav-item:nth-child(3) .nav-label::after { content: "Тариф"; font-size: 9.5px; }
      .editor-header { grid-column: 1; grid-row: 1; min-width: 0; gap: 8px; padding: 0 14px; }
      .editor-header .page-title { min-width: 0; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
      .editor-save-status { margin-left: auto; font-size: 10px; white-space: nowrap; }
      .editor-close { display: grid; flex: 0 0 44px; margin-left: auto; margin-right: -8px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
      .editor-shell { grid-column: 1; grid-row: 2; display: block; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
      .editor-main-scroll-shell { display: block; overflow: visible; }
      .editor-main-scroll { width: 100%; height: auto; overflow: visible; }
      .editor-main { width: 100%; min-width: 0; box-sizing: border-box; padding: 14px; }
      .editor-board { min-height: 0; }
      .section-canvas, .stream-sheet, .platform-manager, .format-bar, .stream-block { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
      .stream-sheet { overflow: visible; border-radius: 10px; background: transparent; }
      .platform-manager { padding: 14px 14px 13px; border-radius: 9px 9px 0 0; }
      .platform-tabs, .stream-sheet .platform-tabs {
        width: 100%; margin-left: 0; padding: 0;
        display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; overflow: visible;
      }
      .platform-tabs[data-visible-platform-count="1"], .platform-tabs[data-visible-platform-count="2"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
      .platform-tabs[data-visible-platform-count="4"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
      .platform-tabs[data-visible-platform-count="5"], .platform-tabs[data-visible-platform-count="6"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
      .platform-choice { position: relative; width: 100%; min-width: 0; min-height: 56px; justify-content: center; border: 1px solid #d8e0ec; border-radius: 8px; cursor: default; }
      .platform-choice.is-active { border-color: #8eb2ff; background: #f4f7ff; }
      .platform-choice .platform-tab { min-width: 0; flex-direction: column; justify-content: center; gap: 2px; font-size: 10px; line-height: 1.1; }
      .platform-choice .platform-tab .platform-icon { width: 17px; height: 17px; flex-basis: 17px; }
      .platform-choice .platform-tab > span:not(.platform) { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .platform-choice .platform-content-dot { position: absolute; top: 7px; right: 31px; margin: 0; }
      .platform-drag { display: none; }
      .platform-close { position: absolute; z-index: 2; top: 1px; right: 1px; display: grid; width: 30px; height: 30px; margin: 0; color: #74819a; }
      .platform-close svg { width: 14px; height: 14px; }
      .platform-add-wrap { min-height: 42px; display: grid; place-items: center; }
      .platform-tabs:not(:has(.platform-choice[hidden])) .platform-add-wrap { display: none; }
      .platform-add-menu { position: fixed; z-index: 110; top: calc(var(--header-height) + 54px); right: 14px; left: 14px; width: auto; max-width: none; }
      .format-bar { padding: 0 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
      .format-bar.has-open-link { z-index: 130; overflow: visible; }
      .format-bar.has-open-link .link-editor { z-index: 131; }
      .format-bar::-webkit-scrollbar, .platform-tabs::-webkit-scrollbar { display: none; }
      .stream-block { padding: 18px 16px; }
      .section-copy { min-height: 180px; font-size: 16px; }
      input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
      textarea,
      select,
      [contenteditable="true"] { font-size: 16px; }
      .stream-media, .threads-reply-media-block .stream-media { grid-template-columns: repeat(auto-fill, 160px); gap: 8px; }
      .stream-media .media-tile, .stream-media .media-add { width: 160px; height: 126px; min-width: 160px; }
      .stream-media .media-add { padding: 6px; font-size: 10px; line-height: 1.25; }
      .media-spoiler { top: 4px; right: 4px; left: auto; width: 40px; height: 40px; background: rgba(18,29,49,.72); }
      .media-remove { top: 4px; right: auto; bottom: auto; left: 4px; width: 40px; height: 40px; background: rgba(18,29,49,.72); }
      .media-order-actions { position: absolute; z-index: 3; right: 4px; bottom: 2px; left: 4px; display: flex; justify-content: space-between; pointer-events: none; }
      .media-order-actions button { position: relative; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; color: #fff; background: transparent; pointer-events: auto; }
      .media-order-actions button::before { position: absolute; inset: 3px; border-radius: 7px; background: rgba(18,29,49,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); content: ""; }
      .media-order-actions button:last-child svg { transform: rotate(180deg); }
      .media-order-actions button:disabled { opacity: .38; }
      .media-order-actions svg { position: relative; z-index: 1; width: 17px; height: 17px; fill: currentColor; }
      .threads-reply-format-bar { margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
      .threads-reply-format-bar::-webkit-scrollbar { display: none; }
      .threads-reply-format-bar .tool-button { min-width: 44px; height: 44px; }
      .threads-settings-list { width: 100%; min-width: 0; }
      .threads-setting-row { width: 100%; min-width: 0; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
      .threads-setting-copy { min-width: 0; }
      .threads-setting-row .switch { justify-self: end; }
      .threads-setting-select, .telegram-position-control { width: 100%; min-width: 0; grid-column: 1 / -1; justify-self: stretch; }
      .schedule-details { width: 100%; max-width: none; }
      .schedule-platforms { width: 100%; }
      .schedule-platform-item { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
      .schedule-datetime { width: 100%; grid-column: 1 / -1; justify-self: stretch; }
      .schedule-datetime-field { width: 100%; height: 44px; grid-template-columns: minmax(0,1fr) 1px 46px 10px 46px; }
      .schedule-date-trigger, .schedule-time-trigger { height: 42px; font-size: 14px; }
      .schedule-date-popover { top: -366px; right: 0; bottom: auto; left: 0; width: 100%; max-width: none; box-sizing: border-box; padding: 12px; }
      .schedule-date-days { gap: 3px; }
      .schedule-date-days button { height: 40px; font-size: 12px; }
      .schedule-date-weekdays span { font-size: 9px; }
      .schedule-time-popover { width: 58px; }
      .schedule-time-popover.hour { right: 50px; }
      .schedule-time-popover.minute { right: -6px; }
      .publication-error-panel { margin: 14px 0; }
      .stream-sheet > .editor-actions-footer { border-radius: 0 0 9px 9px; }
      .editor-preview { display: block; width: 100%; min-height: 0; box-sizing: border-box; border: 0; border-top: 1px solid var(--border); background: #fff; }
      .preview-head, .preview-scroll-shell, .editor-page.preview-collapsed .preview-head, .editor-page.preview-collapsed .preview-scroll-shell { width: 100%; transform: none; pointer-events: auto; }
      .preview-head { min-height: 58px; height: auto; padding: 22px 18px 0; }
      .preview-scroll-shell { overflow: visible; }
      .preview-body { width: 100%; height: auto; overflow: visible; padding: 18px 14px 116px; box-sizing: border-box; }
      .preview-platform { margin-bottom: 14px; }
      .social-mock { max-width: 360px; box-shadow: none; }
      .preview-toggle-wrap { display: none; }
      .editor-actions-footer {
        position: fixed; z-index: 75; right: 0; bottom: 0; left: 0;
        width: 100%; min-height: calc(68px + env(safe-area-inset-bottom)); margin: 0;
        padding: 10px 12px max(10px, env(safe-area-inset-bottom)); box-sizing: border-box;
        display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; background: #fff;
        border-top: 1px solid var(--border); box-shadow: 0 -8px 22px rgba(29,48,82,.08);
      }
      .editor-actions-footer:has(.editor-delete-button:not([hidden])) { grid-template-columns: 72px minmax(0,.9fr) minmax(0,1.15fr); }
      .editor-page.is-published-view .editor-actions-footer { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
      .editor-actions-footer::before { display: none; }
      .editor-actions-footer .control, .editor-actions-footer .primary-button, .editor-delete-button { width: 100%; min-width: 0; height: 48px; padding-inline: 10px; }
      .editor-actions-footer button { overflow: hidden; font-size: 11px; white-space: nowrap; }
      .editor-actions-footer .primary-button { gap: 4px; padding-inline: 7px; }
      .editor-actions-footer .publish-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
      .editor-delete-button { position: static; }
      .editor-delete-button.is-exit { display: none; }
      .editor-actions-footer:has(.editor-delete-button.is-exit) { grid-template-columns: repeat(2,minmax(0,1fr)); }
      .editor-copy-action { min-width: 0; }
      .editor-copy-action > button { width: 100%; }
      .editor-copy-note { display: none !important; }
      .publication-delete-dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); box-sizing: border-box; }
      .publication-delete-actions { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px 16px 18px; }
      .publication-delete-actions button { width: 100%; min-width: 0; white-space: normal; line-height: 1.25; }
      #editor-close-dialog { width: 100%; height: 100vh; padding: 12px; box-sizing: border-box; }
      @supports (height: 100dvh) { #editor-close-dialog { height: 100dvh; } }
      .editor-close-dialog { width: 100%; max-width: 420px; box-sizing: border-box; justify-self: center; }
      .editor-close-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 14px 16px 18px; }
      .editor-close-actions button { width: 100%; min-width: 0; padding-inline: 10px; }
      .editor-close-actions .discard { grid-column: 1 / -1; grid-row: 2; }
      .editor-close-actions .primary { grid-column: 2; grid-row: 1; }
    }
    @media (max-width: 340px) { .stream-media, .threads-reply-media-block .stream-media { grid-template-columns: repeat(auto-fill, 160px); } }


    .mini-calendar[data-editor-mini-calendar][hidden], .mini-calendar[data-editor-mini-calendar] .mini-days[hidden] { display: none; }

    @keyframes commercial-login-spin { to { transform: rotate(360deg); } }
    @media (max-width: 760px) { .auth-submit-spinner { border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: auth-spin 1.05s linear infinite; } }
    .connection-summary, .connection-setup { --connection-layout-gap: clamp(20px, 2.4vw, 28px); --connection-guide-width: clamp(230px, 32%, 590px); }
    .connection-summary { grid-template-columns: var(--connection-guide-width) minmax(210px,1fr) auto; gap: var(--connection-layout-gap); }
    .connection-setup { grid-template-columns: var(--connection-guide-width) minmax(0,1fr); gap: var(--connection-layout-gap); align-items: start; }
    .connection-guide { max-width: 34ch; }
    .connection-guide-direction-narrow { display: none; }
    .threads-alpha-actions { padding-left: 0; margin-top: 0; align-items: flex-start; }
    .connection-step-number, .threads-flow-number { justify-self: center; box-sizing: border-box; line-height: 1; font-variant-numeric: tabular-nums; text-indent: -.35px; padding-top: 1px; transform: translateX(calc(4px - (var(--step-number-track, 24px) / 2))); }
    .connection-step { --step-number-track: 24px; }
    .threads-flow-step { --step-number-track: 32px; }
    [data-connection="threads"] .connection-setup[hidden] { display: none; }
    .threads-flow-header { display: flex; align-items: center; justify-content: flex-end; min-height: 38px; gap: 12px; margin: 0 28px 16px 0; }
    .threads-flow-column { min-width: 0; }
    .threads-flow { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
    .threads-flow-step { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; min-width: 0; padding-bottom: 22px; }
    .threads-flow-step:last-child { padding-bottom: 0; }
    .threads-flow-number { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 700; }
    .threads-flow-copy { display: grid; justify-items: start; gap: 10px; min-width: 0; padding-top: 4px; }
    .threads-flow-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
    .threads-flow-copy strong { color: var(--text); font-size: 14px; line-height: 1.4; }
    .threads-flow-step.is-complete .threads-flow-number { border-color: #94cbb0; color: #287252; background: #edf8f1; }
    .threads-flow-step.is-complete .threads-flow-copy strong { color: #53617e; }
    .threads-flow-step.is-active .threads-flow-number { border-color: var(--blue); color: #fff; background: var(--blue); }
    .threads-flow-step.is-waiting .threads-flow-copy strong { color: #69758d; font-weight: 500; }
    .threads-flow-controls, .threads-flow-action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; }
    .threads-flow-action-row .connection-feedback { min-height: 0; }
    .threads-flow-acceptance { display: grid; justify-self: start; justify-items: center; width: fit-content; max-width: 100%; gap: 7px; text-align: center; }
    .threads-flow-acceptance-copy { display: grid; gap: 2px; color: var(--text); font-size: 13px; line-height: 1.45; }
    .threads-flow-acceptance-arrow { display: block; width: 18px; height: 18px; color: var(--muted); }
    .connection-identity-row { display: block; }
    .connection-identity-row + .connection-identity-row { margin-top: 5px; }
    .connection-identity-link { color: inherit; text-decoration: none; text-underline-offset: 3px; }
    .connection-identity-link:hover, .connection-identity-link:focus-visible { color: var(--text); text-decoration-line: underline; text-decoration-color: currentColor; }
    .connection-identity-link:focus-visible { border-radius: 2px; outline: 2px solid var(--blue); outline-offset: 3px; }
    .threads-flow .connection-button { min-height: 42px; padding: 0 15px; border-radius: 8px; font-size: 13px; }
    .threads-flow-controls input { width: min(100%, 250px); min-height: 42px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
    .threads-flow-controls input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
    .threads-flow-controls input[aria-invalid="true"] { border-color: #b72d35; }
    .threads-flow-link { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
    .threads-flow-feedback:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    [data-connection="threads"] .connection-feedback { white-space: pre-line; }
    .threads-request-unknown { grid-column: 1 / -1; display: grid; justify-items: start; gap: 10px; }
    .threads-request-unknown p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
    .threads-reset-button { min-height: 38px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
    .threads-reset-button:hover { color: var(--text); background: #f7f9fd; }
    .threads-reset-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
    .threads-reset-button:disabled { opacity: .6; cursor: wait; }
    [data-threads-request-refresh][aria-busy="true"] { cursor: wait; }
    [data-threads-request-refresh][aria-busy="true"]::before { display: inline-block; width: 12px; height: 12px; margin-right: 7px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; content: ""; animation: threads-status-spin .8s linear infinite; }
    @keyframes threads-status-spin { to { transform: rotate(360deg); } }
    @media (prefers-reduced-motion: reduce) { [data-threads-request-refresh][aria-busy="true"]::before { animation: none; border-right-color: currentColor; } }
    @media (max-width: 760px) { .connection-item { --connection-icon-size: 28px; --connection-status-size: 8px; --connection-mobile-axis: calc(var(--connection-icon-size) / 2); } .connection-summary, .connection-setup { --connection-layout-gap: 18px; --connection-guide-width: 100%; } .connection-platform .icon-only-platform, .connection-platform .platform-icon { width: var(--connection-icon-size); height: var(--connection-icon-size); flex-basis: var(--connection-icon-size); } .connection-summary { grid-template-columns: minmax(0,1fr) auto; gap: 12px; } .connection-state { grid-column: 1 / -1; grid-row: 2; margin-left: calc(var(--connection-mobile-axis) - var(--connection-status-size) / 2); } .connection-state-line::before { width: var(--connection-status-size); height: var(--connection-status-size); flex-basis: var(--connection-status-size); } .connection-setup { grid-template-columns: minmax(0,1fr); gap: 18px; } .connection-guide, .connection-management, .threads-alpha-actions, .threads-request-unknown { margin-left: var(--connection-mobile-axis); } .connection-step, .threads-flow-step { --step-number-track: var(--connection-icon-size); grid-template-columns: var(--step-number-track) minmax(0,1fr); gap: 10px; } .connection-step-number, .threads-flow-number { transform: none; } .connection-guide-direction-wide { display: none; } .connection-guide-direction-narrow { display: inline; } .threads-flow-header { margin-right: 0; } .threads-request-unknown { grid-column: 1; } .threads-flow .connection-button { min-height: 44px; } }
    @media (max-width: 480px) { .threads-flow-controls input, .threads-flow-controls .connection-button { width: 100%; } }

    .session-current-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
    .settings-actions[data-other-sessions-actions][hidden] { display: none; }
    .editor-exit-group { position: absolute; left: calc(var(--action-frame-left) - var(--action-scroll-x, 0px) + 16px); display: flex; align-items: center; gap: 8px; }
    .editor-exit-group .editor-delete-button { position: static; left: auto; flex: 0 0 auto; }
    .editor-delete-button.editor-exit-button { position: static; flex: 0 0 auto; border-color: #cbd5e4; color: #34435f; }
    .editor-delete-button.editor-exit-button:hover { border-color: #aebbd0; background: #f7f9fc; }
    @media (max-width: 760px) { .editor-actions-footer:has(.editor-exit-button) { grid-template-columns: repeat(4,minmax(0,1fr)); } .editor-exit-group { position: static; display: contents; } .editor-delete-button.editor-exit-button { display: block; position: static; } .editor-page.is-published-view .editor-actions-footer:has(.editor-exit-button) { grid-template-columns: repeat(2,minmax(0,1fr)); } }

    .preview-media-item, .platform-preview-gallery-cell, .media-tile { position: relative; isolation: isolate; overflow: hidden; background: #edf1f7; }
    .media-tile.is-uploading { clip-path: inset(0 round 7px); }
    .preview-media-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 9px; overflow: hidden; color: #64748f; background: linear-gradient(135deg, #f4f7fb 0%, #e7edf6 100%); font-size: 12px; font-weight: 600; line-height: 1.2; opacity: 1; transition: opacity 180ms cubic-bezier(.16,1,.3,1); }
    .preview-media-loading.is-uploading { background: rgba(244,247,251,.58); }
    .preview-media-item.is-preview-media-upgrade-failed > .preview-media-loading, .platform-preview-gallery-cell.is-preview-media-upgrade-failed > .preview-media-loading, .media-tile.is-preview-media-upgrade-failed > .preview-media-loading { opacity: 1; pointer-events: auto; }
    .preview-media-loading::after { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.58) 48%, transparent 66%); transform: translateX(-100%); animation: preview-media-sheen 1.8s ease-in-out infinite; content: ""; }
    .preview-media-loading-mark { position: relative; z-index: 1; width: 24px; height: 24px; border: 2px solid #c2ccdc; border-top-color: #1769ff; border-radius: 50%; animation: preview-media-spin 1.05s linear infinite; }
    .preview-media-loading-label { position: relative; z-index: 1; }
    .stream-media .media-tile.is-uploading > img, .stream-media .media-tile.is-uploading > video { filter: saturate(.72) brightness(1.1); }
    .preview-media-item > img, .preview-media-item > video, .platform-preview-gallery-cell > img, .platform-preview-gallery-cell > video, .media-tile > img, .media-tile > video { position: relative; z-index: 1; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: inherit; opacity: 0; transition: opacity 180ms cubic-bezier(.16,1,.3,1), filter 180ms cubic-bezier(.16,1,.3,1), transform 180ms cubic-bezier(.16,1,.3,1); }
    .preview-media-item.is-preview-media-ready > .preview-media-loading, .platform-preview-gallery-cell.is-preview-media-ready > .preview-media-loading, .media-tile.is-preview-media-ready > .preview-media-loading { opacity: 0; pointer-events: none; }
    .preview-media-item.is-preview-media-ready > img, .preview-media-item.is-preview-media-ready > video, .platform-preview-gallery-cell.is-preview-media-ready > img, .platform-preview-gallery-cell.is-preview-media-ready > video, .media-tile.is-preview-media-ready > img, .media-tile.is-preview-media-ready > video { opacity: 1; }
    .preview-media-item.is-preview-media-ready > .preview-media-loading.is-uploading, .platform-preview-gallery-cell.is-preview-media-ready > .preview-media-loading.is-uploading, .media-tile.is-preview-media-ready > .preview-media-loading.is-uploading, .media-tile.is-uploading.is-preview-media-ready > .preview-media-loading { opacity: 1; pointer-events: auto; }
    .media-tile.is-uploading.is-preview-media-ready > img, .media-tile.is-uploading.is-preview-media-ready > video { opacity: .72; filter: blur(5px) saturate(.82) brightness(1.05); transform: scale(1.12); }
    .media-upload-failed { position: absolute; z-index: 4; right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 7px; border-radius: 7px; background: rgba(169,39,51,.92); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2; }
    .media-upload-cancel { position: absolute; z-index: 5; left: 8px; bottom: 8px; display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 7px; color: #172541; background: rgba(255,255,255,.9); cursor: pointer; }
    .media-upload-cancel svg { width: 16px; height: 16px; fill: currentColor; }
    .media-upload-cancel:hover { background: #fff; }
    .commercial-context-loader { display: grid; min-height: 220px; place-content: center; justify-items: center; gap: 12px; padding: 28px; color: #53617e; text-align: center; }
    .commercial-context-loader__mark { width: 28px; height: 28px; border: 2px solid #d8e1ee; border-top-color: var(--blue); border-radius: 50%; animation: commercial-context-spin .95s linear infinite; }
    .commercial-context-loader__message { font-size: 13px; font-weight: 650; line-height: 1.4; }
    .calendar-context-loader { min-height: 240px; border: 1px dashed var(--border-strong); border-radius: var(--card-radius); background: rgba(255,255,255,.46); }
    .calendar-load-error { display: grid; min-height: 240px; place-content: center; justify-items: center; gap: 8px; padding: 28px; border: 1px dashed var(--border-strong); border-radius: var(--card-radius); background: rgba(255,255,255,.46); color: #53617e; text-align: center; }
    .calendar-load-error strong { color: var(--text); font-size: 15px; line-height: 1.35; }
    .calendar-load-error span { max-width: 44ch; font-size: 13px; line-height: 1.5; }
    .billing-context-loader { min-height: 380px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
    .billing-stack.commercial-billing-content-hidden > .billing-group { display: none; }
    .connection-item[data-state="pending"] .connection-state-line { color: #9a6410; }
    .connection-item[data-state="pending"] .connection-state-line::before { background: #e8a323; animation: commercial-connection-pulse 1.35s cubic-bezier(.77,0,.175,1) infinite; }
    .settings-panel.commercial-settings-content-hidden > .settings-section { display: none; }
    .settings-context-loader { min-height: 380px; border: 0; border-radius: 12px; background: var(--surface); }
    @keyframes commercial-context-spin { to { transform: rotate(360deg); } }
    @keyframes commercial-connection-pulse { 0%,100% { opacity: .48; } 50% { opacity: 1; } }
    @media (prefers-reduced-motion: reduce) {
      .commercial-context-loader__mark { animation-duration: 2.4s; }
      .connection-item[data-state="pending"] .connection-state-line::before { animation: none; }
    }
    .session-current { color: #287252; font-weight: 650; }
    .status.publishing { color: #1769ff; }
    .status.publishing::before, .week-status-dot.publishing { background: #1769ff; animation: commercial-publishing-pulse 1.7s ease-in-out infinite; }
    .week-card.is-publishing, .post-card.is-publishing { border-color: color-mix(in srgb, #1769ff 38%, var(--border)); }
    @media (pointer: coarse) { .media-upload-cancel { width: 44px; height: 44px; } }
    .threads-attachment-meta { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #8b96aa; font-weight: 400; }
    .stream-label > .threads-attachment-meta { margin-left: auto; }
    .threads-album-spoiler { display: inline-grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 1px solid #d9e1ed; border-radius: 7px; color: #64748f; background: #fff; cursor: pointer; transition: color .16s ease, border-color .16s ease, background-color .16s ease; }
    .threads-album-spoiler svg { width: 17px; height: 17px; fill: currentColor; }
    .threads-album-spoiler:hover { color: #1769ff; border-color: #a9c4fa; background: #f5f8ff; }
    .threads-album-spoiler[aria-pressed="true"] { color: #fff; border-color: #1769ff; background: #1769ff; }
    .threads-album-spoiler:focus-visible { outline: 2px solid #1769ff; outline-offset: 2px; }
    @media (pointer: coarse) { .threads-album-spoiler { width: 44px; height: 44px; } }
    @keyframes preview-media-spin { to { transform: rotate(360deg); } }
    @keyframes preview-media-sheen { 55%, 100% { transform: translateX(100%); } }
    @keyframes commercial-publishing-pulse { 0%,100% { opacity: .52; } 50% { opacity: 1; } }
