:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #303b37;
  background: #f7f5f0;
  font-synthesis: none;
  --paper: #fffefb;
  --ink: #303b37;
  --muted: #737a72;
  --line: #e3e5dc;
  --accent: #ad4b28;
  --accent-light: #f3e5d9;
  --green: #546e59;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
.button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d9ddd3;
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 550;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #f0f0e8;
  border-color: #b8c1b1;
}
button:active {
  transform: translateY(1px);
}
:focus-visible {
  outline: 3px solid #b65b34;
  outline-offset: 3px;
}
button.primary,
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffaf4;
  box-shadow: 0 3px 5px #6b321610;
}
button.primary:hover {
  background: #923b1c;
}
.text-button {
  background: none;
  border-color: transparent;
  color: var(--accent);
  padding: 8px;
  font-size: 13px;
  box-shadow: none;
}
.muted,
.helper {
  color: var(--muted);
}
.helper {
  font-size: 12px;
  line-height: 1.6;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -60px;
  z-index: 20;
  padding: 12px;
  background: #fff;
}
.skip:focus {
  top: 8px;
}
#app {
  min-height: 100dvh;
  display: flex;
}
.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: #eeeee5;
  border-right: 1px solid #dfe2d7;
  padding: 38px 22px 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: -0.7px;
  padding: 0 8px;
}
.brand strong {
  font-weight: 650;
}
.brand small {
  font-size: 8px;
  display: block;
  letter-spacing: 1.5px;
  margin-top: 13px;
  font-weight: 600;
  color: #767e71;
}
.brand-icon {
  width: 34px;
  height: 38px;
  border: 1px solid #afb99f;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #62735b;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 48px;
}
.nav-item {
  justify-content: flex-start;
  gap: 13px;
  width: 100%;
  background: none;
  border: 1px solid transparent;
  padding: 12px;
  font-size: 13px;
  min-height: 46px;
  color: #69715f;
  font-weight: 550;
}
.nav-icon {
  display: block;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}
