:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --panel: rgba(20, 22, 28, 0.96);
  --panel-2: rgba(28, 31, 38, 0.98);
  --surface: rgba(255, 255, 255, 0.045);
  --text: #f8f2f5;
  --muted: #b9b2b8;
  --line: rgba(255, 255, 255, 0.11);
  --gold: #f26fa8;
  --mint: #8ee6c1;
  --blue: #8fa7ff;
  --danger: #ff8f9f;
  --glow: rgba(242, 111, 168, 0.18);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 16px calc(92px + env(safe-area-inset-bottom));
}

body:not(.app-unlocked) .app-shell,
body:not(.app-unlocked) dialog {
  display: none;
}

body.app-unlocked .privacy-gate {
  display: none;
}

.privacy-gate {
  display: grid;
  min-height: 100vh;
  padding: max(28px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  place-items: center;
}

.gate-card {
  display: grid;
  width: min(100%, 420px);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}

.gate-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.gate-error {
  min-height: 1.2em;
  color: var(--danger) !important;
  font-weight: 800;
}

.topbar,
.section-heading,
.list-header,
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.back-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--gold);
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 900;
  padding: 8px 11px;
}

.back-button[hidden] {
  display: none;
}

.section-heading > .text-button {
  display: none;
}

.topbar {
  padding: max(10px, env(safe-area-inset-top)) 0 14px;
  border-bottom: 1px solid var(--line);
  padding-right: 58px;
}

.info-fab {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 20;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  box-shadow: var(--shadow);
  font-weight: 950;
  line-height: 1;
}

.info-fab:active {
  transform: translateY(1px);
}

.section-heading > div,
.list-header > div,
.topbar > div,
.dialog-header > div {
  min-width: 0;
}

.section-heading .status-pill,
.list-header button,
.topbar button,
.dialog-header button {
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.38rem, 4vw, 1.9rem);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.today-command-card {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px;
}

.today-command-card h3,
.today-command-card p {
  margin: 0;
}

.today-command-card p:not(.eyebrow) {
  color: var(--muted);
}

.profile-command-card {
  margin-top: 12px;
}

.profile-boxes {
  margin-top: 12px;
}

#screen-artist-detail .brief-card,
#screen-sponsor-detail .brief-card,
#screen-artist-detail .generated-block,
#screen-sponsor-detail .generated-block {
  margin-top: 12px;
}

#screen-artist-detail .generated-block,
#screen-sponsor-detail .generated-block {
  display: none;
}

.detail-drawer-card {
  cursor: pointer;
}

.detail-drawer-card > .eyebrow::after {
  content: "  Open";
  color: var(--gold);
  font-weight: 900;
}

.detail-drawer-card.open > .eyebrow::after {
  content: "  Close";
}

.detail-drawer-card:not(.open) > :not(.eyebrow) {
  display: none;
}

.home-action-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.quick-action-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  padding: 10px;
}

.home-boxes {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.home-box-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.assistant-flow-card {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
}

.assistant-flow-card h3 {
  margin: 2px 0 0;
  font-size: 1.02rem;
}

.assistant-flow-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.quick-start-form {
  margin-top: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: none;
}

.quick-start-form textarea {
  min-height: 118px;
}

.quick-start-confirmation {
  margin-top: 12px;
}

.quick-confirm-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(242, 111, 168, 0.38);
  border-radius: 12px;
  background: rgba(242, 111, 168, 0.08);
  padding: 12px;
}

.quick-confirm-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.assistant-note-stack {
  display: grid;
  gap: 7px;
}

.assistant-note-stack p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 9px 10px;
}

.quick-confirm-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.wide-action-button {
  width: 100%;
}

.assistant-flow-steps {
  display: grid;
  gap: 7px;
}

.assistant-flow-steps span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
  padding: 9px 10px;
}

#screen-chat .section-heading {
  margin-bottom: 6px;
}

