:root {
  color-scheme: dark;
  --bg: #090b10;
  --surface: #12161e;
  --surface-raised: #181d27;
  --surface-soft: #202737;
  --text: #f5f7fb;
  --muted: #9aa5b7;
  --line: #283143;
  --accent: #2764ff;
  --accent-strong: #3d75ff;
  --accent-soft: rgba(39, 100, 255, .16);
  --success: #41c879;
  --warning: #b68bff;
  --danger: #ff7186;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

/* Assistente contextual dos campos de pesquisa */
.ai-search-host { position: relative; display: flex; align-items: center; gap: 8px; }
.ai-search-host > input { min-width: 0; flex: 1; }
.ai-search-host > .ai-search-assist { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 42px; min-width: 42px; height: 36px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); cursor: pointer; font-size: 12px; font-weight: 800; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.ai-search-host > .ai-search-assist:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface-raised)); transform: translateY(-1px); }
.ai-search-assist span:first-child { font-size: 15px; line-height: 1; }
.ai-search-assist-label { font-size: 10px; letter-spacing: .04em; }
.place-search.ai-search-host { display: flex; align-items: center; gap: 8px; }
.place-search.ai-search-host .place-suggestions { left: 0; right: 46px; }
.budget-location-section > label.ai-search-host { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 8px; }
.budget-location-section > label.ai-search-host > span:first-child { grid-column: 1 / -1; }
.budget-location-section > label.ai-search-host > input { grid-column: 1; width: auto; }
.budget-location-section > label.ai-search-host > .ai-search-assist { grid-column: 2; grid-row: 2; }
.clients-list-card label.ai-search-host { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
.clients-list-card label.ai-search-host > .ai-search-assist { grid-column: 2; }
.composer.ai-search-host > .ai-search-assist { width: 42px; min-width: 42px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; }
.production-editor-form .ai-search-host > input { width: auto; }
.production-editor-form label.ai-search-host { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 8px; }
.production-editor-form label.ai-search-host > span:first-child { grid-column: 1 / -1; }
.production-editor-form label.ai-search-host > input { grid-column: 1; }
.production-editor-form label.ai-search-host > .ai-search-assist { grid-column: 2; grid-row: 2; }

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #eef2f8;
  --text: #131825;
  --muted: #647086;
  --line: #dce3ee;
  --accent: #1559ed;
  --accent-strong: #1559ed;
  --accent-soft: rgba(21, 89, 237, .10);
  --success: #138a4a;
  --warning: #7a44d6;
  --danger: #c62842;
  --shadow: 0 24px 70px rgba(32, 53, 92, .12);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.4; }
h1, h2, h3, strong, legend { font-family: inherit; font-weight: 600; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); background: radial-gradient(circle at 70% -20%, var(--accent-soft), transparent 36%), var(--bg); }
.sidebar { border-right: 1px solid var(--line); padding: 28px 18px 18px; display: flex; flex-direction: column; background: color-mix(in srgb, var(--bg) 88%, var(--surface)); }
.brand { color: var(--text); display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 24px; font-weight: 700; letter-spacing: -.9px; padding: 2px 8px 34px; }
.brand > span:last-child span { color: var(--accent-strong); }
.brand-mark { height: 31px; width: 31px; border-radius: 50%; background: conic-gradient(var(--accent) 0 15%, var(--surface-soft) 15% 32%, var(--accent) 32% 48%, var(--surface-soft) 48% 65%, var(--accent) 65% 81%, var(--surface-soft) 81%); }
.workspace-label, .eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; margin: 0; }
.workspace-label { margin: 0 10px 10px; }
.nav-list { display: grid; gap: 4px; }
.nav-list .nav-item[data-view="painel"] { order: 1; }
.nav-list .nav-item[data-view="geral"] { order: 0; }
.nav-list .nav-item[data-view="producoes"] { order: 2; }
.nav-list .nav-item[data-view="estudio"] { order: 3; }
.nav-list .nav-item[data-view="clientes"] { order: 4; }
.nav-list .nav-item[data-view="orcamentos"] { order: 5; }
.nav-list .nav-item[data-view="financeiro"] { order: 6; }
.nav-list .nav-item[data-view="agenda"] { order: 7; }
.nav-list .nav-item[data-view="equipamentos"] { order: 8; }
.nav-list .nav-item[data-view="planos"] { order: 9; }
.nav-item { border: 0; background: transparent; color: var(--muted); border-radius: 11px; padding: 11px 12px; text-align: left; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 11px; }
.nav-item span { color: var(--muted); font-size: 18px; width: 20px; text-align: center; }
.nav-item:hover, .nav-item.is-active { background: var(--accent-soft); color: var(--text); }
.nav-item.is-available { color: var(--text); }
.nav-item.is-available span { color: var(--accent-strong); }
.nav-item.is-active { box-shadow: inset 3px 0 0 var(--accent-strong); background: color-mix(in srgb, var(--accent-soft) 78%, var(--accent) 22%); }
.nav-item.is-locked { color: var(--muted); opacity: .7; }
.nav-item.is-active span { color: var(--accent-strong); }