.nav-item.active {
  background: #fffdf7;
  border-color: #dce1d4;
  color: #394c35;
  box-shadow: 0 2px 3px #28332405;
}
.nav-item small {
  margin-left: auto;
  font-size: 11px;
  background: #e8ebdf;
  border-radius: 5px;
  padding: 2px 6px;
}
.sidebar-note {
  margin-top: auto;
  padding: 40px 10px 30px;
}
.sidebar-note > span {
  font-family: Georgia, serif;
  font-size: 24px;
  font-style: italic;
  color: #7c866e;
  line-height: 1.25;
}
.sidebar-note p {
  font-size: 11px;
  line-height: 1.8;
  color: #8c9381;
}
.note-line {
  height: 1px;
  width: 50px;
  background: #b7bea8;
  margin-top: 24px;
}
.owner {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #d9dfce;
  padding-top: 20px;
  font-size: 12px;
}
.owner small {
  display: block;
  font-size: 10px;
  color: #7f8678;
  margin-top: 5px;
}
.avatar {
  border-radius: 50%;
  background: #dce2d1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #5a6a50;
}
.workspace {
  margin-left: 224px;
  width: calc(100% - 224px);
  min-width: 0;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 12px;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: #7e8779;
}
.save-group {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #6d7864;
}
.save-dot {
  width: 5px;
  height: 5px;
  background: #7e9c6d;
  border-radius: 50%;
}
.local-badge {
  margin-left: 12px;
  font-size: 10px;
  min-height: 32px;
  background: #efeee7;
  border: 0;
  padding: 6px 10px;
  color: #787c72;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 35px;
}
.eyebrow {
  font-size: 9px;
  color: #88917f;
  font-weight: 650;
  letter-spacing: 1.4px;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 42px;
  letter-spacing: -1.5px;
  margin: 12px 0 10px;
  color: #354331;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 13px;
}
.page-heading p {
  font-size: 13px;
  color: #7f857a;
  margin: 0;
  line-height: 1.6;
}
.new-button {
  font-size: 12px;
  padding: 12px 18px;
  white-space: nowrap;
}
main {
  padding: 38px 40px 20px;
  max-width: 1800px;
  margin: auto;
}
main:focus {
  outline: none;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.search {
  border: 1px solid #dfe3d8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fbfaf6;
  padding-left: 13px;
  min-width: 180px;
  width: 245px;
  color: #839078;
}
.search > span {
  font-size: 24px;
}
.search input {
  border: 0 !important;
  background: transparent !important;
  width: 100%;
  padding: 11px 6px !important;
  font-size: 12px;
  min-height: 42px;
}
.toolbar select {
  font-size: 11px;
  max-width: 200px;
  width: auto;
  color: #68735f;
}
.results {
  font-size: 11px;
  color: #8b9384;
  margin-left: auto;
}
.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 14px;
  overflow: visible;
  padding-bottom: 12px;
}
.column {
  min-width: 0;
  min-height: 340px;
  background: #f0f0e9;
  border: 1px solid #e7e9df;
  border-radius: 10px;
  padding: 12px 9px;
}
.column h2 {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 3px 15px;
  font-weight: 600;
  color: #687560;
}
.count {
  color: #8c9583;
  background: #e5e9dd;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1;
  display: inline-block;
  margin-left: auto;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a5b199;
}
.dot-1 {
  background: #c8ad73;
}
.dot-2 {
  background: #cb8c6b;
}
.dot-3 {
  background: #96a87b;
}
.dot-4 {
  background: #738f78;
}
.post-card {
  padding: 15px 13px 10px;
  border: 1px solid #dfe3d8;
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 3px 7px #37452d03;
  min-width: 0;
  margin-bottom: 10px;
}
.card-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 9px;
  line-height: 1.3;
  color: #7e8677;
}
.format {
  background: #edf0e7;
  padding: 4px 6px;
  border-radius: 4px;
  color: #748467;
  font-size: 9px;
}
.topic {
  font-size: 9px;
  overflow-wrap: anywhere;
}
.demo {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border: 1px solid #ddd5c6;
  padding: 3px 4px;
  border-radius: 3px;
  color: #897e66;
}
.card-title {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.2px;
  padding: 12px 0 5px;
  background: transparent;
  border: none;
  border-radius: 2px;
  text-align: left;
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  color: #3c4b35;
}
.card-title:hover {
  background: transparent;
  color: var(--accent);
}
.next {
  font-size: 11px;
  line-height: 1.6;
  margin: 10px 0 16px;
  color: #7b8472;
  overflow-wrap: anywhere;
}
.next > span {
  color: #9f866c;
}
.card-footer {
  border-top: 1px solid #eef0e8;
  padding-top: 9px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
}
.date {
  font-size: 9px;
  color: #929a88;
  line-height: 1.4;
}
.date.overdue {
  color: #a46545;
}
.mini-select {
  font-size: 10px !important;
  max-width: 115px;
  padding: 8px 2px !important;
  min-height: 44px;
  margin-left: auto;
  border: 0 !important;
  background: transparent !important;
  color: #707e62;
}
.column-empty {
  border: 1px dashed #d8dfcf;
  border-radius: 7px;
  padding: 22px 5px;
  text-align: center;
  color: #a0a893;
  font-size: 10px;
}
.page-footer {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12px;
  line-height: 1.8;
  color: #939b87;
  border-top: 1px solid #e4e7dc;
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.page-footer span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  letter-spacing: 0.2px;
  font-style: normal;
  color: #92998b;
}
.empty {
  max-width: 620px;
  margin: 35px auto;
  text-align: center;
  padding: 40px 24px 55px;
  background: #f0f1e8;
  border: 1px solid #e2e7d8;
  border-radius: 18px;
}
.empty-mark {
  font-size: 52px;
  color: #b69b6b;
}
.empty h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  color: #536147;
}
.empty p {
  color: #859079;
  font-size: 13px;
  line-height: 1.8;
  max-width: 350px;
  margin: 0 auto 24px;
}
.empty > .text-button {
  display: block;
  margin: 12px auto 0;
}
.capture {
  background: #f0ece1;
  border: 1px solid #e5ddce;
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.capture > div {
  flex: 1;
  min-width: 0;
}
.capture input {
  border: 0;
  background: transparent;
  padding: 12px 0 0;
  font-family: Georgia, serif;
  font-size: 25px;
  width: 100%;
  color: #586348;
  box-shadow: none;
}
.capture input::placeholder {
  color: #a1a591;
}
.capture button {
  font-size: 12px;
}
.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.idea-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.idea-card .card-meta {
  justify-content: space-between;
}
.idea-card .card-title {
  font-size: 24px;
  line-height: 1.25;
  min-height: 60px;
}
.idea-notes {
  font-size: 12px;
  line-height: 1.7;
  color: #8a907f;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #74836b;
}
.tags > span {
  background: #f0f2ea;
  padding: 5px 8px;
  border-radius: 4px;
}
.idea-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 12px;
}
.idea-bottom > span {
  font-size: 10px;
  color: #929987;
}
.week-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.week-toolbar h2 {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}
.button-group {
  display: flex;
  gap: 4px;
}
.button-group button {
  font-size: 12px;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 10px;
  overflow: visible;
  padding-bottom: 12px;
}
.day {
  background: #efefe7;
  border-radius: 10px;
  padding: 9px;
  min-height: 250px;
  border: 1px solid #e4e7dc;
  display: flex;
  flex-direction: column;
}
.day h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  color: #8a947c;
  margin: 7px 4px 15px;
}
.day h3 span {
  font-size: 22px;
  color: #647456;
  font-family: Georgia, serif;
}
.day.today {
  border-color: #c39778;
  background: #f3ebe0;
}
.day.today h3 span {
  color: var(--accent);
}
.day .post-card {
  padding: 11px 9px 5px;
}
.day .card-title {
  font-size: 16px;
}
.day .card-footer {
  gap: 2px;
}
.day .mini-select {
  max-width: 100%;
}
.day-empty {
  color: #a4ac98;
  font-size: 10px;
  text-align: center;
  margin: 35px 0;
}
.day-add {
  background: transparent;
  border: 1px dashed #d0d9c5;
  color: #929f83;
  font-size: 11px;
  margin-top: auto;
}
.unscheduled {
  margin-top: 26px;
}
.unscheduled h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}
.unscheduled .count {
  margin-left: 0;
}
.small-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.batch-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 30px;
  color: #79866b;
}
.batch-intro > span {
  font-size: 42px;
  color: #aeb798;
}
.batch-intro p {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.6;
}
.batch-intro strong {
  font:
    12px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
}
.batch-view {
  max-width: none;
}
.batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 20px;
}
.batch-section {
  padding: 15px;
  border: 1px solid #e2e7d9;
  border-radius: 10px;
  background: #f0f1e9;
}
.batch-section h2 {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}
.batch-number {
  font-size: 11px;
  font-weight: 400;
  color: #a1ab92;
}
.batch-section > .muted {
  font-size: 12px;
  min-height: 70px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 950px;
}
.settings-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
}
.settings-card h2 {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  color: #536047;
}
.settings-card p {
  font-size: 13px;
  line-height: 1.8;
  color: #7b8670;
}
.setting-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.settings-card button,
.settings-card .button {
  font-size: 12px;
}
.save-alert {
  margin: 14px 40px 0;
  padding: 16px;
  background: #ffeddf;
  border: 1px solid #e5ae86;
  border-radius: 10px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.save-alert div {
  flex: 1;
  min-width: 230px;
}
.save-alert p {
  margin: 6px 0;
}
.save-alert button {
  font-size: 11px;
}
[hidden] {
  display: none !important;
}
.error {
  color: #a84026 !important;
}
#offline {
  background: #efe1ba;
  color: #76603a;
  padding: 12px 40px;
  font-size: 12px;
}
dialog {
  border: 1px solid #d7dece;
  border-radius: 18px;
  padding: 0;
  max-width: 700px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 48px);
  background: #fdfcf8;
  color: var(--ink);
  box-shadow: 0 25px 100px #1c2b2533;
}
dialog::backdrop {
  background: #1b2a2580;
  backdrop-filter: blur(3px);
}
.editor-top {
  padding: 24px 30px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fdfcf8;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #eef0e7;
}
.editor-top h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 29px;
  margin: 7px 0 0;
  letter-spacing: -0.6px;
  color: #44533b;
}
.close {
  border: 0;
  background: #f0f2e9;
  font-size: 25px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: #77866a;
}
.editor-body {
  padding: 24px 30px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
  color: #6b795f;
  margin-bottom: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
input,
textarea,
select {
  border: 1px solid #dce2d3;
  border-radius: 8px;
  background: #fffefa;
  color: #46563c;
  padding: 12px;
  min-height: 44px;
  min-width: 0;
  width: 100%;
  font-weight: 400;
  line-height: 1.5;
}
textarea {
  resize: vertical;
  line-height: 1.75;
  font-size: 14px;
}
input::placeholder,
textarea::placeholder {
  color: #a0a792;
  opacity: 1;
}
select {
  cursor: pointer;
}
[name="title"] {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.4px;
}
details {
  border-top: 1px solid #e2e8d9;
  padding: 16px 0 0;
  margin-top: 18px;
}
summary {
  cursor: pointer;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: #536448;
  margin-bottom: 8px;
  padding: 10px 0;
}
summary > span {
  font-size: 10px;
  font-weight: 400;
  color: #9ca78f;
  margin-left: 8px;
}
.next-action-panel {
  padding: 18px 18px 0;
  border: 1px solid #e1ddcc;
  background: #f2eee2;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}
.next-action-panel .field {
  font-size: 11px;
}
.caption-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #8c987f;
  margin-top: -14px;
  margin-bottom: 15px;
}
.caption-meta .text-button {
  min-height: 44px;
}
.editor-footer {
  position: sticky;
  bottom: 0;
  background: #fdfcf8f5;
  backdrop-filter: blur(8px);
  padding: 16px 30px;
  border-top: 1px solid #e2e7d9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.editor-footer > span {
  font-size: 11px;
  color: #869479;
}
.editor-footer button {
  min-width: 90px;
}
.demo-note {
  background: #f4ead8;
  color: #9c8258;
  font-size: 11px;
  margin: 0;
  padding: 10px 30px;
}
.history-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #e1e6d8;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  font-size: 12px;
}
.history-row > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.history-row small {
  display: block;
  margin: 6px 0;
  color: #95a088;
  font-size: 10px;
}
.history-row p {
  font-size: 11px;
  color: #7c8b6e;
  white-space: pre-wrap;
}
.history-row button {
  font-size: 11px;
}
.shot-toggles label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
}
.shot-toggles input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}
.asset-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.asset-links a {
  padding: 12px 0;
  color: var(--accent);
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  background: #3d5035;
  color: #fffdf5;
  border-radius: 10px;
  box-shadow: 0 5px 20px #1e351e20;
  font-size: 13px;
  line-height: 1.5;
}
#toast:empty {
  display: none;
}
.setup-gate {
  max-width: 700px;
  padding: 50px 25px;
  line-height: 1.8;
}
@media (min-width: 1600px) {
  .post-card {
    padding: 18px;
  }
  .card-title {
    font-size: 21px;
  }
  .column {
    padding: 15px;
  }
  .column h2 {
    font-size: 13px;
  }
  .next {
    font-size: 12px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 190px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .workspace {
    margin-left: 190px;
    width: calc(100% - 190px);
  }
  main {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .board {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  }
  .workspace-label {
    font-size: 8px;
  }
  .week-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  }
}
@media (max-width: 760px),
  (max-width: 1100px) and (hover: none) and (pointer: coarse) {
  #app {
    display: block;
  }
  .sidebar {
    width: 100%;
    inset: auto 0 0 0;
    padding: 7px 7px max(7px, env(safe-area-inset-bottom));
    height: auto;
    border-right: 0;
    border-top: 1px solid #d9dfce;
    background: #f7f7eff5;
    backdrop-filter: blur(10px);
    z-index: 5;
  }
  .brand,
  .sidebar-note,
  .owner {
    display: none;
  }
  .sidebar nav {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
  }
  .nav-item {
    padding: 5px 1px;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
    border-radius: 8px;
  }
  .nav-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }
  .nav-item small {
    display: none;
  }
  .nav-item.active {
    background: #e8ecdf;
    border-color: transparent;
    box-shadow: none;
  }
  .workspace {
    margin: 0;
    width: 100%;
    padding-bottom: 85px;
  }
  .topbar {
    height: 57px;
    padding: 0 20px;
  }
  .workspace-label {
    font-size: 8px;
    letter-spacing: 1px;
    max-width: 75px;
    line-height: 1.6;
  }
  .save-group {
    font-size: 10px;
    gap: 5px;
  }
  .local-badge {
    margin-left: 4px;
    font-size: 9px;
    min-height: 36px;
    padding: 7px;
  }
  .save-dot {
    display: none;
  }
  main {
    padding: 28px 20px 18px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.1px;
  }
  h1 {
    font-size: 37px;
    margin-top: 10px;
    margin-bottom: 8px;
  }
  .page-heading p {
    font-size: 12px;
    max-width: 260px;
  }
  .new-button {
    font-size: 11px;
    padding: 11px 13px;
    margin-top: 8px;
  }
  .toolbar {
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 17px;
  }
  .search {
    flex: 1;
    width: 160px;
    min-width: 140px;
  }
  .toolbar select {
    max-width: 135px;
    min-height: 44px;
    padding: 10px;
    font-size: 11px;
  }
  .results {
    display: none;
  }
  .board {
    display: flex;
    flex-direction: column;
    overflow: visible;
    gap: 20px;
  }
  .column {
    min-height: 0;
    padding: 12px;
  }
  .column h2 {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .column-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .post-card {
    margin: 0;
    padding: 17px 16px 8px;
  }
  .card-title {
    font-size: 23px;
    padding-top: 12px;
  }
  .card-meta,
  .topic,
  .format {
    font-size: 10px;
  }
  .demo {
    font-size: 8px;
  }
  .next {
    font-size: 12px;
    margin: 7px 0 13px;
  }
  .card-footer {
    padding-top: 4px;
  }
  .date {
    font-size: 10px;
  }
  .mini-select {
    font-size: 12px !important;
    max-width: 130px;
  }
  .column-empty {
    padding: 15px;
    font-size: 11px;
  }
  .page-footer {
    display: block;
    font-size: 12px;
    margin-top: 26px;
  }
  .page-footer span {
    display: block;
    margin-top: 8px;
    font-size: 9px;
  }
  .capture {
    padding: 17px;
    display: block;
    margin-bottom: 22px;
  }
  .capture input {
    font-size: 23px;
    padding-bottom: 15px;
  }
  .capture button {
    width: 100%;
  }
  .idea-grid {
    grid-template-columns: 1fr;
  }
  .idea-card {
    padding: 20px;
  }
  .empty {
    margin: 15px 0;
    padding: 32px 18px;
  }
  .empty h2 {
    font-size: 26px;
  }
  .empty p {
    font-size: 12px;
  }
  .week-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .week-toolbar h2 {
    font-size: 22px;
    margin: 10px 0 6px;
  }
  .week-grid {
    display: flex;
    flex-direction: column;
    overflow: visible;
    gap: 14px;
  }
  .day {
    min-height: 130px;
    padding: 12px;
    gap: 10px;
  }
  .day h3 {
    margin: 0 2px 3px;
    justify-content: flex-start;
    gap: 10px;
  }
  .day h3 span {
    font-size: 24px;
  }
  .day .post-card {
    padding: 15px 13px 7px;
  }
  .day .card-title {
    font-size: 22px;
  }
  .day-empty {
    text-align: left;
    margin: 8px 2px;
    font-size: 11px;
  }
  .day-add {
    min-height: 44px;
  }
  .small-grid {
    grid-template-columns: 1fr;
  }
  .batch-intro p {
    font-size: 19px;
  }
  .batch-intro strong {
    font-size: 11px;
    line-height: 1.7;
    display: block;
    margin-top: 6px;
  }
  .batch-grid {
    grid-template-columns: 1fr;
  }
  .batch-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .batch-section h2 {
    margin: 0 0 8px;
  }
  .batch-section > .muted {
    min-height: 20px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-card {
    padding: 22px;
  }
  .save-alert {
    margin: 12px 16px 0;
  }
  .save-alert button {
    font-size: 11px;
  }
  #offline {
    padding: 12px 20px;
    font-size: 11px;
    line-height: 1.6;
  }
  dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding-top: env(safe-area-inset-top);
  }
  .editor-top {
    padding: 20px 20px 14px;
  }
  .editor-top h2 {
    font-size: 28px;
  }
  .editor-body {
    padding: 22px 20px;
  }
  .field {
    font-size: 12px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
  .field-row {
    gap: 12px;
  }
  .next-action-panel {
    display: block;
    padding: 15px 15px 1px;
  }
  .next-action-panel .field {
    font-size: 12px;
  }
  .editor-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .demo-note {
    padding: 10px 20px;
  }
  #toast {
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: max-content;
    max-width: calc(100% - 32px);
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Keep secondary information readable without changing the quiet palette. */
:root {
  --muted: #65705e;
}
.eyebrow {
  color: #6b785e;
}
.page-heading p {
  color: #6d7864;
}
.next,
.idea-notes {
  color: #69765e;
}
.topic {
  color: #68755f;
}
.date {
  color: #707c64;
}
.count {
  color: #657357;
}
.column-empty,
.day-empty {
  color: #78866a;
}
.format {
  color: #5f7350;
}
.helper {
  color: #66745c;
}
.editor-footer > span {
  color: #637655;
}
.field input::placeholder,
.field textarea::placeholder,
.search input::placeholder {
  color: #78866d;
}
.local-badge {
  min-height: 44px;
}
.page-footer,
.page-footer span {
  color: #748264;
}
.day-add {
  color: #657951;
}
.caption-meta {
  color: #687b58;
}
.public-demo-banner {
  padding: 13px 40px;
  background: #f0dfc3;
  border-bottom: 1px solid #dec4a0;
  color: #785333;
  font-size: 12px;
  line-height: 1.6;
}
.public-demo-banner strong {
  font-weight: 650;
}
@media (max-width: 760px),
  (max-width: 1100px) and (hover: none) and (pointer: coarse) {
  .public-demo-banner {
    padding: 12px 20px;
    font-size: 11px;
  }
}
@media (max-width: 760px),
  (max-width: 1100px) and (hover: none) and (pointer: coarse) {
  .save-group {
    min-width: 0;
    justify-content: flex-end;
  }
  .save-group [data-save-state] {
    max-width: 120px;
    line-height: 1.4;
    white-space: normal;
  }
  .topbar .workspace-label {
    flex-shrink: 0;
  }
  .local-badge {
    flex-shrink: 0;
  }
  .sidebar {
    overflow: hidden;
  }
  .nav-item {
    min-width: 0;
  }
}
/* The sidebar keeps account details at the bottom without decorative copy. */
.sidebar .owner {
  margin-top: auto;
}
@font-face {
  font-family: Montserrat;
  src: url("/releases/e85aba6988c2e033c6107c495ed4ad44966cf521/fonts/Montserrat-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family:
    Montserrat,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --ink: #22272b;
  color: #22272b;
}
h1,
h2,
h3,
.card-title,
.brand,
[name="title"],
.capture input,
.empty h2,
.editor-top h2,
.settings-card h2,
.week-toolbar h2,
.day h3 span,
.batch-intro p,
.page-footer {
  font-family:
    Montserrat,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
}
h1 {
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -1.3px;
  color: #202428;
}
h2,
h3,
.editor-top h2,
.settings-card h2,
.empty h2,
.week-toolbar h2 {
  font-weight: 750;
  color: #242a2e;
}
.card-title,
.idea-card .card-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.35px;
  line-height: 1.5;
  color: #252b2f;
}
.brand {
  font-weight: 750;
  color: #252b2f;
}
.brand strong {
  font-weight: 800;
}
[name="title"],
.capture input {
  font-size: 21px;
  font-weight: 600;
  color: #252b2f;
}
.capture input::placeholder {
  font-weight: 400;
  color: #657063;
}
.field {
  color: #414c42;
  font-weight: 550;
}
.field input,
.field textarea,
.field select {
  color: #272f2a;
  font-weight: 400;
}
.next,
.idea-notes,
.page-heading p {
  color: #56614f;
}
.page-footer {
  font-size: 11px;
}
.batch-intro p {
  font-size: 13px;
  font-weight: 400;
}
.day .card-title {
  font-size: 15px;
  font-weight: 700;
}
@media (max-width: 760px),
  (max-width: 1100px) and (hover: none) and (pointer: coarse) {
  h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .card-title,
  .idea-card .card-title,
  .day .card-title {
    font-size: 18px;
  }
  .editor-top h2 {
    font-size: 26px;
  }
  [name="title"] {
    font-size: 20px;
  }
  .nav-item {
    font-size: 9px;
  }
  .page-heading p {
    font-size: 12px;
  }
}

/* Funnel stage is separate from production status. */
.funnel-tag {
  font-size: 10px;
  font-weight: 700;
  color: #703c22;
  background: #f7e6da;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.toolbar {
  flex-wrap: wrap;
}
.toolbar #funnel-filter {
  max-width: 235px;
}
.card-meta {
  flex-wrap: wrap;
}

