:root {
  --ink: #282723;
  --ink-soft: #77746f;
  --paper: #FAF9F6;
  --panel: #fff;
  --line: #e9e6df;
  --accent: #EF3F43;
  --accent-pale: #fff0f0;
  --accent-ink: #c52f33;
  --lavender: #eae5ff;
  --mint: #e0f2e7;
  --shadow: 0 14px 40px rgba(37, 32, 27, .045);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(239,63,67,.35); outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; display: flex; flex-direction: column; width: 248px; padding: 27px 16px 15px; border-right: 1px solid #e7e4de; background: #fbfaf7; }
.brand-lockup { display: flex; align-items: center; gap: 10px; padding: 0 10px; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; width: 142px; height: 42px; }
.brand-words { display: flex; flex-direction: column; gap: 2px; }
.brand-words strong { font: 800 13px "Manrope", sans-serif; letter-spacing: .075em; }
.brand-words small { color: #97928a; font-size: 8px; font-weight: 700; letter-spacing: .19em; }
.workspace-switcher { display: flex; align-items: center; gap: 10px; margin: 34px 2px 31px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.workspace-avatar, .queue-brand-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 33px; height: 33px; border-radius: 10px; background: var(--accent-pale); color: var(--accent-ink); font: 700 13px "Manrope",sans-serif; }
.workspace-switcher > span:nth-child(2), .profile-button > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.workspace-switcher small { color: #aaa59e; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.workspace-switcher strong { font-size: 11px; }
.chevron { color: #a6a199; }
.nav-label, .section-kicker, .eyebrow { color: #a29d95; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.nav-label { padding: 0 12px 10px; }
.main-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 9px; color: #77736d; font-size: 12px; font-weight: 600; text-decoration: none; }
.nav-item:hover { background: #f2f0eb; color: var(--ink); }
.nav-item.active { background: #efede8; color: var(--ink); font-weight: 700; }
.nav-icon { width: 17px; color: #99948d; font-size: 17px; text-align: center; }
.nav-count { display: grid; min-width: 19px; height: 19px; margin-left: auto; place-items: center; border-radius: 6px; background: #eeece7; color: #726e68; font-size: 10px; }
.accent-count { background: var(--accent-pale); color: var(--accent-ink); }
.disabled-nav { opacity: .54; cursor: default; }
.disabled-nav:hover { background: transparent; }
.soon { margin-left: auto; color: #aaa49c; font-size: 8px; letter-spacing: .1em; }
.sidebar-bottom { margin-top: auto; }
.setup-card { position: relative; margin: 12px 2px 18px; padding: 16px 14px 14px; overflow: hidden; border: 1px solid #f3d9d9; border-radius: 11px; background: linear-gradient(145deg,#fff7f7,#fffdfa); }
.setup-icon { position: absolute; top: 13px; right: 14px; color: var(--accent); font-size: 18px; }
.setup-card > strong { display: block; font: 700 12px "Manrope", sans-serif; }
.setup-card p { max-width: 150px; margin: 7px 0 13px; color: #89847c; font-size: 10px; line-height: 1.5; }
.setup-progress { height: 4px; margin-bottom: 8px; overflow: hidden; border-radius: 5px; background: #ece8e2; }
.setup-progress span { display: block; width: 15%; height: 100%; border-radius: inherit; background: var(--accent); }
.setup-card > small { color: #a9a197; font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.profile-button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 8px 2px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.profile-avatar, .top-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e9e6df; color: var(--ink); font-size: 11px; font-weight: 700; }
.profile-button strong { font-size: 11px; }
.profile-button small { color: #9a958d; font-size: 9px; }
.main-area { min-height: 100vh; margin-left: 248px; }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 43px; border-bottom: 1px solid #e9e6df; background: rgba(250,249,246,.91); backdrop-filter: blur(14px); }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: #a09a92; font-size: 10px; }
.breadcrumbs b { color: #cec9c0; font-weight: 400; }
.breadcrumbs strong { color: #514e48; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.local-badge { display: flex; align-items: center; gap: 6px; color: #8a857d; font-size: 9px; }
.local-badge i, .footer-green-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #71aa84; }
.icon-button { position: relative; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #7b766e; font-size: 16px; }
.notification-dot { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border: 1px solid #fbfaf7; border-radius: 50%; background: var(--accent); }
.top-avatar { width: 27px; height: 27px; font-size: 9px; }
.page-content { width: min(1420px, 100%); margin: 0 auto; padding: 38px 43px 22px; }
.route-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.route-heading h1 { margin-bottom: 5px; }
.route-post-list { display: grid; gap: 10px; }
.route-post-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 18px; border: 1px solid #e9e6df; border-radius: 11px; background: var(--panel); box-shadow: var(--shadow); }
.route-post-main { min-width: 0; }
.route-post-title { max-width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: 700 13px "Manrope",sans-serif; text-align: left; }
.route-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 9px; }
.route-post-meta > span:last-child { color: #8f8981; font-size: 9px; }
.route-post-main p { margin: 9px 0 0; color: #858078; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.route-open { flex: 0 0 auto; }
.route-empty { display: flex; min-height: 280px; flex-direction: column; align-items: center; justify-content: center; padding: 28px; border: 1px dashed #e3dfd7; border-radius: 11px; background: rgba(255,255,255,.45); text-align: center; }
.route-empty .empty-icon { width: 42px; height: 42px; font-size: 20px; }
.route-empty strong { font: 700 14px "Manrope",sans-serif; }
.route-empty p { max-width: 340px; margin: 7px 0 16px; color: #918c84; font-size: 10px; line-height: 1.6; }
.route-empty .button span:first-child { color: var(--accent); }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 13px; padding: 14px 16px; border: 1px solid #e9e6df; border-radius: 10px; background: var(--panel); }
.calendar-toolbar > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.calendar-toolbar strong { font: 700 14px "Manrope",sans-serif; text-transform: capitalize; }
.calendar-toolbar span { color: #918c84; font-size: 9px; }
.calendar-controls { display: flex; gap: 6px; }
.calendar-controls .button { min-width: 35px; min-height: 32px; padding: 0 10px; }
.calendar-controls .calendar-today { font-size: 9px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); overflow: hidden; border: 1px solid #e9e6df; border-radius: 10px; background: var(--panel); }
.calendar-weekday { display: grid; min-height: 33px; place-items: center; border-bottom: 1px solid #e9e6df; background: #f6f4ef; color: #89837a; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.calendar-day { min-width: 0; min-height: 112px; padding: 8px; border-right: 1px solid #efede8; border-bottom: 1px solid #efede8; background: #fffefa; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:nth-last-child(-n+7) { border-bottom: 0; }
.calendar-day.outside-month { background: #f8f7f3; }
.calendar-day.outside-month .calendar-day-top > span { color: #c4bfb6; }
.calendar-day.is-today .calendar-day-top > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--accent); color: white; }
.calendar-day-top { display: flex; align-items: center; justify-content: space-between; color: #625e57; font-size: 9px; }
.calendar-add { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #aaa49c; cursor: pointer; font-size: 14px; opacity: 0; }
.calendar-day:hover .calendar-add, .calendar-add:focus-visible { opacity: 1; }
.calendar-add:hover { background: var(--accent-pale); color: var(--accent-ink); }
.calendar-events { display: grid; gap: 4px; margin-top: 5px; }
.calendar-event { display: flex; min-width: 0; align-items: center; gap: 5px; overflow: hidden; padding: 4px 5px; border: 1px solid #eeeae3; border-radius: 5px; background: #fff; cursor: pointer; text-align: left; }
.calendar-event .platform-badge { flex: 0 0 auto; padding: 0; border: 0; background: transparent; font-size: 0; }
.calendar-event .platform-badge b { width: 14px; height: 14px; }
.calendar-event > span:last-child { overflow: hidden; color: #625e57; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-more { color: #938d84; font-size: 8px; }
.calendar-footnote { margin: 10px 2px 0; color: #99938a; font-size: 9px; }
.calendar-footnote b { color: var(--accent); }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 8px; }
.eyebrow-star { color: var(--accent); font-size: 13px; }
h1, h2, p { margin-top: 0; }
h1 { margin: 9px 0 5px; font: 700 clamp(25px,2.4vw,34px)/1.2 "Manrope",sans-serif; letter-spacing: -.045em; }
.wave { display: inline-block; color: var(--accent); font-size: 20px; vertical-align: 3px; }
.page-subtitle { margin-bottom: 0; color: #918c84; font-size: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 10px; font-weight: 700; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: #fff; box-shadow: 0 3px 7px rgba(30,28,25,.1); }
.button-dark:hover { background: #3a3834; }
.button-dark > span:first-child { color: var(--accent); font-size: 16px; }
.button-outline { border-color: #e6e2db; background: white; color: #5f5a53; }
.button-outline:hover { background: #f8f6f1; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.stat-card { min-height: 118px; padding: 15px 16px 13px; border: 1px solid #eae7e0; border-radius: 11px; background: var(--panel); box-shadow: 0 3px 12px rgba(40,35,28,.018); }
.stat-heading { display: flex; align-items: center; justify-content: space-between; color: #878179; font-size: 9px; font-weight: 600; }
.stat-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; font-size: 13px; }
.lavender { background: var(--lavender); color: #7265ab; }
.peach { background: var(--accent-pale); color: var(--accent-ink); }
.mint { background: var(--mint); color: #5c9870; }
.white-icon { background: rgba(255,255,255,.17); color: white; }
.stat-number { margin: 5px 0 2px; font: 700 26px/1.1 "Manrope",sans-serif; letter-spacing: -.05em; }
.stat-suffix { color: rgba(255,255,255,.67); font-size: 13px; letter-spacing: 0; }
.stat-foot { display: flex; align-items: center; gap: 6px; color: #a19b93; font-size: 8px; }
.stat-dot { width: 5px; height: 5px; border-radius: 50%; }
.lavender-dot { background: #9788d4; }.peach-dot { background: #de8c71; }.mint-dot { background: #82b78e; }
.stat-highlight { border-color: #34322e; background: #34322e; color: white; }
.stat-highlight .stat-heading { color: #c5c0b8; }
.stat-highlight .stat-foot { color: #aaa59d; line-height: 1.35; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(270px,1fr); gap: 14px; margin-bottom: 15px; }
.panel { border: 1px solid #e9e6df; border-radius: 11px; background: var(--panel); box-shadow: var(--shadow); }
.workflow-panel, .queue-panel { min-height: 249px; padding: 18px 19px 14px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.section-kicker { font-size: 8px; }
.section-kicker span { color: #d2ccc3; }
h2 { margin: 5px 0 0; font: 700 15px/1.3 "Manrope",sans-serif; letter-spacing: -.025em; }
.text-button, .panel-footer-link { border: 0; background: transparent; color: var(--accent-ink); cursor: pointer; font-size: 9px; font-weight: 600; }
.text-button span { margin-left: 4px; color: var(--accent); }
.workflow-steps { display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr; align-items: center; gap: 4px; margin-top: 21px; }
.workflow-step { display: flex; flex-direction: column; align-items: flex-start; min-height: 120px; padding: 10px 11px; border: 1px solid #efede8; border-radius: 9px; background: #fff; text-align: left; }
button.workflow-step { cursor: pointer; }
.workflow-step.step-done { border-color: #efded5; background: linear-gradient(145deg,#fffaf6,#fff); }
.step-number { align-self: flex-end; color: #bbb5ac; font: 600 8px "Manrope",sans-serif; }
.step-symbol { margin-top: -5px; color: var(--accent); font-size: 17px; }
.workflow-step strong { margin-top: 4px; font-size: 9px; }
.workflow-step small { margin-top: 4px; color: #a19b93; font-size: 8px; line-height: 1.35; }
.step-link { margin-top: auto; padding-top: 10px; color: var(--accent-ink); font-size: 8px; font-weight: 700; }
.muted-link { color: #aaa49d; font-weight: 500; }
.step-connector { color: #c6c0b7; text-align: center; font-size: 12px; }
.workflow-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 10px; border-radius: 7px; background: #f8f6f1; color: #a07c6b; }
.workflow-note > span { font-size: 13px; }
.workflow-note p { flex: 1; margin: 0; color: #8f8981; font-size: 8px; }
.workflow-note strong { color: #645f58; }
.note-lock { color: #aaa49c; }
.queue-panel { display: flex; flex-direction: column; }
.queue-total { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; background: var(--accent-pale); color: var(--accent-ink); font-size: 10px; font-weight: 700; }
.queue-list { display: grid; margin: 13px -5px 0; }
.queue-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 5px; border: 0; border-bottom: 1px solid #f0eee9; background: transparent; cursor: pointer; text-align: left; }
.queue-item:last-child { border-bottom: 0; }
.queue-brand-avatar { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.queue-item-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.queue-item-copy strong { overflow: hidden; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.queue-item-copy small { color: #aaa49c; font-size: 8px; }
.queue-item-copy i { padding: 0 2px; color: #ccc6bd; font-style: normal; }
.queue-arrow { color: #afa89e; font-size: 12px; }
.panel-footer-link { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding: 10px 1px 0; border-top: 1px solid #f0eee9; text-align: left; }
.panel-footer-link span { color: var(--accent); font-size: 13px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.queue-empty { flex: 1; padding: 8px 0; }
.empty-icon { display: grid; width: 33px; height: 33px; margin-bottom: 7px; place-items: center; border-radius: 10px; background: #f3f1eb; color: #8eaa92; font-size: 17px; }
.empty-state strong { font: 700 10px "Manrope",sans-serif; }
.empty-state p { max-width: 240px; margin: 5px 0 0; color: #a29c94; font-size: 8px; line-height: 1.5; }
.recent-panel { padding: 18px 19px 0; }
.recent-heading { align-items: center; padding-bottom: 14px; }
.recent-actions { display: flex; align-items: center; gap: 7px; }
.search-box { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border: 1px solid #ebe8e1; border-radius: 7px; color: #9d978e; }
.search-box span { font-size: 17px; }
.search-box input { width: 112px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 9px; }
.search-box input::placeholder { color: #b1aba2; }
.filter-button { height: 32px; padding: 0 9px; border: 1px solid #ebe8e1; border-radius: 7px; background: white; color: #827c74; cursor: pointer; font-size: 9px; }
.filter-button span { margin-left: 10px; color: #aaa49c; }
.recent-actions .button { min-height: 32px; }
.table-wrap { overflow-x: auto; border-top: 1px solid #efede8; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { height: 34px; color: #a29c94; font-size: 7px; font-weight: 700; letter-spacing: .12em; text-align: left; }
td { height: 55px; border-top: 1px solid #f1efea; color: #77726a; font-size: 9px; }
td:first-child { min-width: 210px; }
.post-title-button { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.post-file-icon { display: grid; width: 28px; height: 30px; place-items: center; border: 1px solid #ece8e1; border-radius: 6px; background: #fff; color: var(--accent-ink); font-size: 14px; }
.post-title-button > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.post-title-button strong { max-width: 220px; overflow: hidden; color: #383632; font-size: 9px; font-weight: 600; text-overflow: ellipsis; }
.post-title-button small { color: #a9a39b; font-size: 8px; }
.platform-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #eeece7; border-radius: 6px; background: white; color: #77726a; font-size: 8px; }
.platform-badge b { display: grid; min-width: 12px; height: 12px; place-items: center; border-radius: 3px; color: #fff; background: #777; font: 700 8px Arial,sans-serif; }
.platform-badge.instagram b { background: #bd6e89; }.platform-badge.facebook b { background: #4778cf; }.platform-badge.tiktok b { background: #29292b; }.platform-badge.linkedin b { background: #377ab2; font-size: 7px; }.platform-badge.youtube b { background: #df564c; font-size: 6px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; background: #f2f0ec; color: #8b857d; font-size: 8px; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: #a7a198; }
.status-in_review { background: #fff2df; color: #a87b40; }.status-in_review i { background: #dda853; }
.status-changes_requested { background: #fff0ec; color: #b36854; }.status-changes_requested i { background: #df8064; }
.status-approved { background: #e9f4ec; color: #5b8b67; }.status-approved i { background: #70a57d; }
.date-cell { color: #8f8981; }
.version-label { color: #8f8981; font-size: 8px; }
.row-more { border: 0; background: transparent; color: #aaa49c; cursor: pointer; font-size: 15px; }
.table-empty { min-height: 180px; border-top: 1px solid #efede8; }
.table-empty .button { margin-top: 12px; }
.table-empty .button span:first-child { color: var(--accent); }
.page-footer { display: flex; justify-content: space-between; padding: 17px 1px 0; color: #aaa49c; font-size: 8px; }
.page-footer b { margin: 0 4px; color: #d4cfc6; }
.footer-green-dot { width: 5px; height: 5px; margin-right: 5px; vertical-align: 1px; }
[hidden] { display: none !important; }
.auth-screen { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 5%,#fff 0,#FAF9F6 68%); }
.auth-card { width: min(420px,100%); padding: 35px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 20px 65px rgba(40,39,35,.08); }
.auth-logo { display: block; width: 170px; height: 48px; margin-bottom: 29px; }
.auth-card .section-kicker { margin-bottom: 8px; }
.auth-card h1 { margin: 0 0 7px; font-size: 27px; }
.auth-copy { margin-bottom: 22px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.auth-card .field-label { margin: 14px 0 7px; }
.auth-card .text-input { font-size: 12px; }
.auth-submit { width: 100%; margin-top: 20px; }
.auth-footnote { display: block; margin-top: 18px; color: #9a958d; font-size: 9px; text-align: center; }
.auth-error { margin: 12px 0 0; color: var(--accent-ink); font-size: 11px; }
.workspace-switcher { cursor: pointer; }
.workspace-switcher select { width: 145px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 700 11px "DM Sans",sans-serif; cursor: pointer; }
.admin-open { min-height: 30px; padding: 0 10px; font-size: 9px; }
.admin-modal { width: min(650px,100%); }
.admin-user-list { display: grid; max-height: 210px; overflow: auto; margin: 0 -4px 12px; }
.admin-user-row { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid #f0eee9; }
.admin-user-row > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.admin-user-row strong { font-size: 11px; }
.admin-user-row small { color: var(--ink-soft); font-size: 9px; }
.admin-user-role { border-radius: 5px; padding: 4px 7px; background: var(--accent-pale); color: var(--accent-ink); font-size: 8px; font-weight: 700; }
.admin-user-edit { border: 0; background: transparent; color: var(--accent-ink); cursor: pointer; font-size: 10px; font-weight: 700; }
.admin-add { margin: 0 0 10px; }
.brand-permissions { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-permission { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 10px; }
.brand-permission input { accent-color: var(--accent); }
.admin-empty { padding: 17px 5px; color: var(--ink-soft); font-size: 10px; }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; overflow-y: auto; place-items: center; padding: 25px; background: rgba(32,30,27,.38); backdrop-filter: blur(3px); }
.modal { width: min(510px,100%); padding: 24px; border: 1px solid rgba(255,255,255,.8); border-radius: 14px; background: #fffefa; box-shadow: 0 24px 70px rgba(31,27,23,.2); }
.modal-top { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.modal-top h2 { margin-top: 7px; font-size: 20px; }
.modal-top p { margin: 6px 0 0; color: #99938b; font-size: 10px; }
.modal-close { width: 29px; height: 29px; border: 1px solid #edeae4; border-radius: 8px; background: white; color: #79736c; cursor: pointer; font-size: 19px; line-height: 1; }
.field-label { display: flex; align-items: center; gap: 5px; margin: 15px 0 7px; color: #5d5952; font-size: 9px; font-weight: 700; }
.field-label > span:first-child { color: var(--accent); }
.optional { margin-left: auto; color: #aaa49c; font-size: 7px; letter-spacing: .1em; }
.text-input { width: 100%; min-height: 39px; padding: 10px 11px; border: 1px solid #e9e6df; border-radius: 7px; background: #fff; color: #3d3a35; font-size: 10px; }
.text-input::placeholder { color: #b3ada4; }
.text-area { min-height: 105px; resize: vertical; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field .field-label { margin-top: 15px; }
.modal-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 17px; padding: 10px; border-radius: 7px; background: #f7f5f0; }
.modal-note > span { display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; background: #e9e4d9; color: #898276; font: 700 9px Georgia,serif; }
.modal-note p { margin: 1px 0 0; color: #8a847b; font-size: 8px; line-height: 1.4; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.modal-actions .button { min-height: 38px; }
.review-copy { max-height: 45vh; min-height: 100px; overflow: auto; padding: 14px; border: 1px solid #eeebe5; border-radius: 8px; background: #fbfaf7; color: #605b54; font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.review-feedback { margin-top: 10px; padding: 10px; border-radius: 7px; background: #fff3eb; color: #aa674d; font-size: 9px; line-height: 1.5; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.review-actions small { flex-basis: 100%; color: #a29c94; font-size: 8px; text-align: right; }
.ai-assist-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ai-assist-row .button { min-height: 32px; }
.ai-assist-row .text-button { padding: 8px 3px; }
.ai-assist-note { margin: 7px 0 0; color: #8c867e; font-size: 8px; line-height: 1.5; }
#generate-ai:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.ai-setup-instructions { padding: 13px 14px; border: 1px solid #eeebe5; border-radius: 8px; background: #fbfaf7; color: #6f6a62; font-size: 10px; line-height: 1.6; }
.ai-setup-instructions p { margin: 0 0 10px; }
.ai-setup-instructions p:last-of-type { margin-bottom: 12px; }
.ai-setup-instructions code { padding: 2px 4px; border-radius: 4px; background: #f0eee9; color: #37342f; }
.ai-setup-instructions small { color: #99938b; font-size: 8px; }
.approved-callout { margin-right: auto; color: #66896d; font-size: 10px; font-weight: 700; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; gap: 8px; }
.toast { max-width: min(380px,calc(100vw - 40px)); padding: 12px 15px; border: 1px solid #dce9dd; border-radius: 9px; background: #fbfffb; box-shadow: 0 8px 28px rgba(34,30,25,.12); color: #54715a; font-size: 10px; animation: toast-in .2s ease-out; }
.toast-error { border-color: #f0d7cf; background: #fffaf8; color: #a75541; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1500px) { .page-content { padding-top: 45px; } .stats-grid { gap: 15px; } .stat-card { min-height: 130px; padding: 17px 19px; } .workflow-panel, .queue-panel { min-height: 270px; padding: 21px 22px 16px; } }
@media (max-width: 1120px) { .sidebar { width: 215px; }.main-area { margin-left: 215px; }.page-content { padding-right: 25px; padding-left: 25px; }.topbar { padding: 0 25px; }.stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.content-grid { grid-template-columns: 1fr; }.queue-panel { min-height: 205px; }.queue-empty { min-height: 100px; } }
@media (max-width: 720px) { .sidebar { position: sticky; top: 0; width: 100%; height: auto; padding: 12px 15px; border-right: 0; border-bottom: 1px solid var(--line); }.brand-lockup { padding: 0; }.brand-logo { width: 122px; height: 34px; }.workspace-switcher, .nav-label, .sidebar-bottom { display: none; }.main-nav { display: flex; gap: 3px; margin-top: 12px; overflow-x: auto; }.nav-item { flex: 0 0 auto; min-height: 34px; padding: 0 9px; font-size: 10px; }.nav-item .nav-icon { font-size: 14px; }.nav-count, .soon { display: none; }.main-area { margin-left: 0; }.topbar { height: 49px; padding: 0 16px; }.local-badge { font-size: 0; }.topbar-actions { gap: 10px; }.page-content { padding: 26px 15px 19px; }.welcome-row { align-items: flex-start; }.welcome-row > div { min-width: 0; }.welcome-row .button { flex: 0 0 auto; min-height: 34px; padding: 0 10px; font-size: 9px; }.page-subtitle { max-width: 270px; line-height: 1.5; }.stats-grid { gap: 8px; }.stat-card { min-height: 106px; padding: 12px; }.stat-heading { font-size: 8px; }.stat-number { margin-top: 8px; font-size: 23px; }.stat-foot { align-items: flex-start; font-size: 7px; line-height: 1.4; }.content-grid { gap: 10px; }.workflow-panel, .queue-panel, .recent-panel { padding-right: 13px; padding-left: 13px; }.workflow-steps { grid-template-columns: 1fr; gap: 7px; margin-top: 14px; }.workflow-step { min-height: 90px; }.step-connector { transform: rotate(90deg); height: 12px; }.workflow-note { align-items: flex-start; }.workflow-note p { line-height: 1.5; }.recent-heading { align-items: flex-start; flex-direction: column; }.recent-actions { width: 100%; flex-wrap: wrap; }.search-box { flex: 1; }.search-box input { width: 100%; }.filter-button { flex: 0 0 auto; }.recent-actions .button { margin-left: auto; }.table-wrap { margin: 0 -13px; padding: 0 13px; }.page-footer { gap: 8px; flex-direction: column; }.modal-backdrop { align-items: end; padding: 0; }.modal { width: 100%; max-height: 91vh; overflow: auto; padding: 20px 17px; border-radius: 16px 16px 0 0; }.form-row { gap: 8px; }.review-actions { justify-content: flex-start; }.review-actions small { text-align: left; }.calendar-day { min-height: 72px; padding: 5px; }.calendar-event { justify-content: center; padding: 3px; }.calendar-event > span:last-child { display: none; }.calendar-add { opacity: 1; }.calendar-toolbar { padding: 11px; }.calendar-controls .button { min-width: 30px; padding: 0 7px; } }