.clients-layout { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(360px, 1.4fr); gap: 18px; align-items: start; }
.clients-list-card, .client-detail-card { min-height: 480px; }
.clients-list { display: grid; gap: 8px; margin-top: 14px; }
.client-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.client-row:hover, .client-row.is-active { background: var(--surface-soft); border-color: var(--line); }
.client-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.client-row strong, .client-row small { display: block; }
.client-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.clients-list-card .form-field { margin-top: 14px; }
.clients-list-card .form-control { min-height: 42px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 10px 13px; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.clients-list-card .form-control::placeholder { color: var(--muted); opacity: .9; }
.clients-list-card .form-control:hover { border-color: var(--accent-strong); background-color: var(--surface-soft); }
.clients-list-card .form-control:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.client-detail-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.client-detail-heading h2 { margin: 4px 0; }
.client-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.client-meta-grid > div { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.client-meta-grid small { color: var(--muted); font-size: 11px; }
.client-meta-grid strong { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.client-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.client-tab { border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 8px 10px; cursor: pointer; }
.client-tab:hover, .client-tab.is-active { color: var(--text); background: var(--accent-soft); }
.client-tab-content { display: grid; gap: 8px; }
.client-history-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface-soft); }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgb(0 0 0 / .62); }
.modal { width: min(720px, 100%); max-height: 90vh; overflow: auto; }
.client-form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.form-field input, .form-field textarea, .form-field select, .client-list-card .form-control { width: 100%; box-sizing: border-box; min-height: 42px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 10px 12px; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.form-field input::placeholder, .client-list-card .form-control::placeholder { color: var(--muted); opacity: .8; }
.form-field input:hover, .form-field textarea:hover, .client-list-card .form-control:hover { border-color: var(--accent-strong); background: var(--surface-soft); }
.form-field input:focus, .form-field textarea:focus, .client-list-card .form-control:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-field textarea { resize: vertical; min-height: 84px; }
.form-field select, .client-form select { min-height: 42px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 10px 38px 10px 12px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.form-field select:hover, .client-form select:hover { border-color: var(--accent-strong); background-color: var(--surface-soft); }
.form-field select:focus, .client-form select:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.modal-actions > span { flex: 1; }
.profile-personal-card form, .profile-business-card form { display: grid; gap: 12px; }
.profile-personal-card label, .profile-business-card label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.profile-personal-card input, .profile-business-card input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 9px 11px; }
.profile-personal-card input:focus, .profile-business-card input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .clients-layout { grid-template-columns: 1fr; } .clients-list-card, .client-detail-card { min-height: auto; } }
@media (max-width: 620px) { .client-meta-grid { grid-template-columns: 1fr; } }
.sidebar-footer { position: fixed; z-index: 25; left: 18px; bottom: 16px; width: 220px; border-top: 1px solid var(--line); padding-top: 12px; }
.production-status-control { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.production-status-control select { min-width: 170px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 10px 36px 10px 12px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.production-status-control select:hover, .production-status-control select:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.production-status-field { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.production-status-field select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 10px 36px 10px 12px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.profile-button { width: 100%; border: 0; background: transparent; color: var(--text); display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px; border-radius: 12px; }
.profile-button:hover { background: var(--surface-soft); }
.profile-button strong, .profile-button small { display: block; }
.profile-button strong { font-size: 14px; }
.profile-button small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #7851df); color: #fff; font-size: 13px; font-weight: 700; }

.main-content { min-width: 0; max-width: none; width: 100%; margin: 0 auto; padding: 0 48px 48px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: flex-end; }
.topbar-actions { display: flex; gap: 5px; }
.sync-indicator { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; margin-right: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); }
.sync-indicator > span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.sync-indicator small { font-size: 11px; font-weight: 700; }
.sync-indicator[data-state="synced"] { color: var(--success); }
.sync-indicator[data-state="synced"] > span { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 15%, transparent); }
.sync-indicator[data-state="syncing"], .sync-indicator[data-state="connecting"] { color: var(--accent-strong); }
.sync-indicator[data-state="syncing"] > span, .sync-indicator[data-state="connecting"] > span { background: var(--accent-strong); animation: sync-pulse 1s ease-in-out infinite; }
.sync-indicator[data-state="offline"], .sync-indicator[data-state="error"] { color: var(--warning); }
.sync-indicator[data-state="offline"] > span, .sync-indicator[data-state="error"] > span { background: var(--warning); }
@keyframes sync-pulse { 50% { opacity: .35; transform: scale(.72); } }
.notifications-wrap { position: relative; }
.notification-trigger { position: relative; }
.notification-badge { position: absolute; top: 2px; right: 1px; min-width: 15px; height: 15px; display: grid; place-items: center; border: 2px solid var(--bg); border-radius: 999px; background: var(--danger); color: #fff; font-size: 8px; font-weight: 700; line-height: 1; }
.notifications-popover { position: absolute; z-index: 50; top: 46px; right: 0; width: min(380px, calc(100vw - 36px)); padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.notifications-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.notifications-heading h2 { margin: 6px 0 0; }
.notifications-list { display: grid; gap: 8px; padding-top: 10px; max-height: 360px; overflow: auto; }
.notification-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; width: 100%; border: 1px solid transparent; border-radius: 11px; background: var(--surface-raised); color: var(--text); padding: 10px; text-align: left; }
.notification-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.notification-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); font-size: 14px; }
.notification-item strong, .notification-item small { display: block; }
.notification-item strong { font-size: 13px; line-height: 1.3; }
.notification-item small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.notifications-empty { color: var(--muted); font-size: 13px; margin: 7px 0 2px; text-align: center; }
.icon-button, .mobile-menu { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 10px; color: var(--muted); font-size: 18px; }
.icon-button:hover, .mobile-menu:hover { background: var(--surface-soft); color: var(--text); }
.mobile-menu { display: none; }
.view { display: none; }
.view.is-active { display: block; animation: appear .22s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 16px 0 28px; }
.page-heading.compact { align-items: center; }
.production-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.equipment-detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.equipment-remove-button { padding: 7px 10px; font-size: 12px; }
.equipment-maintenance-note { color: var(--warning) !important; font-size: 12px; margin-top: 8px !important; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.08; letter-spacing: -.04em; margin: 8px 0 9px; }
h2 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 0; }
.page-heading > div > p:last-child, .card > p { color: var(--muted); margin-bottom: 0; }
.primary-button, .secondary-button, .text-button { border: 0; font-weight: 700; transition: transform .16s ease, background .16s ease; }
.voice-field-wrap { position: relative; display: block; width: 100%; }
.composer .voice-field-wrap { flex: 1; display: flex; align-items: center; }
.voice-field-wrap > input, .voice-field-wrap > textarea { width: 100%; padding-right: 44px !important; }
.voice-field-button { position: absolute; z-index: 1; right: 8px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; transform: translateY(-50%); background: var(--accent-soft); color: var(--accent-strong); font-size: 14px; line-height: 1; padding: 0; }
.voice-field-wrap:has(textarea) .voice-field-button { top: 14px; transform: none; }
.voice-field-button:hover { background: color-mix(in srgb, var(--accent) 22%, var(--surface-soft)); }
.primary-button { background: var(--accent); color: #fff; border-radius: 11px; padding: 12px 17px; }
.primary-button:hover { background: var(--accent-strong); transform: translateY(-1px); }
.secondary-button { background: var(--surface-soft); color: var(--text); border-radius: 10px; padding: 10px 14px; }
.secondary-button:hover { background: var(--line); }
.destructive-button { border: 1px solid color-mix(in srgb, var(--danger) 48%, var(--line)); border-radius: 10px; background: transparent; color: var(--danger); font-weight: 700; padding: 10px 13px; }
.destructive-button:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.destructive-button:disabled { cursor: not-allowed; opacity: .45; }
.text-button { color: var(--accent-strong); background: transparent; padding: 0; font-size: 13px; }

.composer { height: 62px; border: 1px solid var(--line); border-radius: 16px; padding: 8px; background: var(--surface); display: flex; gap: 10px; box-shadow: var(--shadow); margin-bottom: 24px; }
.composer:focus-within { border-color: var(--accent); }
.composer input, .chat-composer input { min-width: 0; flex: 1; border: 0; background: transparent; color: var(--text); padding: 0 12px; outline: 0; }
.composer input { text-align: left; height: 44px; line-height: 44px; }
.composer input::placeholder, .chat-composer input::placeholder { color: var(--muted); }
.composer button { width: 46px; border: 0; border-radius: 11px; background: var(--accent); color: #fff; font-size: 20px; }
.quick-grid { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; margin-bottom: 32px; }
.quick-action { min-height: 140px; padding: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 15px; text-align: left; display: grid; align-content: start; gap: 8px; }
.quick-action:hover { background: var(--surface-raised); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); }
.quick-action > span { color: var(--accent-strong); font-size: 22px; }
.quick-action > span { transform: translateY(10px); }
.quick-action strong { font-size: 15px; }
.quick-action small { color: var(--muted); font-size: 12px; line-height: 1.4; }

.dashboard-grid { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.dashboard-grid > .content-section { grid-column: 1 / span 3; }
.dashboard-side-stack { min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 16px; }
.dashboard-grid > .dashboard-side-stack { grid-column: 4; }
.dashboard-side-stack .departure-card { flex: 1 1 auto; min-height: 0; }
.dashboard-side-stack .dashboard-all-productions { flex: 0 0 auto; margin-top: 0; }
.content-section { min-width: 0; }
.dashboard-production-summary { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.dashboard-production-summary .section-heading { margin-bottom: 14px; }
.dashboard-production-summary .production-list { margin-bottom: 0; gap: 10px; }
.dashboard-all-productions { width: 100%; margin-top: 12px; padding: 14px 16px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-align: left; box-shadow: var(--shadow); transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.dashboard-all-productions:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: var(--surface-raised); transform: translateY(-1px); }
.dashboard-all-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); font-size: 15px; }
.dashboard-all-productions strong, .dashboard-all-productions small { display: block; }
.dashboard-all-productions strong { font-size: 14px; }
.dashboard-all-productions small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.dashboard-all-arrow { color: var(--accent-strong); font-size: 20px; }
.section-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 12px; }
.count-badge, .status, .progress-label { display: inline-flex; width: max-content; white-space: nowrap; align-items: center; border-radius: 999px; padding: 5px 8px; font-size: 11px; font-weight: 700; }
.count-badge { background: var(--surface-soft); color: var(--muted); }
.production-list { display: grid; gap: 9px; margin-bottom: 16px; }
.all-productions { margin-bottom: 20px; }
.all-productions .section-heading { margin-bottom: 16px; }
.all-productions .eyebrow { margin-bottom: 4px; }
.production-manager-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.production-manager-card { min-height: 70px; }
.production-card.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.production-card { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 14px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; text-align: left; }
.production-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: var(--surface-raised); }
.production-thumb, .mini-thumb { display: block; border-radius: 10px; background: linear-gradient(145deg, #1d6bd6, #0e1c38 64%); background-position: center; background-size: cover; }
.production-thumb { width: 48px; height: 48px; }
.thumb-hotel { background-image: url('assets/cover-coast-hospitality.png'); }
.thumb-editorial { background-image: url('assets/cover-real-estate-premium.png'); }
.production-info { min-width: 0; }
.production-info strong, .production-info small { display: block; }
.production-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.production-info small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.status.in-progress { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); }
.status.planned { color: var(--accent-strong); background: var(--accent-soft); }
.status.confirmed { color: var(--success); background: color-mix(in srgb, var(--success) 13%, transparent); }
.status.late { color: #d85c6a; background: color-mix(in srgb, #d85c6a 13%, transparent); }
.status.ended { color: var(--muted); background: var(--surface-soft); }
.departure-card, .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.departure-card { padding: 22px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 19%, var(--surface)), var(--surface)); display: flex; flex-direction: column; }
.departure-card h2 { font-size: 36px; margin: 9px 0 4px; letter-spacing: -.05em; }
.departure-card > p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.departure-detail { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding: 13px 0 0; margin-top: 11px; }
.departure-detail span { font-weight: 700; font-size: 14px; }
.departure-detail small { color: var(--muted); font-size: 11px; }
.departure-card .secondary-button { margin-top: auto; }