#screen-chat .brief-card,
#screen-chat .home-boxes,
#screen-chat .upload-drawer {
  border-radius: 12px;
}

#screen-chat .latest-saved-card {
  padding: 12px;
}

.quick-link-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.quick-link-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  padding: 8px 11px;
  white-space: nowrap;
}

.quick-link-button:active {
  transform: translateY(1px);
}

.today-updates-list {
  display: grid;
  gap: 8px;
}

.today-update-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  min-width: 0;
  padding: 10px 11px;
  text-align: left;
}

#screen-chat .today-update-row {
  min-height: 54px;
}

.today-update-date {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.today-update-bullet {
  grid-column: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.today-update-action {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  color: var(--gold);
  font-weight: 900;
}

.upload-drawer {
  margin-top: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.upload-drawer summary {
  cursor: pointer;
  padding: 11px 12px;
  color: var(--gold);
  font-weight: 900;
}

.upload-drawer .chat-composer {
  margin-top: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.chat-composer {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 10px;
  backdrop-filter: blur(12px);
  margin-top: 14px;
}

.latest-saved-card {
  margin-top: 11px;
  padding: 11px;
}

.file-drop-label {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.info-metrics {
  grid-template-columns: repeat(4, 1fr);
}

.info-actions {
  margin-top: 16px;
}

.approval-command-card {
  gap: 12px;
}

.approval-summary {
  display: grid;
  gap: 7px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 12px;
}

.approval-summary p {
  margin: 0;
  line-height: 1.45;
}

.approval-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.connection-card .pill.ready {
  border-color: rgba(112, 255, 205, 0.5);
  color: #9affdc;
}

.connection-card .pill.review {
  border-color: rgba(255, 204, 110, 0.5);
  color: #ffd58a;
}

.metric-card,
.action-panel,
.form-card,
.notice,
.item-card,
.dialog-card,
.generated-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.metric-card {
  min-height: 72px;
  padding: 11px;
}

.metric-card span {
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--gold);
}

.metric-card p,
.notice p,
.item-card p,
.action-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.action-panel,
.notice {
  margin: 14px 0;
  padding: 14px;
}

.panel-link {
  margin-top: 12px;
}

.form-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
}

/* Alicia's workflow is upload-first: Claude creates the thinking,
   Mobile Command files it. Keep old manual forms out of the main UI. */
.form-card {
  display: none !important;
}

.agent-team-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.agent-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.agent-card h4 {
  margin: 0 0 3px;
  font-size: 0.92rem;
}

.agent-card p {
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.agent-card .eyebrow {
  margin-bottom: 3px;
  font-size: 0.68rem;
}

.agent-card .text-button {
  width: 54px;
  min-height: 34px;
  padding: 7px 8px;
  font-size: 0.78rem;
}

.agent-meeting-card textarea {
  width: 100%;
  margin-top: 8px;
}

.agent-conversation-list {
  display: grid;
  gap: 10px;
}

.team-phone-chat {
  display: grid;
  gap: 8px;
  min-height: calc(100vh - 176px);
}

.team-phone-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(11, 12, 15, 0.96);
  backdrop-filter: blur(14px);
  padding: 9px 11px;
}

.team-phone-header h2 {
  margin: 0;
  font-size: 1rem;
}

.team-phone-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.team-phone-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  min-height: 54vh;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 4px 0 110px;
}

.team-top-dropdowns {
  position: sticky;
  top: 62px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  padding: 2px 0 6px;
  background: rgba(11, 12, 15, 0.96);
  backdrop-filter: blur(14px);
}

.team-route-drawer {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.team-route-drawer[open] {
  grid-column: 1 / -1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.team-route-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
  list-style: none;
}

.team-route-drawer summary::-webkit-details-marker {
  display: none;
}

.team-route-drawer .summary-hint {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.95rem;
  font-weight: 850;
  text-transform: uppercase;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.team-route-drawer[open] .summary-hint {
  color: var(--gold);
  background: rgba(242, 111, 168, 0.12);
  transform: rotate(180deg);
}

.team-route-drawer .list-header,
.team-route-drawer .agent-team-grid,
.team-route-drawer .form-status {
  margin: 0 12px 12px;
}

.assistant-workflow-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.026));
  padding: 14px;
}

.assistant-workflow-card h3 {
  margin: 2px 0 4px;
  font-size: 1rem;
}

.assistant-workflow-card p {
  margin: 0;
}

.assistant-workflow-steps {
  display: grid;
  gap: 7px;
}

.assistant-workflow-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  padding: 9px;
}