/* Let real content shrink and wrap; never clip a phone page to hide overflow. */
.idea-card,
.day,
.batch-section,
.settings-card,
.field,
.editor-top > div,
.editor-body,
.next-action-panel,
.tags > span,
.save-alert > div {
  min-width: 0;
}
.tags > span,
.shot-toggles label,
.save-alert,
.settings-card,
.idea-bottom,
.caption-meta,
.editor-footer {
  overflow-wrap: anywhere;
}
.tags > span {
  max-width: 100%;
}
.field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shot-toggles label {
  min-width: 0;
}
.shot-toggles input {
  flex-shrink: 0;
}
.editor-footer {
  z-index: 3;
}
.close {
  flex-shrink: 0;
}
@media (max-width: 760px),
  (max-width: 1100px) and (hover: none) and (pointer: coarse) {
  .idea-grid,
  .column-cards,
  .small-grid,
  .batch-grid,
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .board,
  .week-grid {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .board > *,
  .week-grid > *,
  .toolbar > *,
  .editor-footer > * {
    min-width: 0;
  }
  .sidebar {
    overflow: visible;
  }
  .sidebar nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .nav-item {
    padding-inline: 2px;
  }
  .idea-bottom,
  .caption-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  .save-alert > div {
    flex-basis: 100%;
  }
  .toolbar select,
  .toolbar #funnel-filter {
    max-width: 100%;
  }
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.next-steps-panel {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f2eee2;
  min-width: 0;
}
.step-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 14px;
}
.step-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding-block: 10px;
  border-top: 1px solid var(--line);
}
.step-check {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  gap: 8px;
}
.step-check input {
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin-top: 4px;
  accent-color: var(--accent);
}
.step-content {
  min-width: 0;
  display: grid;
  gap: 8px;
  font-size: 12px;
}
.step-content label {
  overflow-wrap: anywhere;
}
.step-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.step-controls button {
  font-size: 11px;
  min-height: 44px;
  padding: 8px 10px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (max-width: 760px),
  (max-width: 1100px) and (hover: none) and (pointer: coarse) {
  .next-steps-panel {
    padding: 12px;
  }
}
/* Progress checkboxes are independent controls, with wrapping labels and touch targets. */
.card-steps {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  min-width: 0;
}
.card-steps li {
  min-width: 0;
}
.card-step {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.6;
}
.card-step input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  accent-color: var(--accent);
}
.card-step span {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.card-step.is-complete span {
  text-decoration: line-through;
  color: #65705e;
}
.inline-undo {
  min-height: 44px;
  font-size: 12px;
}

.refresh-spinner {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 2px solid #d7d2c9;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: refresh-spin 0.8s linear infinite;
}
.refresh-spinner[hidden] {
  display: none;
}
@keyframes refresh-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .refresh-spinner {
    animation-duration: 2s;
  }
}