.production-hero { min-height: 240px; border-radius: 17px; position: relative; overflow: hidden; background-image: linear-gradient(180deg, rgba(7, 10, 16, .06), rgba(7, 10, 16, .7)), url('assets/cover-real-estate-premium.png'); background-position: center; background-size: cover; margin-bottom: 20px; }
.production-hero::before, .production-hero::after { display: none; }
.production-hero span { position: absolute; left: 18px; bottom: 16px; z-index: 1; border-radius: 99px; padding: 6px 9px; background: rgba(7, 10, 15, .7); color: #fff; font-size: 12px; }
.production-layout, .planning-layout, .checklist-layout, .assistant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.production-editor-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 940px; }
.production-editor-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.production-editor-form input, .production-editor-form select, .production-editor-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 11px 12px; resize: vertical; }
.production-editor-form input:focus, .production-editor-form select:focus, .production-editor-form textarea:focus { border-color: var(--accent); }
.service-description-field { grid-column: 1 / -1; }
.production-editor-form .editor-help, .production-editor-form .primary-button { grid-column: 1 / -1; }
.production-editor-form .editor-help { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.production-editor-form .primary-button { width: max-content; }
.travel-estimate-field { grid-column: 1 / -1; }
.travel-estimate-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.travel-estimate-control input[readonly] { color: var(--accent-strong); background: var(--accent-soft); }
.location-search-field { position: relative; }
.place-search { position: relative; display: block; }
.place-suggestions { position: absolute; z-index: 12; top: calc(100% + 6px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.place-suggestion { display: grid; width: 100%; gap: 3px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); padding: 11px 12px; text-align: left; }
.place-suggestion:first-child { border-top: 0; }
.place-suggestion:hover { background: var(--accent-soft); }
.place-suggestion strong { font-size: 13px; }
.place-suggestion small { color: var(--muted); font-size: 11px; }
.route-source { display: inline-flex; align-items: center; min-height: 20px; margin-left: 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 600; padding: 2px 7px; vertical-align: middle; }
.route-source.is-live { border-color: color-mix(in srgb, var(--success) 45%, var(--line)); background: color-mix(in srgb, var(--success) 10%, transparent); color: var(--success); }
.route-source.is-loading { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); color: var(--accent-strong); }
.card { padding: 20px; }
.tool-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 26px; }
.tool-row button { min-height: 69px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-raised); color: var(--text); font-size: 11px; display: grid; place-items: center; gap: 4px; }
.tool-row button span { color: var(--accent-strong); font-size: 19px; }
.tool-row button:hover { border-color: var(--accent); }
.tool-row .destructive-tool-button { color: var(--danger); }
.tool-row .destructive-tool-button span { color: var(--danger); }
.tool-row .destructive-tool-button:hover { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--surface-raised)); }
.detail-rows { margin: 0; display: grid; }
.detail-rows div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.detail-rows dt { color: var(--muted); font-size: 13px; }
.detail-rows dd { margin: 0; text-align: right; font-size: 13px; }
.workflow-card { display: flex; flex-direction: column; }
.workflow-card h2 { font-size: 20px; margin: 7px 0 14px; }
.workflow-card > p:last-of-type { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 22px; }
.workflow-card .primary-button { margin-top: auto; }
.compatibility { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: conic-gradient(var(--accent) var(--compatibility-score, 94%), var(--surface-soft) 0); margin: 0 0 17px; }
.compatibility::before { content: ""; width: 84px; height: 84px; background: var(--surface); border-radius: inherit; grid-area: 1 / 1; }
.compatibility span, .compatibility small { grid-area: 1 / 1; z-index: 1; }
.compatibility span { font-weight: 800; font-size: 23px; margin-top: -11px; }
.compatibility small { color: var(--muted); font-size: 10px; margin-top: 27px; }

.script-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.script-toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }
.script-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.script-filters button { border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); padding: 6px 10px; font-size: 12px; }
.script-filters button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.shot-list { display: grid; }
.shot-row { display: grid; grid-template-columns: 20px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 67px; border-top: 1px solid var(--line); color: var(--text); cursor: pointer; }
.shot-row.is-filtered-out { display: none; }
.shot-row input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; }
.shot-index { color: var(--muted); font-size: 12px; font-weight: 700; }
.shot-copy { min-width: 0; }
.shot-copy strong, .shot-copy small { display: block; }
.shot-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.shot-copy small { color: var(--muted); margin-top: 4px; font-size: 11px; }
.shot-row input:checked ~ .shot-copy strong { color: var(--muted); text-decoration: line-through; }
.shot-tag { border-radius: 999px; padding: 4px 7px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 700; }
.add-shot-form { display: flex; gap: 9px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.add-shot-form input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 10px 12px; }
.add-shot-form input:focus { border-color: var(--accent); }
.script-summary { align-self: start; display: flex; flex-direction: column; }
.script-summary h2 { margin: 8px 0 12px; }
.script-summary textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 11px 12px; resize: vertical; }
.script-summary textarea:focus { border-color: var(--accent); }
.script-summary .secondary-button { margin: 10px 0 12px; }
.script-summary ol { color: var(--muted); margin: 0; padding-left: 19px; font-size: 13px; line-height: 1.7; }
.script-summary .primary-button { margin-top: 18px; }

.file-card { max-width: 860px; }
.file-list { display: grid; }
.file-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 70px; border-top: 1px solid var(--line); }
.file-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--accent-strong); background: var(--accent-soft); }
.file-row strong, .file-row small { display: block; }
.file-row strong { font-size: 14px; }
.file-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.checklist-card, .preproduction-card { min-width: 0; }
.checklist { display: grid; }
.checklist label { display: grid; grid-template-columns: 21px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; color: var(--text); border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.checklist label:first-child { border-top: 0; }
.checklist input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.checklist small { color: var(--muted); font-size: 11px; }
.checklist-heading-actions { display: flex; align-items: center; gap: 12px; }
.progress-label { background: var(--accent-soft); color: var(--accent-strong); }
.preproduction-card { align-self: start; }
.preproduction-card .primary-button { margin-top: 20px; width: 100%; }
.production-equipment-list { display: grid; gap: 14px; }
.production-equipment-card { padding: 0; overflow: hidden; }
.production-equipment-card.is-selected { border-color: var(--accent); }
.production-equipment-selector { display: grid; grid-template-columns: 21px 44px minmax(0, 1fr); align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; }
.production-equipment-selector input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.production-equipment-selector strong, .production-equipment-selector small { display: block; }
.production-equipment-selector strong { font-size: 15px; }
.production-equipment-selector small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.production-equipment-accessories { display: grid; margin: 0 20px 16px 77px; }
.production-equipment-accessories > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid var(--line); }
.production-equipment-accessories strong, .production-equipment-accessories small { display: block; }
.production-equipment-accessories strong { font-size: 13px; }
.production-equipment-accessories small { color: var(--muted); font-size: 11px; margin-top: 4px; }

.timeline { display: grid; padding: 5px 0; }
.timeline > div { display: grid; grid-template-columns: 90px 26px minmax(0, 1fr); min-height: 76px; gap: 15px; }
.timeline time { color: var(--muted); text-align: right; font-size: 13px; padding-top: 1px; }
.timeline span { position: relative; width: 2px; background: var(--line); margin: 4px auto 0; }
.timeline span::before { content: ""; position: absolute; top: 0; left: -5px; width: 10px; height: 10px; border: 2px solid var(--accent); background: var(--surface); border-radius: 50%; }
.timeline > div:last-child span { background: transparent; }
.timeline p { margin: 0; display: grid; align-content: start; gap: 4px; font-size: 14px; }
.timeline small { color: var(--muted); font-size: 12px; }
.margin-card { align-self: start; }
.margin-card h2 { font-size: 30px; margin: 9px 0; }
.margin-card > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.5; }
.margin-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 20px 0; }
.margin-buttons button { border: 1px solid var(--line); color: var(--muted); background: transparent; border-radius: 9px; padding: 9px 4px; font-size: 12px; }
.margin-buttons button.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }
.trust-note { border-top: 1px solid var(--line); padding-top: 14px; font-size: 12px !important; }