.assistant-workflow-dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.72rem;
  font-weight: 950;
}

.assistant-workflow-step.is-done .assistant-workflow-dot {
  color: #0f1411;
  background: var(--gold);
}

.assistant-workflow-step h4 {
  margin: 0 0 2px;
  font-size: 0.88rem;
}

.assistant-workflow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.office-workflow {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.office-workflow-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  padding: 9px;
}

.compact-office-workflow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.compact-office-workflow .office-workflow-step {
  grid-template-columns: 1fr;
  min-height: 76px;
}

.office-workflow-dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.72rem;
  font-weight: 950;
}

.office-workflow-step.is-active .office-workflow-dot {
  color: #11130f;
  background: var(--gold);
}

.office-workflow-step h4 {
  margin: 0 0 2px;
  font-size: 0.82rem;
}

.office-workflow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.32;
}

.file-cabinet-meta {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  padding: 10px;
}

.file-cabinet-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.file-cabinet-meta strong {
  color: var(--text);
}

@media (max-width: 720px) {
  .compact-office-workflow {
    grid-template-columns: 1fr;
  }
}

.team-route-note {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

#screen-agent > details:not(.team-route-drawer),
#screen-agent > .generated-block,
#screen-agent > .form-card {
  display: none !important;
}

.team-tools-mount {
  display: grid;
  gap: 8px;
  margin: 0 12px 12px;
}

.team-tools-mount > .brief-notes-drawer,
.team-tools-mount > .form-card {
  margin: 0;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.team-tools-mount > .brief-notes-drawer summary {
  padding: 10px 0;
  color: var(--text);
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .event-builder-grid {
    grid-template-columns: 1fr;
  }

  .team-top-dropdowns {
    grid-template-columns: 1fr;
  }

  .team-route-drawer[open] {
    grid-column: auto;
  }
}

.team-chat-form {
  display: grid;
  gap: 12px;
}

.team-compose-bar {
  position: sticky;
  bottom: calc(62px + env(safe-area-inset-bottom));
  z-index: 4;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 12, 15, 0.98);
  backdrop-filter: blur(14px);
  padding: 7px;
}

.team-chat-form textarea {
  width: 100%;
  resize: vertical;
}

.team-compose-bar textarea {
  min-height: 44px;
  max-height: 110px;
  border-radius: 14px;
}

.team-compose-bar button {
  min-height: 44px;
  padding-right: 14px;
  padding-left: 14px;
}

.team-file-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 950;
}

.team-file-button input {
  display: none;
}

.team-chat-card {
  gap: 12px;
}

.team-thread-card {
  display: grid;
  gap: 9px;
  border: 0;
  background: transparent;
  padding: 0;
  scroll-margin-bottom: 140px;
}

