:root {
  --ink: #20231f;
  --muted: #6a7169;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --surface-2: #ebe7dd;
  --line: #d8d3c7;
  --green: #264f42;
  --green-2: #3f7562;
  --lime: #b9cf72;
  --amber: #c47a2c;
  --red: #a84637;
  --shadow: 0 18px 55px rgba(35, 42, 36, .09);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(63,117,98,.35); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); line-height: 1.55; }
.small { font-size: .83rem; }
.eyebrow { margin: 0 0 .45rem; color: var(--green-2); font-size: .7rem; font-weight: 800; letter-spacing: .15em; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 4.1rem); line-height: .98; font-weight: 500; letter-spacing: -.035em; }
h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.015em; }
h3 { margin: 0 0 .8rem; font-size: 1rem; }
a { color: inherit; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: radial-gradient(circle at 78% 22%, rgba(185,207,114,.28), transparent 30%), linear-gradient(135deg, #18392f, #2d5749 65%, #203c34); }
.login-shell::before { content: ""; position: fixed; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
.login-card { position: relative; width: min(100%, 480px); padding: clamp(2rem, 6vw, 4rem); border-radius: 28px; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.login-card h1 { margin-bottom: 1.25rem; font-size: clamp(2.1rem, 8vw, 3.2rem); }
.login-card .button { width: 100%; margin-top: .5rem; }
.text-link { display: block; margin-top: 1.4rem; text-align: center; color: var(--muted); font-size: .85rem; }
.brand-mark { width: 56px; height: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 9px; margin-bottom: 1.7rem; background: var(--green); border-radius: 16px; transform: rotate(4deg); }
.brand-mark span { border-radius: 4px; background: var(--lime); }
.brand-mark span:nth-child(2) { transform: translateY(7px); background: #f5f0d8; }
.brand-mark span:nth-child(3) { transform: translateY(-3px); background: #d89550; }
.brand-mark.small { width: 39px; height: 39px; padding: 6px; margin: 0; border-radius: 11px; flex: 0 0 auto; }
.form-message { min-height: 1.2rem; color: var(--red); font-size: .85rem; }
.app { min-height: 100vh; }
.app-header { position: sticky; z-index: 20; top: 0; min-height: 76px; display: grid; grid-template-columns: minmax(210px, .8fr) minmax(440px, 1.6fr) minmax(300px, 1fr); align-items: center; gap: 1rem; padding: .8rem 1.5rem; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.94); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .96rem; }
.brand small { color: var(--muted); font-size: .7rem; margin-top: .12rem; }
.area-nav { align-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); padding: .25rem; border-radius: 14px; background: var(--surface-2); }
.area-nav button { display: flex; justify-content: center; align-items: center; gap: .55rem; padding: .55rem .7rem; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 700; font-size: .83rem; transition: .18s ease; }
.area-nav button b { color: #9c9f97; font-size: .68rem; }
.area-nav button:hover { color: var(--ink); }
.area-nav button.is-active { color: white; background: var(--green); box-shadow: 0 5px 14px rgba(38,79,66,.22); }
.area-nav button.is-active b { color: var(--lime); }
.account-box { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; }
.tenant-field { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .45rem; min-width: 180px; }
.tenant-field span { color: var(--muted); font-size: .7rem; }
.tenant-field select { min-width: 0; }
.avatar-button, .icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--green); font-weight: 800; }
.system-banner { padding: .7rem 1.5rem; color: #fff; background: var(--amber); font-size: .85rem; text-align: center; }
main { padding: clamp(1.25rem, 3vw, 3rem); max-width: 1760px; margin-inline: auto; }
.area { display: none; }
.area.is-active { display: block; animation: enter .25s ease; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
.area-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin: .5rem 0 2rem; }
.area-heading > div:first-child { max-width: 850px; }
.area-heading h1 { margin-bottom: .7rem; }
.area-heading p:last-child { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.55; }
.progress-card { min-width: 225px; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.progress-card span, .progress-card strong { display: block; }
.progress-card span { color: var(--muted); font-size: .72rem; }
.progress-card strong { margin: .25rem 0 .6rem; font-size: 1.3rem; }
.progress-card div { height: 5px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.progress-card i { display: block; width: 0; height: 100%; background: var(--green-2); transition: width .3s ease; }
.subnav { display: flex; align-items: center; gap: .3rem; width: fit-content; padding: .3rem; margin-bottom: 1rem; border-radius: 12px; background: #e6e2d8; }
.subnav button { padding: .65rem 1rem; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: .84rem; font-weight: 750; }
.subnav button.is-active { color: var(--ink); background: var(--surface); box-shadow: 0 3px 10px rgba(0,0,0,.07); }
.subnav.vertical { width: 100%; display: grid; }
.subnav.vertical button { text-align: left; }
.setup-panel { display: none; }
.setup-panel.is-active { display: block; }
.workflow-rail { display: flex; align-items: center; padding: .8rem 1rem; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: auto; }
.workflow-rail button { min-width: 130px; display: flex; align-items: center; gap: .65rem; padding: .45rem; border: 0; background: transparent; color: var(--muted); text-align: left; }
.workflow-rail button b { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: .72rem; }
.workflow-rail button span, .workflow-rail button small { display: block; }
.workflow-rail button span { font-size: .78rem; font-weight: 800; }
.workflow-rail button small { margin-top: .08rem; font-weight: 500; color: #90958d; }
.workflow-rail button.is-active { color: var(--green); }
.workflow-rail button.is-active b { color: white; border-color: var(--green); background: var(--green); }
.workflow-rail button.is-complete b { color: var(--green); border-color: var(--green-2); background: #e5ecdb; }
.workflow-rail > i { height: 1px; min-width: 22px; flex: 1; background: var(--line); }
.split-layout { display: grid; grid-template-columns: minmax(310px, 390px) minmax(0, 1fr); gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 30px rgba(48,54,48,.045); }
.control-card { padding: 1.35rem; }
.step-pane { display: none; }
.step-pane.is-active { display: block; }
.step-kicker { margin: 0 0 .4rem; color: var(--amber); font-size: .7rem; font-weight: 800; letter-spacing: .13em; }
.next-step { width: 100%; margin-top: 1rem; }
.preview-card { min-height: 610px; display: flex; flex-direction: column; overflow: hidden; }
.preview-card > header, .studio-editor > header, .event-titlebar, .card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.preview-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.preview-card footer label { display: flex; align-items: center; gap: .5rem; }
.floorplan-canvas, .layout-canvas, .event-plan { position: relative; min-height: 480px; flex: 1; overflow: auto; background-color: #f1eee6; background-image: linear-gradient(#e3ded2 1px, transparent 1px), linear-gradient(90deg, #e3ded2 1px, transparent 1px); background-size: 25px 25px; }
.floorplan-canvas svg, .layout-canvas svg, .event-plan svg { width: 100%; height: 100%; min-height: 480px; display: block; }
.empty-canvas, .empty-workspace { height: 100%; min-height: 420px; display: grid; place-content: center; gap: .4rem; text-align: center; color: var(--muted); }
.empty-canvas b, .empty-workspace b { color: var(--ink); font-size: 1.05rem; }
.status-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .68rem; border-radius: 99px; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-badge.neutral, .status-badge.draft { color: #766d59; background: #eee9dd; }
.status-badge.published, .status-badge.released { color: #2f6753; background: #dcebdd; }
.status-badge.archived, .status-badge.completed { color: #626761; background: #e3e5e1; }
.button { min-height: 42px; display: inline-flex; justify-content: center; align-items: center; gap: .45rem; padding: .65rem 1rem; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 800; font-size: .82rem; transition: .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button.primary { color: #fff; background: var(--green); box-shadow: 0 7px 18px rgba(38,79,66,.16); }
.button.secondary { color: var(--green); border-color: #a9b8af; background: #f7faf6; }
.button.ghost-danger { color: var(--red); border-color: #e2c4bd; background: transparent; }
.button.full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: .55rem; }
label { display: grid; gap: .35rem; color: var(--muted); font-size: .75rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 42px; padding: .62rem .72rem; border: 1px solid #cfcabe; border-radius: 9px; color: var(--ink); background: #fffefa; }
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #a4a99f; }
.stack-form { display: grid; gap: .8rem; margin-top: 1rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.check { grid-template-columns: auto 1fr; align-items: center; }
.check input { width: 18px; min-height: 18px; }
.dropzone { min-height: 130px; place-content: center; padding: 1.2rem; border: 1px dashed #9bab9f; border-radius: 12px; background: #f2f6ef; text-align: center; }
.dropzone input { min-height: 0; border: 0; padding: .4rem; background: transparent; }
.dropzone b, .dropzone small { display: block; color: var(--green); }
details { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
summary { cursor: pointer; color: var(--green); font-size: .82rem; font-weight: 800; }
hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.choice-list, .record-list { display: grid; gap: .5rem; margin-top: .8rem; }
.choice-list button, .record-list button, .record { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; }
.choice-list button.is-active, .record-list button.is-active { border-color: var(--green-2); background: #edf3e9; box-shadow: inset 3px 0 var(--green); }
.choice-list small, .record-list small { display: block; margin-top: .16rem; color: var(--muted); font-size: .68rem; }
.candidate-list { display: grid; gap: .4rem; max-height: 210px; margin: .8rem 0; overflow: auto; }
.candidate-list button { display: flex; justify-content: space-between; align-items: center; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; text-align: left; }
.candidate-list button small { display: block; color: var(--muted); font-size: .66rem; }
.candidate-list button.is-active { border-color: var(--green-2); background: #edf3e9; }
.room-candidate-selected { filter: drop-shadow(0 0 4px #c47a2c); }
.record-list.compact .record { padding: .5rem .7rem; font-size: .8rem; }
.checklist { display: grid; gap: .55rem; margin: 1rem 0; }
.checklist div { display: flex; gap: .6rem; padding: .65rem; border-radius: 9px; background: #eeeae0; font-size: .8rem; }
.checklist div::before { content: "○"; color: var(--amber); }
.checklist div.is-complete::before { content: "✓"; color: var(--green-2); font-weight: 900; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, .7fr); gap: 1rem; }
.content-grid > .card { padding: 1.3rem; }
.content-grid > .card:first-child { padding: 0; overflow: hidden; }
.search { max-width: 260px; }
.data-table { overflow: auto; }
.data-table table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.data-table th, .data-table td { padding: .72rem 1rem; border-bottom: 1px solid #e5e1d8; text-align: left; white-space: nowrap; }
.data-table th { color: var(--muted); background: #f5f2eb; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.data-table tr[data-id], .data-table tr[data-member-id] { cursor: pointer; }
.data-table tr[data-id]:hover, .data-table tr[data-member-id]:hover { background: #f5f8f2; }
.import-preview { margin-top: 1rem; }
.import-preview .summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.import-preview .summary span { padding: .45rem; border-radius: 7px; background: var(--surface-2); text-align: center; font-size: .7rem; }
.import-options { display: grid; gap: .7rem; }
.mapping-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.import-rows { max-height: 280px; margin: .75rem 0; border: 1px solid var(--line); border-radius: 9px; }
.import-action { display: inline-flex; padding: .2rem .4rem; border-radius: 99px; background: #e6e4dd; font-size: .66rem; font-weight: 800; }
.import-action.create { color: #2f6753; background: #dcebdd; }
.import-action.update { color: #72521e; background: #f3e5c8; }
.import-action.error { color: var(--red); background: #f5ded8; }
.narrow-card { max-width: 760px; padding: clamp(1.2rem, 3vw, 2rem); }
.studio-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1rem; }
.studio-sidebar { padding: 1rem; }
.studio-editor { min-height: 650px; overflow: hidden; }
.studio-editor form { padding: 1.3rem; }
.template-fields { display: grid; gap: .8rem; }
.layout-toolbar { display: flex; gap: .35rem; padding: .35rem; border-radius: 10px; background: var(--surface-2); }
.layout-toolbar button { padding: .5rem .8rem; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: .75rem; font-weight: 800; }
.layout-toolbar button.is-active { color: #fff; background: var(--green); }
.layout-canvas { min-height: 430px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: crosshair; }
.layout-canvas svg { touch-action: none; }
.layout-item { cursor: move; }
.layout-item.is-selected { filter: drop-shadow(0 0 5px rgba(196,122,44,.8)); }
.room-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .4rem; }
.chair-position-grid { max-height: 310px; overflow: auto; }
.chair-position-grid input { min-width: 75px; min-height: 34px; padding: .35rem; }
.chair-position-grid input[type="checkbox"] { min-width: 18px; width: 18px; }
.state-legend { color: var(--muted); font-size: .72rem; }
.state-legend i { display: inline-block; width: 7px; height: 7px; margin: 0 .25rem 0 .65rem; border-radius: 50%; background: #9d9b90; }
.state-legend i:first-child { background: var(--amber); }
.state-legend i:nth-of-type(2) { background: var(--green-2); }
.event-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1rem; }
.event-list-card { padding: 1rem; }
.event-filters { display: flex; gap: .25rem; padding: .25rem; border-radius: 9px; background: var(--surface-2); }
.event-filters button { flex: 1; padding: .45rem; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: .68rem; font-weight: 800; }
.event-filters button.is-active { color: var(--ink); background: #fff; }
.event-workspace { min-height: 680px; overflow: hidden; }
.event-titlebar { padding: 1.1rem 1.3rem; }
.event-titlebar h2 { font-size: 1.55rem; }
.event-tabs { margin: .8rem 1rem; }
.event-tab { display: none; padding: 0 1rem 1rem; }
.event-tab.is-active { display: block; }
.event-tab[data-event-panel="plan"] { grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; }
.event-tab[data-event-panel="plan"].is-active { display: grid; }
.event-plan-column { min-width: 0; display: grid; gap: .65rem; align-content: start; }
.event-draft-toolbar { display: grid; gap: .55rem; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; background: #f8f6f0; }
.event-plan { min-height: 500px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.event-plan svg { touch-action: none; }
.event-layout-item { cursor: move; }
.event-layout-item.is-selected { filter: drop-shadow(0 0 5px rgba(196,122,44,.8)); }
.event-chair { cursor: pointer; }
.event-chair:hover, .event-chair.is-active { stroke: var(--amber); stroke-width: 4; }
.inline-panel { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #f8f6f0; }
.service-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr); gap: 1rem; }
.chair-buttons, .product-buttons { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.3rem; }
.chair-buttons button, .product-buttons button { min-width: 74px; padding: .65rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.chair-buttons button.is-active { color: #fff; border-color: var(--green); background: var(--green); }
.product-buttons button { min-width: 135px; text-align: left; }
.product-buttons button span, .product-buttons button small { display: block; }
.product-buttons button small { margin-top: .2rem; color: var(--muted); }
.account-total { display: grid; grid-template-columns: repeat(3,1fr); gap: .4rem; margin-bottom: .8rem; }
.account-total div { padding: .7rem; border-radius: 9px; background: #e9e5dc; }
.account-total span, .account-total strong { display: block; }
.account-total span { color: var(--muted); font-size: .66rem; }
.account-total strong { margin-top: .2rem; }
.account-orders { display: grid; gap: .4rem; margin: 1rem 0; }
.account-order { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .78rem; }
.account-order > span:last-child, .account-payment > span:last-child { display: grid; justify-items: end; gap: .2rem; }
.account-order small, .account-payment small { display: block; color: var(--muted); font-size: .66rem; }
.account-payments { display: grid; gap: .4rem; margin: .7rem 0 1rem; }
.account-payment { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .76rem; }
.text-action { padding: 0; border: 0; color: var(--green-2); background: transparent; font-size: .68rem; font-weight: 800; text-decoration: underline; }
.text-action.danger { color: var(--red); }
.payment-form { display: grid; gap: .6rem; }
.payment-items { display: grid; gap: .35rem; }
.payment-item { grid-template-columns: auto 1fr 70px; align-items: center; padding: .45rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.payment-item > input:first-child { width: 18px; min-height: 18px; }
.payment-item small { display: block; margin-top: .15rem; color: var(--muted); font-size: .65rem; }
.payment-item input[type="number"] { min-height: 34px; padding: .35rem; }
.compact-fields { align-items: end; }
.compact-fields h3 { margin: 0; align-self: center; }
.kitchen-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.kitchen-card { padding: 1rem; border: 1px solid #dfc8b2; border-left: 5px solid var(--amber); border-radius: 12px; background: #fff9f0; }
.kitchen-card header { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.kitchen-card p { margin: .2rem 0; }
.kitchen-actions { display: flex; gap: .3rem; margin-top: .7rem; }
.kitchen-actions button { flex: 1; padding: .45rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: .68rem; font-weight: 800; }
.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-bottom: 1rem; }
.metric { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #f8f6ef; }
.metric span, .metric strong { display: block; }
.metric span { color: var(--muted); font-size: .72rem; }
.metric strong { margin-top: .35rem; font-size: 1.4rem; }
dialog { width: min(92vw, 560px); padding: 0; border: 0; border-radius: 20px; background: var(--surface); box-shadow: 0 35px 100px rgba(0,0,0,.3); }
.compact-button { min-height: 38px; padding: .5rem .7rem; }
.admin-dialog { width: min(96vw, 1120px); max-height: 92vh; overflow: auto; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.admin-grid > section { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #f8f6f0; }
fieldset { display: grid; gap: .45rem; padding: .75rem; border: 1px solid var(--line); border-radius: 9px; }
legend { padding: 0 .25rem; color: var(--muted); font-size: .72rem; font-weight: 800; }
dialog::backdrop { background: rgba(20,30,26,.55); backdrop-filter: blur(4px); }
.dialog-card { display: grid; gap: .9rem; padding: 1.4rem; }
.dialog-card header, .dialog-card footer { display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.dialog-card footer { justify-content: flex-end; margin-top: .5rem; }
.toast { position: fixed; z-index: 100; right: 1rem; bottom: 1rem; max-width: 420px; padding: .85rem 1rem; border-radius: 12px; color: #fff; background: var(--green); box-shadow: 0 16px 45px rgba(0,0,0,.2); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { background: var(--red); }
code { padding: .1rem .28rem; border-radius: 4px; background: #e8e4da; }

@media (max-width: 1100px) {
  .app-header { grid-template-columns: auto 1fr; }
  .area-nav { grid-row: 2; grid-column: 1 / -1; }
  .account-box { grid-column: 2; grid-row: 1; }
  .split-layout, .content-grid, .studio-layout, .event-layout { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .studio-sidebar { display: grid; grid-template-columns: 230px 1fr auto; align-items: start; gap: .7rem; }
  .studio-sidebar .record-list { margin-top: 0; }
  .event-list-card { display: grid; grid-template-columns: 270px 1fr; gap: .7rem; }
}
@media (max-width: 720px) {
  main { padding: 1rem; }
  .app-header { padding: .7rem; gap: .6rem; }
  .brand small, .area-nav b, .tenant-field span { display: none; }
  .brand > span:last-child { display: none; }
  .account-box { gap: .35rem; }
  .tenant-field { min-width: 130px; grid-template-columns: 1fr; }
  .area-nav button { padding: .55rem .3rem; font-size: .7rem; }
  .area-heading { align-items: stretch; flex-direction: column; margin-bottom: 1.3rem; }
  .progress-card { min-width: 0; }
  .workflow-rail button { min-width: 50px; justify-content: center; }
  .workflow-rail button span { display: none; }
  .preview-card { min-height: 480px; }
  .floorplan-canvas, .floorplan-canvas svg, .layout-canvas, .layout-canvas svg { min-height: 360px; }
  .field-row, .mapping-grid, .service-grid, .event-tab[data-event-panel="plan"].is-active, .report-grid { grid-template-columns: 1fr; }
  .studio-sidebar { display: block; }
  .event-list-card { display: block; }
  .event-titlebar { align-items: flex-start; flex-wrap: wrap; }
  .event-tabs { width: auto; overflow-x: auto; }
  .area, .content-grid > *, .data-table { min-width: 0; max-width: 100%; }
  .subnav:not(.vertical) { width: 100%; max-width: 100%; overflow-x: auto; }
  .subnav button { flex: 0 0 auto; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .app-header, .area-heading, .event-list-card, .event-tabs, .button, .system-banner { display: none !important; }
  body, main, .card { background: #fff; box-shadow: none; }
  main { padding: 0; }
  .area { display: none !important; }
  #eventsArea { display: block !important; }
  .event-workspace { border: 0; }
  .event-tab { display: none !important; }
  .event-tab[data-event-panel="report"] { display: block !important; }
}