.calendar-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 9px; color: var(--muted); font-size: 13px; }
.calendar-navigation input { border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 9px 10px; font: inherit; }
.calendar-navigation input:focus { border-color: var(--accent); }
.calendar-view-switch { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--surface-soft); }
.calendar-view-switch button { border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; padding: 7px 9px; }
.calendar-view-switch button.is-active { background: var(--surface-raised); color: var(--text); }
.weekly-calendar { max-height: 770px; overflow: auto; padding: 0; scroll-behavior: smooth; }
.calendar-week { display: grid; grid-template-columns: 58px repeat(7, minmax(122px, 1fr)); grid-template-rows: 49px 1440px; min-width: 910px; }
.calendar-corner, .calendar-day-heading { position: sticky; top: 0; z-index: 4; border-bottom: 1px solid var(--line); background: var(--surface); }
.calendar-day-heading { display: grid; align-content: center; gap: 3px; padding: 0 12px; }
.calendar-day-heading strong { font-size: 13px; }
.calendar-day-heading small { color: var(--muted); font-size: 11px; }
.calendar-day-heading.is-today { box-shadow: inset 0 -2px 0 var(--accent); background: var(--accent-soft); }
.calendar-day-heading.is-today strong { color: var(--accent-strong); }
.calendar-time-column { position: relative; border-right: 1px solid var(--line); }
.calendar-time { position: absolute; right: 9px; color: var(--muted); font-size: 11px; transform: translateY(-7px); }
.calendar-column { position: relative; border-right: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0 29px, color-mix(in srgb, var(--line) 55%, transparent) 29px 30px, transparent 30px 59px, var(--line) 59px 60px); }
.calendar-column.is-today { background-color: color-mix(in srgb, var(--accent) 4%, transparent); }
.calendar-column:last-child { border-right: 0; }
.calendar-focus-range { position: absolute; z-index: 0; left: 0; right: 0; background: color-mix(in srgb, var(--accent) 5%, transparent); border-top: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); pointer-events: none; }
.calendar-slot { position: absolute; z-index: 1; left: 0; right: 0; height: 30px; border: 0; background: transparent; color: transparent; }
.monthly-calendar { max-height: 760px; padding: 0; overflow: auto; background: transparent; }
.monthly-calendar.card { border: 1px solid var(--line); box-shadow: none; }
.monthly-grid { display: grid; grid-template-columns: repeat(7, minmax(122px, 1fr)); min-width: 854px; }
.monthly-weekday { position: sticky; top: 0; z-index: 2; color: var(--text); border: 0; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; padding: 14px 12px 10px; text-align: left; }
.monthly-day { min-height: 128px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px; background-color: var(--surface); color: var(--text); text-align: left; transition: background-color .16s ease; }
.monthly-day:hover { background-color: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.monthly-day:nth-child(7n) { border-right: 0; }
.monthly-day.is-outside { color: var(--muted); opacity: .52; }
.monthly-day.is-today { background-color: var(--accent-soft); box-shadow: inset 0 2px 0 var(--accent); }
.monthly-day strong { display: block; font-size: 13px; margin-bottom: 9px; }
.monthly-production { display: block; overflow: hidden; margin-top: 5px; border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); border-radius: 7px; background: color-mix(in srgb, var(--accent) 11%, var(--surface)); color: var(--text); font-size: 11px; font-weight: 600; padding: 5px 6px; text-overflow: ellipsis; white-space: nowrap; }
.monthly-production.is-in-progress { border-color: color-mix(in srgb, var(--warning) 48%, var(--line)); background: color-mix(in srgb, var(--warning) 13%, var(--surface)); }
.monthly-production.is-late { border-color: color-mix(in srgb, #d85c6a 48%, var(--line)); background: color-mix(in srgb, #d85c6a 12%, var(--surface)); }
.monthly-production.is-ended { border-color: var(--line); background: var(--surface-soft); color: var(--muted); }
.monthly-more { display: block; margin-top: 7px; color: var(--accent-strong); font-size: 11px; font-weight: 600; }
.calendar-slot:hover { background: var(--accent-soft); color: var(--accent-strong); }
.calendar-slot.is-drop-target { z-index: 4; background: color-mix(in srgb, var(--accent) 24%, transparent); box-shadow: inset 0 0 0 2px var(--accent-strong); }
.calendar-slot:hover::after { content: "+ Agendar"; display: block; color: var(--accent-strong); font-size: 11px; }
.calendar-event { position: absolute; z-index: 2; left: 6px; right: 6px; cursor: grab; touch-action: none; user-select: none; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 66%, var(--line)); border-radius: 9px; padding: 8px; text-align: left; background: color-mix(in srgb, var(--accent) 21%, var(--surface)); color: var(--text); }
.calendar-event:active { cursor: grabbing; }
.calendar-event.is-dragging { z-index: 6; cursor: grabbing; opacity: .42; transform: scale(.985); }
body.is-weekly-calendar-dragging, body.is-weekly-calendar-dragging * { cursor: grabbing !important; }
body.is-weekly-calendar-dragging .calendar-slot.is-drop-target::after { content: "Soltar aqui"; display: block; color: var(--accent-strong); font-size: 11px; font-weight: 700; }
.calendar-event:hover, .calendar-event.is-selected { border-color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 32%, var(--surface)); }
.calendar-travel-event { position: absolute; z-index: 2; left: 12px; right: 12px; overflow: hidden; border: 1px dashed color-mix(in srgb, var(--warning) 50%, var(--line)); border-radius: 8px; padding: 7px; text-align: left; background: color-mix(in srgb, var(--warning) 8%, transparent); color: var(--text); }
.calendar-travel-event:hover, .calendar-travel-event.is-selected { border-color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); }
.calendar-event strong, .calendar-event small, .calendar-travel-event strong, .calendar-travel-event small { display: block; }
.calendar-event strong { font-size: 11px; line-height: 1.25; }
.calendar-event small, .calendar-travel-event small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.calendar-travel-event strong { color: var(--warning); font-size: 10px; line-height: 1.2; }
.calendar-transfer-event { position: absolute; z-index: 3; left: 18px; right: 18px; overflow: hidden; border: 1px dashed color-mix(in srgb, var(--success) 58%, var(--line)); border-radius: 8px; padding: 7px; text-align: left; background: color-mix(in srgb, var(--success) 9%, transparent); color: var(--text); }
.calendar-transfer-event:hover { border-color: var(--success); background: color-mix(in srgb, var(--success) 15%, transparent); }
.calendar-transfer-event.is-conflict { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.calendar-transfer-event strong, .calendar-transfer-event small { display: block; }
.calendar-transfer-event strong { color: var(--success); font-size: 10px; line-height: 1.2; }
.calendar-transfer-event.is-conflict strong { color: var(--danger); }
.calendar-transfer-event small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.calendar-resize-handle { position: absolute; right: 0; bottom: 0; left: 0; height: 11px; cursor: ns-resize; background: linear-gradient(to bottom, transparent 45%, color-mix(in srgb, var(--text) 48%, transparent) 45% 55%, transparent 55%); }
.calendar-event:hover .calendar-resize-handle { background: linear-gradient(to bottom, transparent 38%, var(--accent-strong) 38% 62%, transparent 62%); }
.agenda-transitions-card { margin-top: 20px; }
.agenda-transition-list { display: grid; }
.agenda-transition-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; border-top: 1px solid var(--line); }
.agenda-transition-row strong, .agenda-transition-row small { display: block; }
.agenda-transition-row strong { font-size: 13px; }
.agenda-transition-row small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.transition-balance { flex: 0 0 auto; border-radius: 999px; background: color-mix(in srgb, var(--success) 11%, transparent); color: var(--success); font-size: 11px; font-weight: 700; padding: 6px 8px; }
.transition-balance.is-conflict { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.agenda-transition-empty { color: var(--muted); font-size: 13px; margin: 2px 0 0; }

.equipment-grid, .settings-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.maintenance-alerts { margin-bottom: 18px; }
#maintenance-list { display: grid; }
.maintenance-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding: 12px 0; }
.maintenance-row strong, .maintenance-row small { display: block; }
.maintenance-row small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.maintenance-row .secondary-button { flex: 0 0 auto; padding: 8px 10px; font-size: 12px; }
.inventory-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.inventory-filters button { border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; padding: 7px 10px; }
.inventory-filters button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.equipment-grid .card { min-height: 202px; display: flex; flex-direction: column; align-items: flex-start; }
.equipment-card { border: 1px solid var(--line); color: var(--text); cursor: pointer; text-align: left; }
.equipment-card:hover, .equipment-card.is-selected { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.equipment-card[draggable="true"] { cursor: grab; }
.equipment-card.is-dragging { opacity: .45; transform: scale(.98); }
.equipment-card.is-drop-target { border-color: var(--accent-strong); box-shadow: 0 0 0 2px var(--accent-soft); }
.production-presets { display: grid; gap: 14px; margin-bottom: 18px; }
.production-presets .section-heading { margin-bottom: 0; }
.production-presets-help { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.production-preset-list { display: grid; gap: 8px; }
.production-preset-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; background: var(--surface-raised); transition: border-color .16s ease, background .16s ease; }
.production-preset-option:hover, .production-preset-option.is-active { border-color: var(--accent); background: var(--accent-soft); }
.production-preset-choice { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.production-preset-choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent-strong); }
.production-preset-choice strong, .production-preset-choice small { display: block; }
.production-preset-choice strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.production-preset-choice small { color: var(--muted); margin-top: 3px; font-size: 11px; }
.production-preset-remove { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--danger); font-size: 20px; line-height: 1; padding: 0; }
.production-preset-remove:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.production-preset-create { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.production-preset-create label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.production-preset-create input { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 10px 11px; }
.production-preset-create input:focus { border-color: var(--accent); }
.equipment-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--accent-strong); background: var(--accent-soft); font-size: 22px; }
.equipment-grid h2 { font-size: 16px; margin: 17px 0 6px; }
.equipment-grid p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.equipment-grid .status { margin-top: auto; }
.equipment-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; }
.equipment-config-form { display: grid; gap: 16px; }
.equipment-library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--surface-raised) 72%, transparent); }
.equipment-library-grid label { min-width: 0; }
.equipment-library-wide { grid-column: 1 / -1; }
.equipment-config-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.equipment-config-form input, .equipment-config-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 11px 12px; resize: vertical; }
.equipment-config-form input:focus, .equipment-config-form textarea:focus { border-color: var(--accent); }
.equipment-maintenance-editor { display: grid; gap: 10px; }
.equipment-maintenance-heading { display: grid; gap: 3px; color: var(--text); font-size: 12px; font-weight: 600; }
.equipment-maintenance-heading small { color: var(--muted); font-size: 11px; font-weight: 400; }
.equipment-maintenance-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 26px; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--accent) 15%, var(--line)); }
.equipment-maintenance-row input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--accent-strong); }
.equipment-maintenance-row input[type="text"], .equipment-maintenance-add input { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 9px 10px; font-family: inherit; font-size: 13px; font-weight: 400; }
.equipment-maintenance-row.is-done input[type="text"] { color: var(--muted); text-decoration: line-through; }
.equipment-maintenance-remove { width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--danger); font-size: 19px; line-height: 1; padding: 0; }
.equipment-maintenance-remove:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.equipment-maintenance-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border-top: 1px solid color-mix(in srgb, var(--accent) 15%, var(--line)); padding-top: 11px; }
.equipment-maintenance-add input:focus, .equipment-maintenance-row input[type="text"]:focus { border-color: var(--accent); }
.equipment-config-form select, .profile-company-card select, .budget-builder-card select { font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; }
.profile-company-card select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
select option { font-family: inherit; font-size: 13px; font-weight: 400; background: var(--surface); color: var(--text); }
.equipment-filter-fieldset { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }
.equipment-filter-fieldset legend { padding: 0 5px; font-size: 12px; font-weight: 600; }
.equipment-filter-fieldset label { display: inline-flex; grid-template-columns: none; align-items: center; gap: 6px; color: var(--text); font-size: 12px; font-weight: 500; }
.equipment-filter-fieldset input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent-strong); }
.equipment-config-form .primary-button { width: max-content; }
.equipment-save-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#equipment-autosave-status { color: var(--muted); font-size: 12px; }
.equipment-allocation-card { align-self: start; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface)); }
.equipment-allocation-card h2 { margin: 8px 0 8px; }
.equipment-allocation-card > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.5; }
.equipment-accessory-list { display: grid; gap: 8px; margin: 18px 0; }
.equipment-accessory-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); border-radius: 12px; padding: 10px 12px; background: color-mix(in srgb, var(--surface-raised) 88%, var(--accent)); }
.inventory-accessory-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 72px 30px; align-items: center; gap: 8px; min-height: 66px; padding: 9px 10px; border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--surface-raised) 92%, var(--accent)); }
.equipment-accessory-marker { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); font-size: 14px; }
.inventory-accessory-name, .inventory-accessory-quantity { min-width: 0; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 8px 9px; }
.inventory-accessory-name:focus, .inventory-accessory-quantity:focus { border-color: var(--accent); }
.inventory-accessory-remove { border: 0; background: transparent; color: var(--danger); font-size: 20px; padding: 4px; }
.accessory-compatibility { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.accessory-compatibility summary { cursor: pointer; padding: 2px 0 5px; }
.accessory-compatibility-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; padding: 7px 0 2px; }
.accessory-compatibility-list label { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 12px; }
.accessory-compatibility-list input { accent-color: var(--accent-strong); }
.equipment-accessory-row:first-child { border-top: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); }
.equipment-accessory-row > span:first-child { min-width: 0; }
.equipment-accessory-row strong, .equipment-accessory-row small { display: block; }
.equipment-accessory-row strong { font-size: 13px; }
.equipment-accessory-row small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.allocation-stepper { display: inline-grid; grid-template-columns: 30px auto 30px; align-items: center; gap: 5px; flex: 0 0 auto; }
.allocation-stepper button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-raised); font-size: 18px; line-height: 1; }
.allocation-stepper button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); }
.allocation-stepper button:disabled { cursor: not-allowed; opacity: .35; }
.allocation-stepper output { min-width: 34px; color: var(--text); font-size: 12px; font-weight: 700; text-align: center; }
.equipment-allocation-card .allocation-stepper button { display: none; }
.add-accessory-form { display: grid; grid-template-columns: minmax(0, 1fr) 62px auto; gap: 8px; border-top: 0; padding-top: 8px; }
.add-accessory-form input { min-width: 0; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 9px 10px; }
.add-accessory-form input:focus { border-color: var(--accent); }

