@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans/PublicSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans/PublicSans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans/PublicSans-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans/PublicSans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #071a3b;
  --navy-soft: #10284f;
  --ink: #10203a;
  --muted: #66758a;
  --line: #d9e2ee;
  --line-strong: #bdcadb;
  --background: #f2f6fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --blue: #0b5cff;
  --blue-dark: #084bd1;
  --blue-soft: #eaf1ff;
  --teal: #147d73;
  --violet: #6b4eff;
  --danger: #c84d3f;
  --shadow: 0 20px 48px rgba(28, 49, 79, .12);
  --radius: 8px;
  --font-sans: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
  font-family: var(--font-sans);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--background); }
body { margin: 0; min-width: 320px; background: var(--background); }
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(11, 92, 255, .28);
  outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icon { display: block; flex: none; }
.app-shell { min-height: 100vh; }

.auth-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 13px; color: #67778d; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.auth-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 9px; font-size: 21px; box-shadow: 0 9px 25px rgba(7,26,59,.2); }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .9fr) minmax(450px, 1.1fr); background: var(--surface); }
.login-ledger { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding: 38px clamp(38px, 6vw, 88px) 46px; color: white; background: var(--navy); }
.login-ledger::before { content: ""; position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom right, black, transparent 78%); pointer-events: none; }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 700; letter-spacing: -.035em; }
.login-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy); background: white; border-radius: 7px; font-size: 18px; }
.login-ledger-copy { position: relative; z-index: 1; max-width: 540px; margin: auto 0 58px; }
.login-kicker { display: block; margin-bottom: 18px; color: #8fb8ff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.login-ledger h1 { max-width: 520px; margin: 0 0 24px; font-size: clamp(46px, 5.5vw, 76px); line-height: .96; letter-spacing: -.065em; }
.login-ledger-copy p { max-width: 465px; margin: 0; color: #bed0e9; font-size: 16px; line-height: 1.65; }
.login-index { position: relative; z-index: 1; width: min(100%, 540px); display: grid; border-top: 1px solid rgba(255,255,255,.18); }
.login-index > div { min-height: 42px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; color: #d6e2f3; border-bottom: 1px solid rgba(255,255,255,.13); }
.login-index span { color: #6680a5; font-size: 10px; font-weight: 700; }
.login-index strong { font-size: 12px; font-weight: 600; letter-spacing: .015em; }
.login-index i { width: 7px; height: 7px; border: 1px solid #7ca7ec; border-radius: 50%; }

.login-stage { min-height: 100vh; display: grid; place-items: center; padding: 44px clamp(30px, 7vw, 110px); background: #f5f8fc; }
.login-card { width: min(100%, 420px); }
.login-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 27px; color: #63748b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.login-status i { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 4px rgba(20,125,115,.11); }
.login-card h2 { margin: 0 0 10px; color: var(--ink); font-size: clamp(34px, 4vw, 45px); line-height: 1; letter-spacing: -.052em; }
.login-card > p { margin: 0 0 31px; color: var(--muted); line-height: 1.55; }
.login-form { display: grid; gap: 17px; }
.login-form label { display: grid; gap: 7px; color: #53647b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .065em; }
.login-form input { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 7px; outline: none; font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; box-shadow: 0 2px 7px rgba(28,49,79,.04); }
.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,92,255,.11); }
.login-button { width: 100%; min-height: 48px; margin-top: 6px; }
.login-help { display: block; margin-top: 22px; color: #8995a7; font-size: 11px; line-height: 1.5; }
.login-error { margin: -10px 0 20px; padding: 11px 12px; color: #8f3026; background: #fff2f0; border: 1px solid #efc2bc; border-radius: 7px; font-size: 13px; line-height: 1.45; }
.setup-ledger-note { position: relative; z-index: 1; display: grid; gap: 5px; padding: 17px 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.setup-ledger-note span { color: #8fb8ff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.setup-ledger-note strong { color: white; font-size: 13px; }
.setup-ledger-note small { color: #9fb3cf; font-size: 11px; }
.setup-card > p strong { color: var(--ink); }
.setup-username { color: var(--blue); font-weight: 700; white-space: nowrap; }
.setup-form > small { margin-top: -6px; color: #7c899a; font-size: 11px; line-height: 1.45; }
.setup-loading { min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 13px; color: var(--muted); }
.setup-loading strong { color: var(--ink); font-size: 14px; }
.setup-return { width: 100%; min-height: 46px; }
.login-status.expired i { background: var(--danger); box-shadow: 0 0 0 4px rgba(200,77,63,.11); }

.global-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 68px;
  display: grid;
  grid-template-columns: 220px minmax(280px, 520px) 1fr;
  align-items: center;
  gap: 26px;
  padding: 0 22px;
  color: white;
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(5, 18, 41, .18);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 0; color: white; background: transparent; font: 700 20px/1 var(--font-sans); letter-spacing: -.035em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; color: var(--navy); background: white; font-size: 18px; }
.header-capture-actions { min-width: 0; display: flex; align-items: center; gap: 8px; }
.capture-launch { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: #d8e4f7; background: var(--navy-soft); border: 1px solid rgba(255,255,255,.2); border-radius: 7px; text-align: left; }
.capture-launch:hover { background: #15315d; border-color: rgba(255,255,255,.35); }
.capture-launch span { flex: 1; }
.capture-launch kbd { padding: 4px 7px; color: #c8d8ef; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 5px; font: 500 11px/1 var(--font-sans); }
.plan-today-launch { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; color: #d8e4f7; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.plan-today-launch:hover { color: white; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.42); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.user-session { min-height: 40px; display: flex; align-items: center; gap: 10px; margin-left: 3px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.18); }
.user-session button { padding: 6px 0; color: #9fb2cd; background: transparent; font-size: 12px; font-weight: 700; }
.user-session button:hover { color: white; }
.user-session .user-account { color: #d9e5f5; font-weight: 600; }
.user-session .user-account:hover { color: white; }
.inverse-button { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); }
.inverse-button:hover { color: white; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.42); }

.app-body { display: flex; min-height: calc(100vh - 68px); }
.sidebar { width: 220px; flex: none; display: flex; flex-direction: column; padding: 22px 14px 16px; background: var(--surface); border-right: 1px solid var(--line); }
@media (min-width: 821px) {
  .app-body { height: calc(100vh - 68px); min-height: 0; }
  .sidebar { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
}
.sphere-switcher { display: grid; gap: 6px; margin: -5px 2px 16px; padding: 10px; background: #f4f7fb; border: 1px solid var(--line); border-radius: 8px; }
.sphere-switcher > span { color: #738197; font: 700 10px/1 var(--font-sans); text-transform: uppercase; letter-spacing: .08em; }
.sphere-switcher select { width: 100%; min-height: 36px; padding: 6px 28px 6px 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 6px; font-weight: 700; }
.connection { display: flex; align-items: center; gap: 8px; margin: 0 10px 23px; color: var(--muted); font: 500 10px/1.2 var(--font-sans); text-transform: uppercase; letter-spacing: .06em; }
.permission-banner { display: flex; align-items: center; gap: 8px; padding: 9px 16px; color: #664b13; background: #fff8df; border-bottom: 1px solid #ead898; font-size: 12px; }
.permission-banner span { color: #806c3c; }
.capture-launch:disabled { cursor: not-allowed; opacity: .55; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #4d9b78; box-shadow: 0 0 0 4px #e2f0e9; }
.nav-label { margin: 25px 11px 8px; color: #8190a5; font: 700 10px/1.2 var(--font-sans); text-transform: uppercase; letter-spacing: .1em; }
.nav-item { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 9px 11px; margin: 2px 0; color: #41516a; background: transparent; border: 1px solid transparent; border-radius: 7px; text-align: left; font-size: 14px; }
.nav-item:hover { color: var(--ink); background: var(--surface-soft); }
.nav-item.active { color: var(--blue); background: var(--blue-soft); border-color: #c9d9ff; font-weight: 700; }
.nav-item > span:first-child { width: 20px; display: grid; place-items: center; }
.nav-item .count { width: auto; margin-left: auto; color: #7a8aa1; font: 500 11px/1 var(--font-sans); }
.type-icon, .type-badge-icon, .definition-type-icon, .object-type-icon { display: grid; place-items: center; flex: none; color: var(--type-color); }
.type-icon { width: 22px; height: 22px; margin-left: -1px; background: var(--type-color-soft); border-radius: 6px; }
.type-badge-icon { width: 23px; height: 23px; background: var(--type-color-soft); border-radius: 5px; }
.type-group { margin: 3px 0 8px; }
.type-group-label { width: 100%; min-height: 30px; display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 4px 10px; color: #718097; background: transparent; border-radius: 6px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .025em; }
.type-group-label:hover { color: var(--ink); background: var(--surface-soft); }
.type-group-label .count { color: #94a0b0; font: 500 10px/1 var(--font-sans); }
.type-group-chevron { display: grid; place-items: center; transition: transform .16s ease; transform: rotate(90deg); }
.type-group.collapsed .type-group-chevron { transform: rotate(0); }
.type-group.collapsed .type-group-items { display: none; }
.type-group-items { padding-left: 8px; border-left: 1px solid #dce4ee; }
.type-group-items .nav-item { min-height: 38px; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.sidebar-bottom .text-button { margin: 8px 12px 0; }

.main { flex: 1; min-width: 0; position: relative; padding: 18px; }
.explorer-app-body { display: block; }
.explorer-app-body .main { width: 100%; }
.workspace { height: calc(100vh - 104px); min-height: 560px; display: grid; grid-template-columns: minmax(390px, 1fr) 9px minmax(360px, var(--preview-pane-width, 52%)); overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(28, 49, 79, .07); }
.records-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.workspace.all-objects-home { grid-template-columns: minmax(0, 1fr); }
.all-objects-panel { background: #f7f9fc; }
.all-objects-panel .records-heading { background: white; }
.object-gallery { min-height: 0; flex: 1; display: grid; align-content: start; gap: 29px; overflow-y: auto; padding: 25px 27px 38px; overscroll-behavior: contain; }
.object-gallery-group { min-width: 0; display: grid; gap: 13px; }
.object-gallery-group-head { min-height: 29px; display: flex; align-items: center; gap: 9px; padding-bottom: 8px; border-bottom: 1px solid #d9e2ee; }
.object-gallery-folder { width: 27px; height: 27px; display: grid; place-items: center; flex: none; color: #64758b; background: #e8edf4; border-radius: 6px; }
.object-gallery-group-head h2 { margin: 0; color: var(--ink); font-size: 14px; letter-spacing: -.015em; }
.object-gallery-group-head > span:last-child { margin-left: auto; color: #7b899b; font-size: 10px; font-weight: 600; }
.object-thumbnail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.object-thumbnail { min-width: 0; min-height: 126px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 15px; color: var(--ink); background: white; border: 1px solid #d9e2ee; border-radius: 9px; text-align: left; box-shadow: 0 3px 10px rgba(28, 49, 79, .045); transition: border-color .14s, box-shadow .14s, transform .14s; }
.object-thumbnail:hover { border-color: #a9b9cd; box-shadow: 0 8px 19px rgba(28, 49, 79, .1); transform: translateY(-2px); }
.object-thumbnail-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--type-color); background: var(--type-color-soft); border-radius: 11px; }
.object-thumbnail-copy { min-width: 0; width: 100%; display: grid; gap: 4px; }
.object-thumbnail-copy strong { overflow: hidden; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.object-thumbnail-copy small { overflow: hidden; color: #7c8a9e; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.object-gallery-state { min-height: 360px; flex: 1; display: grid; place-content: center; justify-items: center; gap: 9px; padding: 34px; color: #728197; text-align: center; }
.object-gallery-state strong { color: var(--ink); font-size: 15px; }
.object-gallery-state > span:not(.spinner) { max-width: 310px; font-size: 12px; line-height: 1.45; }
.object-gallery-state .secondary-button { margin-top: 5px; }
.records-heading { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 22px 18px; border-bottom: 1px solid var(--line); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-sans); }
.records-heading h1 { margin: 0; color: var(--ink); font-size: 25px; line-height: 1.1; letter-spacing: -.035em; }
.records-heading h1 span { margin-left: 5px; color: #7f8da1; font: 500 12px/1 var(--font-sans); }
.tools { display: flex; align-items: center; gap: 8px; }
.task-records-heading { min-height: 0; display: grid; grid-template-columns: 1fr; align-items: start; gap: 13px; }
.task-records-heading .tools { width: 100%; min-width: 0; flex-wrap: wrap; }
.task-records-heading .search { width: auto; flex: 1 1 170px; }
.task-records-heading .task-list-filter { min-width: 130px; flex: 1 1 150px; }
.task-records-heading .task-list-filter select { width: 100%; max-width: none; }
.task-records-heading .new-task-list-button, .task-records-heading .filter-button { flex: none; white-space: nowrap; }
.object-columns-panel { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 14px 22px; background: #f7f9fc; border-bottom: 1px solid var(--line); }
.object-columns-panel > div:first-child { display: grid; align-content: start; gap: 3px; }
.object-columns-panel strong { color: var(--ink); font-size: 13px; }
.object-columns-panel > div:first-child span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.object-column-choices { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; }
.object-column-choices .check-label { min-width: 130px; display: flex; align-items: center; gap: 7px; color: #52647b; font-size: 12px; }
.object-column-choices input { width: 16px; height: 16px; accent-color: var(--blue); }
.quick-add-workspace { height: calc(100vh - 104px); min-height: 560px; display: flex; flex-direction: column; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(28,49,79,.07); }
.quick-add-head { min-height: 104px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 24px 19px; color: white; background: var(--navy); }
.quick-add-head > div > span { color: #8fb8ff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.quick-add-head h1 { margin: 5px 0 5px; font-size: 28px; letter-spacing: -.04em; }
.quick-add-head p { margin: 0; color: #b9cae1; font-size: 12px; }
.quick-add-head .icon-button { color: #d6e3f4; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.quick-add-head .icon-button:hover { color: white; background: rgba(255,255,255,.14); }
.quick-add-setup { min-height: 78px; display: flex; align-items: end; gap: 13px; padding: 13px 24px; background: #f7f9fc; border-bottom: 1px solid var(--line); }
.quick-add-setup > label { width: min(240px, 24vw); display: grid; gap: 5px; color: #66758a; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.quick-add-setup select { width: 100%; min-height: 39px; padding: 7px 30px 7px 10px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.quick-add-columns-button { min-height: 39px; flex: none; }
.quick-add-columns-button.active { color: var(--blue); background: var(--blue-soft); border-color: #a9bef2; }
.quick-add-context { min-height: 39px; display: flex; align-items: center; gap: 9px; margin-left: auto; padding: 5px 9px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 6px; }
.quick-add-context > span:last-child { display: grid; gap: 1px; }
.quick-add-context strong { font-size: 11px; }
.quick-add-context small { color: var(--muted); font-size: 9px; }
.quick-add-columns-panel { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 13px 24px; background: white; border-bottom: 1px solid var(--line); }
.quick-add-columns-panel > div:first-child { display: grid; align-content: start; gap: 3px; }
.quick-add-columns-panel strong { color: var(--ink); font-size: 12px; }
.quick-add-columns-panel > div:first-child span { color: var(--muted); font-size: 10px; line-height: 1.35; }
.quick-add-column-choices { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; }
.quick-add-column-choices .check-label { min-width: 135px; display: flex; align-items: center; gap: 7px; color: #52647b; font-size: 11px; }
.quick-add-column-choices input { width: 15px; height: 15px; accent-color: var(--blue); }
.quick-add-form { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.quick-add-grid-wrap { min-height: 0; flex: 1; overflow: auto; background: #edf2f8; overscroll-behavior: contain; }
.quick-add-grid { width: max-content; min-width: 100%; table-layout: auto; border-collapse: separate; border-spacing: 0; background: white; }
.quick-add-grid thead { position: sticky; z-index: 4; top: 0; }
.quick-add-grid th { width: auto; min-width: 190px; height: 39px; padding: 0 9px; color: #5f6f85; background: #eaf0f7; border-right: 1px solid #d4deea; border-bottom: 1px solid #cbd7e5; font-size: 9px; font-weight: 800; white-space: nowrap; }
.quick-add-grid th b { margin-left: 3px; color: var(--blue); }
.quick-add-grid th:nth-child(2) { position: sticky; z-index: 5; left: 42px; min-width: 240px; background: #e5edf7; box-shadow: 5px 0 10px rgba(28,49,79,.06); }
.quick-add-grid th:last-child { min-width: 45px; width: 45px; }
.quick-add-grid .quick-add-row-number { position: sticky; z-index: 6; left: 0; width: 42px; min-width: 42px; padding: 0; color: #7890ad; background: var(--navy); border-color: #1e3659; text-align: center; }
.quick-add-grid tbody tr { cursor: default; transition: none; }
.quick-add-grid tbody tr:hover { background: transparent; }
.quick-add-grid td { min-width: 190px; height: 49px; padding: 5px; background: white; border-right: 1px solid #e0e7f0; border-bottom: 1px solid #e0e7f0; }
.quick-add-grid td:nth-child(2) { position: sticky; z-index: 2; left: 42px; min-width: 240px; background: white; box-shadow: 5px 0 10px rgba(28,49,79,.045); }
.quick-add-grid input, .quick-add-grid select { width: 100%; min-width: 175px; min-height: 37px; padding: 7px 8px; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 4px; outline: none; font-size: 12px; }
.quick-add-grid input:hover, .quick-add-grid select:hover { border-color: #c9d5e4; }
.quick-add-grid input:focus, .quick-add-grid select:focus { background: white; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 2px rgba(11,92,255,.1); }
.quick-add-grid .quick-add-row-number { height: 49px; font-size: 10px; }
.quick-add-grid .quick-add-row-action { min-width: 45px; width: 45px; padding: 5px; }
.quick-add-grid .quick-add-row-action .icon-button { width: 34px; min-height: 34px; color: #8492a5; }
.quick-add-grid .quick-add-row-action .icon-button:hover { color: var(--danger); background: #fff2f0; }
.quick-add-row.quick-add-saving td { background: #f8faff; opacity: .72; }
.quick-add-row.quick-add-error td, .quick-add-row.quick-add-error td:nth-child(2) { background: #fff8f7; }
.quick-add-row-error td { height: auto; padding: 7px 10px; color: #9a3f35; background: #fff0ee; border-bottom-color: #edc8c3; font-size: 11px; }
.quick-add-row-error td:nth-child(2) { position: static; background: #fff0ee; box-shadow: none; }
.quick-add-row-error td:last-child { display: flex; align-items: center; gap: 6px; }
.quick-add-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 18px; background: white; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(28,49,79,.045); }
.quick-add-footer > div { display: flex; align-items: center; gap: 12px; }
.quick-add-footer span { color: #7a899c; font-size: 10px; }
.quick-add-footer > .primary-button { min-width: 150px; }
.quick-add-empty { min-height: 280px; display: grid; place-content: center; justify-items: center; gap: 7px; color: #7a899d; text-align: center; }
.quick-add-empty strong { margin-top: 5px; color: var(--ink); font-size: 15px; }
.quick-add-empty span { font-size: 12px; }
.task-list-filter select { min-height: 38px; max-width: 180px; padding: 7px 30px 7px 10px; color: #42536b; background: white; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 12px; font-weight: 700; }
.search { width: min(230px, 24vw); min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; color: #8190a5; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 7px; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,92,255,.1); }
.table-wrap { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.configurable-object-table { min-width: 100%; table-layout: auto; }
.configurable-object-table th { width: auto; min-width: 145px; }
.configurable-object-table th:first-child { width: auto; min-width: 210px; }
th { height: 42px; padding: 0 16px; color: #728198; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
th:first-child { width: 38%; }
th:nth-child(2) { width: 20%; }
th:nth-child(3) { width: 27%; }
th:nth-child(4) { width: 15%; }
td { padding: 14px 16px; border-bottom: 1px solid #e7edf5; vertical-align: middle; font-size: 13px; }
tbody tr { cursor: pointer; transition: background .14s, box-shadow .14s; }
tbody tr:hover { background: #f8faff; }
tbody tr.selected { background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.record-title { overflow: hidden; color: var(--ink); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.record-subtitle { margin-top: 3px; overflow: hidden; color: #7d8ba0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.record-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.record-identity > div { min-width: 0; }
.record-thumbnail { width: 44px; height: 44px; display: block; flex: none; overflow: hidden; background: #edf1f6; border: 1px solid #dbe3ed; border-radius: 7px; }
.record-thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; }
.record-identity.media-cover .record-thumbnail { width: 38px; height: 54px; border-radius: 5px; }
.record-identity.media-avatar .record-thumbnail { border-radius: 50%; }
.record-identity.media-logo .record-thumbnail img, .record-identity.media-natural .record-thumbnail img { padding: 3px; object-fit: contain; background: white; }
.record-identity.media-banner .record-thumbnail { width: 64px; height: 38px; }
.summary-cell { overflow: hidden; color: #65748a; text-overflow: ellipsis; white-space: nowrap; }
.muted-cell { color: #738197; }
.group-record-row { background: #f8faff; }
.group-record-title { display: flex; align-items: center; gap: 8px; color: var(--blue-dark); }
.type-badge { display: inline-flex; align-items: center; gap: 7px; color: #4e5f77; }
.status { display: inline-flex; padding: 5px 8px; border-radius: 99px; color: #4c5b70; background: #eef2f6; font-size: 12px; }
.status-in_progress { color: #075e75; background: #e2f2f5; }
.status-waiting { color: #7a5713; background: #fff1cc; }
.status-done { color: #39704d; background: #e4f1e8; }
.status-cancelled { color: #805d58; background: #f7e9e7; }
.status-subtype { display: inline-flex; padding: 4px 8px; color: #6a531c; background: #fff9e9; border: 1px solid #ead8a9; border-radius: 99px; font-size: 11px; font-weight: 700; }
.priority { color: #778499; font: 500 12px/1 var(--font-sans); }
.priority-1 { color: var(--danger); }
.priority-2 { color: #b66b25; }

.primary-button, .secondary-button, .danger-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border-radius: 7px; font-weight: 700; font-size: 14px; }
.primary-button { color: white; background: var(--blue); box-shadow: 0 6px 14px rgba(11, 92, 255, .18); }
.primary-button:hover { background: var(--blue-dark); }
.secondary-button { color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); }
.secondary-button:hover { border-color: #91a5bf; background: var(--surface-soft); }
.danger-button { color: var(--danger); background: #fff4f2; border: 1px solid #f2c7c1; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; color: var(--blue); background: transparent; font-weight: 700; font-size: 13px; }
.text-button:hover { color: var(--blue-dark); }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: none; padding: 0; color: #66758a; background: transparent; border-radius: 7px; }
.icon-button:hover { color: var(--ink); background: var(--surface-soft); }
.danger-hover:hover { color: var(--danger); background: #fff3f1; }

.pane-resizer { position: relative; z-index: 3; width: 9px; min-height: 0; display: grid; place-items: center; cursor: col-resize; background: #f4f7fb; border-left: 1px solid var(--line); border-right: 1px solid var(--line); touch-action: none; }
.pane-resizer::before { position: absolute; inset: 0 -4px; content: ''; }
.pane-resizer span { width: 3px; height: 42px; background: #b8c5d5; border-radius: 99px; transition: height .15s, background .15s; }
.pane-resizer:hover span, .pane-resizer:focus-visible span { height: 62px; background: var(--blue); }
.resizing-pane, .resizing-pane * { cursor: col-resize !important; user-select: none !important; }
.editor-panel { min-width: 0; min-height: 0; overflow: hidden; background: var(--surface); }
.fixed-object-type { min-height: 58px; display: flex; align-items: center; gap: 11px; padding: 11px 12px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; }
.fixed-object-type > span:last-child { display: grid; gap: 3px; }
.fixed-object-type strong { font-size: 13px; }
.fixed-object-type small { color: var(--muted); font-size: 11px; }

.account-panel { position: fixed; z-index: 70; top: 68px; right: 0; bottom: 0; width: min(620px, 100%); overflow-y: auto; background: white; border-left: 1px solid var(--line); box-shadow: -22px 0 55px rgba(16,32,58,.19); }
.account-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 25px 26px 21px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.account-head > div > span { color: var(--blue); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.account-head h2 { margin: 7px 0 4px; font-size: 28px; letter-spacing: -.04em; }
.account-head p { margin: 0; color: var(--muted); font-size: 12px; }
.account-tabs { position: sticky; z-index: 1; top: 102px; display: flex; gap: 4px; padding: 9px 26px 0; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.account-tabs button { min-height: 41px; display: flex; align-items: center; gap: 7px; padding: 0 12px; color: #718097; background: transparent; border-bottom: 3px solid transparent; font-size: 12px; font-weight: 700; }
.account-tabs button:hover { color: var(--ink); }
.account-tabs button.active { color: var(--blue); border-bottom-color: var(--blue); }
.account-tabs button span { min-width: 19px; padding: 3px 5px; color: #64758b; background: #edf2f8; border-radius: 99px; font-size: 10px; line-height: 1; }
.account-body { padding: 25px 26px 50px; }
.account-integrations { display: grid; gap: 32px; }
.token-section, .people-section { display: grid; gap: 22px; }
.calendar-account-section { display: grid; gap: 18px; padding-bottom: 31px; border-bottom: 1px solid var(--line); }
.calendar-feed-form { display:grid; gap:14px; padding:16px; border:1px solid var(--line); border-radius:8px; background:var(--surface-soft); }
.calendar-feed-form fieldset { display:flex; flex-wrap:wrap; gap:10px 18px; margin:0; padding:0; border:0; }
.calendar-feed-form fieldset legend { width:100%; margin-bottom:5px; color:#64748a; font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.calendar-feed-form fieldset label { display:flex; align-items:center; gap:7px; font-size:12px; }
.calendar-choice-dot { width:10px; height:10px; border-radius:50%; background:var(--calendar-color); box-shadow:0 0 0 3px color-mix(in srgb, var(--calendar-color), transparent 82%); }
.calendar-feed-list { display:grid; gap:10px; }
.token-section-head { display: grid; gap: 9px; }
.token-section-head > div > span { color: #7a899c; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.token-section-head h3 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.035em; }
.token-section-head p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.token-receipt { display: grid; gap: 7px; padding: 17px; color: #174e49; background: #eef9f7; border: 1px solid #a8d8d1; border-top: 4px solid var(--teal); border-radius: 8px; }
.token-receipt > span { color: var(--teal); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.token-receipt > strong { color: var(--ink); font-size: 14px; }
.token-receipt code { display: block; margin: 4px 0 7px; padding: 11px; overflow-wrap: anywhere; color: #233c56; background: white; border: 1px solid #c5dfda; border-radius: 6px; font: 500 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; user-select: all; }
.token-receipt .primary-button { justify-self: start; min-height: 36px; }
.token-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; padding: 16px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.token-form label { display: grid; gap: 6px; color: #64748a; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.token-form input { min-width: 0; min-height: 40px; padding: 8px 10px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 6px; outline: none; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.token-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,92,255,.1); }
.token-list { display: grid; border-top: 1px solid var(--line); }
.token-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.token-row > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; }
.token-row strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.token-row code { color: #62738a; font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.token-row small { grid-column: 1 / -1; color: #8a97a8; font-size: 10px; }
.token-revoke { flex: none; color: var(--danger); }
.calendar-feed-row { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; background: #f6f9fd; border: 1px solid #d9e3ef; border-radius: 8px; }
.calendar-feed-row > div { display: flex; align-items: center; gap: 11px; }
.calendar-feed-row > div:first-child > div { min-width: 0; display: grid; gap: 3px; }
.calendar-feed-row strong { color: var(--ink); font-size: 13px; }
.calendar-feed-row code { color: #62738a; font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.calendar-feed-row small { color: #8794a5; font-size: 10px; }
.calendar-feed-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: none; color: white; background: var(--blue); border-radius: 8px; }
.calendar-feed-row > div:last-child { flex-wrap: wrap; justify-content: flex-end; }
.calendar-feed-empty { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; background: #f6f9fd; border: 1px dashed #bdccde; border-radius: 8px; }
.calendar-feed-empty > div { min-width: 0; display: flex; align-items: center; gap: 12px; color: #6b7c91; }
.calendar-feed-empty > div > span { min-width: 0; display: grid; gap: 4px; }
.calendar-feed-empty strong { color: var(--ink); font-size: 13px; }
.calendar-feed-empty small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.calendar-export-divider { display: flex; align-items: center; gap: 10px; color: #8592a3; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.calendar-export-divider::before, .calendar-export-divider::after { height: 1px; flex: 1; content: ''; background: var(--line); }
.calendar-download-form { display: grid; grid-template-columns: minmax(0, 1.25fr) 1fr 1fr; gap: 11px; padding: 16px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.calendar-download-heading { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
.calendar-download-heading strong { color: var(--ink); font-size: 13px; }
.calendar-download-heading span { color: var(--muted); font-size: 10px; }
.calendar-download-form > label { display: grid; gap: 6px; color: #64748a; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.calendar-download-form input, .calendar-download-form select { width: 100%; min-height: 39px; padding: 7px 8px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; font-weight: 500; }
.calendar-download-form input:focus, .calendar-download-form select:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(11,92,255,.1); }
.calendar-download-form fieldset { grid-column: 1 / -1; display: flex; align-items: center; gap: 15px; margin: 0; padding: 9px 11px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.calendar-download-form fieldset legend { padding: 0 5px; color: #64748a; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.calendar-download-form fieldset label { display: flex; align-items: center; gap: 6px; color: #4f6076; font-size: 11px; font-weight: 700; }
.calendar-download-form fieldset input { width: 15px; min-height: 15px; padding: 0; accent-color: var(--blue); }
.calendar-download-form > button { justify-self: start; }

.property-calendar-toggle { margin:4px 0 10px; padding:10px 12px; border-radius:7px; background:#eef4ff; color:#183c75; }
.asset-upload-field { padding:16px; border:1px dashed #aebbd0; border-radius:9px; background:var(--surface-soft); }
.asset-image-preview { display:grid; gap:9px; margin:14px 0 18px; }
.asset-image-preview img { display:block; max-width:100%; max-height:520px; object-fit:contain; border-radius:10px; border:1px solid var(--line); background:#f4f6f9; }
.asset-image-preview figcaption { display:flex; justify-content:space-between; gap:12px; color:#657187; font-size:12px; }
.asset-download-card { display:flex; align-items:center; gap:12px; margin:14px 0 18px; padding:14px; border:1px solid var(--line); border-radius:9px; background:var(--surface-soft); color:var(--ink); text-decoration:none; }
.asset-download-card span { display:grid; gap:3px; }
.asset-download-card small { color:#69768b; }
.url-property-overview { grid-column:1 / -1; }
.youtube-embed { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; border-radius:10px; background:#081226; }
.youtube-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.url-source-link { display:inline-block; margin-top:8px; font-size:12px; }
.url-preview-card { display:grid; gap:8px; padding:13px; border:1px solid var(--line); border-radius:8px; background:var(--surface-soft); }
.url-preview-card > a { display:grid; gap:3px; color:inherit; text-decoration:none; }
.url-preview-card span { color:#54637a; font-size:12px; }
.url-preview-card small { color:#657187; line-height:1.45; }
.token-empty { min-height: 110px; display: grid; place-content: center; justify-items: center; gap: 5px; color: var(--muted); text-align: center; font-size: 12px; }
.token-empty strong { color: var(--ink); font-size: 14px; }
.invitation-receipt small { color: #55736f; font-size: 11px; line-height: 1.45; }
.invite-form { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 130px; gap: 12px; padding: 17px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.invite-form-heading { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; padding-bottom: 2px; }
.invite-form-heading strong { color: var(--ink); font-size: 14px; }
.invite-form-heading span { color: var(--muted); font-size: 11px; }
.invite-form label, .person-access-actions label { display: grid; gap: 6px; color: #65758a; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.invite-form input, .invite-form select, .person-access-actions select { width: 100%; min-height: 40px; padding: 8px 10px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 6px; outline: none; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.invite-form input:focus, .invite-form select:focus, .person-access-actions select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,92,255,.1); }
.invite-form > button { grid-column: 1 / -1; justify-self: start; }
.invite-permissions { grid-column: 1 / -1; min-width: 0; margin: 2px 0 0; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.invite-permissions legend { padding: 0 5px; color: var(--ink); font-size: 11px; font-weight: 800; }
.invite-permissions > p { margin: 0 0 11px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.sphere-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.sphere-permission-choice { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 82px; align-items: center; gap: 8px; padding: 8px; background: #f8fafc; border: 1px solid var(--line); border-radius: 6px; opacity: .68; }
.sphere-permission-choice.assigned { background: var(--blue-soft); border-color: #c5d6ff; opacity: 1; }
.sphere-permission-toggle { min-width: 0; display: flex !important; align-items: center; gap: 8px !important; color: var(--ink) !important; text-transform: none !important; letter-spacing: 0 !important; }
.sphere-permission-toggle input { width: 16px !important; min-height: 16px !important; flex: none; padding: 0 !important; accent-color: var(--blue); box-shadow: none !important; }
.sphere-permission-toggle > span { min-width: 0; display: grid; gap: 2px; }
.sphere-permission-toggle strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sphere-permission-toggle small { color: #7d899b; font-size: 9px; font-weight: 500; }
.sphere-permission-choice select { min-height: 32px; padding: 5px 7px; font-size: 10px; }
.people-list { display: grid; border-top: 1px solid var(--line); }
.person-access-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; padding: 17px 2px; border-bottom: 1px solid var(--line); }
.person-access-main { min-width: 0; display: flex; align-items: center; gap: 11px; }
.access-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: none; color: white; background: var(--navy); border-radius: 8px; font-size: 14px; font-weight: 700; }
.person-access-main > div { min-width: 0; display: grid; gap: 3px; }
.person-access-main strong { overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.person-access-main span:not(.access-avatar) { color: #5e6f86; font-size: 11px; }
.person-access-main small { color: #8793a4; font-size: 10px; }
.access-status { align-self: start; padding: 5px 7px; color: #55667c; background: #edf2f8; border: 1px solid #d8e1ec; border-radius: 4px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.access-status.active { color: #146057; background: #eaf7f4; border-color: #b9ded8; }
.access-status.invited { color: #715b17; background: #fff8de; border-color: #e8d99a; }
.access-status.disabled { color: #7d463f; background: #fff0ee; border-color: #ecc8c3; }
.person-access-actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 11px; padding-left: 49px; }
.person-access-actions label { width: 104px; }
.person-access-actions select { min-height: 34px; padding: 5px 8px; font-size: 11px; }
.person-access-actions .text-button { font-size: 11px; }
.muted-action { color: #758398; }
.access-you { color: #76859a; font-size: 11px; font-weight: 700; }
.permission-summary { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; padding-left: 49px; }
.permission-summary span { padding: 5px 7px; color: #50637b; background: #f0f4f9; border: 1px solid #dce4ee; border-radius: 4px; font-size: 9px; font-weight: 600; }
.permission-summary span strong { margin-left: 3px; color: var(--blue); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.permission-summary.full span { color: #174e49; background: #eef9f7; border-color: #b9ddd7; }
.permission-summary.full strong { align-self: center; color: var(--teal); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.permission-summary .permission-none { color: #8a463e; background: #fff2f0; border-color: #efc9c4; }
.permission-editor { grid-column: 1 / -1; margin-left: 49px; padding: 9px 11px; background: #f8fafc; border: 1px solid var(--line); border-radius: 7px; }
.permission-editor summary { color: var(--blue); cursor: pointer; font-size: 11px; font-weight: 700; }
.permission-editor[open] summary { margin-bottom: 11px; }
.permission-editor form { display: grid; gap: 10px; }
.permission-editor form > button { justify-self: start; min-height: 35px; }
.editor-empty { min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; color: #6e7d91; text-align: center; }
.editor-empty h2 { margin: 17px 0 8px; color: var(--ink); font-size: 22px; }
.editor-empty p { max-width: 300px; margin: 0; line-height: 1.5; }
.object-workspace { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.object-head { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px 18px; }
.object-head h2 { margin: 7px 0 0; color: var(--ink); font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.045em; }
.object-type { display: flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 700; font-size: 13px; }
.object-head-actions { display: flex; gap: 4px; align-self: flex-start; }
.object-expand-button { min-height: 38px; padding: 0 11px; font-size: 12px; }
.workspace.object-expanded { height: calc(100vh - 104px); min-height: 680px; grid-template-columns: minmax(0, 1fr); }
.workspace.object-expanded .records-panel { display: none; }
.workspace.object-expanded .pane-resizer { display: none; }
.workspace.object-expanded .editor-panel.expanded { min-height: 0; overflow: hidden; }
.object-workspace.expanded { height: 100%; min-height: 0; overflow: hidden; }
.object-workspace.expanded .object-head { min-height: 96px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.object-workspace.expanded .object-head h2 { font-size: clamp(29px, 3vw, 42px); }
.object-workspace.expanded .object-head-actions { align-self: center; }
.expanded-object-scroll { min-height: 0; flex: 1; overflow-y: auto; background: #f4f7fb; }
.expanded-object-workbench { width: min(1600px, 100%); display: grid; gap: 18px; margin: 0 auto; padding: 18px; }
.expanded-object-primary { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, .72fr); align-items: start; gap: 18px; }
.object-reference-column, .object-notes-column, .expanded-inline-section { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 5px 16px rgba(28,49,79,.045); }
.object-reference-column { overflow: hidden; border-top: 4px solid var(--object-accent); }
.object-notes-column { position: sticky; top: 18px; max-height: calc(100vh - 158px); overflow-y: auto; border-top: 4px solid var(--blue); }
.expanded-section-heading { padding: 19px 22px 17px; background: #fbfcfe; border-bottom: 1px solid var(--line); }
.expanded-section-heading > span { color: var(--object-accent, var(--blue)); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.object-notes-column .expanded-section-heading > span { color: var(--blue); }
.expanded-section-heading h3 { margin: 5px 0 4px; color: var(--ink); font-size: 22px; letter-spacing: -.03em; }
.expanded-section-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.object-details-section.expanded-reference { padding: 22px; border: 0; }
.expanded-reference .asset-image-preview { margin: 18px 0 21px; }
.expanded-reference .asset-image-preview img { width: 100%; max-height: min(76vh, 860px); }
.expanded-reference .property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.expanded-note-composer { margin: 0; padding: 20px 22px; background: white; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.expanded-note-composer textarea { min-height: 180px; background: #fbfcff; }
.expanded-note-composer .composer-footer { align-items: stretch; flex-direction: column; }
.expanded-note-composer .add-related { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.expanded-note-composer .add-related select { min-width: 0; }
.expanded-note-composer .composer-footer > .primary-button { align-self: end; }
.expanded-notes-list { padding: 20px 22px 24px; border: 0; }
.expanded-notes-list .note-card { background: #fbfcfe; }
.expanded-object-supporting { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.expanded-inline-section { padding: 22px; }
.expanded-inline-section > .tab-layout { padding: 0; }
.expanded-inline-section .tab-layout > .section-head:first-child { margin-bottom: 18px; }
.expanded-explore-callout { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; background: linear-gradient(100deg, color-mix(in srgb, var(--object-accent) 9%, white), white 58%); border: 1px solid color-mix(in srgb, var(--object-accent) 24%, var(--line)); border-radius: 9px; }
.expanded-explore-callout > div { min-width: 0; display: flex; align-items: center; gap: 12px; }
.expanded-explore-callout > div > span { min-width: 0; display: grid; gap: 3px; }
.expanded-explore-callout strong { color: var(--ink); font-size: 15px; }
.expanded-explore-callout small { color: var(--muted); line-height: 1.4; }
.expanded-explore-glyph { width: 42px; height: 42px; display: grid; place-items: center; flex: none; color: var(--type-color); background: var(--type-color-soft); border-radius: 8px; }
.object-tabs { display: flex; gap: 5px; padding: 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.object-tabs button { min-height: 48px; flex: none; padding: 0 11px; color: #596980; background: transparent; border-bottom: 2px solid transparent; font-weight: 700; font-size: 14px; }
.object-tabs button:hover { color: var(--ink); }
.object-tabs button.active { color: var(--blue); border-bottom-color: var(--blue); }
.object-tab-body { flex: 1; min-height: 0; overflow-y: auto; }
.tab-layout, .overview-layout { padding: 24px 26px 90px; }
.overview-layout { display: grid; gap: 24px; }
.detail-section { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.detail-section:last-child { border-bottom: 0; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-head.prominent { align-items: center; }
.section-head h3 { margin: 0; color: var(--ink); font-size: 20px; letter-spacing: -.025em; }
.section-head p { margin: 4px 0 0; color: var(--muted); line-height: 1.4; }
.section-count { color: #7a899d; font: 500 12px/1.6 var(--font-sans); }
.object-summary { margin: 0; color: #42526a; font-size: 16px; line-height: 1.6; }
.object-inline-editor { display: grid; gap: 17px; padding: 0 0 24px; }
.object-inline-editor .section-head { margin-bottom: 0; }
.object-inline-actions { justify-content: flex-end; }
.object-tabs button:disabled { color: #a1acba; cursor: not-allowed; }
.object-about-layout { min-width: 0; }
.object-details-section.has-primary-media .object-about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 154px; align-items: start; gap: 24px; }
.object-primary-media { width: 154px; display: grid; gap: 7px; padding: 0; overflow: hidden; color: #6f7e91; background: transparent; text-align: left; font-size: 11px; }
.object-primary-media img { width: 100%; height: 154px; display: block; object-fit: cover; background: #eef2f7; border: 1px solid var(--line); border-radius: 8px; }
.object-primary-media span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.object-primary-media.media-cover { width: 142px; }
.object-primary-media.media-cover img { height: 208px; border-radius: 6px; }
.object-primary-media.media-avatar img { border-radius: 50%; }
.object-primary-media.media-logo img, .object-primary-media.media-natural img { padding: 8px; object-fit: contain; background: white; }
.object-details-section.media-banner .object-about-layout { grid-template-columns: minmax(0, 1fr); }
.object-primary-media.media-banner { width: 100%; grid-row: 1; }
.object-primary-media.media-banner img { height: 190px; }
.property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 20px 0 0; }
.property-grid > div { min-width: 0; }
.property-grid dt { margin-bottom: 3px; color: #77869a; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.property-grid dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
.linked-property-values { display: flex; flex-wrap: wrap; gap: 5px; }
.linked-property-values button { padding: 3px 7px; color: var(--blue); background: var(--blue-soft); border: 1px solid #c8d7fb; border-radius: 5px; font-size: 13px; font-weight: 700; }
.branch-explorer { min-height: 100%; padding: 22px 0 84px; background: #f7f9fc; }
.branch-explorer-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0 24px 18px; }
.branch-explorer-head h3 { margin: 4px 0 3px; color: var(--ink); font-size: 22px; letter-spacing: -.03em; }
.branch-explorer-head p { margin: 0; color: var(--muted); line-height: 1.45; }
.branch-kicker { color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.branch-head-actions { display: grid; justify-items: end; gap: 10px; }
.branch-legend { display: flex; align-items: center; gap: 6px; flex: none; color: #68778b; font-size: 11px; }
.branch-legend span { width: 9px; height: 9px; margin-left: 7px; border-radius: 50%; }
.branch-legend .structural { background: var(--blue); }
.branch-legend .contextual { background: #91a0b5; }
.branch-trail { display: flex; align-items: center; gap: 7px; margin: 0 24px 16px; padding: 9px 11px; overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 7px; }
.branch-trail button { flex: none; padding: 3px 5px; color: #65758a; background: transparent; font-size: 12px; font-weight: 700; }
.branch-trail button.active { color: var(--blue); }
.branch-trail span { color: #a2adbc; }
.branch-rail { display: flex; align-items: flex-start; gap: 30px; padding: 0 24px 18px; overflow-x: auto; scroll-snap-type: x proximity; }
.branch-column { position: relative; width: min(310px, 82vw); height: clamp(370px, calc(100vh - 330px), 620px); min-height: 370px; flex: none; overflow-y: auto; scroll-snap-align: start; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 7px 20px rgba(36, 56, 84, .07); }
.branch-column:not(:last-child)::after { content: ''; position: absolute; top: 62px; left: calc(100% + 1px); width: 30px; height: 1px; background: #b9c7d9; }
.branch-column:not(:last-child)::before { content: ''; position: absolute; z-index: 1; top: 58px; left: calc(100% + 27px); width: 7px; height: 7px; border-top: 1px solid #91a4bc; border-right: 1px solid #91a4bc; transform: rotate(45deg); }
.branch-focus { padding: 17px 17px 15px; border-top: 4px solid var(--branch-type); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.branch-focus-type { display: flex; align-items: center; gap: 6px; color: var(--branch-type); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.branch-focus h4 { margin: 8px 0 0; color: var(--ink); font-size: 21px; line-height: 1.12; letter-spacing: -.025em; }
.branch-focus p { display: -webkit-box; margin: 8px 0 0; overflow: hidden; color: var(--muted); line-height: 1.4; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.branch-focus .text-button { margin-top: 11px; }
.branch-insights { padding: 6px 10px 0; border-bottom: 1px solid var(--line); }
.branch-insight { border-bottom: 1px solid #e6ecf3; }
.branch-insight:last-child { border-bottom: 0; }
.branch-insight > summary { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 8px; cursor: pointer; list-style: none; }
.branch-insight > summary::-webkit-details-marker, .branch-note > summary::-webkit-details-marker { display: none; }
.branch-insight > summary > span { min-width: 0; display: flex; align-items: center; gap: 7px; color: #52627a; }
.branch-insight > summary strong { color: var(--ink); font-size: 12px; }
.branch-insight > summary b { min-width: 25px; padding: 3px 6px; color: #586a82; background: #eef2f7; border-radius: 12px; text-align: center; font-size: 10px; }
.branch-insight[open] > summary > span { color: var(--blue); }
.branch-property-list { display: grid; gap: 0; margin: 0; padding: 0 8px 10px 30px; }
.branch-property-list > div { min-width: 0; display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid #edf1f6; }
.branch-property-list dt { color: #78869a; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.branch-property-list dd { margin: 0; overflow-wrap: anywhere; color: #263750; font-size: 12px; line-height: 1.45; white-space: pre-wrap; }
.branch-resource-link { display: inline-flex; align-items: flex-start; gap: 5px; color: var(--blue); font-weight: 700; text-decoration: none; }
.branch-resource-link .icon { margin-top: 2px; }
.branch-resource-link span { min-width: 0; overflow-wrap: anywhere; }
.branch-resource-link:hover span { text-decoration: underline; }
.branch-note-list { display: grid; gap: 5px; padding: 0 4px 10px 28px; }
.branch-note { background: #f8fafd; border: 1px solid #e1e8f1; border-radius: 6px; }
.branch-note > summary { min-height: 42px; display: flex; align-items: center; padding: 7px 9px; cursor: pointer; list-style: none; }
.branch-note > summary > span { min-width: 0; display: grid; gap: 2px; }
.branch-note > summary strong { overflow: hidden; color: #263750; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.branch-note > summary time { color: #8592a4; font-size: 9px; }
.branch-note > summary::after { content: '\203A'; margin-left: auto; color: #8b99aa; font-size: 18px; line-height: 1; transition: transform .15s ease; }
.branch-note[open] > summary::after { transform: rotate(90deg); }
.branch-note p { margin: 0; padding: 0 9px 10px; color: #526178; font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.branch-groups { padding: 10px; }
.branch-group { border-bottom: 1px solid var(--line); }
.branch-group:last-child { border-bottom: 0; }
.branch-group summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 8px; cursor: pointer; list-style: none; }
.branch-group summary::-webkit-details-marker { display: none; }
.branch-group summary > span { min-width: 0; display: grid; gap: 2px; }
.branch-group summary strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.branch-group summary small { overflow: hidden; color: #7b899b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.branch-group summary b { min-width: 25px; padding: 3px 6px; color: #617188; background: #eef2f7; border-radius: 12px; text-align: center; font-size: 10px; }
.branch-group.structural summary b { color: var(--blue); background: var(--blue-soft); }
.branch-items { display: grid; gap: 4px; padding: 0 4px 10px; }
.branch-items > button { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px; color: var(--ink); background: #fafbfd; border: 1px solid transparent; border-radius: 6px; text-align: left; }
.branch-items > button:hover { background: var(--blue-soft); border-color: #c4d4fb; }
.branch-item-glyph { width: 34px; height: 34px; display: grid; place-items: center; color: var(--type-color); background: var(--type-color-soft); border-radius: 6px; }
.branch-items > button > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.branch-items strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.branch-items small { color: #7a899c; font-size: 10px; }
.branch-items > button > svg { color: #9aa8b9; }
.branch-dead-end { display: grid; gap: 4px; padding: 22px 12px; color: #78869a; text-align: center; }
.branch-dead-end strong { color: var(--ink); }
.branch-loading { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #718096; }
.expanded-explorer-page { height: calc(100vh - 104px); display: flex; flex-direction: column; overflow: hidden; background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(28, 49, 79, .07); }
.expanded-explorer-page-head { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; background: white; border-bottom: 1px solid var(--line); }
.expanded-explorer-page-head > div:first-child > span { color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.expanded-root-title { display: flex; align-items: center; gap: 12px; margin-top: 5px; }
.expanded-root-title h1 { margin: 0; color: var(--ink); font-size: 27px; letter-spacing: -.035em; }
.expanded-root-title p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.expanded-root-glyph { width: 42px; height: 42px; display: grid; place-items: center; flex: none; color: var(--type-color); background: var(--type-color-soft); border-radius: 9px; }
.branch-explorer.expanded { min-height: 0; display: flex; flex: 1; flex-direction: column; padding-bottom: 18px; overflow: hidden; }
.branch-explorer.expanded .branch-rail { min-height: 0; align-items: stretch; flex: 1; }
.branch-explorer.expanded .branch-column { width: 350px; height: auto; min-height: 0; max-height: none; }
.compact-list { display: grid; gap: 8px; }
.empty-invitation { width: 100%; display: flex; align-items: center; gap: 13px; padding: 17px; color: var(--blue); background: var(--blue-soft); border: 1px dashed #a9c1ff; border-radius: var(--radius); text-align: left; }
.empty-invitation span { display: grid; gap: 2px; }
.empty-invitation strong { color: var(--ink); }
.empty-invitation small { color: #66758a; }

.connection-groups { display: grid; gap: 25px; }
.connection-groups h4 { margin: 0 0 9px; color: #6d7b90; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.connection-list { display: grid; gap: 8px; }
.connection-row { min-height: 64px; display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.connection-main { min-width: 0; flex: 1; display: flex; align-items: center; gap: 12px; padding: 0; color: var(--ink); background: transparent; text-align: left; }
.connection-main > span:last-child { min-width: 0; display: grid; gap: 2px; }
.connection-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-main small { color: #728095; }
.object-glyph { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 7px; color: var(--type-color); background: var(--type-color-soft); }

.composer { margin-bottom: 24px; padding: 18px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.composer textarea, .editor-form textarea { resize: vertical; }
.definition-navigation { display: grid; gap: 8px; padding: 15px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; }
.definition-navigation .properties-heading { margin: 0; }
.sphere-availability { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; padding: 13px; border: 1px solid var(--line); border-radius: 7px; }
.sphere-availability legend { padding: 0 5px; color: #68778b; font-size: 11px; font-weight: 700; }
.sphere-availability .check-label { min-height: 34px; }
.sphere-availability .field-help { grid-column: 1 / -1; }
.definition-appearance { display: grid; gap: 16px; padding: 15px; background: linear-gradient(135deg, var(--type-color-soft), #f8faff 48%); border: 1px solid color-mix(in srgb, var(--type-color) 26%, var(--line)); border-radius: 9px; }
.appearance-heading { display: flex; align-items: center; gap: 11px; }
.appearance-heading > div { display: grid; gap: 2px; }
.appearance-heading strong { color: var(--ink); font-size: 14px; }
.appearance-heading span { color: var(--muted); font-size: 11px; }
.appearance-preview { width: 46px; height: 46px; display: grid; place-items: center; flex: none; color: var(--type-color); background: white; border: 1px solid color-mix(in srgb, var(--type-color) 28%, white); border-radius: 10px; box-shadow: 0 5px 14px color-mix(in srgb, var(--type-color) 14%, transparent); }
.appearance-field { display: grid; gap: 7px; }
.appearance-field > span { color: #68778b; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.icon-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.icon-choice { min-width: 0; min-height: 53px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 5px 3px; color: #617087; background: rgba(255,255,255,.76); border: 1px solid #d5deea; border-radius: 7px; }
.icon-choice small { width: 100%; overflow: hidden; color: #748299; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.icon-choice:hover { color: var(--type-color); border-color: color-mix(in srgb, var(--type-color) 45%, #d5deea); background: white; }
.icon-choice.active { color: var(--type-color); background: white; border-color: var(--type-color); box-shadow: 0 0 0 2px var(--type-color-soft); }
.icon-choice.active small { color: var(--type-color); }
.colour-library { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.colour-choice { width: 26px; height: 26px; flex: none; background: var(--swatch); border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #c8d2df; }
.colour-choice:hover { transform: translateY(-1px); }
.colour-choice.active { box-shadow: 0 0 0 2px white, 0 0 0 4px var(--swatch); }
.editor-form .custom-colour { min-height: 32px; display: flex; grid-auto-flow: column; grid-template-columns: 24px auto; align-items: center; gap: 7px; margin-left: auto; padding: 3px 8px 3px 4px; color: #64748a; background: white; border: 1px solid #ccd6e3; border-radius: 6px; font-size: 9px; }
.editor-form .custom-colour input[type="color"] { width: 24px; height: 24px; min-height: 24px; padding: 0; overflow: hidden; border: 0; border-radius: 4px; }
.custom-colour span { font: 500 10px/1 var(--font-sans); text-transform: uppercase; letter-spacing: 0; }
.definition-record-title { min-width: 0; display: flex; align-items: center; gap: 9px; }
.definition-record-title > div { min-width: 0; }
.definition-type-icon { width: 34px; height: 34px; background: var(--type-color-soft); border-radius: 7px; }
.composer textarea, .composer select, .editor-form input, .editor-form textarea, .editor-form select, .filter-row input, .filter-row select {
  width: 100%; min-height: 42px; padding: 10px 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 7px; outline: none;
}
.composer textarea:focus, .composer select:focus, .editor-form input:focus, .editor-form textarea:focus, .editor-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,92,255,.1); }
.sentence-builder { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(140px, 1fr) auto minmax(170px, 1.2fr) auto; align-items: center; gap: 8px; }
.sentence-object { min-width: 0; display: grid; gap: 2px; padding: 8px 11px; background: white; border: 1px solid var(--line-strong); border-radius: 7px; }
.sentence-object strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sentence-object small { color: #78869a; }
.sentence-slash { color: #8b98aa; font: 500 14px/1 var(--font-sans); }
.form-hint { margin: 10px 0 0; color: #7a899d; font-size: 13px; }
.connection-composer { border-top: 3px solid var(--blue); }
.connection-composer form { display: grid; gap: 14px; }
.connection-pickers { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 10px; }
.connection-field { display: grid; gap: 6px; color: #607087; font-size: 12px; font-weight: 700; }
.connection-field > span { display: flex; align-items: center; gap: 7px; }
.connection-field b { width: 21px; height: 21px; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 50%; font: 600 10px/1 var(--font-sans); }
.connection-field small { margin-left: auto; color: #8a97a8; font-weight: 400; }
.connection-field select:disabled { color: #8d99a9; background: #f0f3f7; }
.connection-preview { min-height: 68px; display: grid; grid-template-columns: 40px minmax(90px, 1fr) auto 40px minmax(90px, 1fr); align-items: center; gap: 10px; padding: 12px; background: linear-gradient(90deg, #f7f9fc, #edf4ff); border: 1px solid #c8d8ee; border-radius: 8px; }
.connection-preview > span:not(.object-glyph) { min-width: 0; display: grid; gap: 2px; }
.connection-preview strong, .connection-preview small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-preview small { color: #77869a; }
.connection-preview em { padding: 5px 8px; color: var(--blue-dark); background: white; border: 1px solid #c2d3ee; border-radius: 99px; font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap; }
.connection-preview.empty-preview { display: grid; grid-template-columns: 1fr; place-items: center; color: #76859a; background: #f8fafc; border-style: dashed; text-align: center; }
.connection-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.connection-footer p { max-width: 460px; margin: 0; color: #748399; font-size: 12px; line-height: 1.45; }
.connection-footer .primary-button { flex: none; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.add-related { min-width: 0; display: flex; gap: 7px; }
.add-related select { min-width: 180px; }
.linked-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.link-chip { min-height: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; color: #4f6077; background: white; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; }
.link-chip.primary { color: var(--blue-dark); background: var(--blue-soft); border-color: #c9d9ff; }
.link-chip small { color: #7a899d; font-size: 10px; }
.link-chip button { display: grid; place-items: center; padding: 0; color: #728095; background: transparent; }
.task-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.task-row > div { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.task-row .record-title { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.task-row .record-subtitle { white-space: normal; overflow-wrap: anywhere; }
.task-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 8px; }
.task-status-fields { padding: 13px; background: #f8faff; border: 1px solid #d8e2f0; border-radius: 8px; }
.task-property-links { padding: 13px; background: #fffaf0; border: 1px solid #ead8a9; border-radius: 8px; }
.task-area { color: #738197; font-size: 12px; }
.task-list-badge { display: inline-flex; align-items: center; gap: 5px; color: #52637b; font-size: 12px; font-weight: 700; }
.task-list-badge i { width: 8px; height: 8px; flex: none; background: var(--task-list-color); border-radius: 50%; }
.task-check-button { width: 24px; height: 24px; display: grid; place-items: center; flex: none; padding: 0; background: transparent; border: 0; cursor: pointer; }
.task-check-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 5px; }
.task-check-button:disabled { cursor: default; }
.task-link-section { display: grid; gap: 10px; margin: 18px 0 4px; padding: 15px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.task-link-section .section-head { margin: 0; }
.task-link-section .section-head h3 { font-size: 15px; }
.task-link-pickers { grid-template-columns: .8fr 1.2fr auto; align-items: end; }
.task-link-action { display: grid; gap: 6px; color: #607087; font-size: 12px; font-weight: 700; }
.task-link-action .secondary-button { white-space: nowrap; }
.task-section { display: grid; gap: 10px; margin-top: 22px; }
.task-section .section-head { margin: 0; }
.completed-task-section { padding-top: 20px; border-top: 1px solid var(--line); }
.note-list { display: grid; gap: 10px; }
.note-card { padding: 15px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.note-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.note-card-head strong { color: var(--ink); }
.note-card-head time { flex: none; color: #77869a; font: 400 11px/1 var(--font-sans); }
.note-card p { margin: 9px 0 0; color: #4b5c74; line-height: 1.5; white-space: pre-wrap; }
.note-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.note-links span { padding: 3px 6px; color: #52647d; background: var(--surface-soft); border-radius: 4px; font-size: 12px; }
.note-list.compact .note-card p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.context-empty { padding: 26px; color: #718097; text-align: center; background: var(--surface-soft); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.context-empty.large { padding: 50px 28px; }
.context-loading { min-height: 300px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.object-task-list { display: grid; gap: 8px; }
.object-task { min-height: 62px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 7px; }
.object-task[data-open-task] { cursor: pointer; }
.object-task[data-open-task]:hover { border-color: #b8cbea; background: #fbfdff; }
.object-task > div { display: grid; gap: 3px; }
.object-task small { color: #748298; }
.task-check { width: 18px; height: 18px; border: 2px solid #91a0b4; border-radius: 5px; }
.task-check.done { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 3px white; }
.mobile-action-bar { display: none; }

.inbox-preview { max-width: 36ch; }
.inbox-workspace { height: 100%; overflow-y: auto; background: linear-gradient(90deg, #f7f9fc 0 5px, white 5px); }
.inbox-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 26px 21px; border-bottom: 1px solid var(--line); }
.inbox-head h2 { margin: 5px 0 5px; color: var(--ink); font-size: 31px; letter-spacing: -.045em; }
.inbox-head p { margin: 0; color: var(--muted); }
.inbox-kicker { color: var(--blue); font: 700 11px/1.2 var(--font-sans); text-transform: uppercase; letter-spacing: .08em; }
.inbox-head-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.inbox-delete-button { padding: 8px; color: var(--danger); }
.inbox-delete-button:hover { color: #a93c31; }
.inbox-form { padding: 5px 26px 30px; }
.inbox-step { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 25px 0; }
.inbox-step:not(:last-of-type)::before { content: ""; position: absolute; top: 54px; bottom: -2px; left: 18px; width: 2px; background: #d5e2ff; }
.step-marker { position: relative; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--navy); border: 5px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #b9c9df; font: 500 12px/1 var(--font-sans); }
.step-content { min-width: 0; display: grid; gap: 13px; }
.step-heading h3 { margin: 0; color: var(--ink); font-size: 20px; letter-spacing: -.025em; }
.step-heading p { margin: 3px 0 0; color: var(--muted); line-height: 1.4; }
.inbox-form label:not(.destination-card) { display: grid; gap: 6px; color: #627187; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.inbox-form label span { color: #8b98aa; font-weight: 400; }
.inbox-form input:not([type="radio"]), .inbox-form textarea, .inbox-form select { width: 100%; min-height: 42px; padding: 10px 11px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 7px; outline: none; font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.inbox-form textarea { resize: vertical; line-height: 1.45; }
.inbox-form input:focus, .inbox-form textarea:focus, .inbox-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,92,255,.1); }
.inbox-links { margin: 0; }
.inbox-links .link-chip { background: var(--blue-soft); border-color: #cad9fd; }
.inbox-links .link-chip small { color: #75849a; }
.link-empty { margin: 0; color: #78869a; font-size: 13px; }
.destination-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.destination-card { min-width: 0; cursor: pointer; }
.destination-card input { position: absolute; opacity: 0; pointer-events: none; }
.destination-card > span { min-height: 102px; display: grid; align-content: start; gap: 5px; padding: 13px; color: #607087; background: white; border: 1px solid var(--line); border-radius: 8px; transition: border-color .14s, background .14s, box-shadow .14s; }
.destination-card:hover > span { border-color: #98acc7; }
.destination-card.selected > span { color: var(--blue); background: var(--blue-soft); border-color: #9bb7fb; box-shadow: inset 0 0 0 1px #9bb7fb; }
.destination-card strong { color: var(--ink); font-size: 14px; }
.destination-card small { color: #75849a; font-size: 12px; line-height: 1.25; }
.destination-card input:focus-visible + span { outline: 3px solid rgba(11, 92, 255, .28); outline-offset: 2px; }
.task-sort-options { display: grid; grid-template-columns: 1.2fr 1fr .7fr; gap: 10px; padding: 13px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.inbox-actions { position: sticky; bottom: -30px; display: flex; justify-content: flex-end; gap: 8px; margin: 8px -26px -30px; padding: 13px 26px calc(13px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 22px rgba(28,49,79,.06); }

.form-sheet { height: 100%; overflow-y: auto; padding: 24px 26px; background: var(--surface); }
.editor-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.editor-head span { color: var(--blue); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.editor-head h2 { margin: 5px 0 0; font-size: 27px; letter-spacing: -.035em; }
.editor-form { display: grid; gap: 17px; }
.editor-form label { display: grid; gap: 7px; color: #67768a; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.editor-form label input, .editor-form label textarea, .editor-form label select { color: var(--ink); font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.editor-form .field-help { color: #7b899b; font-size: 11px; font-weight: 500; line-height: 1.4; text-transform: none; letter-spacing: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.advanced-fields { padding: 13px 0 0; border-top: 1px solid var(--line); }
.advanced-fields summary { margin-bottom: 16px; color: var(--blue); cursor: pointer; font-weight: 700; }
.advanced-fields[open] { display: grid; gap: 16px; }
.properties-heading { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; color: #68778b; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.property-list { display: grid; gap: 8px; }
.property-row { display: grid; grid-template-columns: 1fr 1.4fr 38px; gap: 7px; }
.property-schema, .object-properties { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.property-schema-intro { margin: -2px 0 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.property-definition-list, .typed-property-list { display: grid; gap: 12px; }
.property-definition-row { display: grid; gap: 12px; padding: 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.property-definition-head { display: flex; align-items: center; justify-content: space-between; }
.property-definition-head strong { color: var(--ink); font-size: 13px; }
.property-options.hidden { display: none; }
.property-value-row { padding: 12px 13px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.property-value-row .field-help { margin-top: -1px; }
.property-value-input { display: grid; gap: 7px; }
.url-property-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.url-property-input .secondary-button { min-height: 38px; padding-inline: 11px; white-space: nowrap; }
.object-property-calendar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .8fr); align-items: end; gap: 10px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); }
.editor-form .object-property-calendar .check-label { display: flex; align-items: center; gap: 8px; min-height: 38px; color: #36516f; font-size: 11px; text-transform: none; letter-spacing: 0; }
.object-property-calendar .check-label input { width: 16px; min-height: 16px; accent-color: var(--blue); }
.editor-form .property-calendar-target { gap: 4px; font-size: 9px; }
.property-calendar-target select:disabled { color: #8995a5; background: #eef1f5; }
.object-link-value select[multiple] { min-height: 128px; }
.object-link-control { display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: start; gap: 7px; }
.editor-form .object-link-create { color: var(--blue); background: white; border: 1px solid var(--line-strong); }
.editor-form .object-link-create:hover { color: white; background: var(--blue); border-color: var(--blue); }
.primary-media-control { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 12px; }
.primary-media-selection { width: 78px; height: 78px; display: grid; place-items: center; overflow: hidden; color: #73839a; background: white; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; }
.primary-media-selection.media-cover { width: 62px; height: 88px; justify-self: center; border-radius: 6px; }
.primary-media-selection.media-avatar { border-radius: 50%; }
.primary-media-selection.media-logo, .primary-media-selection.media-natural { padding: 5px; object-fit: contain; }
.primary-media-selection.media-banner { width: 92px; height: 56px; }
.primary-media-actions { min-width: 0; display: grid; gap: 8px; }
.editor-form .media-upload-button { position: relative; width: max-content; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: #395777; font-size: 12px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.media-upload-button span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-upload-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.definition-primary-media { display: grid; gap: 14px; padding: 15px; background: linear-gradient(135deg, #f8fbff, #f4f7fb); border: 1px solid #d7e1ee; border-radius: 9px; }
.definition-primary-media .appearance-heading { margin-bottom: 0; }
.media-preview { color: var(--blue); background: var(--blue-soft); }
.primary-media-surfaces { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid #dfe7f1; }
.primary-media-surfaces legend { width: 100%; margin-bottom: 2px; color: #68778b; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.editor-form .primary-media-surfaces .check-label { display: flex; align-items: center; gap: 7px; color: #405775; font-size: 12px; text-transform: none; letter-spacing: 0; }
.primary-media-surfaces input { width: 16px; min-height: 16px; accent-color: var(--blue); }
.primary-media-empty { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; background: white; border: 1px dashed #b7c7da; border-radius: 7px; }
.primary-media-empty > div { display: grid; gap: 3px; }
.primary-media-empty strong { color: var(--ink); font-size: 13px; }
.primary-media-empty span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.form-actions { display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.definition-usage { display: grid; gap: 4px; padding: 12px 13px; border: 1px solid; border-radius: 7px; }
.definition-usage strong { font-size: 13px; }
.definition-usage span { font-size: 12px; line-height: 1.4; }
.definition-usage.safe { color: #276749; background: #f0fff4; border-color: #b7dfc5; }
.definition-usage.blocked { color: #805d58; background: #fff8f6; border-color: #edc4be; }
.system-definition-note { display: grid; gap: 4px; padding: 13px; color: #374f6c; background: #eef4fb; border: 1px solid #cbd9e9; border-radius: 7px; }
.system-definition-note strong { color: var(--ink); font-size: 13px; }
.system-definition-note span { font-size: 12px; line-height: 1.45; }
.danger-button:disabled { cursor: not-allowed; opacity: .45; }
.archived-object-panel { display: grid; align-content: start; gap: 18px; }
.archive-notice { display: grid; gap: 5px; padding: 14px; color: #805d58; background: #fff8f6; border: 1px solid #edc4be; border-radius: 7px; }
.archive-notice strong { font-size: 14px; }
.archive-notice span { font-size: 13px; line-height: 1.5; }
.archive-preview { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.archive-preview h3 { margin: 0 0 7px; font-size: 13px; }
.archive-preview p { margin: 0; color: var(--muted); line-height: 1.55; }
.archive-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.capture-drawer { position: absolute; z-index: 30; top: 10px; left: 18px; right: 18px; display: grid; grid-template-columns: minmax(170px, .45fr) minmax(320px, 1fr); gap: 28px; padding: 22px; background: var(--surface); border: 1px solid #adc2de; border-top: 4px solid var(--blue); border-radius: 8px; box-shadow: var(--shadow); }
.capture-copy h2 { margin: 0 0 6px; font-size: 24px; }
.capture-copy p { margin: 0; color: var(--muted); }
.capture-drawer form { display: grid; gap: 12px; }
.capture-drawer label { display: grid; gap: 6px; color: #65758a; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.capture-drawer label span { color: #8b98aa; font-weight: 400; }
.capture-drawer input, .capture-drawer textarea { width: 100%; padding: 10px 11px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 7px; outline: none; font-size: 15px; text-transform: none; letter-spacing: 0; }
.capture-drawer input:focus, .capture-drawer textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,92,255,.1); }

.filter-button.active { color: white; background: var(--navy); border-color: var(--navy); }
.filter-panel { padding: 14px 20px 18px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.linked-context-filter { display: grid; grid-template-columns: minmax(150px, .75fr) minmax(260px, 1.25fr); gap: 14px; margin-bottom: 14px; padding: 13px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.linked-context-filter > div:first-child, .custom-task-filters > div:first-child { display: grid; align-content: start; gap: 4px; }
.linked-context-filter strong, .custom-task-filters strong { color: var(--ink); font-size: 12px; }
.linked-context-filter p, .custom-task-filters p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.linked-context-controls { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(140px, 1.2fr); gap: 8px; }
.linked-context-controls label { display: grid; gap: 5px; color: #65758a; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.linked-context-controls select { width: 100%; min-width: 0; min-height: 38px; padding: 7px 28px 7px 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.custom-task-filters { display: grid; gap: 8px; }
.custom-task-filters > div:first-child { margin-bottom: 2px; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr 1fr 38px; gap: 7px; margin-bottom: 7px; }
.filter-empty { color: var(--muted); }
.empty { height: 360px; color: #758399; text-align: center; cursor: default; }
.empty > * { display: block; margin-left: auto; margin-right: auto; }
.empty strong { margin-top: 13px; color: var(--ink); font-size: 16px; }
.empty span { margin-top: 5px; }
.empty button { margin-top: 17px; }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 50%; }
.spinner { width: 19px; height: 19px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-banner { position: absolute; z-index: 35; top: 12px; left: 32px; right: 32px; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px 13px; color: #934034; background: #fff4f2; border: 1px solid #edc4be; border-radius: 7px; box-shadow: 0 10px 25px rgba(84, 44, 36, .12); }
.error-banner span { color: #805d58; }
.error-banner button { margin-left: auto; color: #934034; background: transparent; text-decoration: underline; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; padding: 12px 16px; color: white; background: var(--navy); border-radius: 7px; box-shadow: var(--shadow); font-weight: 700; }
.undo-toast { display: flex; align-items: center; gap: 18px; }
.undo-toast button { padding: 0; color: #b9d0ff; background: transparent; font-weight: 800; text-decoration: underline; }

.calendar-workspace { position: relative; min-height: calc(100vh - 104px); overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(28,49,79,.07); }
.calendar-toolbar { min-height: 82px; display: grid; grid-template-columns: minmax(250px, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.calendar-heading { display: grid; gap: 3px; }
.calendar-kicker { color: var(--blue); font: 700 10px/1.2 var(--font-sans); text-transform: uppercase; letter-spacing: .11em; }
.calendar-heading h1 { margin: 0; font: 700 26px/1.15 var(--font-sans); letter-spacing: -.035em; }
.calendar-navigation { display: flex; align-items: center; gap: 5px; }
.calendar-navigation .icon-button { font-size: 25px; }
.view-switch { justify-self: end; display: flex; padding: 3px; background: #edf2f8; border-radius: 7px; }
.view-switch button { min-height: 34px; padding: 0 13px; color: #69788c; background: transparent; border-radius: 5px; font-size: 13px; font-weight: 700; }
.view-switch button.active { color: var(--navy); background: white; box-shadow: 0 1px 4px rgba(28,49,79,.14); }
.calendar-filters { min-height: 53px; display: flex; align-items: center; gap: 20px; padding: 9px 20px; overflow-x: auto; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.filter-group { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.filter-group > span { margin-right: 2px; color: #7b899b; font: 700 10px/1 var(--font-sans); text-transform: uppercase; letter-spacing: .07em; }
.filter-chip { min-height: 29px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; color: #7a8899; background: transparent; border: 1px solid transparent; border-radius: 15px; font-size: 12px; }
.filter-chip i { width: 7px; height: 7px; background: var(--chip-color, #9aa7b7); border-radius: 50%; }
.filter-chip.area-personal i { background: var(--teal); }
.filter-chip.area-work i { background: var(--violet); }
.filter-chip.active { color: var(--ink); background: white; border-color: var(--line); box-shadow: 0 1px 3px rgba(28,49,79,.07); }
.overlay-toggle { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 0 11px; flex: none; color: #53647b; background: white; border: 1px solid var(--line); border-radius: 7px; font-weight: 700; font-size: 12px; }
.overlay-toggle.active { color: white; background: var(--navy); border-color: var(--navy); }
.task-tray { min-height: 64px; display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 16px; padding: 9px 20px; background: #f2f7ff; border-bottom: 1px solid #cbdaf0; }
.task-tray > div:first-child { display: grid; gap: 2px; }
.task-tray strong { font-size: 13px; }
.task-tray span { color: #697a91; font-size: 11px; }
.task-tray-items { display: flex; gap: 7px; min-width: 0; overflow-x: auto; padding: 2px; }
.tray-empty { padding: 7px; }
.calendar-stage { min-height: 540px; background: white; }
.calendar-loading { min-height: 520px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); }
.automatic-surface-note { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #61728a; white-space: nowrap; font-size: 12px; font-weight: 700; }

.day-planner { display: grid; grid-template-columns: minmax(520px, 1fr) minmax(310px, 380px); min-height: calc(100vh - 240px); }
.day-note-view { min-height: calc(100vh - 240px); display: grid; grid-template-columns: minmax(330px, .72fr) minmax(480px, 1.28fr); background: #f7f9fc; }
.day-note-summary { min-width: 0; border-right: 1px solid var(--line); background: white; }
.day-note-section { padding: 20px; border-bottom: 1px solid var(--line); }
.day-note-section .section-head, .day-note-notes > .section-head { align-items: center; }
.day-note-section .section-head > div, .day-note-notes > .section-head > div { display: grid; gap: 3px; }
.day-note-section .section-head span, .day-note-notes > .section-head span { color: var(--blue); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.day-note-section .section-head h2, .day-note-notes > .section-head h2 { margin: 0; font-size: 19px; }
.day-note-section .section-head b { min-width: 28px; height: 28px; display: grid; place-items: center; color: #4e6078; background: white; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; }
.day-note-section-actions { display: flex; align-items: center; gap: 7px; }
.day-note-add-button { width: 28px; height: 28px; color: var(--blue); background: white; border: 1px solid var(--line-strong); border-radius: 50%; }
.day-note-add-button:hover { color: white; background: var(--blue); border-color: var(--blue); }
.day-note-task-groups { display: grid; gap: 13px; }
.day-note-task-group { display: grid; gap: 6px; }
.day-note-task-group-head { display: flex; align-items: center; justify-content: space-between; padding: 0 3px; color: #718096; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.day-note-task-group-head b { color: #8794a6; font-size: 9px; }
.day-note-event { width: 100%; min-height: 55px; display: grid; grid-template-columns: 58px 4px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 10px; color: var(--ink); background: white; border-bottom: 1px solid var(--line); text-align: left; }
.day-note-event time { color: #69798f; font-size: 11px; font-weight: 700; }
.day-note-event i { align-self: stretch; background: var(--event-color); border-radius: 4px; }
.day-note-event span { min-width: 0; display: grid; gap: 2px; }
.day-note-event strong, .day-note-event small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-note-event small { color: var(--muted); font-size: 10px; }
.day-note-notes { min-width: 0; padding: 20px; }
.day-note-actions { display: flex; align-items: end; gap: 9px; }
.day-note-actions label { display: grid; gap: 4px; color: #718096; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.day-note-actions select { min-height: 36px; padding: 0 30px 0 9px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; text-transform: none; }
.day-note-capture { display: grid; gap: 13px; margin: 16px 0; padding: 17px; background: white; border: 1px solid #cbd8ea; border-radius: 9px; box-shadow: 0 8px 20px rgba(28,49,79,.07); }
.day-note-capture > label { display: grid; gap: 5px; color: #64748a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.day-note-capture > label > span { color: #9aa5b4; font-weight: 500; text-transform: none; letter-spacing: 0; }
.day-note-capture input[type="text"], .day-note-capture input:not([type]), .day-note-capture textarea { width: 100%; padding: 10px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 13px; text-transform: none; letter-spacing: 0; resize: vertical; }
.day-note-destinations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.day-note-destinations legend { grid-column: 1 / -1; margin-bottom: 6px; color: #64748a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.day-note-destinations .destination-card > span { min-height: 82px; }
.day-note-copy-toggle { display: flex !important; align-items: center; gap: 8px; min-height: 35px; color: var(--ink) !important; font-size: 12px !important; text-transform: none !important; letter-spacing: 0 !important; }
.day-note-entry-list { display: grid; gap: 10px; margin-top: 14px; }
.day-note-entry { padding: 15px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.day-note-entry header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.day-note-entry header > div { display: grid; gap: 3px; }
.day-note-entry header span { color: var(--muted); font-size: 10px; text-transform: none; letter-spacing: 0; }
.day-note-entry p { margin: 0; color: #485a72; white-space: pre-wrap; line-height: 1.55; }
.day-schedule { min-width: 0; border-right: 1px solid var(--line); }
.day-schedule-head { min-height: 94px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.day-schedule-head > div:first-child { width: 61px; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; color: white; background: var(--navy); border-radius: 8px; }
.day-schedule-head > div:first-child span { font: 500 9px/1 var(--font-sans); text-transform: uppercase; letter-spacing: .08em; }
.day-schedule-head > div:first-child strong { font: 700 28px/1 var(--font-sans); }
.day-schedule-head h2, .ledger-head h2 { margin: 0; font: 700 19px/1.15 var(--font-sans); letter-spacing: -.025em; }
.day-schedule-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.day-all-day { min-height: 45px; display: grid; grid-template-columns: 62px 1fr; border-bottom: 1px solid var(--line); }
.day-all-day > span { display: grid; place-items: center; color: #8794a6; font: 500 9px/1 var(--font-sans); text-transform: uppercase; }
.day-all-day > div { min-width: 0; display: grid; align-content: start; gap: 3px; padding: 5px; border-left: 1px solid #e5ebf3; }
.day-all-day small { align-self: center; padding: 8px; color: #9aa6b5; }
.day-scroll { height: calc(100vh - 379px); min-height: 500px; display: grid; grid-template-columns: 62px minmax(0, 1fr); overflow-y: auto; }
.day-time-column .calendar-item.timed { left: 7px; right: 7px; padding: 6px 9px; }
.day-time-column .calendar-item.timed strong { font-size: 12px; }
.day-ledger { min-width: 0; overflow-y: auto; background: #fbfcfe; }
.day-focus, .activity-ledger { padding: 18px; }
.day-focus { border-bottom: 1px solid var(--line); }
.ledger-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.ledger-head span { display: block; margin-bottom: 5px; color: var(--blue); font: 700 9px/1 var(--font-sans); text-transform: uppercase; letter-spacing: .1em; }
.ledger-head b { min-width: 28px; height: 28px; display: grid; place-items: center; color: #4e6078; background: white; border: 1px solid var(--line); border-radius: 50%; font: 600 10px/1 var(--font-sans); }
.task-focus-head > div { min-width: 0; }
.task-focus-head .text-button { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 11px; }
.task-scheduler { display: grid; gap: 12px; margin-bottom: 13px; padding: 13px; background: #eef4ff; border: 1px solid #c9d9f4; border-radius: 8px; box-shadow: inset 3px 0 0 var(--blue); }
.scheduler-head { display: flex; justify-content: space-between; gap: 10px; }
.scheduler-head > div { display: grid; gap: 3px; }
.scheduler-head strong { font-size: 13px; }
.scheduler-head span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.scheduler-head .icon-button { width: 28px; height: 28px; flex: none; }
.scheduler-switch { display: flex; padding: 3px; background: #dfe9f8; border-radius: 6px; }
.scheduler-switch button { flex: 1; min-height: 31px; color: #60718a; background: transparent; border-radius: 5px; font-size: 11px; font-weight: 700; }
.scheduler-switch button.active { color: var(--navy); background: white; box-shadow: 0 1px 4px rgba(31, 56, 88, .13); }
.scheduler-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.scheduler-form label { min-width: 0; display: grid; gap: 4px; color: #687a91; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.scheduler-form input, .scheduler-form select { min-width: 0; width: 100%; min-height: 37px; padding: 0 8px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; text-transform: none; }
.scheduler-task-choice, .scheduler-form .primary-button { grid-column: 1 / -1; }
.scheduler-form .primary-button { min-height: 38px; }
.planner-task-list, .surface-object-list { display: grid; gap: 7px; }
.planner-task-row { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 10px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.planner-task-row > button:nth-child(2) { min-width: 0; display: grid; gap: 3px; padding: 0; color: var(--ink); background: transparent; text-align: left; }
.planner-task-row strong, .planner-task-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-note-view .planner-task-row strong { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.planner-task-row small { color: var(--muted); font-size: 11px; }
.planner-task-row.completed strong { color: #718097; text-decoration: line-through; }
.ledger-empty { padding: 18px 14px; color: #7b899c; background: white; border: 1px dashed #c7d2e1; border-radius: 7px; font-size: 12px; line-height: 1.45; }
.activity-ledger { position: relative; }
.activity-ledger::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 0; width: 3px; background: linear-gradient(var(--blue), var(--teal)); border-radius: 0 3px 3px 0; }
.surface-object { min-width: 0; display: flex; align-items: center; gap: 5px; padding: 6px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.surface-object.archived { opacity: .65; }
.surface-object-main { min-width: 0; flex: 1; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; padding: 2px; color: var(--ink); background: transparent; text-align: left; }
.surface-object-main > span:last-child { min-width: 0; display: grid; gap: 3px; }
.surface-object-main strong, .surface-object-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.surface-object-main small { color: var(--muted); font-size: 10px; }
.surface-unlink { width: 28px; height: 28px; flex: none; }
.time-link-composer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.time-link-composer > div { grid-column: 1 / -1; display: grid; gap: 3px; }
.time-link-composer > div span { color: var(--muted); font-size: 11px; }
.time-link-composer label { display: grid; gap: 4px; color: #6b7b91; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.time-link-composer select { min-width: 0; min-height: 36px; padding: 0 8px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; text-transform: none; }
.time-link-composer .secondary-button { align-self: end; min-height: 36px; padding: 0 9px; }
.calendar-item.task-item.completed { opacity: .62; text-decoration: line-through; }

.week-plan-layout { display: grid; grid-template-columns: minmax(700px, 1fr) 320px; }
.week-plan-layout > .week-calendar { min-width: 0; border-right: 1px solid var(--line); }
.week-plan-layout > .activity-ledger { height: calc(100vh - 240px); overflow-y: auto; background: #fbfcfe; }
.week-plan-layout .week-scroll { height: calc(100vh - 337px); }

.weekly-review-view { height: calc(100vh - 187px); min-height: 540px; overflow-y: auto; background: #f4f7fb; }
.week-review-opening { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px 24px; color: white; background: var(--navy); }
.week-review-opening > div { display: grid; gap: 4px; }
.week-review-opening > div > span, .week-review-editor header span, .week-review-evidence-title span { color: #8fb8ff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.week-review-opening h2 { margin: 0; font-size: clamp(24px, 3vw, 35px); line-height: 1.08; letter-spacing: -.04em; }
.week-review-opening p { margin: 2px 0 0; color: #b9cbe2; font-size: 12px; }
.week-review-opening label { min-width: 190px; display: grid; gap: 6px; color: #9fb4d0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.week-review-opening select { min-height: 40px; padding: 7px 32px 7px 10px; color: var(--ink); background: white; border: 1px solid rgba(255,255,255,.38); border-radius: 7px; font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.week-memory-strip { display: grid; grid-template-columns: repeat(7, minmax(104px, 1fr)); min-width: 728px; background: white; border-bottom: 1px solid var(--line); }
.week-memory-day { min-width: 0; min-height: 94px; display: grid; align-content: center; gap: 3px; padding: 12px 11px; color: var(--ink); background: white; border-right: 1px solid var(--line); text-align: left; }
.week-memory-day:last-child { border-right: 0; }
.week-memory-day:hover { background: #f7faff; }
.week-memory-day.active { position: relative; z-index: 1; color: white; background: var(--blue); box-shadow: 0 8px 20px rgba(11,92,255,.22); }
.week-memory-day > span { color: #718198; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.week-memory-day > strong { font-size: 24px; line-height: 1; letter-spacing: -.04em; }
.week-memory-day > small { overflow: hidden; color: #76869a; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.week-memory-day.today:not(.active) > strong { color: var(--blue); }
.week-memory-day.active > span, .week-memory-day.active > small { color: #dce8ff; }
.weekly-review-layout { display: grid; grid-template-columns: minmax(390px, .86fr) minmax(440px, 1.14fr); align-items: start; }
.week-review-evidence { min-width: 0; padding: 22px 24px 70px; border-right: 1px solid var(--line); }
.week-review-evidence-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.week-review-evidence-title > div { display: grid; gap: 4px; }
.week-review-evidence-title span { color: var(--blue); }
.week-review-evidence-title h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.week-review-section { margin-top: 12px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 3px 12px rgba(28,49,79,.035); }
.week-review-section-head { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.week-review-section-head h3 { margin: 0; font-size: 12px; letter-spacing: .01em; }
.week-review-section-head b { min-width: 25px; height: 25px; display: grid; place-items: center; color: #617188; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 50%; font-size: 9px; }
.week-review-rows { display: grid; }
.week-review-row { width: 100%; min-width: 0; min-height: 54px; display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 8px 12px; color: var(--ink); background: transparent; border-bottom: 1px solid #e8edf4; text-align: left; }
.week-review-row:last-child { border-bottom: 0; }
.week-review-row:hover { background: #f8faff; }
.week-review-row-mark { width: 4px; align-self: stretch; background: var(--review-mark, var(--blue)); border-radius: 4px; }
.week-review-row-mark.task-mark { background: repeating-linear-gradient(#7b90aa, #7b90aa 3px, #d7e0eb 3px, #d7e0eb 6px); }
.week-review-row > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.week-review-row strong, .week-review-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-review-row strong { font-size: 12px; }
.week-review-row small { color: var(--muted); font-size: 9px; }
.week-review-row em { color: #7e8da1; font-size: 9px; font-style: normal; font-weight: 800; }
.week-review-empty { margin: 0; padding: 14px; color: #7d8b9e; font-size: 11px; line-height: 1.45; }
.week-review-note-excerpts { display: grid; gap: 8px; padding: 10px; }
.week-review-note-excerpts article { padding: 11px; background: #f8faff; border: 1px solid #e3eaf3; border-radius: 7px; }
.week-review-note-excerpts header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.week-review-note-excerpts header strong { font-size: 11px; }
.week-review-note-excerpts header span { color: #8592a4; font-size: 9px; }
.week-review-note-excerpts p { display: -webkit-box; margin: 0; overflow: hidden; color: #52637a; font-size: 11px; line-height: 1.5; white-space: pre-wrap; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.week-review-objects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 10px; }
.week-review-objects > button { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px; color: var(--ink); background: #f8faff; border: 1px solid #e2e9f2; border-radius: 7px; text-align: left; }
.week-review-objects > button:hover { border-color: #afc3dc; }
.week-review-objects > button > span:last-child { min-width: 0; display: grid; gap: 2px; }
.week-review-objects strong, .week-review-objects small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-review-objects strong { font-size: 11px; }
.week-review-objects small { color: var(--muted); font-size: 9px; }
.week-review-editor { position: sticky; top: 0; min-width: 0; display: grid; gap: 13px; margin: 22px 24px 70px; padding: 21px; background: white; border: 1px solid #cbd8ea; border-radius: 9px; box-shadow: 0 10px 28px rgba(28,49,79,.08); }
.week-review-editor header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.week-review-editor header > div { display: grid; gap: 4px; }
.week-review-editor header span { color: var(--blue); }
.week-review-editor h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.week-review-editor header small { color: #7c8999; font-size: 9px; }
.week-review-editor > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.week-review-editor textarea { width: 100%; min-height: 520px; padding: 15px; color: var(--ink); background: #fbfcfe; border: 1px solid var(--line-strong); border-radius: 7px; outline: none; resize: vertical; font: 400 14px/1.65 var(--font-sans); }
.week-review-editor textarea:focus { background: white; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,92,255,.1); }
.week-review-editor footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.week-review-editor footer > span { color: #7d899a; font-size: 9px; }

.month-weekdays { height: 33px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding-left: 0; color: #77869a; border-bottom: 1px solid var(--line); font: 700 10px/33px var(--font-sans); text-align: center; text-transform: uppercase; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(104px, 1fr); min-height: calc(100vh - 273px); }
.month-day { min-width: 0; padding: 6px; border-right: 1px solid #e5ebf3; border-bottom: 1px solid #e5ebf3; }
.month-day:nth-child(7n) { border-right: 0; }
.month-day.outside { background: #fafbfd; }
.month-day.outside .month-date { color: #a8b2c0; }
.month-day.drag-over, [data-all-day-drop].drag-over, .time-column.drag-over { background: #edf4ff; box-shadow: inset 0 0 0 2px #8fb0ff; }
.month-date { width: 28px; height: 28px; display: grid; place-items: center; margin-left: auto; padding: 0; color: #53647a; background: transparent; border-radius: 50%; font: 600 12px/1 var(--font-sans); }
.month-day.today .month-date { color: white; background: var(--blue); }
.month-items { display: grid; gap: 3px; margin-top: 3px; }
.month-more { padding-left: 5px; color: #7a899d; font-size: 11px; }

.calendar-item { min-width: 0; display: flex; align-items: center; gap: 5px; padding: 4px 6px; overflow: hidden; color: #20334f; background: color-mix(in srgb, var(--event-color, var(--blue)) 13%, white); border-left: 3px solid var(--event-color, var(--blue)); border-radius: 4px; text-align: left; font-size: 11px; }
.calendar-item:hover { filter: saturate(1.08); box-shadow: 0 2px 7px rgba(28,49,79,.13); }
.calendar-item strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-item .item-time { flex: none; color: #64758a; font: 500 9px/1 var(--font-sans); }
.calendar-item.area-work { box-shadow: inset 2px 0 0 var(--violet); }
.calendar-item.area-personal { box-shadow: inset 2px 0 0 var(--teal); }
.calendar-item.task-item { color: #324765; background: repeating-linear-gradient(135deg, #edf3fb, #edf3fb 5px, #e4edf8 5px, #e4edf8 10px); border: 1px dashed #8398b5; }
.calendar-item.tray-task { min-height: 34px; flex: 0 0 auto; padding: 6px 9px; }
.calendar-item.timed { position: absolute; z-index: 3; left: 3px; right: 3px; align-items: flex-start; flex-direction: column; gap: 2px; padding: 4px 6px; }
.calendar-item.timed.compact { align-items: center; flex-direction: row; gap: 5px; padding-block: 3px; }
.calendar-item.timed.compact small { display: none; }
.calendar-item.timed .item-time { font-size: 9px; }
.calendar-item.timed small { overflow: hidden; color: #687a90; text-overflow: ellipsis; white-space: nowrap; }
.resize-handle { position: absolute; left: 5px; right: 5px; bottom: 0; height: 7px; cursor: ns-resize; }
.resize-handle::after { content: ""; position: absolute; left: 35%; right: 35%; bottom: 2px; height: 2px; background: rgba(41,61,88,.35); border-radius: 2px; }

.week-header { height: 58px; display: grid; grid-template-columns: 62px repeat(7, minmax(92px, 1fr)); border-bottom: 1px solid var(--line); }
.week-corner { display: grid; place-items: end center; padding-bottom: 8px; color: #8794a6; font: 500 9px/1 var(--font-sans); text-transform: uppercase; }
.week-day-head { display: grid; place-content: center; gap: 2px; text-align: center; border-left: 1px solid #e5ebf3; }
.week-day-head span { color: #75849a; font: 600 10px/1 var(--font-sans); text-transform: uppercase; }
.week-day-head strong { font: 700 20px/1 var(--font-sans); }
.week-day-head.today strong { width: 29px; height: 29px; display: grid; place-items: center; margin: -2px auto; color: white; background: var(--blue); border-radius: 50%; }
.all-day-row { min-height: 39px; display: grid; grid-template-columns: 62px repeat(7, minmax(92px, 1fr)); border-bottom: 1px solid var(--line); }
.all-day-row > div { min-width: 0; display: grid; align-content: start; gap: 2px; padding: 4px; border-left: 1px solid #e5ebf3; }
.week-scroll { height: calc(100vh - 293px); min-height: 450px; display: grid; grid-template-columns: 62px minmax(700px, 1fr); overflow: auto; }
.time-axis { position: relative; height: var(--calendar-day-height, 900px); }
.time-axis span { position: absolute; right: 8px; transform: translateY(-50%); color: #8795a7; font: 500 9px/1 var(--font-sans); }
.week-time-grid { height: var(--calendar-day-height, 900px); display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); }
.time-column { position: relative; height: var(--calendar-day-height, 900px); border-left: 1px solid #e5ebf3; }
.time-column.today { background: rgba(11,92,255,.025); }
.hour-line { position: absolute; z-index: 0; left: 0; right: 0; height: 1px; background: #e7edf5; pointer-events: none; }
.now-line { position: absolute; z-index: 8; left: -1px; right: 0; height: 2px; background: #f04f3f; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; background: #f04f3f; border-radius: 50%; }

.agenda-calendar { max-width: 880px; margin: 0 auto; padding: 18px 26px 60px; }
.agenda-day { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.agenda-day > header { display: grid; align-content: start; gap: 4px; }
.agenda-day > header span { color: var(--blue); font: 700 10px/1 var(--font-sans); text-transform: uppercase; }
.agenda-day > header strong { font-size: 15px; }
.agenda-day > div { display: grid; gap: 6px; }
.agenda-entry { min-height: 55px; display: grid; grid-template-columns: 58px 5px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 8px 11px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 7px; text-align: left; }
.agenda-entry:hover { border-color: #aabbd1; box-shadow: 0 3px 12px rgba(28,49,79,.07); }
.agenda-entry .agenda-time { color: #63748b; font: 600 10px/1 var(--font-sans); }
.agenda-entry > i { width: 4px; align-self: stretch; background: var(--event-color, var(--blue)); border-radius: 3px; }
.agenda-entry > span:nth-child(3) { min-width: 0; display: grid; gap: 3px; }
.agenda-entry strong, .agenda-entry small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-entry small { color: #748399; }
.agenda-entry em { color: #748399; font-size: 11px; font-style: normal; }
.agenda-entry.task-agenda > i { background: repeating-linear-gradient(#8195af, #8195af 3px, #d9e2ee 3px, #d9e2ee 6px); }
.agenda-empty { min-height: 420px; display: grid; place-content: center; justify-items: center; gap: 7px; color: var(--muted); text-align: center; }
.agenda-empty strong { color: var(--ink); font-size: 19px; }
.agenda-empty .primary-button { margin-top: 10px; }

.event-editor { position: absolute; z-index: 20; top: 0; right: 0; bottom: 0; width: min(440px, 100%); overflow-y: auto; background: white; border-left: 1px solid var(--line); box-shadow: -18px 0 42px rgba(28,49,79,.16); }
.event-editor > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 21px 22px 18px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.event-editor header span { color: var(--blue); font: 700 10px/1 var(--font-sans); text-transform: uppercase; letter-spacing: .08em; }
.event-editor h2 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.035em; }
.event-form { display: grid; gap: 15px; padding: 20px 22px 35px; }
.event-form label { display: grid; gap: 6px; color: #65758a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event-form label > span { color: #8a98aa; font-weight: 400; }
.event-form input:not([type="checkbox"]), .event-form textarea, .event-form select { width: 100%; min-height: 42px; padding: 9px 10px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 7px; outline: none; font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.event-form textarea { resize: vertical; }
.event-form input:focus, .event-form textarea:focus, .event-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,92,255,.1); }
.event-form .check-label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; text-transform: none; letter-spacing: 0; }
.check-label input { width: 17px; height: 17px; accent-color: var(--blue); }
.event-advanced { padding: 13px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.event-advanced summary { color: var(--blue); cursor: pointer; font-weight: 700; font-size: 13px; }
.event-advanced[open] { display: grid; gap: 13px; }
.event-advanced[open] summary { margin-bottom: 2px; }
.event-form .form-actions { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; }
.danger-button { min-height: 40px; padding: 0 10px; color: var(--danger); background: #fff3f1; border: 1px solid #f0c5bf; border-radius: 7px; font-weight: 700; }

@media (max-width: 1120px) {
  .global-header { grid-template-columns: 190px minmax(250px, 430px) 1fr; }
  .sidebar { width: 190px; }
  .workspace { grid-template-columns: minmax(330px, 1fr) 9px minmax(330px, var(--preview-pane-width, 52%)); }
  .workspace.object-expanded { grid-template-columns: minmax(0, 1fr); }
  .expanded-object-primary { grid-template-columns: minmax(0, 1fr) minmax(330px, .78fr); }
  .expanded-reference .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sentence-builder { grid-template-columns: 1fr; }
  .sentence-slash { display: none; }
  .sentence-builder .primary-button { justify-self: stretch; }
  .week-plan-layout { display: block; }
  .week-plan-layout > .week-calendar { border-right: 0; }
  .week-plan-layout > .activity-ledger { height: auto; border-top: 1px solid var(--line); }
  .week-plan-layout .week-scroll { height: 560px; }
  .weekly-review-layout { grid-template-columns: minmax(340px, .9fr) minmax(390px, 1.1fr); }
  .week-review-evidence { padding-inline: 18px; }
  .week-review-editor { margin-inline: 18px; }
}

@media (max-width: 820px) {
  .login-shell { display: block; background: #f5f8fc; }
  .login-ledger { min-height: 230px; padding: 26px 24px 32px; }
  .login-ledger-copy { margin: 45px 0 0; }
  .login-kicker { margin-bottom: 10px; }
  .login-ledger h1 { margin-bottom: 0; font-size: 41px; line-height: 1; }
  .login-ledger-copy p, .login-index { display: none; }
  .setup-ledger-note { display: none; }
  .login-stage { min-height: calc(100vh - 230px); align-items: start; padding: 37px 23px 52px; }
  .login-card { max-width: 460px; margin: 0 auto; }
  .login-status { margin-bottom: 21px; }
  .login-card h2 { font-size: 36px; }
  .global-header { height: 64px; grid-template-columns: auto 1fr auto; gap: 10px; padding: 0 12px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-capture-actions { justify-self: end; }
  .capture-launch { justify-self: end; width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .capture-launch span, .capture-launch kbd { display: none; }
  .plan-today-launch { width: 44px; min-height: 44px; padding: 0; }
  .plan-today-launch span { display: none; }
  .header-actions .primary-button { width: 44px; padding: 0; }
  .header-actions .primary-button span { display: none; }
  .user-session { margin-left: 0; padding-left: 7px; }
  .user-session .user-account { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-body { display: block; min-height: calc(100vh - 64px); }
  .sidebar { width: 100%; padding: 10px 10px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sphere-switcher { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 8px; }
  .sphere-switcher select { flex: 1; min-height: 34px; }
  .connection, .nav-label, .sidebar-bottom { display: none; }
  .sidebar nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .sidebar .nav-item { min-height: 38px; margin: 0; justify-content: center; }
  .sidebar .nav-item .count { display: none; }
  .type-list { grid-column: 1 / -1; display: flex; gap: 5px; overflow-x: auto; padding: 2px 0; }
  .type-list .nav-item { width: auto; flex: none; padding: 7px 10px; }
  .type-list .nav-item > span:first-child { width: 12px; }
  .type-group { flex: none; display: flex; align-items: center; gap: 3px; margin: 0; }
  .type-group-label { width: auto; min-height: 38px; grid-template-columns: 14px auto auto; padding: 6px 9px; background: #f3f6fa; border: 1px solid var(--line); }
  .type-group-items { display: flex; gap: 3px; padding-left: 0; border-left: 0; }
  .type-group.collapsed .type-group-items { display: none; }
  .main { padding: 10px; }
  .workspace { height: auto; min-height: calc(100vh - 172px); display: block; border-radius: 8px; }
  .workspace.object-expanded { height: calc(100vh - 172px); min-height: 0; }
  .records-panel { border-right: 0; }
  .object-gallery { gap: 23px; padding: 18px 15px 28px; }
  .object-thumbnail-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
  .object-thumbnail { min-height: 112px; padding: 13px; }
  .object-thumbnail-icon { width: 42px; height: 42px; border-radius: 9px; }
  .pane-resizer { display: none; }
  .records-heading { min-height: 78px; padding: 15px; }
  .records-heading h1 { font-size: 22px; }
  .search { width: 150px; }
  .records-heading .icon-button { display: none; }
  .table-wrap { max-height: none; }
  table, tbody { display: block; }
  thead { display: none; }
  tbody tr { min-height: 70px; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
  tbody tr td { display: none; padding: 0; border: 0; }
  tbody tr td:first-child, tbody tr td:nth-child(2) { display: block; }
  tbody tr td:nth-child(2) { justify-self: end; }
  tbody tr.selected { box-shadow: inset 3px 0 0 var(--blue); }
  .quick-add-workspace { height: calc(100vh - 172px); min-height: 620px; border-radius: 8px; }
  .quick-add-head { min-height: 94px; padding: 18px 16px 16px; }
  .quick-add-head h1 { font-size: 23px; }
  .quick-add-setup { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 9px; padding: 11px 13px; }
  .quick-add-setup > label { width: auto; }
  .quick-add-columns-button { align-self: end; }
  .quick-add-context { grid-column: 1 / -1; width: 100%; margin-left: 0; }
  .quick-add-columns-panel { grid-template-columns: 1fr; gap: 10px; padding: 12px 13px; }
  .quick-add-grid { display: table; }
  .quick-add-grid thead { display: table-header-group; }
  .quick-add-grid tbody { display: table-row-group; }
  .quick-add-grid tbody tr { min-height: 0; display: table-row; padding: 0; border: 0; }
  .quick-add-grid tbody tr td { display: table-cell; padding: 5px; border-right: 1px solid #e0e7f0; border-bottom: 1px solid #e0e7f0; }
  .quick-add-grid tbody tr td:nth-child(2) { display: table-cell; justify-self: auto; }
  .quick-add-grid .quick-add-row-error td { padding: 7px 10px; }
  .quick-add-footer { align-items: stretch; flex-direction: column; padding: 10px 12px; }
  .quick-add-footer > div { justify-content: space-between; }
  .quick-add-footer > .primary-button { width: 100%; }
  .editor-panel.open { position: fixed; z-index: 80; inset: 64px 0 0; overflow: hidden; background: white; }
  .account-panel { z-index: 90; top: 64px; width: 100%; border-left: 0; }
  .account-head { padding: 20px 18px 17px; }
  .account-tabs { top: 91px; padding-left: 18px; padding-right: 18px; }
  .account-body { padding: 20px 18px 44px; }
  .token-form { grid-template-columns: 1fr; }
  .token-form .primary-button { width: 100%; }
  .calendar-feed-empty, .calendar-download-form { grid-template-columns: 1fr; }
  .calendar-feed-empty > button { width: 100%; }
  .calendar-feed-row { align-items: flex-start; flex-direction: column; }
  .calendar-feed-row > div:last-child { justify-content: flex-start; }
  .calendar-download-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .calendar-download-form > button { width: 100%; }
  .invite-form { grid-template-columns: 1fr; }
  .invite-form-heading, .invite-form > button { grid-column: 1; }
  .invite-form > button { width: 100%; }
  .person-access-actions { padding-left: 0; }
  .permission-summary, .permission-editor { margin-left: 0; padding-left: 0; }
  .permission-editor { padding: 10px; }
  .sphere-permission-grid { grid-template-columns: 1fr; }
  .editor-empty { display: none; }
  .object-head { min-height: 104px; padding: 19px 17px 15px; }
  .object-head h2 { font-size: 31px; }
  .object-workspace.expanded .object-head { min-height: 86px; padding: 14px 16px; }
  .object-workspace.expanded .object-head h2 { max-width: 62vw; overflow: hidden; font-size: 26px; text-overflow: ellipsis; white-space: nowrap; }
  .object-expand-button { width: 40px; padding: 0; font-size: 0; }
  .expanded-object-workbench { gap: 12px; padding: 12px; }
  .expanded-object-primary, .expanded-object-supporting { grid-template-columns: 1fr; gap: 12px; }
  .object-notes-column { position: static; max-height: none; overflow: visible; }
  .expanded-section-heading { padding: 17px 16px 14px; }
  .object-details-section.expanded-reference, .expanded-inline-section { padding: 18px 16px; }
  .expanded-reference .property-grid { grid-template-columns: 1fr; }
  .object-details-section.has-primary-media .object-about-layout { grid-template-columns: minmax(0, 1fr) 118px; gap: 16px; }
  .object-primary-media, .object-primary-media.media-cover { width: 118px; }
  .object-primary-media img { height: 118px; }
  .object-primary-media.media-cover img { height: 172px; }
  .object-details-section.media-banner .object-about-layout { grid-template-columns: 1fr; }
  .object-primary-media.media-banner { width: 100%; }
  .object-primary-media.media-banner img { height: 150px; }
  .expanded-note-composer, .expanded-notes-list { padding-left: 16px; padding-right: 16px; }
  .expanded-note-composer .add-related { grid-template-columns: 1fr; }
  .expanded-note-composer .add-related .secondary-button, .expanded-note-composer .composer-footer > .primary-button { width: 100%; }
  .expanded-explore-callout { align-items: stretch; flex-direction: column; }
  .expanded-explore-callout > .secondary-button { width: 100%; }
  .object-tabs { padding: 0 8px; }
  .object-tabs button { min-height: 46px; padding: 0 9px; font-size: 13px; }
  .tab-layout, .overview-layout { padding: 20px 16px 104px; }
  .object-workspace.exploring .mobile-action-bar { display: none; }
  .branch-explorer { padding: 17px 0 30px; }
  .branch-explorer-head { display: block; padding: 0 16px 14px; }
  .branch-explorer-head h3 { font-size: 20px; }
  .branch-head-actions { justify-items: start; margin-top: 12px; }
  .branch-legend { margin-top: 10px; }
  .branch-trail { margin: 0 16px 13px; }
  .branch-rail { display: block; padding: 0 16px; overflow: visible; }
  .branch-column { width: 100%; height: calc(100vh - 350px); min-height: 340px; }
  .branch-column:not(:last-child) { display: none; }
  .branch-column::before, .branch-column::after { display: none; }
  .explorer-app-body .main { padding: 10px; }
  .expanded-explorer-page { height: calc(100vh - 84px); border-radius: 8px; }
  .expanded-explorer-page-head { min-height: 82px; padding: 13px 15px; }
  .expanded-root-title { gap: 9px; }
  .expanded-root-title h1 { max-width: 190px; overflow: hidden; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
  .expanded-root-title p { display: none; }
  .expanded-root-glyph { width: 36px; height: 36px; }
  .expanded-explorer-page-head > .secondary-button { width: 42px; padding: 0; font-size: 0; }
  .branch-explorer.expanded { padding: 13px 0 12px; }
  .branch-explorer.expanded .branch-explorer-head { flex: none; }
  .branch-explorer.expanded .branch-rail { display: block; flex: 1; overflow: hidden; }
  .branch-explorer.expanded .branch-column { width: 100%; height: 100%; min-height: 0; }
  .property-grid { grid-template-columns: 1fr; }
  .mobile-action-bar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
  .form-sheet { padding: 20px 17px 90px; }
  .inbox-head { padding: 20px 17px 17px; }
  .inbox-form { padding: 4px 17px 30px; }
  .destination-grid { grid-template-columns: 1fr; }
  .destination-card > span { min-height: 70px; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; }
  .destination-card strong, .destination-card small { grid-column: 2; }
  .task-sort-options { grid-template-columns: 1fr; }
  .inbox-actions { margin-left: -17px; margin-right: -17px; padding-left: 17px; padding-right: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .capture-drawer { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; grid-template-columns: 1fr; align-content: start; overflow-y: auto; padding: 22px 17px; border: 0; border-top: 4px solid var(--blue); border-radius: 0; }
  .composer-footer, .add-related { align-items: stretch; flex-direction: column; }
  .add-related select { min-width: 0; }
  .connection-pickers { grid-template-columns: 1fr; }
  .task-link-pickers { grid-template-columns: 1fr; }
  .connection-preview { grid-template-columns: 40px minmax(0, 1fr); }
  .connection-preview em { grid-column: 1 / -1; justify-self: start; margin-left: 50px; }
  .connection-footer { align-items: stretch; flex-direction: column; }
  .connection-footer .primary-button { align-self: stretch; }
  .filter-row { grid-template-columns: 1fr 1fr 38px; }
  .filter-row input { grid-column: 1 / -1; grid-row: 2; }
  .linked-context-filter { grid-template-columns: 1fr; }
  .object-columns-panel { grid-template-columns: 1fr; padding: 13px 17px; }
  .object-column-choices { display: grid; grid-template-columns: 1fr 1fr; }
  .toast { left: 14px; right: 14px; bottom: 14px; text-align: center; }
  .calendar-workspace { min-height: calc(100vh - 172px); border-radius: 8px; }
  .calendar-toolbar { grid-template-columns: 1fr auto; gap: 10px; padding: 13px; }
  .calendar-heading h1 { font-size: 22px; }
  .calendar-navigation { justify-self: end; }
  .calendar-navigation .secondary-button { display: none; }
  .view-switch { grid-column: 1 / -1; justify-self: stretch; }
  .view-switch button { flex: 1; }
  .calendar-filters { gap: 12px; padding: 8px 12px; }
  .event-type-filters { display: none; }
  .automatic-surface-note { margin-left: 0; font-size: 11px; }
  .task-tray { grid-template-columns: 1fr; gap: 7px; padding: 9px 12px; }
  .day-planner { display: block; }
  .day-note-view { display: block; }
  .day-note-summary { border-right: 0; }
  .day-note-notes { padding: 15px 13px 35px; }
  .day-note-notes > .section-head { align-items: flex-start; gap: 14px; }
  .day-note-actions { align-items: stretch; flex-direction: column; }
  .day-note-actions .primary-button { width: 100%; }
  .day-note-destinations { grid-template-columns: 1fr; }
  .day-note-destinations .destination-card > span { min-height: 68px; }
  .day-schedule { border-right: 0; border-bottom: 1px solid var(--line); }
  .day-schedule-head { grid-template-columns: auto 1fr; padding: 12px; }
  .day-schedule-head .primary-button { grid-column: 1 / -1; }
  .day-scroll { height: 560px; }
  .day-ledger { overflow: visible; }
  .day-focus, .activity-ledger { padding: 15px 13px; }
  .scheduler-form { grid-template-columns: 1fr; }
  .scheduler-task-choice, .scheduler-form .primary-button { grid-column: 1; }
  .time-link-composer { grid-template-columns: 1fr; }
  .time-link-composer .secondary-button { width: 100%; }
  .week-header, .all-day-row { min-width: 762px; }
  .week-calendar { overflow-x: auto; }
  .week-scroll { height: calc(100vh - 388px); }
  .weekly-review-view { overflow: hidden; }
  .week-review-opening { align-items: stretch; flex-direction: column; gap: 17px; padding: 19px 16px; }
  .week-review-opening h2 { font-size: 27px; }
  .week-review-opening label { width: 100%; }
  .week-memory-strip { min-width: 0; overflow-x: auto; grid-template-columns: repeat(7, minmax(104px, 1fr)); }
  .weekly-review-layout { display: block; }
  .week-review-evidence { padding: 18px 13px 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .week-review-objects { grid-template-columns: 1fr; }
  .week-review-editor { position: static; margin: 16px 13px 40px; padding: 16px; }
  .week-review-editor textarea { min-height: 440px; }
  .week-review-editor footer { align-items: stretch; flex-direction: column; }
  .week-review-editor footer .primary-button { width: 100%; }
  .month-grid { min-width: 760px; min-height: 650px; }
  .month-weekdays { min-width: 760px; }
  .month-calendar { overflow-x: auto; }
  .agenda-calendar { padding: 8px 13px 45px; }
  .agenda-day { grid-template-columns: 72px minmax(0, 1fr); gap: 9px; padding: 13px 0; }
  .agenda-day > header strong { font-size: 12px; }
  .agenda-entry { grid-template-columns: 48px 4px minmax(0, 1fr); gap: 8px; }
  .agenda-entry em { display: none; }
  .event-editor { position: fixed; z-index: 85; inset: 64px 0 0; width: 100%; border-left: 0; }
  .event-form { padding: 18px 16px 90px; }
  .event-editor > header { padding: 18px 16px 15px; }
  .event-form .form-actions { position: sticky; bottom: -90px; grid-template-columns: auto 1fr auto; margin: 6px -16px -90px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); }
  .event-form .form-actions > span { display: none; }
  .event-form .form-actions .secondary-button { display: none; }
  .undo-toast { justify-content: center; }
  .error-banner { position: fixed; top: 72px; left: 10px; right: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 12px; }
  .error-banner strong, .error-banner span { grid-column: 1; }
  .error-banner button { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}

@media (max-width: 480px) {
  .records-heading { align-items: flex-start; }
  .records-heading .tools { align-items: stretch; flex-direction: column; }
  .task-records-heading .search, .task-records-heading .task-list-filter { width: 100%; min-width: 0; flex: none; }
  .linked-context-controls { grid-template-columns: 1fr; }
  .search { width: 155px; }
  .object-thumbnail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-button { min-height: 34px; }
  .section-head.prominent { align-items: stretch; flex-direction: column; }
  .section-head.prominent .primary-button { align-self: stretch; }
  .note-card-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .property-row { grid-template-columns: 1fr 38px; }
  .property-row input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .property-row .icon-button { grid-column: 2; grid-row: 1; }
  .object-property-calendar { grid-template-columns: 1fr; }
  .url-property-input { grid-template-columns: 1fr; }
  .url-property-input .secondary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
