/* Approved ImageGen boards, 2026-09-30. Screen presentation only. */
@media screen {
  :root {
    --paper: #faf9f5;
    --ink: #2f2b26;
    --text: #2f2b26;
    --muted: #696966;
    --line: #e5e0d8;
    --accent: #947848;
    --accent-soft: #f1e9da;
    --brand-gold: #947848;
    --gold: #443425;
    --gold-line: #d6c6aa;
    --green: #176d3d;
    --wash: #f8f7f4;
    --soft: #f8f7f4;
    --surface: #fff;
    --surface-soft: #f8f7f4;
    --radius: 8px;
  }

  body { background: var(--paper); color: var(--ink); font-size: 14px; }
  .app-header {
    height: 66px;
    padding: 8px 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }
  .brand { gap: 18px; }
  .brand .brand-lockup { flex-basis: 152px; width: 152px; }
  .brand img.brand-building { width: 132px; }
  .brand img.brand-wordmark { width: 152px; }
  .brand .brand-caption { font-size: 12px; padding-left: 16px; color: var(--muted); }
  .identity #identity-name { font-size: 12px; }
  .demo-picker > summary { background: #fff; }
  .demo-picker-fields { border-radius: 8px; box-shadow: 0 10px 28px #30291d18; }

  .shell {
    max-width: 1680px;
    min-height: calc(100dvh - 66px);
    grid-template-columns: 194px minmax(0, 1fr);
    background: var(--paper);
    border-inline: 0;
  }
  .shell > aside {
    padding: 18px 10px 16px;
    background: #fff;
    border-right: 1px solid var(--line);
  }
  #navigation { gap: 16px; }
  .nav-main { gap: 3px; }
  .nav-caption { padding: 6px 12px; color: #85817b; font-size: 10px; letter-spacing: .06em; }
  nav button {
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 7px;
    color: #5a5650;
    font-size: 13px;
    font-weight: 500;
  }
  nav button.active {
    background: #f1e9d9;
    color: #614b27;
    box-shadow: inset 2px 0 var(--accent);
  }
  nav button:hover { background: #f6f1e9; }
  .count { background: var(--accent); border-radius: 9px; }
  .demo { color: #918e88; }
  main { background: var(--paper); padding: 24px 28px 56px; }

  h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
  h1 { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.15; }
  h2 { font-size: 24px; line-height: 1.2; }
  h3 { font-size: 19px; line-height: 1.25; }
  .heading {
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 0;
    border: 0;
  }
  .heading::before, .heading::after { content: none; }
  .heading h1 { margin: 0; color: var(--ink); }
  .heading .sub { margin-top: 5px; font-size: 13px; }
  .heading-actions { gap: 8px; }
  .eyebrow { color: #756950; letter-spacing: .05em; }
  .section { border-color: var(--line); }
  .card, .settings-tile, .actor-tile, .activity-edit-block,
  .activity-document, .show-card, .tour-card, .availability-summary,
  .performance-timing, .month-plan-workspace, .empty-state {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
  }
  .card { padding: 18px; }
  .settings-tile:hover, .actor-tile:hover { background: #fcfbf8; }
  .empty-state { padding: 36px 22px; border-style: dashed; color: var(--muted); }
  .notice { background: #fff3d9; border-color: #ead5ad; color: #76511b; border-radius: 7px; }
  .error, .form-error:not(:empty) { color: #a52828; }
  .error { background: #fff1ef; border: 1px solid #efcac4; border-radius: 7px; }
  .source-warning { background: #fff3d9; border-left-color: #b98931; }

  button, input, select, textarea, .demo-picker > summary {
    border-radius: 7px;
    font-family: var(--sans);
  }
  button {
    min-height: 44px;
    padding: 9px 14px;
    background: #fff;
    border: 1px solid #cbb995;
    color: #775721;
    font-weight: 550;
    box-shadow: none;
    background-image: none;
  }
  button:hover:not(:disabled) { background: #fbf7ef; border-color: var(--accent); }
  button.primary, .actions > button.primary, .editor-actionbar button.primary {
    background: var(--accent);
    background-image: none;
    border-color: var(--accent);
    color: #fff;
  }
  button.primary:hover:not(:disabled) { background: #806638; border-color: #806638; }
  button.danger { color: #a52828; border-color: #dc7770; background: #fff; }
  button.danger:hover:not(:disabled) { background: #fff2ef; border-color: #bd463d; }
  button.primary.danger { background: #a52828; border-color: #a52828; color: #fff; }
  button:disabled { background: #ececee; border-color: #e0e0e3; color: #777c84; opacity: 1; }
  button[aria-busy=true] { cursor: progress; }
  :is(input, select, textarea) { min-width: 0; border: 1px solid #d4d4d7; background: #fff; color: var(--ink); }
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select { min-height: 44px; }
  :is(input, select, textarea)::placeholder { color: #8b8d92; }
  :is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid #947848; outline-offset: 3px; }
  input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: #bd3636; }
  input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
  label { color: #5b5b5d; }
  .toolbar, .actions { gap: 9px; }
  .segmented { padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: #f5f5f3; }
  .segmented button { min-height: 40px; border: 0; color: #41444c; background: transparent; border-radius: 5px; }
  .segmented .selected, .toolbar .selected, .toolbar > button.selected,
  .segmented button[aria-pressed=true] {
    background: #eee6d7;
    color: #6b4d1e;
    border-color: #d8c5a3;
    box-shadow: none;
  }
  .pill, .badge { border-radius: 7px; padding: 4px 9px; font-size: 12px; }
  .pill { color: #8a570a; background: #fff0d2; }
  .pill.green { color: #176d3d; background: #e3f3e7; }
  .plan-event-status, .plan-day { border-radius: 5px; }

  .month-navigation { gap: 8px; }
  .month-picker { color: var(--ink); font-size: 20px; }
  .next-call {
    background: #fff;
    background-image: none;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
  }
  .next-call:hover { background: #fffdf9; }
  .next-call .eyebrow { color: #795c2d; }
  .next-call strong { color: var(--ink); }
  .next-call-arrow { border-color: var(--line); border-radius: 7px; }
  .calendar, .agenda, .matrix-wrap, .callsheet-scroll { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
  .weekday, .day.empty, th, th:first-child, .callsheet-table th,
  .production-call-preview th, .activity-document-table th {
    background: #f8f7f4;
    color: #62605b;
  }
  .day { border-color: var(--line); }
  .day.today .day-num { background: var(--accent); color: #fff; border-radius: 50%; }
  .event { background: #f3ede2; border-left-color: var(--accent); border-radius: 5px; }
  .event:hover { background: #eee3d2; }
  .event.assigned, .event.programme { background: #eaf4ed; border-left-color: #469067; }
  .event.activity, .event.activity_draft { background: #ecf2fa; border-left-color: #6489bb; }
  .event.reported { background: #fff1d5; border-left-color: #c48f37; }
  .event.needs_review, .event.programme_conflict,
  .event.required_conflict, .event.possible_after_replacement { background: #fff0ee; border-left-color: #c45b51; }
  .event.tour, .event.tour_draft { background: #f1ecf6; border-left-color: #9673b0; }
  .agenda-event { border-radius: 6px; }
  .agenda-event:hover, .quiet-day { background: #fcfbf8; }
  .agenda-date > strong { color: var(--ink); }
  .calendar-hint { color: var(--muted); }
  table { background: #fff; }
  th, td { border-color: var(--line); }
  .theatre-schedule-grid thead th { background: #f8f7f4; color: var(--ink); }
  .theatre-grid-event.is-draft { background: #fff3da; border-left-color: #c48f37; }
  .theatre-overview-document { color: var(--ink); }
  .theatre-grid-scroll { border-color: var(--line); }

  .settings-grid { gap: 12px; }
  .settings-tile { min-height: 80px; }
  .profile-card { align-items: center; }
  .actor-portrait { background: #f1ede5; border-radius: 50%; }
  .actor-production, .role-row, .history-item { border-color: var(--line); }
  .bubble { background: #f5f5f3; border-radius: 8px; }
  .bubble.own { background: #f1e9da; border-radius: 8px; }
  .thread { background: #fff; }
  .notification { border-color: var(--line); }
  .chat-panel, .inbox-tabs { max-width: 100%; }
  .people-tabs, .actor-card-tabs, .inbox-tabs { border-color: var(--line); }

  /* Page wrappers supplied by the application. Existing content remains authoritative. */
  .mockup-workspace { display: grid; gap: 16px; min-width: 0; }
  .mockup-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; margin: 0 0 16px; }
  .mockup-toolbar > * { min-width: 0; }
  .mockup-panel { min-width: 0; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
  .profile-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 740px; }
  .profile-identity { display: flex; align-items: center; gap: 16px; padding: 20px; }
  .profile-identity h2 { margin: 0 0 4px; font-size: 25px; }
  .profile-identity .small { margin: 0; }
  .profile-initials { display: grid; place-items: center; flex: 0 0 80px; width: 80px; height: 80px; border-radius: 50%; background: #eee9df; color: #48443d; font: 30px/1 var(--serif); }
  .profile-share-card { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
  .profile-share-card h2 { margin-bottom: 12px; }
  .profile-share-link { display: block; width: 100%; min-width: 0; padding: 12px; overflow-wrap: anywhere; background: #f4f4f4; border-radius: 7px; color: #424242; }
  .profile-share-actions { display: flex; gap: 9px; flex-wrap: wrap; margin: 14px 0 0; }
  .profile-share-actions > * { flex: 1 1 180px; }
  .catalogue-workspace { display: grid; grid-template-columns: minmax(220px, 30%) minmax(0, 1fr); gap: 14px; align-items: start; }
  .catalogue-list, .catalogue-preview { min-width: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
  .catalogue-list { display: grid; gap: 3px; }
  .catalogue-list > button { width: 100%; text-align: left; }
  .catalogue-list > button[aria-current=true], .catalogue-list > button.active { background: #f1e9da; border-color: #d9c5a3; }
  .catalogue-preview .section:first-child { border-top: 0; }

  dialog, dialog.dialog-workspace { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 60px #2d251a2b; }
  dialog.dialog-panel { border-radius: 8px 0 0 8px; }
  dialog::backdrop { background: #322e29a3; backdrop-filter: none; }
  .dialog-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
  .dialog-head h2 { font-size: 26px; }
  dialog form > .actions, dialog .editor-actionbar { background: #fff; border-color: var(--line); }
  #toast { background: #38312a; border-radius: 7px; }

  @media (min-width: 761px) {
    body[data-viewer=staff] aside { height: calc(100dvh - 66px); }
    body[data-viewer=staff] #navigation { gap: 12px; }
    body[data-viewer=staff] nav button { min-height: 44px; }
  }

  @media (max-width: 760px) {
    .app-header { height: 64px; min-height: 64px; padding: 6px 14px; }
    .brand { flex: 0 1 auto; }
    .brand .brand-lockup { flex-basis: 140px; width: 140px; }
    .brand img.brand-building { width: 122px; }
    .brand img.brand-wordmark { width: 140px; }
    .brand .brand-caption { display: none; }
    .shell { display: block; min-height: calc(100dvh - 64px); }
    main { padding: 18px 14px 48px; }
    h1 { font-size: 27px; }
    h2 { font-size: 22px; }
    .heading { align-items: start; padding-bottom: 0; margin-bottom: 16px; }
    .card { padding: 16px; }
    body[data-viewer=staff] aside { background: #fff; }
    body[data-viewer=actor] aside {
      background: #fff;
      border-top: 1px solid var(--line);
      box-shadow: 0 -4px 18px #30291d0d;
      backdrop-filter: none;
    }
    body[data-viewer=actor] #navigation { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
    body[data-viewer=actor] nav button { min-height: 56px; padding: 6px 2px; border-radius: 6px; font-size: 10px; }
    body[data-viewer=actor] nav button.active { box-shadow: inset 0 -2px var(--accent); }
    body[data-viewer=actor] nav button .ui-icon { width: 19px; height: 19px; }
    body[data-viewer=actor] main { padding-bottom: 108px; }
    .catalogue-workspace { grid-template-columns: minmax(0, 1fr); }
    .profile-layout { gap: 12px; }
    .profile-identity, .profile-share-card { padding: 16px; }
    .profile-initials { flex-basis: 70px; width: 70px; height: 70px; font-size: 26px; }
    dialog, dialog.wide-dialog, dialog.dialog-panel, dialog.dialog-workspace { border-radius: 0; }
  }
}