.budget-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; align-items: start; }
.budget-builder-card { display: grid; gap: 18px; }
.budget-production-selector { display: grid; gap: 7px; }
.budget-production-selector label, .budget-name-field, .budget-add-form label, .budget-settings label { color: var(--muted); display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.budget-production-selector select, .budget-name-field input, .budget-add-form input, .budget-add-form select, .budget-settings input, .budget-settings textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 10px 11px; }
.budget-production-selector select:focus, .budget-name-field input:focus, .budget-add-form input:focus, .budget-add-form select:focus, .budget-settings input:focus, .budget-settings textarea:focus { border-color: var(--accent); }
.budget-context, .budget-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.budget-context { padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.budget-context > span:last-child { min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.budget-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.budget-actions > button { flex: 1 1 220px; }
.page-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.budget-toolbar { font-size: 12px; color: var(--muted); }
.budget-location-section { display: grid; gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 17px 0; }
.budget-location-section > label, .budget-travel-controls > label { color: var(--muted); display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.budget-location-section input { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 10px 11px; }
.budget-location-section input:focus { border-color: var(--accent); }
.budget-location-section > p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0; }
.budget-travel-controls { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.budget-travel-toggle { align-self: center; display: flex !important; align-items: center; gap: 8px; padding-bottom: 9px; color: var(--text) !important; font-weight: 600 !important; }
.budget-travel-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent-strong); }
#budget-travel-cost { color: var(--accent-strong); padding-bottom: 10px; white-space: nowrap; }
.budget-equipment-section { border-top: 1px solid var(--line); padding-top: 17px; }
.budget-equipment-section > p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 7px 0 10px; }
.budget-equipment-list { display: grid; border-top: 1px solid var(--line); }
.budget-equipment-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 98px 82px 72px 104px; align-items: center; gap: 10px; min-height: 58px; border-bottom: 1px solid var(--line); }
.budget-equipment-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent-strong); }
.budget-equipment-row strong, .budget-equipment-row small { display: block; }
.budget-equipment-row strong { font-size: 13px; }
.budget-equipment-row small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.budget-equipment-rate { color: var(--muted); font-size: 12px; text-align: right; }
.budget-equipment-row input[type="number"] { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 8px; }
.budget-equipment-row input[type="number"]:focus { border-color: var(--accent); }
.budget-daily-toggle { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.budget-daily-toggle input { width: 15px !important; height: 15px !important; margin: 0; }
.budget-equipment-total { color: var(--accent-strong); font-size: 12px; font-weight: 700; text-align: right; }
.budget-items { display: grid; border-top: 1px solid var(--line); }
.budget-item { display: grid; grid-template-columns: minmax(0, 1fr) 74px 118px 28px; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.budget-item strong, .budget-item small { display: block; }
.budget-item strong { font-size: 13px; }
.budget-item small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.budget-item input { min-width: 0; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 8px; }
.budget-item input:focus { border-color: var(--accent); }
.budget-item-remove { border: 0; color: var(--danger); background: transparent; font-size: 20px; line-height: 1; padding: 3px; }
.budget-items-empty { color: var(--muted); font-size: 13px; margin: 0; padding: 14px 0; }
.budget-add-form { display: grid; grid-template-columns: minmax(0, 1fr) 92px 68px 120px auto; align-items: end; gap: 9px; padding-top: 4px; }
.budget-add-form .primary-button { align-self: end; white-space: nowrap; }
.budget-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 4px; }
.budget-settings .budget-notes { grid-column: 1 / -1; }
.budget-settings textarea { resize: vertical; }
.budget-builder-card > .primary-button { width: max-content; }
.budget-proposal { position: sticky; top: 20px; }
.budget-proposal h2 { margin: 8px 0 5px; }
.budget-proposal > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.proposal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; border-top: 1px solid var(--line); padding: 14px 0; color: var(--muted); font-size: 12px; }
.proposal-lines { display: grid; border-top: 1px solid var(--line); }
.proposal-line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.proposal-line small { color: var(--muted); display: block; font-size: 11px; margin-top: 3px; }
.proposal-total { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; padding: 16px 0 12px; font-size: 13px; }
.proposal-total > span { color: var(--muted); }
.proposal-total-label, .proposal-total-value { border-top: 1px solid var(--line); padding-top: 13px; color: var(--text) !important; font-size: 16px; }
.proposal-total-value { color: var(--accent-strong) !important; }
.proposal-notes { border-top: 1px solid var(--line); margin: 4px 0 10px; padding-top: 14px; white-space: pre-wrap; }
.budget-proposal > small { color: var(--muted); font-size: 11px; }