.chat-bubble {
  display: grid;
  gap: 4px;
  width: fit-content;
  max-width: min(84%, 620px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 11px;
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble-user {
  justify-self: end;
  align-self: flex-end;
  border-color: rgba(242, 111, 168, 0.34);
  background: rgba(242, 111, 168, 0.11);
}

.chat-bubble-agent {
  justify-self: start;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.045);
}

.chat-bubble-dispatch {
  border-color: rgba(142, 230, 193, 0.34);
  background: rgba(142, 230, 193, 0.08);
}

.chat-bubble-agent-note {
  max-width: min(78%, 560px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.route-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.route-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(142, 230, 193, 0.22);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--text);
  background: rgba(142, 230, 193, 0.055);
  font-size: 0.76rem;
  font-weight: 850;
}

.agent-created-file {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  border: 1px solid rgba(242, 111, 168, 0.24);
  border-radius: 12px;
  background: rgba(242, 111, 168, 0.08);
  padding: 7px 8px;
}

.proposal-result-card {
  max-width: min(92%, 680px);
  border-color: rgba(242, 111, 168, 0.36);
  background: rgba(242, 111, 168, 0.11);
}

.proposal-result-card h4 {
  margin: 0;
  font-size: 0.98rem;
}

.proposal-result-card .folder-action-row {
  margin-top: 6px;
}

.agent-note-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.agent-note-item {
  display: grid;
  gap: 3px;
  border-left: 2px solid rgba(242, 111, 168, 0.5);
  padding-left: 8px;
}

.agent-note-item strong {
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.agent-note-item p span {
  color: var(--gold);
  font-weight: 900;
}

.chat-name-label {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.chat-meta-line {
  color: var(--muted);
  font-size: 0.82rem;
}

#screen-agent > .brief-notes-drawer {
  margin-top: 8px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

#screen-agent > .brief-notes-drawer summary {
  padding: 10px 0;
  color: var(--text);
  font-size: 0.9rem;
}

.chat-bubble details {
  margin-top: 2px;
}

.chat-bubble summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.agent-message-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.agent-message-card p {
  margin: 0;
}

.agent-message-card .agent-needs-line {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .agent-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .agent-card .text-button {
    width: 50px;
  }

  .info-metrics {
    grid-template-columns: 1fr;
  }
}

.team-route-drawer .agent-card {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.team-route-drawer .agent-card > div {
  min-width: 0;
}

.team-route-drawer .agent-card .text-button {
  flex: 0 0 auto;
  width: 50px;
  min-height: 34px;
}

.import-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
}

.import-panel summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 900;
}

.import-panel form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.form-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 11px;
  outline: none;
}

::placeholder {
  color: rgba(211, 186, 199, 0.7);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 111, 168, 0.12);
}