.title-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.title-line h1 {
  min-width: 0;
}

/* Keep normal vertical scrolling and pinch zoom; contain only horizontal rubber-banding. */
html,
body,
dialog {
  overscroll-behavior-x: none;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
:root {
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
#app,
main,
#view-content,
.board,
.week-grid,
.toolbar,
.week-toolbar,
.capture {
  min-width: 0;
  max-width: 100%;
}
.toolbar > *,
.week-toolbar > *,
.asset-links > * {
  min-width: 0;
  max-width: 100%;
}
.asset-links a {
  overflow-wrap: anywhere;
}
@media (max-width: 760px),
  (max-width: 1100px) and (hover: none) and (pointer: coarse) {
  main {
    padding-left: max(20px, var(--safe-left));
    padding-right: max(20px, var(--safe-right));
    padding-top: max(28px, var(--safe-top));
  }
  .workspace {
    padding-bottom: calc(85px + var(--safe-bottom));
  }
  .sidebar {
    padding-left: max(7px, var(--safe-left));
    padding-right: max(7px, var(--safe-right));
    padding-bottom: max(7px, var(--safe-bottom));
  }
  .editor-top,
  .editor-body,
  .editor-footer {
    padding-left: max(20px, var(--safe-left));
    padding-right: max(20px, var(--safe-right));
  }
  dialog {
    padding-top: var(--safe-top);
    overscroll-behavior-y: contain;
  }
  .editor-footer {
    padding-bottom: max(16px, var(--safe-bottom));
  }
  /* 16px avoids iPhone's automatic focus zoom; larger title fields stay larger. */
  input,
  textarea,
  select,
  .search input,
  .toolbar select,
  .mini-select {
    font-size: 16px !important;
  }
  [name="title"],
  .capture input {
    font-size: 20px !important;
  }
  .toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .toolbar .search {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .toolbar select,
  .toolbar #funnel-filter {
    width: 100%;
    max-width: 100%;
  }
  .toolbar > select:only-of-type {
    grid-column: 1 / -1;
  }
  .mini-select {
    width: auto;
    max-width: 100%;
  }
  .card-footer {
    flex-wrap: wrap;
  }
  .nav-item {
    overflow-wrap: anywhere;
  }
  input[type="date"] {
    min-inline-size: 0;
    max-inline-size: 100%;
  }
}

.reel-type {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  overflow-wrap: anywhere;
  min-width: 0;
}
#reel-type-field {
  min-width: 0;
}

/* Long post/idea titles wrap inside the editor instead of panning in a single line. */
#editor textarea[name="title"] {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
}