.chat { min-height: 390px; display: flex; flex-direction: column; gap: 14px; }
.message { max-width: 76%; border-radius: 14px; padding: 12px 13px; font-size: 14px; line-height: 1.45; }
.message.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.message.assistant { align-self: flex-start; background: var(--surface-soft); color: var(--text); border-bottom-left-radius: 4px; }
.assistant-actions { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; max-width: 82%; }
.assistant-action-button { border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line)); border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); padding: 7px 10px; font-size: 11px; font-weight: 600; }
.assistant-action-button:hover { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); border-color: var(--accent); }
.message.is-thinking { color: var(--muted); animation: assistant-thinking 1.15s ease-in-out infinite alternate; }
@keyframes assistant-thinking { from { opacity: .58; } to { opacity: 1; } }
.created-production { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line); background: var(--surface-raised); padding: 10px; border-radius: 12px; }
.mini-thumb { width: 44px; height: 44px; background: linear-gradient(145deg, #3186c6, #151b2a); }
.created-production strong, .created-production small { display: block; }
.created-production small { color: var(--muted); margin-top: 3px; font-size: 11px; }
.assistant-side { align-self: start; }
.assistant-side ul { padding-left: 18px; color: var(--muted); line-height: 1.7; font-size: 13px; }
.chat-composer { max-width: 820px; min-height: 59px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); padding: 8px; margin-top: 20px; }
.chat-composer:focus-within { border-color: var(--accent); }
.chat-auto-indicator { flex: 0 0 auto; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 11px; font-weight: 700; padding: 7px 9px; }
.assistant-disclaimer { color: var(--muted); font-size: 12px; margin-top: 11px; }
.settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings-grid .card { min-height: 176px; display: flex; flex-direction: column; align-items: flex-start; }
.profile-sync-card { gap: 12px; }
.profile-sync-card form { width: 100%; display: grid; gap: 10px; }
.profile-sync-card label { display: grid; gap: 6px; width: 100%; color: var(--muted); font-size: 12px; }
.profile-sync-card input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 9px 11px; }
.profile-sync-card input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.sync-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sync-profile-status { margin: 0; color: var(--muted); font-size: 13px; }
.sync-forgot-password { justify-self: start; margin-top: 2px; }
.password-reset-dialog { text-align: left; }
.password-reset-dialog h2 { margin-right: 34px; }
.password-reset-copy { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.password-reset-dialog form { display: grid; gap: 12px; }
.password-reset-dialog label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.password-reset-dialog input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; outline: 0; padding: 10px 12px; color: var(--text); background: var(--surface-raised); }
.password-reset-dialog input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.settings-grid h2 { font-size: 16px; }
.settings-grid p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.settings-grid button { margin-top: auto; }
.profile-operation-card form, .profile-company-card form { display: grid; gap: 11px; width: 100%; margin-top: 13px; }
.profile-operation-card label, .profile-company-card label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.profile-operation-card input, .profile-company-card input, .profile-company-card select { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 9px 10px; }
.profile-operation-card input:focus, .profile-company-card input:focus, .profile-company-card select:focus { border-color: var(--accent); }
.profile-company-card .trust-note { margin-top: 13px; }
.voice-assistant-button { position: fixed; z-index: 26; left: 28px; right: auto; bottom: 105px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border: 1px solid color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--accent), #5946d9); box-shadow: 0 16px 32px color-mix(in srgb, var(--accent) 28%, transparent); font-size: 13px; font-weight: 700; }
.voice-assistant-button:hover { transform: translateY(-2px); }
.plans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; min-height: 390px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.plan-card h2 { margin: 5px 0 10px; font-size: 22px; }
.plan-card-featured { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); box-shadow: 0 18px 38px color-mix(in srgb, var(--accent) 12%, transparent); }
.plan-card-selected { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-selected-badge { position: absolute; top: 13px; right: 13px; display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--success) 46%, transparent); border-radius: 999px; color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.plan-card-featured .plan-selected-badge { top: 38px; }
.plan-card-selected .plan-action { background: color-mix(in srgb, var(--success) 16%, var(--surface-raised)); color: var(--success); }
.plan-ribbon { position: absolute; top: 13px; right: 13px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.plan-price { margin: 0; color: var(--text); font-size: 24px; font-weight: 800; }
.plan-price small { color: var(--muted); font-size: 12px; font-weight: 600; }
.plan-copy { min-height: 44px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.plan-card ul { display: grid; gap: 9px; margin: 18px 0 22px; padding: 0; color: var(--muted); font-size: 12px; list-style: none; }
.plan-card li::before { content: '✓'; margin-right: 8px; color: var(--accent); font-weight: 800; }
.plan-card .plan-action { width: 100%; margin-top: auto; }
.plans-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.studio-security-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; padding: 18px 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); }
.studio-security-card h2 { margin: 3px 0 6px; }
.studio-security-card p:last-child { max-width: 720px; margin: 0; color: var(--muted); }
.studio-security-card label { display: grid; flex: 0 0 min(340px, 38%); gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.studio-security-card select { min-width: 0; border: 1px solid var(--accent); border-radius: 10px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 11px 12px; }
.studio-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.studio-stats > div { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--surface) 86%, transparent); }
.studio-stats strong { font-size: 24px; }
.studio-stats span { color: var(--muted); font-size: 11px; }
.studio-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 16px; }
.studio-collaborators-card, .studio-assignments-card { min-width: 0; }
.studio-invite-form { display: grid; grid-template-columns: 1fr 1fr 150px auto; gap: 9px; margin: 16px 0; }
.studio-invite-form input, .studio-invite-form select, .studio-assignment-form select { min-width: 0; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 10px; }
.collaborator-list, .assignment-list { display: grid; gap: 8px; }
.collaborator-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 130px auto minmax(190px, auto); align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.collaborator-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 800; }
.collaborator-copy strong, .collaborator-copy small { display: block; }
.collaborator-copy strong { font-size: 13px; }
.collaborator-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collaborator-access-summary { display: block; margin-top: 5px; color: var(--accent-strong); font-size: 10px; font-style: normal; font-weight: 700; }
.collaborator-role { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--text); padding: 7px; font-size: 11px; }
.collaborator-status { color: var(--muted); font-size: 10px; white-space: nowrap; }
.collaborator-remove { color: var(--danger); }
.collaborator-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.collaborator-actions .text-button { padding: 6px 8px; font-size: 10px; }
.studio-form-note { margin: -6px 0 14px; color: var(--muted); font-size: 10px; }
.permission-modal { width: min(860px, 100%); }
.permission-modal-copy { margin: 4px 0 0; color: var(--muted); }
.permission-role-field { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: center; gap: 16px; margin: 15px 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); font-size: 12px; font-weight: 750; }
.permission-role-field select, .permission-row select { border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 9px 10px; }
.permission-grid { display: grid; gap: 7px; }
.permission-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 16px; min-height: 60px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--surface-raised) 92%, transparent); }
.permission-row.is-future { opacity: .58; }
.permission-module-copy strong, .permission-module-copy small { display: block; }
.permission-module-copy strong { font-size: 12px; }
.permission-module-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.permission-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 13px 0 4px; color: var(--muted); font-size: 10px; }
.permission-legend span { display: inline-flex; align-items: center; gap: 6px; }
.permission-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.permission-dot.read { background: #f0b84b; }
.permission-dot.edit { background: #3edc8d; }
.access-preview-banner { position: fixed; z-index: 90; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 14px; max-width: min(520px, calc(100vw - 40px)); padding: 11px 12px 11px 15px; border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--surface-raised) 94%, var(--accent)); box-shadow: 0 16px 44px rgb(0 0 0 / .3); }
.access-preview-banner[hidden] { display: none; }
.access-preview-banner span { min-width: 0; flex: 1; }
.access-preview-banner strong, .access-preview-banner small { display: block; }
.access-preview-banner strong { font-size: 12px; }
.access-preview-banner small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.access-preview-banner button { border: 0; border-radius: 9px; background: var(--accent); color: #fff; padding: 9px 11px; font: inherit; font-size: 10px; font-weight: 800; }
.nav-item.is-permission-locked, .profile-button.is-permission-locked { opacity: .28; filter: saturate(.2); }
.nav-item.is-permission-locked::after { content: 'Bloqueado'; margin-left: auto; font-size: 8px; letter-spacing: .04em; }
.is-phone-device .nav-item[data-view="financeiro"], .is-phone-device [data-view-panel="financeiro"] { display: none !important; }
.access-readonly::before { content: 'Somente visualização'; display: block; width: max-content; margin: 0 0 12px auto; padding: 5px 9px; border: 1px solid color-mix(in srgb, #f0b84b 42%, var(--line)); border-radius: 999px; color: #f0b84b; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.access-readonly .calendar-resize-handle { display: none; }
.studio-assignment-form { display: grid; gap: 11px; margin-top: 16px; }
.studio-assignment-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.assignment-list { margin-top: 20px; }
.assignment-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.assignment-row strong, .assignment-row small { display: block; }
.assignment-row strong { font-size: 12px; }
.assignment-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.studio-audit-card { margin-top: 16px; }
.studio-audit-card .section-heading p:last-child { max-width: 720px; margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.studio-audit-list { display: grid; margin-top: 14px; }
.studio-audit-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 58px; padding: 9px 0; border-top: 1px solid var(--line); }
.studio-audit-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface-raised)); font-size: 12px; font-weight: 900; }
.studio-audit-row strong, .studio-audit-row small { display: block; }
.studio-audit-row strong { color: var(--text); font-size: 11px; }
.studio-audit-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.studio-audit-row time { color: var(--muted); font-size: 10px; white-space: nowrap; }