.primary-button,
.icon-button,
.text-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  background: #f26fa8;
  color: #fff8fb;
  border-radius: 8px;
  padding: 12px 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.icon-button {
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.text-button {
  background: transparent;
  color: var(--gold);
  padding: 8px 2px;
}

.status-pill,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 800;
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.status-pill-good {
  color: var(--mint);
  border-color: rgba(78, 214, 167, 0.55);
}

.status-pill-warn {
  color: var(--gold);
  border-color: rgba(255, 198, 102, 0.6);
}

.status-pill-danger {
  color: var(--danger);
  border-color: rgba(255, 120, 147, 0.55);
}

.pill.ready {
  color: var(--mint);
  border-color: rgba(255, 143, 197, 0.5);
}

.pill.review {
  color: var(--gold);
  border-color: rgba(255, 79, 163, 0.5);
}

.pill.risk {
  color: var(--danger);
  border-color: rgba(255, 120, 147, 0.5);
}

.status-pill.risk {
  color: var(--danger);
  border-color: rgba(255, 120, 147, 0.5);
}

.stack-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.item-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.sponsor-folder-card,
.artist-folder-card {
  gap: 9px;
  padding: 12px;
}

.sponsor-folder-card h3,
.artist-folder-card h3 {
  margin-bottom: 4px;
}

.proposal-folder-card {
  gap: 8px;
  padding: 12px;
}

.proposal-folder-card h3 {
  margin-bottom: 4px;
}

.proposal-next-line {
  font-size: 0.92rem;
}

.compact-file-stack {
  gap: 8px;
  margin-top: 2px;
}

.mini-file-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-file-card-body {
  min-width: 0;
}

.mini-file-card h4 {
  margin: 2px 0 4px;
  font-size: 0.95rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mini-file-card p {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.file-cabinet-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.file-cabinet-row span {
  font-weight: 800;
}

.file-cabinet-row small {
  color: var(--muted);
}

.file-cabinet-row .file-open-link,
.item-card .file-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  margin-top: 4px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(242, 111, 168, 0.08);
  text-decoration: none;
}

.subject-research-banner {
  border-color: rgba(242, 111, 168, 0.35);
  background: rgba(242, 111, 168, 0.08);
}

.research-folder-card {
  gap: 9px;
  padding: 12px;
}

.research-folder-card h3 {
  margin-bottom: 4px;
}

.mini-source-drawer {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.mini-source-drawer summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 900;
}

.mini-source-drawer p {
  margin-top: 8px;
}

.mini-source-drawer textarea {
  width: 100%;
  margin-top: 8px;
}

.folder-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.folder-action-row .status-pill {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.folder-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.folder-status-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  padding: 4px 8px;
  text-transform: uppercase;
}

.item-card button {
  justify-self: start;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tabbar {
  position: fixed;
  right: 50%;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: min(100%, 760px);
  transform: translateX(50%);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: rgba(11, 12, 15, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 -12px 22px rgba(0, 0, 0, 0.24);
}

.tab {
  min-height: 60px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
}

.tab.active {
  color: var(--gold);
}

.more-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.menu-section {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.compact-more-grid {
  margin-top: 0;
}

.simple-more-menu {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.more-menu-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.more-menu-group summary {
  display: grid;
  gap: 5px;
  cursor: pointer;
  padding: 14px;
  list-style: none;
}

.more-menu-group summary::-webkit-details-marker {
  display: none;
}

.more-menu-group summary span {
  font-weight: 950;
  font-size: 1rem;
}

.more-menu-group summary small {
  color: var(--muted);
  line-height: 1.35;
}

.more-menu-group[open] summary {
  border-bottom: 1px solid var(--line);
  color: var(--gold);
}

.more-menu-group .more-grid {
  padding: 12px;
}

.brief-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.brief-focus-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.brief-focus-grid .brief-card {
  padding: 13px;
}

.brief-focus-grid h3 {
  margin: 0;
}

.brief-drawer-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.brief-drawer {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.brief-drawer summary {
  display: grid;
  gap: 5px;
  cursor: pointer;
  padding: 13px 14px;
}

.brief-drawer summary h3 {
  margin: 1px 0 0;
}

.brief-drawer summary small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.brief-drawer[open] summary {
  border-bottom: 1px solid var(--line);
}

.event-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.event-builder-grid > section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.compact-list-header {
  align-items: center;
  gap: 8px;
}

.compact-list-header .eyebrow {
  margin: 0;
}

.brief-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px;
}

.workforce-blueprint-grid {
  display: grid;
  gap: 10px;
}

.workforce-role-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.workforce-role-card h4 {
  margin: 0;
}

.workforce-role-card p {
  margin: 0;
}

.workforce-role-card details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.workforce-role-card summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 900;
}

.workforce-role-card .folder-status-row {
  margin-top: 2px;
}

.brief-notes-drawer {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brief-notes-drawer summary {
  cursor: pointer;
  padding: 12px 13px;
  color: var(--gold);
  font-weight: 900;
}

.brief-notes-drawer .brief-grid {
  margin-top: 0;
  padding: 0 12px 12px;
}

.brief-notes-drawer .brief-card {
  box-shadow: none;
}

.brief-list {
  display: grid;
  gap: 8px;
}

.simple-approval-list {
  gap: 6px;
}

.simple-approval-list .brief-point-list li {
  padding: 10px 12px;
}

.simple-approval-list .brief-point-list li::before {
  top: 14px;
}

.review-checklist {
  display: grid;
  gap: 8px;
}

.compact-review-checklist {
  gap: 7px;
}

.review-check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  padding: 10px 11px;
  text-align: left;
}

.review-check-row strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.22;
}

.review-check-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.review-check-box {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid var(--gold);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: inset 0 0 0 3px var(--panel);
}

.proposal-status-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.proposal-status-panel > p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.status-summary-grid {
  display: grid;
  gap: 8px;
}

.status-summary-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.status-summary-grid strong {
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.approval-checklist-item {
  gap: 10px;
}

.approval-check-content {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.approval-inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.compact-primary-button {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.proposal-decision-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.proposal-decision-row .primary-button:first-child,
.proposal-decision-row .primary-button:nth-child(2) {
  grid-column: 1 / -1;
}

.quiet-optional-card {
  opacity: 0.86;
}

.compact-hidden-lane {
  display: none;
}

@media (min-width: 720px) {
  .quick-confirm-actions {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .proposal-decision-row {
    grid-template-columns: 1fr 1fr;
  }

  .proposal-decision-row .primary-button:first-child,
  .proposal-decision-row .primary-button:nth-child(2) {
    grid-column: auto;
  }

  .status-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.brief-point-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-point-list li {
  position: relative;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  line-height: 1.42;
  padding: 9px 10px 9px 28px;
}

.brief-point-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.brief-point-list li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}

.brief-point-list .brief-more-line {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  padding-top: 4px;
  padding-bottom: 2px;
}

.brief-point-list .brief-more-line::before {
  background: var(--muted);
}

.brief-line {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.clean-bullet-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.clean-bullet-list li {
  color: var(--text);
  line-height: 1.4;
}

.muted-line {
  color: var(--muted);
}

.event-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.event-list-row {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}

.event-list-row h3,
.event-list-row p {
  margin: 0;
}

.event-list-row p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.3;
}

#screen-events {
  padding-bottom: 24px;
}

#screen-events .event-panel .item-card {
  border-radius: 8px;
}

.event-drawer-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sponsor-drawer-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.event-drawer {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.sponsor-drawer {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.event-drawer summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  padding: 13px 14px;
}

.sponsor-drawer summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  padding: 13px 14px;
}

.event-drawer summary span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.sponsor-drawer summary span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.event-drawer summary small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.sponsor-drawer summary small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.event-drawer[open] summary {
  border-bottom: 1px solid var(--line);
}

.sponsor-drawer[open] summary {
  border-bottom: 1px solid var(--line);
}

.connected-status-row span {
  border-color: rgba(187, 145, 65, 0.35);
  background: rgba(187, 145, 65, 0.12);
  color: var(--gold);
}

.connection-proof-line {
  margin: 8px 0 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.connection-picker {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(187, 145, 65, 0.28);
  border-radius: 8px;
  background: rgba(187, 145, 65, 0.08);
  padding: 10px;
}

.connection-picker label {
  margin: 0;
}

.drawer-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.lane-button {
  display: grid;
  gap: 4px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 11px 12px;
  text-align: left;
}

.lane-button span {
  font-size: 0.98rem;
  font-weight: 900;
}

.lane-button small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

dialog {
  width: min(94vw, 720px);
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.dialog-card {
  display: grid;
  gap: 15px;
  padding: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.check-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.clickable-check-row {
  align-items: flex-start;
}

.clickable-check-row .pill {
  color: var(--text);
  cursor: pointer;
}

.clickable-check-row .active-pill {
  border-color: var(--gold);
  color: var(--gold);
}

.check-action-stack {
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: max-content;
}

.compact-text-button {
  min-height: auto;
  padding: 2px 0;
  font-size: 0.75rem;
  text-transform: none;
}

.check-row:last-child {
  border-bottom: 0;
}

.generated-block {
  padding: 12px;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 79, 163, 0.035);
  padding: 18px;
  text-align: center;
}

@media (max-width: 560px) {
  .app-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .metric-grid,
  .detail-grid,
  .home-box-grid,
  .home-action-row {
    grid-template-columns: 1fr;
  }

  .tab {
    min-width: 0;
  }
}
