:root {
  --ink: #1f2937;
  --muted: #697586;
  --subtle: #8a94a3;
  --line: #dfe3e8;
  --line-strong: #c9d0d8;
  --canvas: #f5f7f9;
  --panel: #ffffff;
  --panel-soft: #f8fafb;
  --blue: #2476d2;
  --blue-soft: #e7f1ff;
  --teal: #14b8a6;
  --teal-soft: #d9f7f2;
  --yellow: #f5b82e;
  --yellow-soft: #fff5d6;
  --green: #18a34a;
  --green-soft: #def7e6;
  --orange: #ea580c;
  --orange-soft: #ffe8dc;
  --purple: #7c4dce;
  --purple-soft: #efe8ff;
  --shadow: 0 18px 55px rgba(31, 41, 55, .12);
  --radius: 7px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.45 var(--font); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { display: flex; min-height: 100vh; flex-direction: column; gap: 24px; padding: 20px 14px 14px; border-right: 1px solid var(--line); background: #fbfcfd; }
.brand-row { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: #e20083; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.brand-row strong, .brand-row span { display: block; }
.brand-row strong { font-size: 14px; }
.brand-row span { margin-top: 1px; color: var(--muted); font-size: 11px; }
.primary-nav, .table-nav { display: grid; gap: 3px; }
.nav-item, .sidebar-link, .table-nav button { width: 100%; border: 0; border-radius: 6px; background: transparent; color: #4b5563; text-align: left; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
.nav-item:hover, .nav-item.active { background: #eaf0f7; color: #111827; }
.nav-item.active { font-weight: 700; }
.nav-icon { display: inline-grid; width: 19px; place-items: center; color: #667085; font-size: 15px; }
.sidebar-section { padding-top: 4px; }
.sidebar-section-title { display: flex; align-items: center; justify-content: space-between; padding: 0 9px 7px; color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.mini-button { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--muted); }
.table-nav button { display: flex; align-items: center; gap: 9px; padding: 8px 10px; color: #535c67; }
.table-nav button:hover, .table-nav button.active { background: #e7eef8; color: #162235; }
.table-nav button.active { font-weight: 700; }
.table-nav .table-icon { width: 17px; color: var(--blue); }
.sidebar-footer { display: grid; gap: 4px; margin-top: auto; }
.sidebar-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.sidebar-link:hover { background: #eef2f6; color: var(--ink); }
.next-deadline { margin-top: 14px; padding: 12px; border: 1px solid #e7d9ad; border-radius: var(--radius); background: #fff9e9; }
.next-deadline span, .next-deadline small { display: block; color: #7f6e37; font-size: 11px; }
.next-deadline strong { display: block; margin: 3px 0; color: #574611; font-size: 18px; }

.main-area { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--panel); }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.breadcrumb b { color: var(--ink); }
.crumb-divider { color: #b1b9c3; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.outline-button, .avatar-button, .soft-button, .primary-button, .toolbar-button, .title-menu-button { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: #4b5563; }
.outline-button { min-height: 32px; padding: 0 10px; }
.outline-button:hover, .soft-button:hover, .toolbar-button:hover, .title-menu-button:hover { border-color: var(--line-strong); background: #f8fafc; color: var(--ink); }
.avatar-button { width: 32px; height: 32px; border-color: #d8a5c5; background: #f3d9eb; color: #a11469; font-size: 11px; font-weight: 800; }
.workspace-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 26px 26px 20px; background: var(--panel); }
.eyebrow { margin: 0 0 5px; color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.title-line { display: flex; align-items: center; gap: 8px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 3px; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.1; }
h2 { margin-bottom: 0; font-size: 20px; }
.subline { margin: 0; color: var(--muted); font-size: 12px; }
.title-menu-button { width: 30px; height: 30px; }
.workspace-actions { display: flex; align-items: center; gap: 7px; }
.soft-button { width: 34px; height: 34px; font-size: 18px; }
.primary-button { min-height: 34px; padding: 0 13px; border-color: #155eb3; background: var(--blue); color: #fff; font-weight: 700; }
.primary-button:hover { background: #1f68bd; }

.view-toolbar { display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 8px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfcfd; overflow-x: auto; }
.view-picker-wrap { position: relative; }
.toolbar-button { display: inline-flex; align-items: center; gap: 7px; min-height: 33px; padding: 0 9px; white-space: nowrap; }
.toolbar-button strong { color: var(--ink); }
.view-picker-button { border-color: transparent; background: transparent; }
.view-picker-button:hover { background: #eef3f8; }
.toolbar-icon { color: #6b7280; }
.toolbar-search { display: none; align-items: center; gap: 6px; min-width: 190px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.toolbar-search.visible { display: flex; }
.toolbar-search input { width: 100%; height: 31px; border: 0; outline: 0; background: transparent; }
.toolbar-divider { width: 1px; height: 24px; margin: 0 4px; background: var(--line); }
.toolbar-spacer { flex: 1; }
.icon-only { width: 33px; justify-content: center; padding: 0; }
.toolbar-count { display: inline-grid; min-width: 18px; height: 18px; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 10px; }
.popover { position: fixed; z-index: 30; min-width: 235px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); box-shadow: var(--shadow); }
.view-popover { position: absolute; top: calc(100% + 7px); left: 0; min-width: 260px; }
.popover button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: #404957; text-align: left; }
.popover button:hover, .popover button.active { background: #edf3fa; color: #172033; }
.popover .popover-group { padding: 8px 10px 4px; color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.tools-popover, .table-popover { top: 102px; left: 210px; }
.table-popover { top: 122px; left: 270px; }

.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--panel); }
.summary-strip article { min-height: 62px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfd; }
.summary-strip article span { display: block; color: var(--muted); font-size: 11px; }
.summary-strip article strong { display: block; margin-top: 3px; color: var(--ink); font-size: 20px; }
.summary-strip article.warning { border-color: #f2d28e; background: #fffaf0; }
.summary-strip article.warning strong { color: #9a6200; }
.content-panel { min-height: 520px; padding: 0 24px 24px; background: var(--panel); }
.view-pane { min-width: 0; }

.grid-shell { overflow: auto; border: 1px solid var(--line); border-top: 0; background: var(--panel); }
.data-table { width: max(100%, 1260px); border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.data-table th, .data-table td { position: relative; min-width: 150px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { height: 42px; padding: 0 10px; background: #f7f9fb; color: #4b5563; font-size: 11px; font-weight: 800; white-space: nowrap; }
.data-table td { height: var(--row-height, 55px); padding: 7px 10px; background: #fff; vertical-align: middle; }
.data-table th:first-child, .data-table td:first-child { position: sticky; left: 0; z-index: 4; min-width: 42px; width: 42px; padding: 0; background: #fff; text-align: center; }
.data-table th:nth-child(2), .data-table td:nth-child(2) { position: sticky; left: 42px; z-index: 3; min-width: 290px; width: 290px; background: #fff; }
.data-table th:nth-child(2) { background: #f7f9fb; z-index: 5; }
.data-table td:nth-child(2) { box-shadow: 4px 0 7px rgba(31, 41, 55, .04); }
.data-table th:last-child, .data-table td:last-child { border-right: 0; }
.data-table tr:hover td { background: #fbfdff; }
.data-table tr:hover td:nth-child(1), .data-table tr:hover td:nth-child(2) { background: #fbfdff; }
.table-checkbox { width: 17px; height: 17px; accent-color: var(--blue); }
.record-index { color: var(--subtle); font-size: 11px; }
.record-title-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row-color-marker { width: 4px; align-self: stretch; min-height: 36px; border-radius: 3px; background: var(--blue); }
.row-color-marker.blue { background: var(--blue); }.row-color-marker.teal { background: var(--teal); }.row-color-marker.yellow { background: var(--yellow); }.row-color-marker.green { background: var(--green); }.row-color-marker.orange { background: var(--orange); }.row-color-marker.purple { background: var(--purple); }
.record-title-text { min-width: 0; }
.record-title-text strong, .record-title-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-title-text strong { color: #27303b; font-size: 13px; }
.record-title-text small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.cell-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-list { display: flex; flex-wrap: wrap; gap: 4px; max-height: calc(var(--row-height, 55px) - 12px); overflow: hidden; }
.pill { display: inline-flex; align-items: center; min-height: 24px; max-width: 100%; padding: 0 9px; border-radius: 999px; background: #e9eef5; color: #475569; font-size: 11px; white-space: nowrap; }
.pill.blue { background: var(--blue-soft); color: #1660b4; }.pill.teal { background: var(--teal-soft); color: #087d71; }.pill.yellow { background: var(--yellow-soft); color: #956500; }.pill.green { background: var(--green-soft); color: #15753a; }.pill.orange { background: var(--orange-soft); color: #b34608; }.pill.purple { background: var(--purple-soft); color: #6440a9; }
.status-cell { display: flex; align-items: center; gap: 7px; }
.open-record { width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #637083; opacity: 0; }
.data-table tr:hover .open-record, .open-record:focus { opacity: 1; }
.resize-handle { position: absolute; top: 0; right: -3px; z-index: 8; width: 7px; height: 100%; cursor: col-resize; }
.summary-row td { height: 36px; color: var(--muted); font-size: 11px; }
.summary-row td:first-child, .summary-row td:nth-child(2) { background: #f7f9fb; }
.table-bottom { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; color: var(--muted); font-size: 11px; }
.table-bottom strong { color: var(--ink); font-weight: 600; }

.kanban-header, .timeline-header, .calendar-header, .list-header, .gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 12px; }
.view-caption { color: var(--muted); font-size: 12px; }
.kanban-board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 7px; }
.kanban-column { min-height: 380px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; }
.kanban-column.drag-over { border-color: var(--blue); background: var(--blue-soft); }
.kanban-column-header { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-bottom: 1px solid var(--line); background: #f4f7fa; }
.kanban-column-header strong { font-size: 12px; }
.kanban-column-header span { color: var(--muted); font-size: 11px; }
.kanban-cards { min-height: 330px; padding: 8px; }
.kanban-card { position: relative; display: grid; gap: 8px; margin-bottom: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 2px 5px rgba(31,41,55,.04); cursor: grab; }
.kanban-card:active { cursor: grabbing; }.kanban-card.dragging { opacity: .45; }
.kanban-card strong { font-size: 13px; }.kanban-card small { color: var(--muted); }.kanban-card .card-footer { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 10px; }
.kanban-add { width: 100%; margin-top: 2px; padding: 8px; border: 1px dashed var(--line-strong); border-radius: 5px; background: transparent; color: var(--muted); }

.calendar-shell { border: 1px solid var(--line); overflow: auto; }.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); min-width: 910px; }.calendar-weekday { padding: 9px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f7f9fb; color: var(--muted); font-size: 11px; font-weight: 800; }.calendar-day { min-height: 130px; padding: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }.calendar-day.weekend { background: #fbf7f7; }.calendar-day.today { background: #f0f7ff; }.calendar-day-number { color: var(--muted); font-size: 11px; }.calendar-day.other-month { background: #fbfcfd; color: #b6bec8; }.calendar-event { display: block; margin-top: 7px; padding: 6px; border-radius: 5px; background: var(--blue-soft); color: #155ea9; font-size: 10px; cursor: pointer; }.calendar-event.green { background: var(--green-soft); color: #15753a; }.calendar-event.orange { background: var(--orange-soft); color: #b34608; }

.timeline-shell { overflow: auto; border: 1px solid var(--line); }.timeline-inner { min-width: 1080px; }.timeline-axis { display: grid; grid-template-columns: 260px repeat(14, minmax(70px, 1fr)); border-bottom: 1px solid var(--line); }.timeline-axis > div { min-height: 48px; padding: 7px; border-right: 1px solid #e9edf1; background: #f7f9fb; color: var(--muted); font-size: 10px; }.timeline-axis .axis-label { position: sticky; left: 0; z-index: 4; background: #f7f9fb; font-weight: 800; }.timeline-body { position: relative; }.timeline-row { display: grid; grid-template-columns: 260px 1fr; min-height: 62px; border-bottom: 1px solid var(--line); }.timeline-name { position: sticky; left: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-right: 1px solid var(--line); background: #fff; }.timeline-name strong { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.timeline-track { position: relative; background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(7.142% - 1px), #eef1f4 calc(7.142% - 1px), #eef1f4 7.142%); }.timeline-band { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; opacity: .24; }.timeline-band-label { position: absolute; top: 6px; left: 7px; color: #7c5d00; font-size: 9px; font-weight: 700; white-space: nowrap; }.timeline-bar { position: absolute; top: 18px; height: 26px; min-width: 20px; padding: 0 8px; border: 0; border-radius: 5px; background: var(--blue); color: #fff; font-size: 10px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: grab; }.timeline-bar.green { background: var(--green); }.timeline-bar.orange { background: var(--orange); }.timeline-bar.teal { background: var(--teal); }.timeline-bar:active { cursor: grabbing; }.timeline-milestone { position: absolute; top: 8px; z-index: 2; width: 2px; height: 46px; background: var(--orange); }.timeline-milestone::after { position: absolute; top: 17px; left: -5px; width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: var(--orange); content: ""; }.timeline-milestone span { position: absolute; top: -3px; left: 8px; width: 140px; color: #9b3f09; font-size: 9px; }

.list-view { border: 1px solid var(--line); }.list-group { border-bottom: 1px solid var(--line); }.list-group:last-child { border-bottom: 0; }.list-group-title { padding: 10px 13px; background: #f7f9fb; color: var(--muted); font-size: 11px; font-weight: 800; }.list-record { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px; border-top: 1px solid var(--line); background: #fff; }.list-record:hover { background: #fbfdff; }.list-record-main { display: flex; align-items: center; gap: 10px; min-width: 0; }.list-record-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.list-record-main small { display: block; color: var(--muted); }.list-record-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }.gallery-card { display: grid; gap: 9px; min-height: 190px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 2px 5px rgba(31,41,55,.04); }.gallery-card:hover { border-color: #b9cae0; }.gallery-image { display: grid; height: 82px; place-items: center; border-radius: 5px; background: linear-gradient(135deg, #eef4fb, #f7f9fb); color: #7190b4; font-size: 24px; }.gallery-card h3 { margin: 0; font-size: 14px; }.gallery-card p { margin: 0; color: var(--muted); font-size: 11px; }.gallery-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; color: var(--muted); font-size: 10px; }
.empty-state { display: grid; min-height: 280px; place-items: center; padding: 40px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }
.app-footer { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 28px; border-top: 1px solid var(--line); background: #fbfcfd; color: var(--muted); font-size: 10px; }.save-status { color: var(--green); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(15, 23, 42, .38); }.modal-backdrop[hidden], [hidden] { display: none !important; }
.record-modal, .settings-modal { display: grid; width: min(980px, 100%); max-height: min(790px, calc(100vh - 36px)); grid-template-rows: auto 1fr auto; border-radius: 8px; background: #fff; box-shadow: 0 30px 100px rgba(15,23,42,.25); overflow: hidden; }.settings-modal { width: min(700px, 100%); }.modal-header { display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px; border-bottom: 1px solid var(--line); }.record-nav { display: flex; gap: 3px; }.record-nav button, .modal-close { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); font-size: 20px; }.record-nav button:disabled { opacity: .35; cursor: default; }.modal-heading { min-width: 0; flex: 1; }.modal-heading span { color: var(--muted); font-size: 10px; }.modal-heading h2 { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; }.modal-close { margin-left: auto; font-size: 22px; line-height: 1; }.modal-body { min-height: 0; overflow: auto; padding: 18px 22px 26px; }.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 48px; padding: 9px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }.danger-text-button { border: 0; background: transparent; color: var(--orange); font-weight: 700; }.form-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 18px; align-items: start; }.form-grid > label { padding-top: 8px; color: var(--muted); font-size: 12px; }.form-grid > input, .form-grid > textarea, .form-grid > select, .field-control { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 8px 10px; color: var(--ink); }.form-grid textarea { min-height: 78px; resize: vertical; }.field-control.pill-control { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 6px; }.field-control .pill { cursor: pointer; }.field-control input { flex: 1; min-width: 110px; border: 0; outline: 0; }.linked-card { border: 1px solid var(--line); border-radius: 6px; background: #fbfcfd; }.linked-card-main { padding: 10px 12px; }.linked-card strong { display: block; font-size: 13px; }.linked-card small { color: var(--muted); }.linked-card-footer { display: flex; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--line); }.linked-card-footer button, .linked-card-footer a { border: 0; background: transparent; color: var(--blue); font-size: 11px; }.attachment-links { display: flex; flex-wrap: wrap; gap: 8px; }.attachment-links a { padding: 7px 9px; border-radius: 5px; background: #eef4fb; color: #185da9; font-size: 11px; }.comments-panel { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }.comments-panel h3 { margin: 0 0 7px; font-size: 12px; }.comment-placeholder { padding: 12px; border: 1px dashed var(--line-strong); border-radius: 5px; color: var(--muted); font-size: 11px; }
.settings-body { padding: 20px; overflow: auto; }.settings-body h3 { margin-bottom: 5px; font-size: 14px; }.settings-body p { color: var(--muted); font-size: 12px; }.settings-list { display: grid; gap: 8px; margin: 14px 0; }.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; }.settings-row strong { display: block; font-size: 12px; }.settings-row small { display: block; color: var(--muted); }.settings-row select, .settings-row input { min-height: 32px; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 0 8px; }.condition-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: center; }.condition-row select, .condition-row input { min-height: 34px; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 0 8px; }.remove-condition { width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted); }.add-condition { margin-top: 8px; border: 0; background: transparent; color: var(--blue); font-weight: 700; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 70; max-width: min(360px, calc(100vw - 40px)); padding: 11px 14px; transform: translateY(15px); border: 1px solid #b7dfc4; border-radius: 6px; background: #ecfbf0; color: #176d36; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .18s ease; }.toast.visible { transform: translateY(0); opacity: 1; }

@media (max-width: 1000px) { .app-shell { grid-template-columns: 205px minmax(0, 1fr); }.workspace-header { align-items: flex-start; flex-direction: column; }.summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }.view-toolbar { padding-left: 14px; padding-right: 14px; }.content-panel { padding-left: 14px; padding-right: 14px; } }
@media (max-width: 720px) { .app-shell { display: block; }.sidebar { position: static; min-height: auto; padding: 11px; }.primary-nav { display: flex; gap: 3px; overflow-x: auto; }.nav-item { width: auto; white-space: nowrap; }.sidebar-section, .sidebar-footer { display: none; }.topbar { padding: 0 14px; }.topbar-actions .outline-button span { display: none; }.workspace-header { padding: 18px 14px 14px; }.workspace-actions { width: 100%; }.workspace-actions .primary-button { flex: 1; }.summary-strip { padding: 10px 14px; }.content-panel { padding: 0 14px 18px; }.app-footer { padding: 0 14px; }.app-footer span:last-child { display: none; }.form-grid { grid-template-columns: 1fr; gap: 5px; }.form-grid > label { padding-top: 6px; }.modal-backdrop { padding: 0; }.record-modal, .settings-modal { max-height: 100vh; height: 100vh; border-radius: 0; }.condition-row { grid-template-columns: 1fr; }.condition-row .remove-condition { justify-self: end; }.summary-strip article strong { font-size: 17px; } }

/* Global timeline overlays span the full project area instead of repeating per row. */
.timeline-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 260px; z-index: 2; pointer-events: none; }
.timeline-row { position: relative; z-index: 3; }
.timeline-bar { z-index: 4; }