.finance-toolbar { display: grid; grid-template-columns: minmax(190px, 1fr) 170px 150px 150px; align-items: end; gap: 12px; margin-bottom: 16px; padding: 14px 16px; }
.finance-toolbar > div { display: grid; gap: 4px; align-self: center; }
.finance-toolbar > div span, .finance-toolbar label span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.finance-toolbar > div strong { color: var(--text); font-size: 15px; text-transform: capitalize; }
.finance-toolbar label { display: grid; gap: 6px; }
.finance-toolbar input, .finance-toolbar select, .finance-entry-modal input, .finance-entry-modal select, .finance-entry-modal textarea { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-raised); color: var(--text); padding: 10px 11px; font: inherit; }
.finance-toolbar input:focus, .finance-toolbar select:focus, .finance-entry-modal input:focus, .finance-entry-modal select:focus, .finance-entry-modal textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.finance-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.finance-metrics .card { display: grid; gap: 7px; min-height: 118px; padding: 17px 18px; }
.finance-metrics span { color: var(--muted); font-size: 11px; font-weight: 700; }
.finance-metrics strong { color: var(--text); font-size: clamp(20px, 2vw, 28px); line-height: 1.1; }
.finance-metrics strong.is-negative { color: var(--danger); }
.finance-metrics small { align-self: end; color: var(--muted); font-size: 10px; }
.finance-layout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.finance-ledger-card { grid-column: span 2; min-width: 0; height: 100%; }
.finance-entries { display: grid; margin-top: 12px; border-top: 1px solid var(--line); }
.finance-entry-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 125px 92px 120px; align-items: center; gap: 12px; min-height: 68px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.finance-entry-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 17px; font-weight: 800; }
.finance-entry-row.income .finance-entry-icon { color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface-raised)); }
.finance-entry-row.expense .finance-entry-icon { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface-raised)); }
.finance-entry-copy { min-width: 0; }
.finance-entry-copy strong, .finance-entry-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finance-entry-copy strong { color: var(--text); font-size: 12px; }
.finance-entry-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.finance-entry-value { text-align: right; color: var(--success); font-size: 12px; white-space: nowrap; }
.finance-entry-row.expense .finance-entry-value { color: var(--danger); }
.finance-entry-actions { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.finance-entry-actions .text-button { padding: 6px 4px; font-size: 10px; }
.finance-entry-actions .icon-button { width: 31px; height: 31px; font-size: 12px; letter-spacing: 1px; }
.finance-empty { min-height: 190px; border-bottom: 1px solid var(--line); }
.finance-side { display: contents; }
.finance-budget-card, .finance-payable-card { display: flex; min-width: 0; min-height: 0; height: 100%; flex-direction: column; }
.finance-budget-list, .finance-payable-list { flex: 1; align-content: start; }
.finance-budget-card > p, .finance-payable-card > p { margin: 7px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.finance-card-summary { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; }
.finance-card-summary > strong { color: var(--accent-strong); font-size: 11px; white-space: nowrap; }
.finance-card-summary.payable > strong { color: var(--danger); }
.finance-budget-list { display: grid; border-top: 1px solid var(--line); }
.finance-budget-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; width: 100%; padding: 12px 8px; border: 0; border-bottom: 1px solid var(--line); color: var(--text); text-align: left; background: transparent; cursor: pointer; }
.finance-budget-row:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.finance-budget-row.is-selected { background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.finance-budget-row > span { min-width: 0; }
.finance-budget-row > span strong, .finance-budget-row > span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finance-budget-row > span strong { font-size: 11px; }
.finance-budget-row > span small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.finance-budget-value { color: var(--accent-strong); font-size: 11px; white-space: nowrap; }
.finance-payable-list { display: grid; border-top: 1px solid var(--line); }
.finance-payable-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--text); text-align: left; background: transparent; cursor: pointer; }
.finance-payable-row:hover { color: var(--accent-strong); }
.finance-payable-row > span { min-width: 0; }
.finance-payable-row > span strong, .finance-payable-row > span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finance-payable-row > span strong { font-size: 11px; }
.finance-payable-row > span small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.finance-payable-value { color: var(--danger); font-size: 11px; white-space: nowrap; }
.finance-budget-card > .secondary-button, .finance-payable-card > .secondary-button { width: 100%; min-height: 34px; margin-top: 14px; padding: 7px 9px; }
.finance-side-empty { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.finance-legend-card { display: none; }
.finance-legend-card > div { display: flex; gap: 18px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.finance-legend-card span { display: inline-flex; align-items: center; gap: 7px; }
.finance-legend-card i { width: 9px; height: 9px; border-radius: 3px; }
.finance-legend-card i.income { background: var(--success); }
.finance-legend-card i.expense { background: var(--danger); }
.finance-chart-card { margin-top: 16px; }
.finance-chart-card .section-heading > span { color: var(--muted); font-size: 10px; }
.finance-chart-meta { display: grid; justify-items: end; gap: 8px; color: var(--muted); font-size: 10px; }
.finance-inline-legend { display: flex; align-items: center; gap: 14px; }
.finance-inline-legend span { display: inline-flex; align-items: center; gap: 6px; }
.finance-inline-legend i { width: 8px; height: 8px; border-radius: 3px; }
.finance-inline-legend i.income { background: var(--success); }
.finance-inline-legend i.expense { background: var(--danger); }
.finance-chart { display: grid; grid-template-columns: repeat(6, minmax(36px, 1fr)); align-items: end; gap: 18px; height: 210px; margin-top: 18px; padding: 18px 10px 0; border-top: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, color-mix(in srgb, var(--line) 68%, transparent) 48px); }
.finance-chart-column { display: grid; grid-template-rows: minmax(0, 1fr) 22px; align-items: end; height: 100%; gap: 7px; }
.finance-chart-bars { display: flex; justify-content: center; align-items: end; gap: 5px; height: 100%; }
.finance-chart-bars i { display: block; width: min(18px, 36%); min-height: 3px; border-radius: 5px 5px 2px 2px; transition: height .2s ease; }
.finance-chart-bars i.income { background: linear-gradient(180deg, color-mix(in srgb, var(--success) 85%, white), var(--success)); }
.finance-chart-bars i.expense { background: linear-gradient(180deg, color-mix(in srgb, var(--danger) 82%, white), var(--danger)); }
.finance-chart-column > span { color: var(--muted); font-size: 10px; text-align: center; text-transform: capitalize; }
.finance-entry-modal { width: min(820px, calc(100vw - 32px)); }
.finance-entry-modal .section-heading p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.finance-entry-modal form { display: grid; gap: 13px; margin-top: 16px; }
.finance-entry-modal textarea { resize: vertical; }
.finance-description-field, .finance-production-field { grid-column: span 1; }
.voice-orbit, .voice-core { display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); }
.voice-orbit { width: 32px; height: 32px; }
.voice-orbit span, .voice-core span { color: #fff; font-size: 17px; }
.voice-modal[hidden] { display: none; }
.voice-modal { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2, 4, 9, .64); backdrop-filter: blur(8px); }
.voice-dialog { position: relative; width: min(100%, 440px); padding: 34px; border: 1px solid var(--line); border-radius: 22px; color: var(--text); text-align: center; background: var(--surface); box-shadow: var(--shadow); }
.production-dialog { width: min(100%, 720px); text-align: left; max-height: min(90vh, 760px); overflow-y: auto; }
.production-dialog .production-editor-form { max-width: none; }
.production-dialog .editor-actions { display: flex; justify-content: flex-end; gap: 10px; grid-column: 1 / -1; }
.voice-dialog h2 { font-size: 25px; margin: 12px 0 8px; }
.close-voice { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 23px; }
.close-voice:hover { background: var(--surface-soft); color: var(--text); }
.voice-core { width: 78px; height: 78px; margin: 0 auto 24px; background: linear-gradient(135deg, var(--accent), #6347e7); box-shadow: 0 0 0 10px var(--accent-soft); }
.voice-core span { font-size: 31px; }
.voice-core.is-listening { animation: voice-pulse 1.25s ease-in-out infinite; }
@keyframes voice-pulse { 0%, 100% { box-shadow: 0 0 0 10px var(--accent-soft), 0 0 0 20px transparent; } 50% { box-shadow: 0 0 0 16px var(--accent-soft), 0 0 0 32px color-mix(in srgb, var(--accent) 12%, transparent); } }
.voice-status { min-height: 22px; color: var(--accent-strong); font-weight: 700; font-size: 14px; margin: 0 0 12px; }
.voice-transcript { min-height: 62px; display: grid; place-items: center; color: var(--muted); line-height: 1.5; font-size: 14px; margin: 0 auto 24px; }
.voice-transcript.has-transcript { color: var(--text); }
.voice-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
.voice-actions button { min-height: 43px; }
.voice-auto-note { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0 0 17px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 360px; padding: 13px 16px; color: #fff; background: #1d2639; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: var(--shadow); transform: translateY(18px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.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; }

.general-heading { margin-bottom: 20px; }
.general-composer { margin-bottom: 20px; }
.general-overview-layout { display: grid; grid-template-columns: minmax(360px, .78fr) minmax(680px, 1.22fr); align-items: stretch; gap: 16px; width: 100%; max-width: 100%; height: clamp(570px, 56.5vh, 900px); min-height: 0; overflow: hidden; }
.general-home-column { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
.general-productions-card, .general-week-card, .general-departure-summary { min-width: 0; }
.general-productions-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; min-height: 0; overflow: hidden; }
.general-production-list { display: grid; align-content: start; gap: 8px; min-height: 0; overflow: hidden; }
.general-production-list .production-card { min-height: 64px; }
.general-wide-action { width: 100%; }
.general-departure-summary { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); align-items: end; gap: 18px; }
.general-departure-summary h2 { margin: 6px 0; font-size: 34px; letter-spacing: -.04em; }
.general-departure-summary p:not(.eyebrow) { margin: 0; color: var(--muted); }
.general-departure-summary dl { display: grid; gap: 0; margin: 0; }
.general-departure-summary dl div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.general-departure-summary dt { color: var(--muted); }
.general-departure-summary dd { margin: 0; color: var(--text); font-weight: 700; }
.general-departure-summary > button { grid-column: 1 / -1; width: 100%; }
.general-week-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; width: 100%; max-width: 100%; min-height: 0; height: 100%; overflow: hidden; }
.general-week-heading { align-items: end; }
.general-week-heading p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.general-week-actions { display: flex; gap: 6px; }
.general-week-actions button { min-width: 42px; padding: 8px 10px; }
.general-week-calendar { display: grid; grid-template-columns: 54px repeat(7, minmax(88px, 1fr)); grid-template-rows: 48px repeat(24, minmax(0, 1fr)) 0; width: 100%; max-width: 100%; min-width: 760px; min-height: 0; height: 100%; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); contain: layout paint; }
.general-week-calendar > * { min-width: 0; min-height: 0; }
.general-week-corner, .general-week-day { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--surface); }
.general-week-corner { grid-column: 1; grid-row: 1; }
.general-week-day { display: grid; align-content: center; gap: 2px; padding: 0 9px; border-left: 1px solid var(--line); }
.general-week-day strong { color: var(--text); font-size: 12px; }
.general-week-day small { color: var(--muted); font-size: 10px; }
.general-week-day.is-today { box-shadow: inset 0 -2px 0 var(--accent); background: var(--accent-soft); }
.general-week-focus-range { z-index: 0; border-top: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); border-bottom: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, transparent); pointer-events: none; }
.general-week-time { position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: start; padding: 3px 7px 0 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, transparent); color: var(--muted); font-size: 9px; }
.general-week-end-time { border: 0; transform: translateY(-6px); }
.general-week-end-line { position: relative; z-index: 1; height: 1px; border-top: 1px solid var(--line); }
.general-week-slot { position: relative; z-index: 1; min-width: 0; border: 0; border-left: 1px solid var(--line); border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, transparent); background: transparent; }
.general-week-slot:nth-of-type(even) { border-bottom-color: var(--line); }
.general-week-slot:hover { background: var(--accent-soft); }
.general-week-slot.is-today { background-color: color-mix(in srgb, var(--accent) 4%, transparent); }
.general-week-slot.is-drop-target { z-index: 4; background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 0 0 2px var(--accent-strong); }
.general-week-event, .general-week-travel, .general-week-transfer { z-index: 3; min-width: 0; min-height: 0; max-width: calc(100% - 8px); max-height: calc(100% - 4px); overflow: hidden; margin: 2px 4px; border-radius: 7px; padding: 5px 6px; text-align: left; }
.general-week-event { cursor: grab; touch-action: none; user-select: none; border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--line)); background: color-mix(in srgb, var(--accent) 25%, var(--surface)); color: var(--text); }
.general-week-event:active { cursor: grabbing; }
.general-week-event.is-dragging { z-index: 6; cursor: grabbing; opacity: .42; transform: scale(.985); }
body.is-general-calendar-dragging, body.is-general-calendar-dragging * { cursor: grabbing !important; }
.general-week-event:hover, .general-week-event.is-selected { border-color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 36%, var(--surface)); }
.general-week-travel { border: 1px dashed color-mix(in srgb, var(--warning) 62%, var(--line)); background: color-mix(in srgb, var(--warning) 11%, var(--surface)); color: var(--warning); }
.general-week-transfer { border: 1px dashed color-mix(in srgb, var(--success) 62%, var(--line)); background: color-mix(in srgb, var(--success) 11%, var(--surface)); color: var(--success); }
.general-week-transfer.is-conflict { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 11%, var(--surface)); color: var(--danger); }
.general-week-event strong, .general-week-event small, .general-week-travel strong, .general-week-travel small, .general-week-transfer strong, .general-week-transfer small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.general-week-event strong, .general-week-travel strong, .general-week-transfer strong { font-size: 9px; }
.general-week-event small, .general-week-travel small, .general-week-transfer small { margin-top: 2px; color: var(--muted); font-size: 8px; }

