:root {
  --navy: #111c2d;
  --navy-2: #1d2d45;
  --blue: #2868e8;
  --blue-soft: #edf4ff;
  --ink: #142238;
  --muted: #718096;
  --line: #e3e9f0;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --green: #087a55;
  --green-soft: #e5f6ef;
  --amber: #a66300;
  --amber-soft: #fff2c9;
  --purple: #6f43c2;
  --purple-soft: #f0eaff;
  --red: #d92d20;
  --red-soft: #feeceb;
  --shadow: 0 14px 42px rgba(20, 34, 56, .07);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { background: var(--canvas); scrollbar-gutter: stable; overflow-x: hidden; }
html.modal-open, html.modal-open body { overflow: hidden; }
body.tur-operasyon-body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Manrope, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.boot-mark, .brand-mark { display: grid; place-items: center; background: linear-gradient(145deg, #4389ff, #1f61ce); color: white; font-weight: 800; border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 24px rgba(19,77,173,.28); }
.boot-mark { width: 58px; height: 58px; border-radius: 18px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 276px minmax(0,1fr); }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: 276px;
  display: flex; flex-direction: column; padding: 25px 18px 16px;
  background: radial-gradient(circle at 20% 0,rgba(48,101,184,.2),transparent 32%), linear-gradient(180deg, var(--navy) 0%, #0b1421 100%); color: #dbe9fa;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 13px; padding: 3px 9px 24px; }
.brand-mark { flex: 0 0 48px; height: 48px; border-radius: 15px; font-size: 15px; }
.brand strong { display: block; color: white; font-size: 18px; letter-spacing: -.02em; }
.brand span { display: block; margin-top: 7px; color: #8fabcc; font-size: 11px; letter-spacing: .18em; }
.sidebar-close { display: none; margin-left: auto; color: #bed0e5; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 13px; width: 100%; min-height: 48px;
  padding: 0 14px; border: 0; border-radius: 11px; background: transparent; color: #bcd0e6;
  cursor: pointer; text-align: left; font-size: 14px; font-weight: 650; transition: .16s ease;
}
.nav-item:hover { color: white; background: rgba(255,255,255,.055); }
.nav-item.active { color: white; background: linear-gradient(90deg,rgba(69,129,224,.26),rgba(69,129,224,.11)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.nav-item.active::before { content: ""; position: absolute; left: -3px; width: 3px; height: 27px; border-radius: 4px; background: #4c96ff; }
.nav-icon { display: grid; place-items: center; width: 25px; }
.nav-icon svg { width: 19px; height: 19px; }
.sync-card { margin-top: auto; display: flex; align-items: flex-start; gap: 10px; padding: 15px 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.035); }
.sync-card strong, .sync-card span { display: block; }
.sync-card strong { color: #fff; font-size: 12px; }
.sync-card span { margin-top: 5px; color: #91accb; font-size: 11px; line-height: 1.4; }
.sync-dot, .sync-state { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #f2ae35; box-shadow: 0 0 0 4px rgba(242,174,53,.12); }
.sync-dot.online, .sync-state.online { background: #42d9a0; box-shadow: 0 0 0 4px rgba(66,217,160,.12); }
.main { min-width: 0; grid-column: 2; overflow-x: hidden; overflow-anchor: none; }
.boss-strip { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 30px; color: #096241; background: #e9f8f2; border-bottom: 1px solid #b8ded0; font-size: 13px; }
.boss-strip strong { font-size: 15px; }
.boss-strip a { margin-left: 0; padding: 8px 13px; color: #07543a; border: 1px solid #93cdb7; border-radius: 9px; text-decoration: none; font-weight: 700; }
.boss-strip span + a { margin-left: auto; }
.topbar { min-height: 108px; display: flex; align-items: center; gap: 20px; padding: 18px 30px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.title-block { margin-right: auto; }
.title-block > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; text-transform: capitalize; }
.title-block h1 { margin: 0; font-size: clamp(24px, 2.1vw, 31px); line-height: 1.1; letter-spacing: -.035em; font-weight: 680; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.search { width: 240px; height: 45px; display: flex; align-items: center; gap: 9px; padding: 0 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 13px; background: #f8fafc; transition: .18s ease; }
.search:focus-within { border-color: #89adef; background: white; box-shadow: 0 0 0 4px rgba(40,104,232,.09); }
.search svg { width: 16px; height: 16px; }
.search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.sync-button { height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; font-size: 13px; font-weight: 700; }
.sync-state { margin: 0; }
.primary-button, .secondary-button {
  min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; border-radius: 12px; cursor: pointer; text-decoration: none; font-weight: 750; font-size: 13px;
}
.primary-button { color: white; border: 1px solid #1f5dcc; background: linear-gradient(180deg,#397bec,#245fce); box-shadow: 0 8px 18px rgba(33,98,207,.2); }
.primary-button:hover { filter: brightness(.97); }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; }
.secondary-button { color: #183252; border: 1px solid #d3dde8; background: white; }
.secondary-button svg:last-child { width: 16px; }
.icon-btn, .icon-link, .link-button, .text-action { border: 0; background: transparent; cursor: pointer; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; }
.icon-btn:hover { background: rgba(121,141,163,.1); }
.menu-btn { display: none; }
.mobile-bottom-nav { display: none; }
.content { padding: 30px; }
.section-toolbar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.calendar-panel { margin-bottom: 25px; }
.calendar-head { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.calendar-head h2 { margin: 5px 0 0; font-size: 22px; text-transform: capitalize; }
.calendar-head > div:last-child { display: flex; align-items: center; gap: 3px; }
.calendar-head .icon-btn { border: 1px solid var(--line); font-size: 24px; }
.calendar-resources { display: flex; gap: 7px; padding: 10px 18px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #fbfcfe; scrollbar-width: thin; }
.calendar-resources button { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border: 1px solid #d7e0ea; border-radius: 18px; color: #52657b; background: white; cursor: pointer; font-size: 11px; font-weight: 750; }
.calendar-resources button.active { color: white; border-color: var(--blue); background: var(--blue); }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; }
.calendar-main { min-width: 0; padding: 18px; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-week span { padding: 4px 7px 10px; color: var(--muted); text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.calendar-days { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.calendar-day { position: relative; min-height: 65px; padding: 8px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; cursor: pointer; text-align: left; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:nth-last-child(-n+7) { border-bottom: 0; }
.calendar-day:hover { background: #f5f9ff; }
.calendar-day.muted { color: #adb8c5; background: #fafbfd; }
.calendar-day.today > span { display: grid; place-items: center; width: 25px; height: 25px; color: white; border-radius: 50%; background: var(--blue); }
.calendar-day.selected { z-index: 1; box-shadow: inset 0 0 0 2px var(--blue); background: #f3f7ff; }
.calendar-day.resource-available { color: #086a49; background: #e9f8f1; }
.calendar-day.resource-unavailable { color: #c3261a; background: #fff0ee; }
.calendar-day.resource-unavailable > span { color: #c3261a; font-weight: 850; }
.calendar-day.resource-available.today > span { color: white; background: var(--green); }
.calendar-day.resource-unavailable.today > span { color: white; background: var(--red); }
.calendar-day.resource-available.selected, .calendar-day.resource-unavailable.selected { box-shadow: inset 0 0 0 2px var(--blue); }
.calendar-day > i { position: absolute; left: 8px; right: 8px; bottom: 7px; display: flex; gap: 4px; font-style: normal; }
.calendar-day b { min-width: 18px; height: 17px; display: inline-grid; place-items: center; padding: 0 4px; color: white; border-radius: 5px; font-size: 9px; }
.op-dot { background: var(--blue); }
.invoice-dot { background: var(--amber); }
.calendar-legend { display: flex; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.calendar-legend i { width: 9px; height: 9px; border-radius: 3px; }
.calendar-selected-resources { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.calendar-selected-resources > strong { color: #41556e; font-size: 12px; }
.calendar-selected-resources > div { display: flex; flex-wrap: wrap; gap: 7px; }
.calendar-resource-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; color: #285277; border: 1px solid #cfe0ef; border-radius: 9px; background: #f3f8fc; cursor: pointer; font-size: 11px; }
.calendar-resource-chip b { color: #748399; font-size: 9px; text-transform: uppercase; }
.calendar-resource-chip i { padding: 2px 5px; color: #8a5700; border-radius: 5px; background: var(--amber-soft); font-size: 9px; font-style: normal; font-weight: 800; }
.calendar-resource-chip i.available { color: var(--green); background: var(--green-soft); }
.calendar-resource-chip.unavailable { border-color: #f0d58b; background: #fff9e9; }
.calendar-resource-chip.active { color: white; border-color: var(--blue); background: var(--blue); box-shadow: 0 5px 14px rgba(40,104,232,.22); }
.calendar-resource-chip.active b { color: #dce9ff; }
.calendar-agenda { min-width: 0; border-left: 1px solid var(--line); background: #fbfcfe; }
.calendar-agenda-head { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px; border-bottom: 1px solid var(--line); }
.calendar-agenda-head span { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.calendar-agenda-head h3 { margin: 4px 0 0; font-size: 15px; }
.compact-button { min-height: 36px; padding: 0 11px; font-size: 12px; }
.agenda-list { display: grid; gap: 10px; padding: 12px; }
.agenda-item { display: grid; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.agenda-summary { gap: 11px; }
.agenda-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid #edf1f5; }
.agenda-summary-head > div { min-width: 0; }
.agenda-summary-head strong, .agenda-summary-head small { display: block; }
.agenda-summary-head strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-summary-head small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.agenda-summary-head .icon-link { width: auto; min-width: 34px; display: inline-flex; align-items: center; padding: 0 7px; gap: 5px; font-size: 10px; font-weight: 750; }
.agenda-summary-head .icon-link span { display: inline; }
.agenda-summary dl { margin: 0; }
.agenda-summary dl > div { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f3f6; font-size: 11px; }
.agenda-summary dl > div:last-child { border-bottom: 0; }
.agenda-summary dt { color: var(--muted); }
.agenda-summary dd { min-width: 0; margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.agenda-summary dd small { display: block; margin-top: 3px; font-size: 9px; }
.confirmed-text { color: var(--green); }
.pending-text { color: var(--amber); }
.agenda-title { display: grid; gap: 3px; padding: 0 0 8px; border: 0; border-bottom: 1px solid #edf1f5; background: transparent; text-align: left; cursor: pointer; }
.agenda-title small { color: var(--muted); }
.agenda-item label:not(.confirm-line) { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 750; }
.agenda-item select { width: 100%; min-height: 38px; padding: 6px 8px; border: 1px solid #ccd7e3; border-radius: 8px; background: white; font-size: 12px; }
.agenda-transport-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; color: #3e5874; border: 1px solid #d9e4ef; border-radius: 8px; background: #f6f9fc; font-size: 11px; }
.agenda-transport-note strong { color: #183b63; }
.confirm-line { display: flex; align-items: center; gap: 7px; color: #52657b; font-size: 11px; }
.confirm-line input { width: 16px; height: 16px; accent-color: var(--green); }
.agenda-empty { padding: 24px 16px; color: var(--muted); text-align: center; font-size: 12px; }
.calendar-unavailable { display: grid; gap: 4px; margin: 12px 12px 0; padding: 11px 12px; color: #805200; border: 1px solid #eed48e; border-radius: 9px; background: #fff8e5; }
.calendar-unavailable strong { font-size: 12px; }
.calendar-unavailable span { font-size: 11px; line-height: 1.5; }
.agenda-invoices { display: grid; gap: 6px; padding: 12px; border-top: 1px solid var(--line); }
.agenda-invoices > strong { margin-bottom: 3px; font-size: 11px; }
.agenda-invoices button { display: flex; justify-content: space-between; gap: 10px; padding: 9px; border: 0; border-radius: 7px; background: var(--amber-soft); cursor: pointer; font-size: 11px; }
.intro-row, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 23px; }
.intro-row h2, .section-head h2 { margin: 0; font-size: clamp(22px, 2vw, 29px); letter-spacing: -.035em; font-weight: 630; }
.intro-row p, .section-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.kpi-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-bottom: 16px; }
.kpi-card { min-width: 0; display: flex; align-items: center; gap: 15px; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(16,34,56,.025); }
.kpi-icon { flex: 0 0 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; }
.kpi-icon.blue, .big-icon.blue { color: var(--blue); background: var(--blue-soft); }
.kpi-icon.purple, .big-icon.purple { color: var(--purple); background: var(--purple-soft); }
.kpi-icon.amber { color: var(--amber); background: var(--amber-soft); }
.kpi-icon.green { color: var(--green); background: var(--green-soft); }
.kpi-card div:last-child { min-width: 0; }
.kpi-card span, .kpi-card small { display: block; color: var(--muted); }
.kpi-card span { font-size: 12px; font-weight: 750; }
.kpi-card strong { display: block; margin: 5px 0 3px; overflow: hidden; font-size: clamp(22px,2vw,29px); line-height: 1.1; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.kpi-card small { font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 16px; align-items: start; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(16,34,56,.025); overflow: hidden; }
.panel-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.link-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; padding: 7px; color: var(--blue); font-size: 12px; font-weight: 750; white-space: nowrap; }
.link-button svg { width: 14px; height: 14px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 13px 14px; color: #748399; background: #f8fafc; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid #edf1f5; vertical-align: middle; white-space: nowrap; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #fafcff; }
tbody tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
.date-planning { color: #c17b00; }
.date-planned { color: var(--green); }
.panel-head p.date-planning { color: #c17b00; font-weight: 750; }
.panel-head p.date-planned { color: var(--green); font-weight: 750; }
td small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.type-pill, .badge, .missing, .assignment-pill { display: inline-flex; align-items: center; width: max-content; padding: 5px 8px; border-radius: 7px; font-size: 11px; font-weight: 750; }
.type-pill, .badge.blue { color: #165ac8; background: #e9f1ff; }
.badge.green { color: #087a55; background: var(--green-soft); }
.badge.amber, .missing { color: #885700; background: var(--amber-soft); }
.badge.red { color: var(--red); background: var(--red-soft); }
.badge.slate { color: #516174; background: #eef2f6; }
.assignment-pill.confirmed { color: var(--green); border: 1px solid #bfe8d7; background: var(--green-soft); }
.assignment-pill.pending { color: #885700; border: 1px solid #f0d58b; background: var(--amber-soft); }
.row-actions { text-align: right; }
.operation-table th:last-child, .operation-table td.row-actions { position: sticky; right: 0; z-index: 2; min-width: 76px; background: #fff; box-shadow: -9px 0 14px rgba(20,34,56,.07); }
.operation-table th:last-child { z-index: 3; background: #f8fafc; }
.operation-table tbody tr:hover td.row-actions { background: #fafcff; }
.operation-table table { width: max-content; min-width: 100%; }
.operation-table th, .operation-table td { padding-right: 9px; padding-left: 9px; }
.operation-table td { padding-top: 9px; padding-bottom: 9px; }
.operation-table th span { display: inline-block; line-height: 1.2; }
.compact-operation-table table { width: max-content; min-width: 100%; }
.compact-operation-table th, .compact-operation-table td { width: auto; padding-right: 6px; padding-left: 6px; }
.compact-operation-table th:last-child, .compact-operation-table td.row-actions { position: static; min-width: 70px; box-shadow: none; }
.compact-operation-table th:last-child { background: #f8fafc; }
.compact-operation-table td.row-actions { background: #fff; }
.change-record-button { min-height: 32px; padding: 0 9px; color: #1558bd; border: 1px solid #cbdcf5; border-radius: 8px; background: var(--blue-soft); cursor: pointer; font-size: 10px; font-weight: 800; }
.row-actions .change-record-button { width: 100%; }
.icon-link { width: 34px; height: 34px; display: inline-grid; place-items: center; color: var(--blue); border-radius: 8px; vertical-align: middle; }
.icon-link:hover { background: var(--blue-soft); }
.icon-link.danger { color: var(--red); }
.icon-link.danger:hover { background: var(--red-soft); }
.icon-link svg { width: 16px; height: 16px; }
.next-body { padding: 20px; }
.next-body h2 { margin: 13px 0 17px; font-size: 25px; letter-spacing: -.03em; }
.next-body dl { margin: 0; }
.next-body dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #edf1f5; font-size: 13px; }
.next-body dt { color: var(--muted); }
.next-body dd { margin: 0; text-align: right; font-weight: 700; }
.next-tasks { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 17px; font-size: 12px; }
.empty-state { min-height: 240px; display: grid; place-content: center; justify-items: center; padding: 30px; color: var(--muted); text-align: center; }
.empty-state > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--blue); background: var(--blue-soft); }
.empty-state h3 { margin: 15px 0 5px; color: var(--ink); font-size: 16px; }
.empty-state p { margin: 0; font-size: 13px; }
.finance-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 15px; }
.finance-summary article { padding: 19px 20px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.finance-summary article.net { color: white; border-color: transparent; background: linear-gradient(135deg,#123d6d,#1d69c1); box-shadow: 0 12px 28px rgba(22,83,150,.2); }
.finance-summary span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.finance-summary .net span { color: #cae0fa; }
.finance-summary strong { font-size: 24px; letter-spacing: -.03em; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.finance-month-picker { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 10px; margin-bottom: 15px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.finance-month-picker > div { min-width: 0; display: grid; gap: 9px; }
.finance-month-picker > div > strong { color: #38516e; font-size: 13px; text-align: center; }
.finance-month-picker > div > div { min-width: 0; display: grid; grid-template-columns: repeat(12,minmax(48px,1fr)); gap: 5px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.finance-month-picker > div button { min-height: 34px; padding: 0 8px; border: 1px solid #dfe6ee; border-radius: 8px; color: #617287; background: #f8fafc; cursor: pointer; font-size: 11px; font-weight: 750; text-transform: capitalize; }
.finance-month-picker > div button.active { color: white; border-color: var(--blue); background: var(--blue); box-shadow: 0 5px 13px rgba(40,104,232,.2); }
.finance-month-picker > .icon-btn { border: 1px solid var(--line); background: #f8fafc; font-size: 23px; }
.monthly-expense-sheet { margin-bottom: 15px; }
.monthly-sheet-totals { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.monthly-sheet-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; }
.monthly-sheet-totals > div + div { border-top: 1px solid var(--line); }
.monthly-sheet-totals span { color: var(--muted); font-size: 12px; font-weight: 700; }
.monthly-sheet-totals strong { font-size: 18px; }
.monthly-expense-list { display: grid; }
.monthly-expense-row { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 180px; align-items: center; gap: 14px; padding: 10px 18px; border-bottom: 1px solid #edf1f5; }
.monthly-expense-row:last-child { border-bottom: 0; }
.monthly-expense-row > span:first-child, .monthly-expense-row strong, .monthly-expense-row small { display: block; min-width: 0; }
.monthly-expense-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.monthly-expense-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.money-input { min-width: 0; display: flex; align-items: center; overflow: hidden; border: 1px solid #ccd7e3; border-radius: 9px; background: white; }
.money-input:focus-within { border-color: #5892e8; box-shadow: 0 0 0 3px rgba(62,123,218,.13); }
.money-input b { flex: 0 0 auto; padding-left: 10px; color: #718096; font-size: 13px; }
.money-input input { min-width: 0; width: 100%; min-height: 40px; padding: 8px 10px 8px 6px; border: 0; outline: 0; color: var(--ink); background: transparent; text-align: right; font-size: 14px; }
.monthly-sheet-empty { padding: 24px 18px; color: var(--muted); text-align: center; font-size: 12px; }
.finance-records { margin-bottom: 15px; }
.cost-entry-button { min-height: 34px; padding: 0 11px; color: #1558bd; border: 1px solid #cbdcf5; border-radius: 8px; background: var(--blue-soft); cursor: pointer; font-size: 11px; font-weight: 800; white-space: nowrap; }
.orphan-costs { margin-top: 15px; }
.stats-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,.7fr); gap: 16px; margin-bottom: 16px; }
.chart-panel { padding: 22px; }
.chart-panel h3 { margin: 0 0 23px; }
.bars { display: grid; gap: 17px; }
.bar-row { display: grid; grid-template-columns: 190px minmax(80px,1fr) 35px; align-items: center; gap: 14px; font-size: 12px; }
.bar-row > div { height: 11px; overflow: hidden; border-radius: 10px; background: #edf2f7; }
.bar-row i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg,#347be8,#73a9fa); }
.stats-side { display: grid; gap: 12px; }
.stats-side .kpi-card { min-height: 103px; }
.stats-kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.stats-kpis .kpi-card { padding: 17px 14px; }
.stats-kpis .kpi-icon { width: 38px; height: 38px; flex-basis: 38px; }
.stats-kpis .kpi-card strong { font-size: 19px; }
.range-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.range-switch button { min-height: 32px; padding: 0 11px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; }
.range-switch button.active { color: white; background: var(--navy-2); }
.financial-chart-panel { margin-bottom: 16px; }
.monthly-chart { height: 275px; display: grid; grid-template-columns: 84px minmax(560px,1fr); overflow-x: auto; padding: 18px 20px 0; }
.chart-axis { height: 210px; display: flex; flex-direction: column; justify-content: space-between; padding-right: 12px; color: var(--muted); font-size: 9px; text-align: right; }
.month-columns { height: 210px; display: grid; grid-template-columns: repeat(12,minmax(42px,1fr)); gap: 8px; border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, transparent 49.5%, #edf1f5 50%, transparent 50.5%); }
.month-column { min-width: 0; display: grid; grid-template-rows: 1fr 35px; align-items: end; }
.month-bars { height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.month-bars i { width: min(16px,38%); min-height: 0; border-radius: 5px 5px 0 0; }
.income-bar { background: linear-gradient(#34c28a,#0b845c); }
.expense-bar { background: linear-gradient(#ff9b8f,#e44b3c); }
.month-column > span { overflow: hidden; padding-top: 8px; color: var(--muted); font-size: 9px; text-align: center; text-transform: capitalize; }
.chart-legend { display: flex; justify-content: center; gap: 18px; padding: 0 20px 18px; color: var(--muted); font-size: 11px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; }
.income-key { background: var(--green); }
.expense-key { background: var(--red); }
.breakdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.breakdown-list { display: grid; gap: 14px; padding: 18px; }
.breakdown-list > div { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; font-size: 12px; }
.breakdown-list > div > i { grid-column: 1/-1; height: 7px; overflow: hidden; border-radius: 7px; background: #edf2f7; }
.breakdown-list > div > i b { display: block; height: 100%; border-radius: 7px; }
.breakdown-list b.income { background: var(--green); }
.breakdown-list b.expense { background: var(--red); }
.mini-empty { margin: 0; color: var(--muted); font-size: 12px; }
.guide-stats > div:not(.panel-head):not(.empty-state) { display: flex; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid #edf1f5; font-size: 13px; }
.guide-stats > div:last-child { border-bottom: 0; }
.definition-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 15px; align-items: start; }
.definition-tabs { display: grid; gap: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 28px rgba(20,34,56,.04); }
.definition-tabs button { padding: 11px 12px; border: 0; border-radius: 8px; background: transparent; text-align: left; color: #53647a; cursor: pointer; font-size: 13px; font-weight: 650; }
.definition-tabs button.active { color: #1558bd; background: var(--blue-soft); }
@media (hover: hover) { .definition-tabs button:hover { color: #1558bd; background: var(--blue-soft); } }
.definition-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; padding: 11px 17px; border-bottom: 1px solid #edf1f5; }
.definition-row:last-child { border-bottom: 0; }
.definition-row strong, .definition-row span { display: block; }
.definition-row strong { font-size: 14px; }
.definition-row span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.definition-row > .row-actions { flex: 0 0 76px; }
.panel-head-actions { display: flex; align-items: center; gap: 6px; }
.category-delete-button { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; color: var(--red); border: 1px solid #f1c9c5; border-radius: 9px; background: var(--red-soft); cursor: pointer; font-size: 11px; font-weight: 800; }
.category-delete-button svg { width: 15px; height: 15px; }
.read-only-note { display: inline-flex; margin-top: 12px; padding: 8px 10px; color: var(--muted); border-radius: 9px; background: #f2f5f8; font-size: 11px; font-weight: 700; }
.permission-button { min-width: 104px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; color: var(--blue); border: 1px solid #cddbf0; border-radius: 10px; background: #f6f9ff; cursor: pointer; font-size: 11px; font-weight: 750; white-space: nowrap; }
.permission-button svg { flex: 0 0 auto; width: 15px; height: 15px; }
.permission-button span { display: inline; margin: 0; color: inherit; font-size: inherit; line-height: 1; white-space: nowrap; }
.user-definition-row > .row-actions { flex-basis: 108px; }
.user-definition-row > div:first-child span { overflow-wrap: anywhere; }
.permission-button:disabled { color: #8996a7; border-color: var(--line); background: #f5f7f9; cursor: not-allowed; }
.calendar-display-settings { display: grid; gap: 20px; padding: 18px; }
.calendar-display-help { display: grid; gap: 5px; padding: 14px; color: #23405f; border: 1px solid #cfe0f8; border-radius: 12px; background: #f3f8ff; }
.calendar-display-help strong { font-size: 14px; }
.calendar-display-help span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.calendar-display-settings section { display: grid; gap: 10px; }
.calendar-display-settings h4 { margin: 0; font-size: 14px; }
.calendar-display-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.calendar-display-options label { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; cursor: pointer; }
.calendar-display-options input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--blue); }
.calendar-display-options span, .calendar-display-options strong, .calendar-display-options small { display: block; min-width: 0; }
.calendar-display-options strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-display-options small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.backup-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.backup-card, .backup-status { padding: 22px; }
.big-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; }
.backup-card h3 { margin: 18px 0 7px; }
.backup-card p, .backup-status p, .api-panel p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.backup-card .primary-button, .backup-card .secondary-button { margin-top: 12px; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.status-line { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.status-line strong { font-size: 15px; }
.status-line p { margin: 5px 0 0; }
.backup-status dl { margin: 10px 0 0; }
.backup-status dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 12px; }
.backup-status dt { color: var(--muted); }
.backup-status dd { margin: 0; font-weight: 700; text-align: right; }
.api-panel { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.9fr); gap: 30px; align-items: center; margin-top: 15px; padding: 24px; }
.api-panel h3 { margin: 7px 0; font-size: 22px; }
.eyebrow { color: var(--blue); font-size: 10px; letter-spacing: .15em; font-weight: 850; }
.endpoint-list { display: grid; gap: 8px; }
.endpoint-list code { padding: 11px 12px; overflow-x: auto; border: 1px solid #dce5ef; border-radius: 8px; color: #24405f; background: #f6f9fc; font-size: 11px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(5,16,29,.58); backdrop-filter: blur(4px); }
.modal { width: min(850px,100%); max-width: 100%; max-height: calc(100dvh - 36px); overflow-x: hidden; overflow-y: auto; overflow-anchor: none; overscroll-behavior: contain; border: 1px solid rgba(255,255,255,.4); border-radius: 17px; background: white; box-shadow: 0 35px 90px rgba(5,16,29,.3); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.modal-head h2 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.03em; }
.form-grid { min-width: 0; margin: 0; border: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 22px; }
.form-grid:disabled { opacity: .86; }
.app-permission-matrix.wide { grid-column: 1/-1; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.permission-help.wide { grid-column: 1/-1; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; color: #23405f; border: 1px solid #cfe0f8; border-radius: 12px; background: #f3f8ff; }
.permission-help strong { font-size: 13px; }
.permission-help span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.app-permission-head, .app-permission-row { min-width: 620px; display: grid; grid-template-columns: minmax(190px,1fr) 110px 130px 90px; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid #edf1f5; }
.app-permission-head { color: var(--muted); background: #f7f9fc; font-size: 9px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.app-permission-row:last-child { border-bottom: 0; }
.app-permission-row > strong { font-size: 11px; }
.app-permission-row label { display: flex; align-items: center; gap: 6px; color: #617287; font-size: 10px; font-weight: 650; }
.app-permission-row input { width: 17px; height: 17px; accent-color: var(--blue); }
.field { min-width: 0; display: grid; gap: 7px; color: #42536a; font-size: 13px; font-weight: 700; }
.field.wide, .form-section.wide { grid-column: 1/-1; }
.conditional-hidden { display: none !important; }
.field input, .field select, .field textarea, .check-row input[type="text"] {
  min-width: 0; max-width: 100%; width: 100%; min-height: 43px; padding: 9px 11px; color: var(--ink); border: 1px solid #ccd7e3; border-radius: 9px; outline: 0; background: white; font-size: 15px; font-weight: 500;
}
.field textarea { min-height: 88px; resize: vertical; }
[data-field-key="reservationNote"] textarea { min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus, .check-row input[type="text"]:focus { border-color: #5892e8; box-shadow: 0 0 0 3px rgba(62,123,218,.13); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.operation-guides-field > small { color: var(--muted); font-size: 11px; font-weight: 550; line-height: 1.4; }
.operation-guides-list { display: grid; gap: 8px; }
.operation-guide-row { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 34px 40px; align-items: center; gap: 7px; }
.operation-guide-row select { min-width: 0; }
.guide-confirm-control { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #ccd7e3; border-radius: 9px; background: #fff; cursor: pointer; }
.guide-confirm-control input { position: absolute; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.guide-confirm-control span { width: 24px; height: 24px; display: grid; place-items: center; color: #8b9bad; border: 1px solid #c8d2dd; border-radius: 7px; font-size: 14px; line-height: 1; }
.guide-confirm-control input:checked + span { color: #fff; border-color: var(--green); background: var(--green); }
.guide-remove-button, .guide-row-spacer { width: 34px; height: 34px; }
.add-guide-button { width: max-content; min-height: 38px; padding: 0 12px; }
.add-guide-button:disabled { opacity: .5; cursor: not-allowed; }
.assignment-stack, .agenda-guide-list { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.agenda-guide-list > span { display: block; }
.guide-availability, .tour-checklist-settings { display: grid; gap: 12px; }
#guide-availability-list { display: grid; gap: 9px; }
.availability-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 38px; align-items: end; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #f9fbfd; }
.availability-row .icon-link { margin-bottom: 4px; }
.availability-row .icon-link.danger { width: 40px; height: 40px; color: var(--red); border: 1px solid #efc3bf; border-radius: 10px; background: var(--red-soft); }
.availability-row .icon-link.danger:hover { background: #fde7e5; }
.tour-checklist-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.tour-checklist-options label { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfd; cursor: pointer; }
.tour-checklist-options input { flex: 0 0 auto; width: 19px; height: 19px; accent-color: var(--green); }
.tour-checklist-options span, .tour-checklist-options strong, .tour-checklist-options small { display: block; min-width: 0; }
.tour-checklist-options strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tour-checklist-options small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.form-section { padding-top: 5px; border-top: 1px solid var(--line); }
.form-section h4 { margin: 16px 0 0; }
.form-section p { margin: 5px 0 13px; color: var(--muted); font-size: 12px; }
.form-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cost-expense-section { display: grid; gap: 10px; }
#cost-expense-list { display: grid; gap: 7px; }
.cost-expense-row { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 180px 36px; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid #dfe6ee; border-radius: 10px; background: #fbfcfe; }
.cost-expense-row > span:first-child, .cost-expense-row strong, .cost-expense-row small { display: block; min-width: 0; }
.cost-expense-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cost-expense-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.cost-expense-name { min-width: 0; width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #ccd7e3; border-radius: 9px; outline: 0; background: white; }
.cost-row-spacer { width: 36px; }
.cost-expense-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; color: white; border-radius: 10px; background: linear-gradient(135deg,#123d6d,#1d69c1); }
.cost-expense-total span { font-size: 12px; font-weight: 700; }
.cost-expense-total strong { font-size: 19px; }
.text-action { padding: 6px; color: var(--blue); font-size: 12px; font-weight: 750; }
#checklist-editor { display: grid; gap: 8px; }
.checklist-picker { margin-top: 10px; overflow: hidden; border: 1px solid #d7e3f2; border-radius: 12px; background: #f7faff; }
.checklist-picker[hidden] { display: none; }
.checklist-sheet-head { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #dfe8f3; background: #fff; }
.checklist-sheet-head strong { font-size: 14px; }
.checklist-custom-add { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 10px; border-bottom: 1px solid #dfe8f3; background: white; }
.checklist-custom-add input { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; color: var(--ink); border: 1px solid #ccd7e3; border-radius: 9px; outline: 0; background: white; font-size: 14px; }
.checklist-custom-add input:focus { border-color: #5892e8; box-shadow: 0 0 0 3px rgba(62,123,218,.13); }
.checklist-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-bottom: 1px solid #dfE8f3; }
.checklist-picker-head strong { color: #24415f; font-size: 13px; }
.checklist-picker-head span { color: var(--muted); font-size: 11px; }
.checklist-choice-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-height: 280px; padding: 9px; overflow-y: auto; }
.checklist-choice { min-width: 0; min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; color: #29445f; border: 1px solid #dbe5f0; border-radius: 9px; background: #fff; cursor: pointer; text-align: left; }
.checklist-choice span { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; color: #fff; border-radius: 7px; background: var(--blue); font-size: 13px; font-weight: 800; }
.checklist-choice strong { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.checklist-choice.selected { color: #678096; background: #eef4f9; cursor: default; }
.checklist-choice.selected span { background: var(--green); }
.checklist-choice:disabled { opacity: .72; }
.check-row { display: grid; grid-template-columns: 34px 20px minmax(0,1fr) 34px; gap: 7px; align-items: center; padding: 7px 8px; border: 1px solid #dfe6ee; border-radius: 9px; background: #fbfcfe; }
.check-row.dragging { opacity: .62; border-color: var(--blue); box-shadow: 0 6px 18px rgba(37,99,235,.16); }
.check-row .drag-handle { color: #8b9bad; cursor: grab; touch-action: none; }
.check-row .drag-handle:active { cursor: grabbing; }
.check-row .drag-handle:hover { color: var(--blue); background: var(--blue-soft); }
.check-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--blue); }
.check-row input[type="text"] { min-height: 34px; padding: 5px 7px; border-color: transparent; background: transparent; }
.check-row input[readonly] { color: var(--ink); cursor: default; }
.check-row button { width: 31px; height: 31px; display: grid; place-items: center; color: var(--red); border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.check-row button:hover { background: var(--red-soft); }
.check-row button svg { width: 15px; height: 15px; }
.switch-field { min-height: 43px; display: flex; align-items: center; gap: 9px; }
.switch-field input { position: absolute; opacity: 0; pointer-events: none; }
.switch-field i { position: relative; width: 38px; height: 22px; border-radius: 20px; background: #c8d2dd; transition: .15s; }
.switch-field i::after { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: .15s; }
.switch-field input:checked + i { background: var(--green); }
.switch-field input:checked + i::after { transform: translateX(16px); }
.switch-field b { font-size: 12px; }
.modal-foot { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 15px 22px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); }
.delete-record-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; color: var(--red); border: 1px solid #efc3bf; border-radius: 10px; background: var(--red-soft); cursor: pointer; font-size: 12px; font-weight: 800; }
.delete-record-button svg { width: 15px; height: 15px; }
.save-note { margin-right: auto; color: var(--muted); font-size: 11px; }
.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; max-width: 380px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; opacity: 0; transform: translateY(12px); color: white; border-radius: 11px; background: #16314f; box-shadow: 0 14px 35px rgba(5,16,29,.25); transition: .2s ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success .toast-dot { background: #42d9a0; }
.toast.warning .toast-dot { background: #ffc955; }
.toast.error { background: #7a1b1b; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; }
.wp-fallback { max-width: 720px; margin: 100px auto; padding: 20px; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(430px,.92fr); background: white; }
.login-visual { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(40px,6vw,88px); color: white; background: radial-gradient(circle at 80% 15%,rgba(68,137,255,.28),transparent 35%), linear-gradient(145deg,#0c1c31,#14385e 62%,#0b2340); }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.login-visual::before { width: 480px; height: 480px; right: -170px; top: 50px; }
.login-visual::after { width: 270px; height: 270px; right: 70px; top: 155px; }
.login-visual-copy, .login-metric-row { position: relative; z-index: 1; }
.login-kicker { display: inline-block; margin-bottom: 25px; color: #8ebcff; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.login-visual h2 { max-width: 700px; margin: 0; font-size: clamp(40px,5vw,72px); line-height: 1.04; letter-spacing: -.055em; font-weight: 620; }
.login-visual-copy p { max-width: 560px; margin: 24px 0 0; color: #bdd0e5; font-size: 17px; line-height: 1.7; }
.login-metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.login-metric-row > div { padding: 17px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: rgba(255,255,255,.05); backdrop-filter: blur(8px); }
.login-metric-row strong, .login-metric-row span { display: block; }
.login-metric-row strong { font-size: 14px; }
.login-metric-row span { margin-top: 5px; color: #9db5cf; font-size: 11px; }
.login-form-side { display: grid; place-items: center; padding: 35px; background: #f7f9fc; }
.login-card { width: min(430px,100%); padding: 36px; border: 1px solid #dfe6ee; border-radius: 18px; background: white; box-shadow: 0 24px 70px rgba(16,34,56,.12); }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand-mark { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; color: white; border-radius: 14px; background: linear-gradient(145deg,#4389ff,#1f61ce); box-shadow: 0 8px 24px rgba(31,97,206,.25); font-weight: 800; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 17px; }
.login-brand small { margin-top: 5px; color: #8493a6; font-size: 9px; letter-spacing: .17em; }
.login-heading { margin: 35px 0 24px; }
.login-heading h1, .access-card h1 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.login-heading p, .access-card p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-form { display: grid; gap: 15px; }
.login-form label { display: grid; gap: 7px; }
.login-form label > span { color: #405169; font-size: 12px; font-weight: 700; }
.login-form input[type="email"], .login-form input[type="password"] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd7e3; border-radius: 9px; outline: none; color: var(--ink); background: #fbfcfe; }
.login-form input:focus { border-color: #538ee7; box-shadow: 0 0 0 3px rgba(55,119,220,.13); }
.login-form .remember-row { display: flex; grid-auto-flow: column; align-items: center; justify-content: start; gap: 8px; }
.remember-row input { width: 16px; height: 16px; accent-color: var(--blue); }
.login-button { min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid #1759c8; border-radius: 9px; color: white; background: linear-gradient(180deg,#3378ea,#2162cf); box-shadow: 0 9px 20px rgba(33,98,207,.2); cursor: pointer; text-decoration: none; font-weight: 750; }
.login-help { margin: 21px 0 0; color: #8997a8; font-size: 11px; line-height: 1.55; text-align: center; }
.login-alert { margin-bottom: 16px; padding: 11px 12px; color: #9b2721; border: 1px solid #f1c5c1; border-radius: 9px; background: #fff0ee; font-size: 12px; font-weight: 650; }
.access-card { text-align: center; }
.access-card .login-brand-mark { margin: 0 auto 22px; }
.access-card .login-button { margin-top: 22px; }

@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 238px minmax(0,1fr); }
  .sidebar { width: 238px; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .next-card { display: none; }
  .search { width: 180px; }
  .stats-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .app-shell { height: 100dvh; min-height: 100dvh; display: block; overflow: hidden; }
  .main { height: 100dvh; min-height: 0; grid-column: auto; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
  .sidebar { width: min(310px,88vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 18px 0 50px rgba(5,16,29,.25); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 35; display: none; background: rgba(4,12,22,.45); }
  .sidebar.open + .sidebar-scrim { display: block; }
  .sidebar-close, .menu-btn { display: grid; }
  .topbar { min-height: 97px; padding: 16px 20px; }
  .boss-strip { padding: 0 20px; }
  .boss-strip span { display: none; }
  .sync-label { display: none; }
  .sync-button { width: 43px; justify-content: center; }
  .content { padding: 22px 20px; }
  .main { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .mobile-bottom-nav { position: fixed !important; z-index: 70; inset: auto 0 0 0; width: 100%; min-height: 64px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(56px,1fr); padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid #d8e1ea; background: #fff; box-shadow: 0 -8px 30px rgba(16,34,56,.1); transform: translate3d(0,0,0); -webkit-transform: translate3d(0,0,0); }
  .modal-open .mobile-bottom-nav { display: none !important; }
  .modal-open .main { overflow: hidden; }
  .mobile-bottom-nav button { min-width: 0; min-height: 52px; display: grid; place-content: center; justify-items: center; gap: 3px; padding: 3px; border: 0; border-radius: 9px; color: #748398; background: transparent; cursor: pointer; }
  .mobile-bottom-nav button.active { color: var(--blue); background: var(--blue-soft); }
  .mobile-bottom-nav span { display: grid; place-items: center; }
  .mobile-bottom-nav svg { width: 20px; height: 20px; }
  .mobile-bottom-nav small { overflow: hidden; max-width: 100%; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
  .stats-grid, .api-panel { grid-template-columns: 1fr; }
  .calendar-layout { grid-template-columns: 1fr; }
  .calendar-agenda { border-top: 1px solid var(--line); border-left: 0; }
  .agenda-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .backup-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .backup-status { grid-column: 1/-1; }
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-side { min-height: 100vh; }
}

@media (max-width: 680px) {
  .boss-strip { min-height: 45px; padding: 0 12px; font-size: 12px; }
  .boss-strip a { padding: 6px 9px; font-size: 11px; }
  .topbar { min-height: 106px; flex-wrap: wrap; gap: 10px; padding: 12px; }
  .title-block { order: 1; flex: 1; }
  .title-block > span { display: none; }
  .top-actions { order: 2; width: 100%; }
  .search { flex: 1; width: auto; }
  .primary-button span { display: none; }
  .top-actions .primary-button { width: 43px; padding: 0; }
  .content { padding: 14px 16px calc(78px + env(safe-area-inset-bottom)); }
  .checklist-choice-list { grid-template-columns: 1fr; max-height: 250px; }
  .section-toolbar { margin-bottom: 10px; }
  .install-button { width: 43px; padding: 0; }
  .install-button span { display: none; }
  .intro-row, .section-head { align-items: flex-start; }
  .section-head { flex-wrap: wrap; }
  .intro-row .secondary-button { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi-card { align-items: flex-start; padding: 15px 13px; }
  .kpi-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .kpi-card strong { font-size: 19px; }
  .kpi-card small { display: none; }
  .finance-summary { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .finance-summary article { min-width: 0; padding: 12px 8px; }
  .finance-summary span { min-height: 28px; margin-bottom: 4px; font-size: 9px; line-height: 1.35; }
  .finance-summary strong { display: block; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
  .finance-month-picker { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 5px; padding: 8px 6px; }
  .finance-month-picker > div > div { grid-template-columns: repeat(12,54px); }
  .finance-month-picker > .icon-btn { width: 36px; height: 36px; }
  .monthly-sheet-totals { grid-template-columns: 1fr; }
  .monthly-sheet-totals > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .monthly-expense-row { grid-template-columns: minmax(0,1fr) 112px; gap: 8px; padding: 9px 10px; }
  .monthly-expense-sheet .panel-head { align-items: flex-start; padding: 12px; }
  .monthly-expense-sheet .panel-head .compact-button { flex: 0 0 auto; width: auto; padding: 0 12px; }
  .monthly-expense-sheet .panel-head .compact-button span { display: inline !important; }
  .stats-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stats-kpis .kpi-card:last-child { grid-column: 1/-1; }
  .breakdown-grid { grid-template-columns: 1fr; }
  .monthly-chart { grid-template-columns: 58px minmax(530px,1fr); padding-inline: 10px; }
  .range-switch { width: 100%; }
  .range-switch button { flex: 1; }
  .calendar-panel { margin-bottom: 17px; border-radius: 16px; }
  .calendar-head { min-height: 70px; padding: 13px 12px; }
  .calendar-head h2 { font-size: 18px; }
  .calendar-head .icon-btn { width: 35px; height: 35px; }
  .calendar-main { padding: 10px 7px 12px; }
  .calendar-day { min-height: 98px; padding: 8px 5px; font-size: 13px; }
  .calendar-day.today > span { width: 30px; height: 30px; }
  .calendar-day > i { left: 4px; right: 4px; bottom: 4px; gap: 2px; }
  .calendar-day b { min-width: 14px; height: 13px; padding: 0 2px; font-size: 7px; }
  .calendar-legend { padding-left: 3px; }
  .agenda-list { grid-template-columns: 1fr; }
  .agenda-item select { min-height: 44px; }
  .definition-layout { grid-template-columns: 1fr; }
  .definition-tabs { display: flex; overflow-x: auto; }
  .definition-tabs button { flex: 0 0 auto; }
  .definition-panel .panel-head { min-height: 64px; padding: 11px 12px; }
  .definition-panel .compact-button { width: 38px; min-height: 38px; padding: 0; }
  .definition-panel .compact-button span { display: none; }
  .definition-row { min-height: 54px; gap: 8px; padding: 8px 9px; }
  .definition-row strong { font-size: 15px; }
  .definition-row span { font-size: 12px; line-height: 1.4; }
  .permission-button { font-size: 12px; }
  .calendar-display-settings { padding: 12px; }
  .calendar-display-options { grid-template-columns: 1fr; }
  .calendar-display-options strong { font-size: 14px; }
  .availability-row { grid-template-columns: 1fr 1fr 36px; padding: 8px; }
  .tour-checklist-options { grid-template-columns: 1fr; }
  .category-delete-button span { display: inline !important; }
  .backup-grid { grid-template-columns: 1fr; }
  .backup-status { grid-column: auto; }
  .api-panel { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; padding: 16px; }
  #record-form[data-entity="operation"] .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 8px; }
  #record-form[data-entity="operation"] .form-grid > * { grid-column: 1 / -1; }
  #record-form[data-entity="operation"] [data-field-key="dateStart"] { grid-column: 1; }
  #record-form[data-entity="operation"] [data-field-key="dateEnd"] { grid-column: 2; }
  .field.wide, .form-section.wide { grid-column: auto; }
  .app-permission-head, .app-permission-row { min-width: 0; grid-template-columns: minmax(100px,1fr) repeat(3,48px); gap: 4px; padding: 8px 7px; }
  .app-permission-row > strong { font-size: 10px; }
  .app-permission-row label { justify-content: flex-start; gap: 3px; font-size: 9px; }
  .app-permission-row input { width: 15px; height: 15px; }
  .modal-backdrop { place-items: stretch; padding: 0; overflow-x: hidden; background: white; }
  .modal { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .modal-head { padding-top: calc(16px + env(safe-area-inset-top)); }
  .modal-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal-foot button { flex: 1 1 0; min-width: 0; padding-inline: 10px; white-space: nowrap; }
  .modal-foot .delete-record-button { flex: 0 1 auto; }
  .modal-foot .delete-record-button span { display: none; }
  .save-note { display: none; }
  .modal-foot .secondary-button { margin-left: auto; }
  .form-grid, .form-grid > * { min-width: 0; max-width: 100%; }
  .field input[type="date"], .field select { min-width: 0; width: 100%; }
  .cost-expense-row { grid-template-columns: minmax(0,1fr) 105px 32px; gap: 6px; padding: 7px; }
  .cost-expense-row .icon-link, .cost-row-spacer { width: 32px; }
  .cost-expense-row small { display: none; }
  .cost-expense-name { min-height: 40px; }
  .bar-row { grid-template-columns: 120px minmax(60px,1fr) 25px; gap: 8px; }
  .toast { left: 10px; right: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); max-width: none; }
  .table-wrap { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .table-wrap table { width: max-content; min-width: 100%; font-size: 12px; }
  .operation-table table { width: max-content; min-width: 100%; }
  .compact-operation-table table { width: max-content; min-width: 100%; }
  .compact-operation-table th, .compact-operation-table td { padding-right: 6px; padding-left: 6px; }
  .compact-operation-table .row-actions { position: static; width: 70px; min-width: 70px; box-shadow: none; }
  .cost-operation-table table { min-width: 980px; }
  .table-wrap th { padding: 10px 8px; font-size: 10px; }
  .table-wrap td { padding: 10px 8px; }
  .operation-table th, .operation-table td { padding-right: 6px; padding-left: 6px; }
  .compact-operation-table th, .compact-operation-table td { padding-right: 5px; padding-left: 5px; }
  .table-wrap td small { margin-top: 3px; font-size: 10px; }
  .table-wrap .type-pill, .table-wrap .badge, .table-wrap .missing, .table-wrap .assignment-pill { padding: 5px 7px; font-size: 10px; }
  .table-wrap .row-actions { position: sticky; right: 0; width: 70px; min-width: 70px; padding: 5px; background: #fff; box-shadow: -8px 0 12px rgba(255,255,255,.88); }
  .table-wrap th.row-actions { z-index: 3; background: #f8fafc; }
  .cost-operation-table .row-actions { width: 118px; min-width: 118px; }
  .table-wrap .row-actions .icon-link { width: 34px; height: 30px; display: grid; margin: 0 auto; }
  .operation-table .row-actions, .operation-table th:last-child { width: 70px; min-width: 70px; padding-inline: 5px; }
  .compact-operation-table th:last-child { width: 70px; min-width: 70px; }
  .definition-row > div:first-child { min-width: 0; }
  .definition-row > .row-actions { flex: 0 0 70px; display: grid; gap: 2px; }
  .definition-row > .row-actions .change-record-button { width: 100%; }
  .user-definition-row > .row-actions { flex-basis: 108px; }
  .user-definition-row .permission-button { width: 108px; min-width: 108px; padding-inline: 8px; }
  .user-definition-row .permission-button span { display: inline; margin: 0; color: inherit; font-size: 10px; line-height: 1; white-space: nowrap; }
  .checklist-custom-add { grid-template-columns: 1fr; }
  .checklist-custom-add .primary-button { width: 100%; }
  .checklist-custom-add .primary-button span { display: inline; }
  .dashboard-grid .compact-operation-table table { width: max-content; min-width: 100%; }
  .panel > .table-wrap .empty-state { min-height: 180px; }
  .login-form-side { padding: 18px; }
  .login-card { padding: 28px 22px; }
}

/* v1.15 mobile stability and compact operation controls */
body.tur-operasyon-body, .app-shell, .main, .content, .dashboard-grid, .panel { width: 100%; max-width: 100%; }
body.tur-operasyon-body button,
body.tur-operasyon-body .primary-button,
body.tur-operasyon-body .secondary-button,
body.tur-operasyon-body .permission-button,
body.tur-operasyon-body .category-delete-button,
body.tur-operasyon-body .delete-record-button,
body.tur-operasyon-body .cost-entry-button { border: 0 !important; }
.assignment-pill { border: 0 !important; }
.operation-table th:last-child,
.operation-table td.row-actions,
.cost-operation-table th:last-child,
.cost-operation-table td.row-actions { position: static !important; right: auto !important; box-shadow: none !important; }
.checklist-progress { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 26px; padding: 3px 7px; border-radius: 8px; font-size: 11px; font-weight: 850; }
.checklist-progress.empty { color: #b42318; background: var(--red-soft); }
.checklist-progress.partial { color: #885700; background: var(--amber-soft); }
.checklist-progress.complete { color: var(--green); background: var(--green-soft); }
.past-operations-panel, .operation-list-panel + .operation-list-panel { margin-top: 16px; }
.operation-vehicles-field > small { color: var(--muted); font-size: 11px; font-weight: 550; line-height: 1.4; }
.operation-vehicles-list { display: grid; gap: 8px; }
.operation-vehicle-row { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 34px 40px; align-items: center; gap: 7px; }
.operation-vehicle-row select { min-width: 0; }
.vehicle-remove-button, .vehicle-row-spacer { width: 34px; height: 34px; }
.add-vehicle-button { width: max-content; min-height: 38px; padding: 0 12px; }
.add-vehicle-button:disabled { opacity: .5; cursor: not-allowed; }
.linked-finance-expense { background: #eef8f4; }
.linked-finance-expense input[readonly] { color: var(--green); font-weight: 800; }
.field > span small { color: var(--muted); font-size: 10px; font-weight: 550; }
.multi-select-field { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 8px; border-radius: 11px; background: #f6f9fc; }
.multi-select-field label { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; background: #fff; cursor: pointer; font-size: 12px; }
.multi-select-field input { flex: 0 0 auto; width: 18px !important; height: 18px !important; min-height: 0 !important; padding: 0 !important; accent-color: var(--blue); }
.multi-select-field span { overflow-wrap: anywhere; }

@media (max-width: 680px) {
  .panel, .kpi-card { border-color: #e0e7ef; border-radius: 16px; box-shadow: 0 8px 24px rgba(20,34,56,.06); }
  .panel-head { min-height: 64px; padding: 14px 15px; }
  .panel-head h3 { font-size: 16px; }
  .panel-head p { line-height: 1.4; }
  .calendar-days { gap: 4px; padding: 4px; overflow: visible; border: 0; border-radius: 12px; background: #f4f7fa; }
  .calendar-day,
  .calendar-day:nth-child(7n),
  .calendar-day:nth-last-child(-n+7) { min-height: 0; aspect-ratio: 1 / 1; padding: 6px 4px; border: 1px solid #dfe7ef; border-radius: 9px; background: #fff; box-shadow: 0 2px 7px rgba(16,34,56,.045); text-align: center; font-size: 15px; font-weight: 700; }
  .calendar-day > span { margin: auto; }
  .calendar-day.muted { color: #aab5c2; background: #f8fafc; }
  .calendar-day.resource-available { border-color: #c9e8dc; background: #eaf8f2; }
  .calendar-day.resource-unavailable { border-color: #f0cfca; background: #fff1ef; }
  .calendar-day.selected,
  .calendar-day.resource-available.selected,
  .calendar-day.resource-unavailable.selected { box-shadow: 0 0 0 2px var(--blue), 0 4px 10px rgba(40,104,232,.14); }
  .calendar-day.today > span { width: 28px; height: 28px; font-size: 14px; }
  .calendar-day > i { left: 3px; right: 3px; bottom: 3px; }
  .operation-vehicle-row { grid-template-columns: minmax(0,1fr) 34px 40px; padding: 8px; border-radius: 10px; background: #f7f9fc; }
  .operation-vehicle-row [data-vehicle-company] { grid-column: 1 / -1; grid-row: 2; }
  .operation-vehicle-row .vehicle-remove-button, .operation-vehicle-row .vehicle-row-spacer { grid-column: 2; grid-row: 1; }
  .operation-vehicle-row .guide-confirm-control { grid-column: 3; grid-row: 1; }
  .operation-guides-field .add-guide-button span, .operation-vehicles-field .add-vehicle-button span { display: inline !important; }
  .compact-operation-table th:last-child, .compact-operation-table td.row-actions { position: static; right: auto; z-index: auto; background: #fff; box-shadow: none; }
  .compact-operation-table th:last-child { background: #f8fafc; }
  .app-permission-matrix.wide { overflow: visible; border: 0; }
  .app-permission-head { display: none; }
  .app-permission-row { min-width: 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-bottom: 8px; padding: 11px; border: 0; border-radius: 11px; background: #f7f9fc; }
  .app-permission-row > strong { grid-column: 1/-1; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: 12px; }
  .app-permission-row label { min-width: 0; align-items: center; justify-content: flex-start; gap: 5px; font-size: 10px; line-height: 1.2; }
  .app-permission-row label span { overflow-wrap: anywhere; }
  .app-permission-row input { flex: 0 0 auto; width: 18px; height: 18px; }
  .multi-select-field { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; max-height: none; padding: 6px; overflow: visible; }
  .multi-select-field label { gap: 7px; padding: 7px 8px; font-size: 10px; line-height: 1.25; }
  .multi-select-field input { width: 16px !important; height: 16px !important; }
  .checklist-picker:not([hidden]) { position: fixed; z-index: 130; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; display: flex; max-height: min(72dvh,620px); flex-direction: column; margin: 0; border-radius: 18px; background: #f7faff; box-shadow: 0 24px 70px rgba(8,24,45,.28); }
  .checklist-sheet-head { display: flex; flex: 0 0 auto; }
  .checklist-custom-add, .checklist-picker-head { flex: 0 0 auto; }
  .checklist-choice-list { min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
  .modal-head h2 { font-size: 19px; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
