/* Product presentation uses the existing actions and authenticated media. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.product-mode { font-size: 14px; }
body.product-mode [hidden] { display: none !important; }
body.product-mode .wallpaper-mini img { width: 32px; height: 56px; object-fit: cover; border-radius: 5px; }
body.product-mode .story-cadence > summary { margin-bottom: 12px; }
body.product-mode .cadence-days { display: flex; flex-wrap: wrap; gap: 14px; }
body.product-mode .cadence-days, body.product-mode .cadence-month, body.product-mode .cadence-interval { display: none; }
body.product-mode .story-cadence:has(select option[value="custom"]:checked) .cadence-days { display: flex; }
body.product-mode .story-cadence:has(select option[value="monthly"]:checked) .cadence-month { display: grid; }
body.product-mode .story-cadence:has(select option[value="interval"]:checked) .cadence-interval { display: grid; }
[data-theme="light"] body.product-mode .chat-jump { color: white; }
body.product-mode .shell { grid-template-columns: 204px minmax(0,1fr); }
body.product-mode .sidebar { padding: 24px 16px; gap: 23px; }
body.product-mode main { width: 100%; max-width: 1360px; margin: 0 auto; padding: 32px 36px 80px; }
body.product-mode h1 { font-size: 28px; letter-spacing: -.7px; font-weight: 600; }
body.product-mode h2 { font-size: 20px; font-weight: 600; }
body.product-mode .page-top { align-items: center; margin-bottom: 24px; }
body.product-mode .page-top .eyebrow { display: none; }
body.product-mode .page-top p:empty { display: none; }
body.product-mode button { min-height: 38px; border-radius: 8px; padding: 8px 12px; }
body.product-mode .actions button { font-size: 13px; }
body.product-mode input:not([type="checkbox"]):not([type="radio"]), body.product-mode select { min-height: 40px; }
body.product-mode input[type="checkbox"]:not(.switch-label input), body.product-mode input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  margin: 0;
  flex: none;
  vertical-align: middle;
}
body.product-mode .switch-label input { padding: 0; margin: 0; }
body.product-mode .week-preparation header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.product-mode .week-preparation .notice-close { width: 38px; padding: 0; border: 0; background: transparent; font-size: 20px; flex: none; }
body.product-mode select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23899aaa' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-position: right 13px center; background-repeat: no-repeat; }
body.product-mode button:focus-visible, body.product-mode summary:focus-visible, body.product-mode select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.product-mode .project-picker { display: grid; grid-template-columns: minmax(0,1fr) 38px; align-items: center; gap: 6px; }
body.product-mode #project-dropdown { min-width: 0; }
body.product-mode #project-label { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 40px; padding: 10px 13px; }
body.product-mode #project-label > span { flex-shrink: 0; margin-right: 1px; }
body.product-mode #project-label .project-name { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.product-mode .project-picker > button { height: 40px; min-height: 40px; width: 38px; padding: 0; font-size: 23px; font-weight: 500; color: var(--ink); }
body.product-mode .nav-item { font-size: 14px; padding: 12px 10px; }
body.product-mode .sidebar-bottom .pilot-tag, body.product-mode .sidebar-bottom > p { display: none; }
body.product-mode .product-status { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
body.product-mode .workspace-name { font-size: 12px; color: var(--muted); }
body.product-mode .balance-compact { display: grid; gap: 6px; text-align: left; width: 100%; padding: 12px; background: var(--soft); }
body.product-mode .balance-compact > span { font-size: 11px; color: var(--muted); }
body.product-mode .balance-compact strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.product-mode .balance-compact small { font-size: 11px; color: var(--muted); font-weight: 400; }
body.product-mode .chat-panel { display: none; }
body.product-mode.director-open .shell { grid-template-columns: 204px minmax(0,1fr) 360px; }
body.product-mode.director-open .chat-panel { display: flex; height: 100dvh; position: sticky; top: 0; }
body.product-mode .chat-head { position: relative; padding: 20px; }
body.product-mode .chat-head h3 { margin-bottom: 0; }
body.product-mode .chat-role-note, body.product-mode .chat-tabs { display: none; }
body.product-mode .chat-close { position: absolute; right: 12px; top: 12px; border: 0; background: transparent; font-size: 22px; }
body.product-mode .chat-jump { display: block; position: fixed; right: 24px; bottom: 20px; z-index: 8; background: var(--accent); color: var(--on-accent, #102820); box-shadow: 0 4px 20px #0002; }
body.product-mode.director-open .chat-jump { display: none; }
body.product-mode:has(#director-toggle) .chat-jump { display: none; }
body.product-mode .channel-select { width: 230px; max-width: 100%; margin: 0 0 24px; font-size: 12px; color: var(--muted); }
body.product-mode .calendar-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
body.product-mode .week-navigation { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
body.product-mode .week-navigation strong { font-weight: 500; font-size: 14px; }
body.product-mode .date-jump { width: 156px; }
body.product-mode .date-control, body.product-mode .date-control input { height: 40px; }
body.product-mode .date-control { width: 100%; }
body.product-mode .date-trigger { height: 38px; min-height: 38px; top: 1px; right: 1px; }
body.product-mode .week-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; margin-bottom: 30px; }
body.product-mode .week-day { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-height: 98px; padding: 12px; gap: 6px; text-align: left; }
body.product-mode .week-day > span { font-size: 12px; color: var(--muted); text-transform: capitalize; }
body.product-mode .week-day > strong { font-size: 22px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
body.product-mode .week-day > small { font-size: 11px; color: var(--muted); min-height: 16px; }
body.product-mode .week-day.selected { background: var(--tint); border-color: var(--accent); }
body.product-mode .day-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
body.product-mode .day-heading h2 { margin-bottom: 6px; }
body.product-mode .day-heading h2::first-letter { text-transform: uppercase; }
body.product-mode .day-heading p { margin: 0; font-size: 13px; }
body.product-mode .content-list { list-style: none; padding: 0; }
body.product-mode .content-list > li { padding: 0 0 16px; margin-bottom: 16px; border: 0; }
body.product-mode .content-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
body.product-mode .content-summary { display: flex; align-items: center; gap: 18px; padding: 18px 20px; cursor: pointer; list-style: none; }
body.product-mode .content-summary::-webkit-details-marker { display: none; }
body.product-mode .content-summary time { flex: 0 0 45px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; align-self: flex-start; line-height: 22px; }
body.product-mode .content-label { display: grid; gap: 5px; flex: 1; min-width: 0; }
body.product-mode .content-label strong { font-size: 15px; font-weight: 600; line-height: 22px; }
body.product-mode .content-label > span { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.product-mode .content-meta { display: flex; align-items: center; gap: 12px; }
body.product-mode .content-status { font-size: 12px; color: var(--muted); max-width: 170px; }
body.product-mode .content-summary { flex-wrap: wrap; }
body.product-mode .content-label { flex-basis: 180px; }
body.product-mode .expand-icon { font-size: 18px; color: var(--muted); transition: transform .15s; }
body.product-mode .content-card[open] .expand-icon { transform: rotate(180deg); }
body.product-mode .content-preview { padding: 0 20px 20px 83px; }
body.product-mode .content-preview .post-card { border: 0; border-radius: 0; background: transparent; max-width: 650px; }
body.product-mode .content-preview .post-top { padding: 8px 0; }
body.product-mode .content-preview .post-content { padding: 12px 0 0; }
body.product-mode .content-preview .post-title { display: none; }
body.product-mode .content-preview .post-media { background: transparent; padding: 0; }
body.product-mode .content-preview .post-media img, body.product-mode .content-preview .post-media video { display: block; width: auto; max-width: 100%; max-height: 380px; border-radius: 10px; object-fit: contain; }
body.product-mode .content-actions { display: flex; gap: 6px; padding: 8px 0 0 83px; }
body.product-mode .content-actions button { font-size: 12px; min-height: 32px; background: transparent; }
body.product-mode .day-release { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
body.product-mode .panel { padding: 20px; border-radius: 12px; margin-bottom: 18px; }
body.product-mode details.panel > summary { cursor: pointer; font-size: 15px; font-weight: 600; }
body.product-mode details.panel[open] > summary { margin-bottom: 20px; }
body.product-mode .product-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 24px; }
body.product-mode .product-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); }
body.product-mode .product-tabs button[aria-selected=true] { border-bottom-color: var(--accent); color: var(--ink); font-weight: 600; }
body.product-mode .library-grid, body.product-mode .asset-grid { grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 14px; }
body.product-mode .material-card .post-media { height: 150px; overflow: hidden; }
body.product-mode .material-card .post-media img, body.product-mode .material-card .post-media video { width: 100%; height: 150px; object-fit: cover; }
body.product-mode .material-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
body.product-mode .material-card .material-info { padding: 12px; }
body.product-mode .material-card .material-info > p:not(.small) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }
body.product-mode .material-card .actions button { font-size: 11px; padding: 6px 8px; }
body.product-mode .dropzone { padding: 18px; text-align: center; background: var(--soft); border-color: var(--line); }
body.product-mode .dropzone input { font-size: 12px; }
body.product-mode .tag-choices { display: flex; flex-wrap: wrap; gap: 8px; max-height: none; overflow: visible; }
body.product-mode label.tag-choice { display: inline-flex; padding: 8px 10px; border-radius: 7px; border: 1px solid var(--line); width: auto; }
body.product-mode label.tag-choice small { display: none; }
body.product-mode label.tag-choice:has(input:checked) { background: var(--tint); border-color: var(--accent); }
body.product-mode .tag-settings-list .tag-choice { display: flex; justify-content: space-between; width: 100%; }
body.product-mode .chat-story-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
body.product-mode .chat-story-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 12px; margin-bottom: 20px; }
body.product-mode .chat-story-select { width: 100%; }
body.product-mode .chat-story-common-look { display: none; }
body.product-mode .wallpaper-mini { width: 38px; height: 67px; border-radius: 6px; object-fit: cover; background: linear-gradient(130deg,#d9e7c9,#d0e4b6); border: 1px solid var(--line); padding: 0; }
body.product-mode .telegram-wallpaper { background-image: url('/telegram-wallpaper.svg'); background-size: cover; }
body.product-mode .wallpaper-preview { width: min(100%,260px); aspect-ratio: 9/16; object-fit: cover; border-radius: 10px; margin: 0 auto 20px; display: block; }
body.product-mode .review-rule { padding: 18px 0; border-bottom: 1px solid var(--line); }
body.product-mode .review-rule:last-child { border: 0; }
body.product-mode .review-rule h3 { margin-bottom: 16px; }
body.product-mode .cost-confirmation { max-width: 470px; }
body.product-mode .cost-lines { display: grid; gap: 10px; margin: 20px 0; }
body.product-mode .cost-lines > div { display: flex; justify-content: space-between; gap: 20px; }
body.product-mode .cost-total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; }
body.product-mode .admin-connect { display: flex; gap: 12px; flex-wrap: wrap; }
body.product-mode .wallet-address { overflow-wrap: anywhere; white-space: normal; font-size: 15px; padding: 16px; background: var(--soft); border-radius: 8px; }
body.product-mode .subscription-row { gap: 20px; padding: 18px 0; }
body.product-mode .subscription-row .actions { justify-content: flex-end; }
body.product-mode .product-metrics strong { font-size: 24px; }
body.product-mode .knowledge-summary { max-width: 78ch; }
body.product-mode .memory-row { border-bottom: 1px solid var(--line); padding: 16px 0; }
body.product-mode .memory-row:last-child { border: 0; }
body.product-mode .memory-row p { margin-bottom: 8px; }
body.product-mode .story-series-panel { border: 0; padding: 0; }
body.product-mode .story-photo-grid { grid-template-columns: repeat(auto-fill,minmax(100px,1fr)); }
body.product-mode .story-series-panel textarea[name=chaptersText] { min-height: 240px; }
body.product-mode .composer-format { min-height: 58px; }
@media(max-width:1200px) {
  body.product-mode.director-open .shell { grid-template-columns: 180px minmax(0,1fr); }
  body.product-mode.director-open .chat-panel { position: fixed; right: 0; top: 0; width: min(420px,100%); z-index: 10; box-shadow: -10px 0 40px #0004; }
  body.product-mode main { padding: 28px 24px 80px; }
}
@media(max-width:720px) {
  body.product-mode .shell, body.product-mode.director-open .shell { display: block; }
  body.product-mode .sidebar { position: static; height: auto; padding: 16px; display: grid; grid-template-columns: minmax(0,1fr) 144px; gap: 16px; }
  body.product-mode .sidebar > .eyebrow, body.product-mode .sidebar-bottom { display: none; }
  body.product-mode .project-picker { margin: 0; }
  body.product-mode .sidebar nav { grid-column: 1/-1; display: flex; flex-direction: row; gap: 4px; overflow-x: auto; max-width: 100%; }
  body.product-mode .nav-item { flex-shrink: 0; font-size: 12px; padding: 8px; }
  body.product-mode main { padding: 24px 16px 80px; }
  body.product-mode .page-top { margin-bottom: 20px; }
  body.product-mode h1 { font-size: 25px; }
  body.product-mode .week-strip { gap: 4px; }
  body.product-mode .week-day { padding: 8px 5px; align-items: center; min-height: 80px; }
  body.product-mode .week-day > strong { font-size: 18px; }
  body.product-mode .week-day small { font-size: 9px; }
  body.product-mode .content-summary { gap: 10px; padding: 14px; align-items: flex-start; }
  body.product-mode .content-summary time { flex-basis: 35px; font-size: 12px; }
  body.product-mode .content-meta .badge { display: none; }
  body.product-mode .content-preview { padding: 0 14px 14px; }
  body.product-mode .content-actions { padding-left: 0; }
  body.product-mode .content-label strong { font-size: 14px; }
  body.product-mode .content-label > span { font-size: 12px; }
  body.product-mode .chat-story-fields, body.product-mode .form-grid { grid-template-columns: 1fr; }
  body.product-mode .library-grid, body.product-mode .asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.product-mode .panel { padding: 16px; }
  body.product-mode .calendar-controls .spacer { display: none; }
  body.product-mode .subscription-row { display: block; }
  body.product-mode .subscription-row .actions { justify-content: flex-start; }
}
@media(prefers-reduced-motion:reduce) { body.product-mode * { transition: none !important; scroll-behavior: auto !important; } }

/* Rubrics use compact cards and separate settings/content dialogs. */
body.product-mode .story-list-top { margin: 8px 0 24px; align-items: center; }
body.product-mode .story-rubric h2 { margin: 0; }
body.product-mode .story-rubric > p { margin: 14px 0; }
body.product-mode .story-editor { border: 0; padding: 0; background: transparent; }
body.product-mode .story-editor > .actions,
body.product-mode .story-editor > p,
body.product-mode .story-editor > .notice { display: none; }
body.product-mode .story-editor[data-editor-mode="settings"] .story-content-field { display: none; }
body.product-mode .story-editor[data-editor-mode="content"] form > :not(.story-content-field):not(.actions) { display: none; }
body.product-mode .story-editor .check input { appearance: auto; width: 18px; height: 18px; min-width: 18px; accent-color: var(--accent); }
body.product-mode .story-editor .check input::before { content: none; }
body.product-mode .story-rubric > .actions .spacer { flex: 1; }

[data-rubric-kind][hidden] { display: none !important; }