@media (max-width: 1380px) {
  .general-overview-layout { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .general-home-column { grid-template-rows: auto; overflow: visible; }
  .general-productions-card, .general-production-list { overflow: visible; }
  .general-week-card { height: auto; }
  .general-week-calendar { height: 620px; }
  .finance-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-ledger-card { grid-column: 1 / -1; }
}

@media print {
  body.print-budget .sidebar, body.print-budget .topbar, body.print-budget .voice-assistant-button, body.print-budget .toast, body.print-budget .page-heading, body.print-budget .budget-builder-card { display: none !important; }
  body.print-budget .app-shell, body.print-budget .main-content { display: block; padding: 0; }
  body.print-budget .view { display: none !important; }
  body.print-budget [data-view-panel="orcamentos"] { display: block !important; }
  body.print-budget .budget-layout { display: block; }
  body.print-budget .budget-proposal { box-shadow: none; border: 0; position: static; max-width: 760px; margin: 0 auto; }
}

@media (max-width: 1040px) {
  .desktop-general-nav, .desktop-general-view { display: none !important; }
  .main-content { padding: 0 28px 38px; }
  .dashboard-grid, .production-layout, .planning-layout, .assistant-layout, .checklist-layout, .script-layout, .equipment-detail-layout, .production-editor-form, .budget-layout { grid-template-columns: 1fr; }
  .dashboard-grid > .content-section, .dashboard-grid > .dashboard-side-stack { grid-column: 1; }
  .departure-card { min-height: 220px; }
  .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-layout { grid-template-columns: 1fr; }
  .finance-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-ledger-card { grid-column: 1 / -1; }
  .finance-toolbar { grid-template-columns: 1fr repeat(3, minmax(130px, .55fr)); }
  .finance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view.is-active[data-view-panel="painel"] .quick-grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.view.is-active[data-view-panel="painel"] { display: flex; flex-direction: column; }
.view.is-active[data-view-panel="painel"] .page-heading { order: 1; }
.view.is-active[data-view-panel="painel"] .composer { order: 2; }
.view.is-active[data-view-panel="painel"] .dashboard-grid { order: 3; }
.view.is-active[data-view-panel="painel"] .quick-grid { order: 4; width: 100%; align-self: flex-start; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.all-productions .section-heading #productions-create-button { margin-left: auto; }

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .app-shell.is-mobile-nav-open .sidebar { display: flex; position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(82vw, 300px); box-shadow: var(--shadow); }
  .main-content { padding: 0 18px 32px; }
  .topbar { height: 62px; justify-content: space-between; }
  .mobile-menu { display: block; }
  .page-heading { display: grid; align-items: start; margin: 9px 0 22px; }
  .page-heading .primary-button { width: 100%; }
  .production-heading-actions { justify-content: flex-start; }
  .equipment-detail-actions { justify-content: flex-start; }
  .equipment-library-grid { grid-template-columns: 1fr; }
  .equipment-library-wide { grid-column: auto; }
  .quick-grid, .equipment-grid, .settings-grid { grid-template-columns: 1fr; }
  .view.is-active[data-view-panel="painel"] .quick-grid { width: 100%; }
  .plans-grid { grid-template-columns: 1fr; }
  .studio-stats { grid-template-columns: 1fr; }
  .studio-security-card { align-items: stretch; flex-direction: column; }
  .studio-security-card label { flex-basis: auto; }
  .studio-invite-form { grid-template-columns: 1fr; }
  .collaborator-row { grid-template-columns: 34px minmax(0, 1fr) 30px; }
  .collaborator-role, .collaborator-status { grid-column: 2; }
  .collaborator-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .collaborator-remove { grid-column: auto; grid-row: auto; }
  .studio-audit-row { grid-template-columns: 28px minmax(0, 1fr); }
  .studio-audit-row time { grid-column: 2; }
  .finance-toolbar { grid-template-columns: 1fr 1fr; }
  .finance-toolbar > div { grid-column: 1 / -1; }
  .finance-metrics { grid-template-columns: 1fr; }
  .finance-entry-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; }
  .finance-entry-value { grid-column: 2; text-align: left; }
  .finance-entry-row > .status { grid-column: 3; grid-row: 1; }
  .finance-entry-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .finance-chart { gap: 8px; height: 180px; padding-inline: 2px; }
  .finance-chart-bars { gap: 2px; }
  .permission-role-field, .permission-row { grid-template-columns: 1fr; }
  .access-preview-banner { right: 12px; bottom: 76px; left: 12px; max-width: none; }
  .production-manager-list { grid-template-columns: 1fr; }
  .quick-action { min-height: auto; }
  .production-card { grid-template-columns: 42px minmax(0, 1fr); }
  .production-card .status { grid-column: 2; justify-self: start; }
  .production-thumb { width: 42px; height: 42px; }
  .tool-row { grid-template-columns: repeat(2, 1fr); }
  .budget-add-form { grid-template-columns: 1fr 72px; }
  .budget-add-form label:first-child { grid-column: 1 / -1; }
  .budget-add-form .primary-button { grid-column: 1 / -1; }
  .budget-item { grid-template-columns: minmax(0, 1fr) 65px 106px 24px; gap: 7px; }
  .budget-travel-controls { grid-template-columns: 1fr 1fr; }
  .budget-travel-toggle { grid-column: 1 / -1; padding-bottom: 0; }
  .proposal-meta { grid-template-columns: 1fr; }
  #budget-travel-cost { padding-bottom: 0; }
  .budget-equipment-row { grid-template-columns: 22px minmax(0, 1fr) 70px; gap: 8px; padding: 8px 0; }
  .budget-equipment-rate, .budget-equipment-total, .budget-daily-toggle { grid-column: 2; text-align: left; }
  .budget-equipment-row input[type="number"] { grid-column: 3; grid-row: 1 / span 3; }
  .script-toolbar { display: grid; align-items: start; }
  .shot-row { grid-template-columns: 20px 30px minmax(0, 1fr); }
  .shot-tag { display: none; }
  .file-row { grid-template-columns: 38px minmax(0, 1fr); }
  .file-row .status { grid-column: 2; justify-self: start; }
  .calendar-navigation { justify-content: flex-start; flex-wrap: wrap; }
  .production-hero { min-height: 190px; }
  .timeline > div { grid-template-columns: 74px 21px minmax(0, 1fr); gap: 9px; }
  .checklist label { grid-template-columns: 21px minmax(0, 1fr); }
  .checklist small { display: none; }
  .production-equipment-accessories { margin-left: 20px; }
  .agenda-transition-row { align-items: flex-start; flex-direction: column; padding: 13px 0; gap: 8px; }
  .add-accessory-form { grid-template-columns: minmax(0, 1fr) 54px; }
  .add-accessory-form .secondary-button { grid-column: 1 / -1; }
  .toast { right: 18px; left: 18px; bottom: 18px; max-width: none; }
  .voice-assistant-button { left: 18px; right: auto; bottom: calc(98px + env(safe-area-inset-bottom)); padding-right: 10px; }
  .sidebar-footer { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: min(220px, calc(100vw - 24px)); }
  .voice-assistant-button > span:last-child { display: none; }
  .voice-orbit { width: 38px; height: 38px; }
  .voice-dialog { padding: 30px 20px 24px; }
  .chat-auto-indicator { display: none; }
}