.reel-settings { margin-bottom: 24px; }
.reel-type-list { list-style: none; padding: 0; margin: 20px 0; }
.reel-type-list > li { padding: 16px 0; border-bottom: 1px solid var(--line, #ddd); min-width: 0; }
.reel-type-name { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.reel-type-name strong, .selected-reel-label, .settings-history li, .batch-undo span { overflow-wrap: anywhere; min-width: 0; }
.reel-type-form { max-width: 600px; min-width: 0; }
.reel-type-form textarea { width: 100%; min-width: 0; box-sizing: border-box; font-size: 16px; overflow-wrap: anywhere; }
.reel-type-form label { display: block; margin-bottom: 8px; }
.field-error { color: #a12b19; font-size: 14px; }
.field-error:empty { display: none; }
.selected-reel-label { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.settings-history { margin-top: 24px; }
.settings-history ol { padding-left: 20px; }
.settings-history li { margin: 8px 0; }
.batch-undo { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px; margin-bottom: 16px; border: 1px solid var(--line, #ddd); border-radius: 12px; }

.template-settings { margin-bottom: 24px; }
.template-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 16px 0; }
.template-card { border: 1px solid var(--line, #ddd); border-radius: 12px; padding: 16px; min-width: 0; }
.template-card h3, .template-card p { overflow-wrap: anywhere; }
#template-form { border-top: 1px solid var(--line, #ddd); padding-top: 20px; margin-top: 20px; min-width: 0; }
#template-form textarea, #template-form select, .template-picker select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
#template-form .step-row { display: block; }
#template-form .step-content { min-width: 0; }
.template-picker { margin: 12px 0; }
.template-picker button { margin-top: 10px; }

.calendar-handle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 4px 0; font-size: 12px; touch-action: none; cursor: grab; user-select: none; }
.calendar-handle:active { cursor: grabbing; }
.calendar-drop-target { outline: 3px solid #E58200; outline-offset: -3px; background: #fff4df; }
.calendar-drag-ghost { position: fixed; z-index: 100; pointer-events: none; padding: 10px; width: 220px; max-width: calc(100vw - 16px); box-sizing: border-box; border: 2px solid #E58200; border-radius: 10px; background: #fff9ee; color: #252725; overflow-wrap: anywhere; box-shadow: 0 4px 18px #0002; }
.calendar-undo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--line, #ddd); border-radius: 12px; }
.calendar-undo span, .move-post-title { overflow-wrap: anywhere; min-width: 0; }
#calendar-move { max-width: 520px; }
#calendar-move input { font-size: 16px; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width:760px), (max-width:1100px) and (hover:none) and (pointer:coarse) { #calendar-move { max-width:100%; } }

/* Inbox and lineage use wrapping content; no horizontal carousel. */
.source-links {display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:12px 0;min-width:0;}
.source-links > * {max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left;}
.lineage-badge {display:block;font-size:12px;color:#62594d;margin:8px 0;}
.archive-filter {display:flex;align-items:center;gap:10px;min-height:44px;margin:12px 0;}
#inbox-capture textarea {width:100%;min-width:0;max-width:100%;resize:vertical;}
#inbox-capture > div {min-width:0;flex:1;}
#repurpose {width:560px;max-width:calc(100% - 24px);}
@media (max-width:760px), (max-width:1100px) and (hover:none) and (pointer:coarse) {
  #inbox-capture {align-items:stretch;flex-direction:column;}
  #repurpose {max-width:100%;}
}

#repurpose p {overflow-wrap:anywhere;min-width:0;}
.archive-filter input[type="checkbox"] {flex:0 0 24px;width:24px;height:24px;margin:0;}
.idea-card > a {display:inline-block;max-width:100%;color:var(--ink);overflow-wrap:anywhere;margin-block:8px;}

.week-review-actions {display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;}
#week-balance {margin:12px 0;padding:12px 16px;background:var(--surface,#fff);border:1px solid #dedbd1;border-radius:12px;}
#balance-mode {width:auto;max-width:100%;margin-top:8px;}
.balance-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:18px;}
.balance-grid section,.balance-grid dl,.balance-grid dt {min-width:0;overflow-wrap:anywhere;}
.balance-grid h3 {font-size:14px;margin:12px 0;}
.balance-grid dl > div {display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:8px 0;}
.balance-grid dd {margin:0;font-weight:700;flex-shrink:0;}
.results-toolbar,.result-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.results-toolbar > *, .result-fields > * {min-width:0;}
.results-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr));gap:16px;}
.result-card {min-width:0;max-width:100%;padding:20px;background:#fff;border:1px solid #dedbd1;border-radius:14px;overflow-wrap:anywhere;}
.result-metrics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0;}
.result-metrics dt {font-size:12px;color:#5e6259;}
.result-metrics dd {font-size:20px;font-weight:700;margin:4px 0 0;overflow-wrap:anywhere;}
.result-notes {white-space:pre-wrap;overflow-wrap:anywhere;}
@media (max-width:430px) {.results-toolbar {grid-template-columns:minmax(0,1fr);} .result-metrics dd {font-size:18px;}}
#week-balance > label {display:block;margin-top:8px;}
#balance-mode,.results-toolbar select {width:100%;min-height:44px;padding:10px 12px;border:1px solid #d4d8c8;border-radius:10px;background:#fff;font:inherit;}

/* Rounded editor shell contains the inner scrollbar; header and actions stay reachable. */
#editor { overflow: hidden; }
#editor[open] { display: flex; flex-direction: column; }
#editor > .editor-top { flex: none; }
#editor > #edit-form { min-height: 0; overflow-y: auto; overscroll-behavior-x: none; }
/* Give editing the available desktop space; phones retain the full-screen layout. */
@media (min-width: 761px) {
  #editor {
    width: calc(100% - 32px);
    max-width: none;
    height: calc(100dvh - 32px);
    max-height: calc(100dvh - 32px);
  }
  #editor > #edit-form { flex: 1; }
}

/* Use the wider post editor for planning and writing side by side. */
.editor-layout,
.editor-plan,
.editor-writing { min-width: 0; }
.post-editor { max-width: 1600px; width: 100%; margin-inline: auto; }
.post-editor .writing-panel { margin-top: 0; }
.post-editor .writing-panel > summary { font-size: 16px; }
.post-editor textarea[name="script"] { min-height: 280px; }
.post-editor textarea[name="caption"] { min-height: 330px; }
.post-editor .next-steps-panel { margin-bottom: 0; }
.post-editor .next-steps-panel h3 { margin: 0 0 8px; }
.post-editor .next-steps-panel > .helper { margin: 0; }
.post-editor .step-list { gap: 8px; margin: 12px 0; }
.post-editor .step-row { padding-block: 10px 2px; gap: 8px; }
.post-editor .step-content { gap: 6px; }
.post-editor .step-content textarea { padding: 8px 10px; line-height: 1.5; min-height: 62px; }
.post-editor .step-options { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.post-editor .step-options select { padding: 8px; font-size: 12px; }
.post-editor .step-controls { gap: 4px; flex-wrap: nowrap; }
.post-editor .step-controls button { width: 44px; min-width: 44px; padding: 4px; font-size: 18px; }
@media (min-width: 1000px) {
  .editor-layout { display: grid; grid-template-columns: minmax(350px, 0.85fr) minmax(0, 1.35fr); gap: 36px; align-items: start; }
  .editor-writing { border-left: 1px solid var(--line); padding-left: 36px; }
  .post-editor .writing-panel { padding-top: 0; border-top: 0; }
  .post-editor .writing-panel > summary { padding-top: 0; }
  .post-editor .field { margin-bottom: 16px; }
}
@media (max-width: 999px) {
  .editor-writing { margin-top: 28px; }
}
@media (max-width: 380px) {
  .post-editor .step-options { grid-template-columns: minmax(0, 1fr); }
  .post-editor .step-controls { justify-content: flex-end; }
}

/* Compact desktop navigation; mobile keeps its existing bottom navigation. */
.nav-item .nav-label { text-align: left; }
.nav-toggle {
  margin-top: 24px;
  width: 100%;
  min-height: 44px;
  gap: 10px;
  justify-content: flex-start;
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-size: 12px;
}
.nav-toggle > span:first-child { font-size: 24px; line-height: 1; }
.sidebar nav { margin-top: 16px; }
#app.nav-collapsed .sidebar { width: 76px; padding-inline: 12px; }
#app.nav-collapsed .workspace { margin-left: 76px; width: calc(100% - 76px); }
#app.nav-collapsed .brand { justify-content: center; }
#app.nav-collapsed .brand > span:last-child,
#app.nav-collapsed .nav-label,
#app.nav-collapsed .nav-item small,
#app.nav-collapsed .nav-toggle-label,
#app.nav-collapsed .owner > div { display: none; }
#app.nav-collapsed .nav-item,
#app.nav-collapsed .nav-toggle { justify-content: center; padding-inline: 0; }
#app.nav-collapsed .owner { justify-content: center; padding-inline: 0; }
@media (max-width: 760px),
  (max-width: 1100px) and (hover: none) and (pointer: coarse) {
  .nav-toggle { display: none; }
  .sidebar nav {
    margin-top: 0;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  .nav-item {
    min-width: 0;
    min-height: 56px;
    font-size: 10px;
    line-height: 1.2;
    overflow-wrap: normal;
  }
  .nav-item .nav-label {
    width: 100%;
    text-align: center;
  }
  #app.nav-collapsed .sidebar { width: 100%; padding-inline: max(7px, var(--safe-left)) max(7px, var(--safe-right)); }
  #app.nav-collapsed .workspace { margin-left: 0; width: 100%; }
  #app.nav-collapsed .brand,
  #app.nav-collapsed .nav-toggle { display: none; }
  #app.nav-collapsed .nav-label { display: inline; }
}

/* Keep the weekly calendar above the fold; secondary controls open on demand. */
.week-view {padding-top:24px;}
.week-view .page-heading {margin-bottom:14px;}
.week-view .page-heading h1 {margin:0;}
.week-view .compact-week-toolbar {justify-content:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:8px;}
.week-view .compact-week-toolbar h2 {margin:0;flex:1;}
.week-view .compact-week-toolbar > button {font-size:12px;min-height:40px;padding:8px 12px;}
#week-tools {margin:0 0 12px;}
#week-tools > summary {display:list-item;width:fit-content;padding:8px 2px;color:var(--text);font-size:12px;cursor:pointer;}
#week-tools .week-tools-content {padding:12px 0;border-top:1px solid var(--line);}
#week-tools .toolbar {margin-bottom:10px;}
#week-tools .week-start-setting {display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px;}
#week-tools .week-start-setting select {width:auto;min-height:40px;padding:8px 12px;}
.week-view #week-balance {padding:10px 14px;margin:4px 0 16px;}
@media(max-width:600px){.week-view .compact-week-toolbar h2 {order:-1;flex-basis:100%;font-size:18px;} .week-view .compact-week-toolbar > button{margin-left:auto;} .week-view {padding-top:18px;}}
