:root input:is([type="checkbox"], [type="radio"]) {
  accent-color: var(--color-primary-500, #2563eb);
}

:root[data-theme^="almanach"] {
  --alm-serif: "C059", "Century Schoolbook", "Noto Serif", "Source Serif 4", Georgia, "Times New Roman", serif;
  --alm-paper: #f3ede0;
  --alm-surface: #faf6ec;
  --alm-raised: #fffdf5;
  --alm-sidebar: #ebe3d1;
  --alm-weekend: #efe8d7;
  --alm-hover: #efe7d5;
  --alm-hover-soft: rgba(29, 26, 22, 0.06);
  --alm-ink: #1d1a16;
  --alm-on-ink: #faf6ec;
  --alm-nav-ink: #3d372d;
  --alm-muted: #675f50;
  --alm-legend: #4b4538;
  --alm-line: #d3c8b0;
  --alm-rule: #b6aa90;
  --alm-accent: #8f2d1c;
  --alm-accent-bright: #a8402c;
  --alm-marker: #8f2d1c;
  --alm-marker-ink: #fff8ec;
  --alm-ok: #3d7a3f;
  --alm-ok-bg: #dee8d1;
  --alm-ok-ink: #1f431d;
  --alm-wait: #b07a14;
  --alm-wait-bg: #f5e3b3;
  --alm-wait-ink: #573a05;
  --alm-run: #2e5f8f;
  --alm-run-bg: #d6e2ee;
  --alm-run-ink: #15395c;
  --alm-no: #a8352b;
  --alm-no-bg: #f2d6cf;
  --alm-no-ink: #6a1912;
  --alm-violet: #6c4a86;
  --alm-shadow: rgba(29, 26, 22, 0.14);
}

:root[data-theme="almanach-dark"] {
  --alm-paper: #191612;
  --alm-surface: #221e19;
  --alm-raised: #2c2720;
  --alm-sidebar: #14110e;
  --alm-weekend: #171410;
  --alm-hover: #2c2720;
  --alm-hover-soft: rgba(235, 226, 207, 0.06);
  --alm-ink: #ebe2cf;
  --alm-on-ink: #191612;
  --alm-nav-ink: #d6ccb7;
  --alm-muted: #b1a68f;
  --alm-legend: #c9bfa9;
  --alm-line: #3a342b;
  --alm-rule: #4d4537;
  --alm-accent: #e48a6c;
  --alm-accent-bright: #ef9d81;
  --alm-marker: #a53b27;
  --alm-marker-ink: #fff4e4;
  --alm-ok: #74a96b;
  --alm-ok-bg: #1f2c1b;
  --alm-ok-ink: #b9d7a5;
  --alm-wait: #d09a38;
  --alm-wait-bg: #352812;
  --alm-wait-ink: #efcf88;
  --alm-run: #6d9cd2;
  --alm-run-bg: #1a2735;
  --alm-run-ink: #b7cfec;
  --alm-no: #d46a5b;
  --alm-no-bg: #381d19;
  --alm-no-ink: #f0b2a6;
  --alm-violet: #ac8fcb;
  --alm-shadow: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

:root[data-theme^="almanach"] body { background: var(--alm-paper); color: var(--alm-ink); }
:root[data-theme^="almanach"] :is(h1, h2, .h1, .dg-login-title, .op-card-value, .dg-table-title) {
  font-family: var(--alm-serif);
  letter-spacing: -0.01em;
}
:root[data-theme^="almanach"] h1 { font-weight: 700; }
:root[data-theme^="almanach"] h2 { font-weight: 600; }
:root[data-theme^="almanach"] :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--alm-accent);
  outline-offset: 2px;
}
:root[data-theme^="almanach"] ::selection { background: var(--alm-accent); color: var(--alm-on-ink); }
:root[data-theme^="almanach"] input:is([type="checkbox"], [type="radio"]) {
  accent-color: var(--alm-accent);
}

:root[data-theme^="almanach"] .op-sidebar { background: var(--alm-sidebar); border-right: 1px solid var(--alm-ink); }
:root[data-theme^="almanach"] .op-brand { border-bottom: 1px solid var(--alm-rule); margin: 0 -8px 14px; }
:root[data-theme^="almanach"] .op-nav { gap: 0; margin: 0 -8px; }
:root[data-theme^="almanach"] .op-nav-item {
  border-radius: 0; border-left: 3px solid transparent;
  padding: 11px 20px 11px 17px; color: var(--alm-nav-ink); letter-spacing: 0.01em;
}
:root[data-theme^="almanach"] .op-nav-item:hover { background: var(--alm-hover-soft); }
:root[data-theme^="almanach"] .op-nav-item.active {
  background: var(--alm-surface); color: var(--alm-ink); font-weight: 650;
  border-left-color: var(--alm-accent);
}
:root[data-theme^="almanach"] .op-nav-item.active svg { color: var(--alm-accent); opacity: 1; }
:root[data-theme^="almanach"] .op-topbar { background: var(--alm-paper); border-bottom: 1px solid var(--alm-ink); }
:root[data-theme^="almanach"] .op-topbar .search {
  background: transparent; border: 0; border-bottom: 1px solid var(--alm-rule); border-radius: 0;
}
:root[data-theme^="almanach"] .op-topbar .search :is(input, .search-placeholder) {
  font-family: var(--alm-serif); font-style: italic; font-size: 15px;
}
:root[data-theme^="almanach"] :is(.bell.op-bell, .op-bell summary, .op-bell.op-bell-phone) {
  background: transparent; border: 1px solid var(--alm-rule); color: var(--alm-ink);
}
:root[data-theme^="almanach"] :is(.bell.op-bell, .op-bell summary, .op-bell.op-bell-phone):hover { border-color: var(--alm-ink); }
:root[data-theme^="almanach"] .user-avatar {
  background: var(--alm-ink); color: var(--alm-on-ink);
  font-weight: 600; letter-spacing: 0.06em;
}
:root[data-theme^="almanach"] .op-header h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.015em; }
:root[data-theme^="almanach"] :is(.op-header p, .cal-page .sub) {
  font-family: var(--alm-serif); font-style: italic; font-size: 14px;
}

:root[data-theme^="almanach"] :is(.btn-primary, .op-primary, .dg-login-btn) {
  background: var(--alm-ink); color: var(--alm-on-ink); border: 1px solid var(--alm-ink);
  border-radius: 0; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 11.5px;
}
:root[data-theme^="almanach"] :is(.btn-primary, .op-primary, .dg-login-btn):hover:not(:disabled) {
  background: var(--alm-accent); border-color: var(--alm-accent); color: var(--alm-on-ink);
}
:root[data-theme^="almanach"] :is(.btn-primary, .op-primary, .dg-login-btn):is(:disabled, [disabled], .is-disabled) {
  background: var(--alm-rule); border-color: var(--alm-rule); color: var(--alm-muted);
}
:root[data-theme^="almanach"] :is(.btn-ghost, .op-secondary, .dg-login-btn-secondary) {
  background: transparent; border: 1px solid var(--alm-ink); color: var(--alm-ink);
  border-radius: 0; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 11.5px;
}
:root[data-theme^="almanach"] :is(.btn-ghost, .op-secondary, .dg-login-btn-secondary):hover:not(:disabled) {
  background: var(--alm-ink); color: var(--alm-on-ink);
}
:root[data-theme^="almanach"] .op-sidebar-bottom .op-primary {
  background: transparent; color: var(--alm-ink); border-color: var(--alm-rule);
}
:root[data-theme^="almanach"] .op-sidebar-bottom .op-primary:hover:not(:disabled) {
  background: var(--alm-hover-soft); border-color: var(--alm-ink); color: var(--alm-ink);
}
:root[data-theme^="almanach"] {
  --alm-pressed: color-mix(in oklab, var(--alm-accent) 11%, var(--alm-surface));
}
:root[data-theme^="almanach"] .btn-soft {
  background: transparent; border: 1px solid var(--alm-rule); color: var(--alm-accent); border-radius: 0;
}

:root[data-theme^="almanach"] .op-card {
  background: var(--alm-surface); border: 1px solid var(--alm-line); border-top: 2px solid var(--alm-ink);
  border-radius: 0; box-shadow: none;
}
:root[data-theme^="almanach"] :is(.op-card-title, .op-field label) { color: var(--alm-ink); }
:root[data-theme^="almanach"] .op-card-title { letter-spacing: 0.18em; }
:root[data-theme^="almanach"] :is(.op-input, .op-select, .op-textarea, .input, .select, .area) {
  background: var(--alm-raised); border-color: var(--alm-rule); border-radius: 0;
}
:root[data-theme^="almanach"] :is(.op-notification-panel, .notif-dropdown, .user-dropdown, .dg-pop, .search-panel, .modal) {
  background: var(--alm-surface); border: 1px solid var(--alm-ink); border-radius: 0;
  box-shadow: 6px 6px 0 var(--alm-shadow);
}
:root[data-theme^="almanach"] .dg-add-doc-card { border: 1px solid var(--alm-ink); box-shadow: 8px 8px 0 var(--alm-shadow); }
:root[data-theme^="almanach"] .card.stat.is-selected {
  background: var(--alm-raised); border-color: var(--alm-ink); box-shadow: inset 0 -3px 0 var(--alm-accent);
}

:root[data-theme^="almanach"] dg-notifications .bell.has-unread::after {
  background: var(--alm-accent); border-color: var(--alm-paper);
}
:root[data-theme^="almanach"] dg-notifications .notif-dropdown {
  width: 400px; max-width: calc(100vw - 32px);
  max-height: min(600px, calc(100dvh - 100px));
  color: var(--alm-ink); border-top: 3px solid var(--alm-ink);
}
:root[data-theme^="almanach"] dg-notifications .notif-head {
  flex-shrink: 0; gap: 12px; flex-wrap: wrap; padding: 16px 18px 14px;
  border-bottom: 1px solid var(--alm-ink);
}
:root[data-theme^="almanach"] dg-notifications .notif-head strong {
  font-family: var(--alm-serif); font-size: 23px; font-weight: 400; line-height: 1.2;
  letter-spacing: -0.015em;
}
:root[data-theme^="almanach"] dg-notifications .notif-count {
  padding: 4px 7px; border: 1px solid currentColor; color: var(--alm-accent);
  font-size: 10px; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
:root[data-theme^="almanach"] dg-notifications .notif-scroll {
  scrollbar-color: var(--alm-rule) transparent; overscroll-behavior: contain;
}
:root[data-theme^="almanach"] dg-notifications .notif-section {
  padding: 12px 18px 8px; border-top: 0; color: var(--alm-muted);
  font-size: 10px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase;
}
:root[data-theme^="almanach"] dg-notifications .notif-item {
  grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 18px;
}
:root[data-theme^="almanach"] dg-notifications .notif-item + .notif-item {
  border-top: 1px solid var(--alm-line);
}
:root[data-theme^="almanach"] dg-notifications .notif-ico {
  background: transparent; color: var(--alm-muted); border: 1px solid var(--alm-rule); border-radius: 0;
}
:root[data-theme^="almanach"] dg-notifications .notif-ico.is-ok {
  color: var(--alm-ok); border-color: currentColor;
}
:root[data-theme^="almanach"] dg-notifications .notif-ico.is-doc {
  color: var(--alm-legend);
}
:root[data-theme^="almanach"] dg-notifications .notif-title {
  display: flex; color: var(--alm-ink); font-size: 13px; font-weight: 650; line-height: 1.45;
  overflow-wrap: anywhere;
}
:root[data-theme^="almanach"] dg-notifications .notif-title-link:hover {
  color: var(--alm-accent); text-decoration: underline; text-underline-offset: 3px;
}
:root[data-theme^="almanach"] dg-notifications .notif-dot {
  width: 6px; height: 6px; margin-top: 6px; background: var(--alm-accent); border-radius: 0;
}
:root[data-theme^="almanach"] dg-notifications .notif-body {
  margin-top: 5px; color: var(--alm-muted); line-height: 1.5; overflow-wrap: anywhere;
}
:root[data-theme^="almanach"] dg-notifications .notif-time {
  margin-top: 7px; color: var(--alm-muted); font-size: 10px; line-height: 1.4;
  letter-spacing: 0.03em; font-variant-numeric: tabular-nums;
}
:root[data-theme^="almanach"] dg-notifications .notif-actions { gap: 6px; margin-top: 11px; }
:root[data-theme^="almanach"] dg-notifications .notif-actions :is(.btn-primary, .btn-ghost, .btn-accept, .btn-reject) {
  padding: 6px 10px; border: 1px solid var(--alm-ink); border-radius: 0;
  font-size: 10px; font-weight: 650; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: normal; overflow-wrap: anywhere; max-width: 100%;
}
:root[data-theme^="almanach"] dg-notifications .notif-actions .btn-accept {
  background: var(--alm-ok-bg); color: var(--alm-ok-ink); border-color: var(--alm-ok);
}
:root[data-theme^="almanach"] dg-notifications .notif-actions .btn-reject {
  background: var(--alm-no-bg); color: var(--alm-no-ink); border-color: var(--alm-no);
}
:root[data-theme^="almanach"] dg-notifications .notif-actions :is(.btn-accept, .btn-reject):hover:not(:disabled) {
  background: var(--alm-ink); color: var(--alm-on-ink); border-color: var(--alm-ink);
}
:root[data-theme^="almanach"] dg-notifications .notif-actions :is(.btn-accept, .btn-reject):disabled {
  background: var(--alm-hover-soft); color: var(--alm-muted); border-color: var(--alm-rule); cursor: default;
}
:root[data-theme^="almanach"] dg-notifications .notif-mark-all {
  padding: 13px 18px; border-top: 1px solid var(--alm-ink);
  background: var(--alm-paper); color: var(--alm-accent);
  font-size: 11px; line-height: 1.5; letter-spacing: 0.04em;
}
:root[data-theme^="almanach"] dg-notifications .notif-mark-all:hover {
  background: var(--alm-hover); color: var(--alm-ink);
}
:root[data-theme^="almanach"] dg-notifications .notif-mark-all:focus-visible { outline-offset: -4px; }
:root[data-theme^="almanach"] dg-notifications .notif-empty {
  padding: 28px 18px; color: var(--alm-muted); font-family: var(--alm-serif);
  font-size: 15px; font-style: italic; border-top: 0;
}

:root[data-theme^="almanach"] :is(a:not([class]), .planner-page-nav a:where(:not(.planner-bar-btn)), .cal-table-h > a, .dg-login-link, .structure-edit-panel > summary) {
  color: var(--alm-accent);
  text-decoration-color: currentColor;
}
:root[data-theme^="almanach"] :is(.dg-table-sort-icon, .scope-config-tabs > button.is-active, .rule-tabs > button.is-active) { color: var(--alm-accent); }
:root[data-theme^="almanach"] :is(.scope-config-tabs, .rule-tabs) > button.is-active { border-color: var(--alm-accent); }
:root[data-theme^="almanach"] .rule-state-list button.is-active {
  background: var(--alm-pressed); color: var(--alm-accent);
  box-shadow: inset 3px 0 0 var(--alm-accent);
}
:root[data-theme^="almanach"] .rule-state-list small { color: var(--alm-muted); }

:root[data-theme^="almanach"] :is(.table, .op-table, .dg-docs-table table) th {
  color: var(--alm-ink); border-top: 1px solid var(--alm-ink); border-bottom: 1px solid var(--alm-ink);
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px;
}
:root[data-theme^="almanach"] .dg-table-title { font-weight: 400; font-size: 24px; }
:root[data-theme^="almanach"] .person > div { font-family: var(--alm-serif); font-size: 15px; }
:root[data-theme^="almanach"] .chip {
  border-radius: 0; border: 1px solid; font-size: 10px; font-weight: 650;
  letter-spacing: 0.12em; text-transform: uppercase;
}
:root[data-theme^="almanach"] .chip-leave-accepted { background: var(--alm-ok-bg); color: var(--alm-ok-ink); border-color: var(--alm-ok); }
:root[data-theme^="almanach"] .chip-leave-pending { background: var(--alm-wait-bg); color: var(--alm-wait-ink); border-color: var(--alm-wait); }
:root[data-theme^="almanach"] .chip-leave-progress { background: var(--alm-run-bg); color: var(--alm-run-ink); border-color: var(--alm-run); }
:root[data-theme^="almanach"] .chip-leave-rejected { background: var(--alm-no-bg); color: var(--alm-no-ink); border-color: var(--alm-no); }

:root[data-theme^="almanach"] .cal-page .h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.08; }
:root[data-theme^="almanach"] .cal-page .card {
  background: transparent; border: 0; border-top: 2px solid var(--alm-ink); border-radius: 0; box-shadow: none;
}
:root[data-theme^="almanach"] .cal-card-h { padding: 14px 0 12px; border-bottom: 1px solid var(--alm-rule); }
:root[data-theme^="almanach"] .cal-card-h .cal-month { padding: 0; }
:root[data-theme^="almanach"] .cal-card-h .cal-month .h2 {
  font-family: var(--alm-serif); font-size: 30px; font-weight: 400; line-height: 1.1;
  letter-spacing: -0.01em; text-transform: none;
}
:root[data-theme^="almanach"] .cal-card-h .h2 {
  font-family: inherit; font-size: 11px; font-weight: 650; letter-spacing: 0.2em; text-transform: uppercase;
}
:root[data-theme^="almanach"] .cal-month { padding: 22px 0 16px; }
:root[data-theme^="almanach"] .cal-month .h2 { font-size: 32px; font-weight: 400; line-height: 1.1; }
:root[data-theme^="almanach"] :is(.cal-month-nav span, .cal-month-btn) {
  border: 1px solid var(--alm-ink); border-radius: 999px; background: transparent;
  color: var(--alm-ink); font-family: var(--alm-serif);
}
:root[data-theme^="almanach"] .cal-month-nav { gap: 8px; }
:root[data-theme^="almanach"] .cal-month-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-size: 0;
}
:root[data-theme^="almanach"] .cal-month-btn::before {
  content: ""; width: 8px; height: 8px; margin-left: 3px;
  border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
:root[data-theme^="almanach"] .cal-month-btn:last-child::before { margin: 0 3px 0 0; transform: rotate(-135deg); }
:root[data-theme^="almanach"] .cal-month-btn:hover { background: var(--alm-ink); color: var(--alm-on-ink); }
:root[data-theme^="almanach"] .cal-grid-wrap { padding: 14px 0 20px; }
:root[data-theme^="almanach"] .cal { gap: 1px; padding: 1px; background: transparent; }
:root[data-theme^="almanach"] .cal-head {
  font-size: 10px; font-weight: 650; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--alm-ink); text-align: left; padding: 0 10px 8px; background: transparent;
}
:root[data-theme^="almanach"] .cal-head:nth-child(6), :root[data-theme^="almanach"] .cal-head:nth-child(7) { color: var(--alm-accent); }
:root[data-theme^="almanach"] .cal-cell {
  background: var(--alm-surface); border: 0; border-radius: 0;
  box-shadow: 0 0 0 1px var(--alm-rule); padding: 9px 10px 10px;
}
:root[data-theme^="almanach"] :is(.cal-cell:nth-child(7n+6), .cal-cell:nth-child(7n)) { background: var(--alm-weekend); }
:root[data-theme^="almanach"] .cal-cell > div:first-child {
  font-family: var(--alm-serif); font-size: 20px; font-weight: 400; line-height: 1; margin-bottom: 9px; color: var(--alm-ink);
}
:root[data-theme^="almanach"] .cal-cell.today {
  outline: 0; background: var(--alm-raised); position: relative; z-index: 1;
  box-shadow: 0 0 0 1px var(--alm-ink), inset 0 0 0 1px var(--alm-ink);
}
:root[data-theme^="almanach"] .cal-cell.today > div:first-child {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px;
  margin: -5px 0 4px -5px; border-radius: 999px;
  background: var(--alm-marker); color: var(--alm-marker-ink); font-size: 16px; font-weight: 700;
}
:root[data-theme^="almanach"] .leave {
  border-radius: 0; border: 0; border-left: 3px solid; padding: 3px 7px;
  font-size: 11px; font-weight: 600; line-height: 1.3;
}
:root[data-theme^="almanach"] .leave:hover { text-decoration: underline; text-underline-offset: 2px; }
:root[data-theme^="almanach"] .leave-g { background: var(--alm-ok-bg); color: var(--alm-ok-ink); border-left-color: var(--alm-ok); }
:root[data-theme^="almanach"] .leave-y { background: var(--alm-wait-bg); color: var(--alm-wait-ink); border-left-color: var(--alm-wait); }
:root[data-theme^="almanach"] .leave-b { background: var(--alm-run-bg); color: var(--alm-run-ink); border-left-color: var(--alm-run); }
:root[data-theme^="almanach"] .leave-p { background: var(--alm-no-bg); color: var(--alm-no-ink); border-left-color: var(--alm-no); }
:root[data-theme^="almanach"] .cal-legend {
  gap: 24px; padding: 16px 0 4px; border-top: 1px solid var(--alm-rule);
  font-size: 13px; font-weight: 500; color: var(--alm-ink);
}
:root[data-theme^="almanach"] .cal-legend b { font-size: 10px; letter-spacing: 0.16em; color: var(--alm-ink); }
:root[data-theme^="almanach"] .cal-legend span { gap: 8px; }
:root[data-theme^="almanach"] .cal-legend i { width: 22px; height: 14px; border-radius: 0; border-left: 3px solid; }
:root[data-theme^="almanach"] .cal-legend .dot-g { background: var(--alm-ok-bg); border-left-color: var(--alm-ok); }
:root[data-theme^="almanach"] .cal-legend .dot-y { background: var(--alm-wait-bg); border-left-color: var(--alm-wait); }
:root[data-theme^="almanach"] .cal-legend .dot-b { background: var(--alm-run-bg); border-left-color: var(--alm-run); }
:root[data-theme^="almanach"] .cal-legend .dot-p { background: var(--alm-no-bg); border-left-color: var(--alm-no); }
:root[data-theme^="almanach"] .cal-view-switch { border: 1px solid var(--alm-ink); border-radius: 0; }
:root[data-theme^="almanach"] .cal-view-switch button {
  background: transparent; color: var(--alm-ink); border-left-color: var(--alm-ink);
  font-size: 12px; letter-spacing: 0.04em;
}
:root[data-theme^="almanach"] .cal-view-switch button[aria-pressed="false"] { color: var(--alm-legend); }
:root[data-theme^="almanach"] .cal-view-switch button[aria-pressed="false"]:hover { background: var(--alm-hover-soft); color: var(--alm-ink); }
:root[data-theme^="almanach"] .cal-view-switch button[aria-pressed="true"] {
  background: var(--alm-pressed); color: var(--alm-ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--alm-accent);
}
:root[data-theme^="almanach"] .cal-card-actions :is(.btn-soft, [aria-expanded="true"]) {
  background: var(--alm-pressed); border: 1px solid var(--alm-ink); color: var(--alm-ink); box-shadow: inset 0 -2px 0 var(--alm-accent);
}
:root[data-theme^="almanach"] .cal-axis-wrap { padding: 4px 0 20px; }
:root[data-theme^="almanach"] .cal-axis-toggle {
  border-radius: 0; border-color: var(--alm-rule); background: transparent; color: var(--alm-ink);
}
:root[data-theme^="almanach"] .cal-axis-toggle:hover { border-color: var(--alm-ink); }
:root[data-theme^="almanach"] .cal-axis-toggle[aria-pressed="true"] {
  border-color: var(--alm-ink); background: var(--alm-pressed); color: var(--alm-ink); box-shadow: inset 0 -2px 0 var(--alm-accent);
}
:root[data-theme^="almanach"] .cal-axis-toggle[aria-pressed="true"]::before { content: "✓" / ""; margin-right: 6px; color: var(--alm-accent); font-weight: 700; }
:root[data-theme^="almanach"] .cal-page .cal-axis-search {
  border: 0; border-bottom: 1px solid var(--alm-rule); border-radius: 0; background: transparent;
  font-family: var(--alm-serif); font-style: italic; font-size: 15px; padding-left: 0;
}
:root[data-theme^="almanach"] .cal-page .cal-axis-search::placeholder { color: var(--alm-muted); }
:root[data-theme^="almanach"] .cal-axis-count { color: var(--alm-muted); font-style: italic; font-family: var(--alm-serif); font-size: 14px; }
:root[data-theme^="almanach"] .cal-axis-scroll {
  border: 0; border-top: 1px solid var(--alm-ink); border-bottom: 1px solid var(--alm-ink);
  border-radius: 0; background: var(--alm-surface);
}
:root[data-theme^="almanach"] .cal-axis-row { border-bottom-color: color-mix(in oklab, var(--alm-line) 55%, var(--alm-rule)); }
:root[data-theme^="almanach"] .cal-axis-name { background: var(--alm-surface); border-right-color: var(--alm-rule); font-weight: 600; }
:root[data-theme^="almanach"] :is(.cal-axis-track, .cal-axis-days) {
  background-image: linear-gradient(to right, var(--alm-line) 1px, transparent 1px);
}
:root[data-theme^="almanach"] .cal-axis-column.is-weekend { background: color-mix(in oklab, var(--alm-weekend) 78%, var(--alm-line)); }
:root[data-theme="almanach-dark"] .cal-axis-column.is-weekend { background: var(--alm-weekend); }
:root[data-theme^="almanach"] :is(.cal-axis-column, .cal-axis-days .cal-axis-day).is-week-start:not(.is-today) { box-shadow: inset 1px 0 0 var(--alm-rule); }
:root[data-theme^="almanach"] .cal-axis-column.is-today {
  background: transparent; box-shadow: inset 1px 0 0 var(--alm-marker), inset -1px 0 0 var(--alm-marker);
}
:root[data-theme^="almanach"] .cal-axis-head { background: var(--alm-paper); border-bottom: 1px solid var(--alm-ink); }
:root[data-theme^="almanach"] .cal-axis-head .cal-axis-name {
  background: var(--alm-paper); color: var(--alm-ink); font-size: 10px; letter-spacing: 0.18em;
}
:root[data-theme^="almanach"] .cal-axis-head .cal-axis-day {
  color: var(--alm-legend); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; font-weight: 650;
}
:root[data-theme^="almanach"] .cal-axis-head .cal-axis-day b {
  font-family: var(--alm-serif); font-size: 16px; font-weight: 400; color: var(--alm-ink); letter-spacing: 0;
}
:root[data-theme^="almanach"] .cal-axis-head .cal-axis-day.is-weekend { color: var(--alm-accent); }
:root[data-theme^="almanach"] .cal-axis-head .cal-axis-day.is-today { background: var(--alm-marker); color: var(--alm-marker-ink); }
:root[data-theme^="almanach"] .cal-axis-head .cal-axis-day.is-today b { color: var(--alm-marker-ink); font-weight: 700; }
:root[data-theme^="almanach"] .cal-axis-bar { margin: 3px 1px; padding: 0; font-size: 11px; line-height: 1.2; }
:root[data-theme^="almanach"] .cal-axis-bar.leave-p { background: transparent; border: 1px dashed var(--alm-no); border-left: 3px solid var(--alm-no); }
:root[data-theme^="almanach"] .cal-axis-bar.is-clipped-start { border-left-style: dotted; }
:root[data-theme^="almanach"] .cal-axis-gap {
  margin: 3px 0;
  background: repeating-linear-gradient(135deg, var(--alm-surface) 0 3px, transparent 3px 6px);
  opacity: 0.85;
}
:root[data-theme^="almanach"] .cal-axis-group { background: var(--alm-paper); border-bottom-color: var(--alm-rule); }
:root[data-theme^="almanach"] .cal-axis-group-btn { color: var(--alm-muted); font-size: 12px; }
:root[data-theme^="almanach"] .cal-axis-group-btn b {
  font-family: var(--alm-serif); font-size: 15px; font-weight: 600; color: var(--alm-ink);
}
:root[data-theme^="almanach"] .cal-axis-total { background: var(--alm-paper); }
:root[data-theme^="almanach"] .cal-axis-total.is-confirmed { border-top: 1px solid var(--alm-ink); }
:root[data-theme^="almanach"] .cal-axis-total .cal-axis-name {
  background: var(--alm-paper); color: var(--alm-ink); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}
:root[data-theme^="almanach"] .cal-axis-total .cal-axis-day { font-family: var(--alm-serif); font-size: 14px; font-weight: 600; color: var(--alm-ok-ink); }
:root[data-theme^="almanach"] .cal-axis-total.is-pending .cal-axis-day { color: var(--alm-wait-ink); }
:root[data-theme^="almanach"] .cal-axis-bar-mark { font-size: 14px; font-weight: 800; }
:root[data-theme^="almanach"] .cal-axis-bar.leave-g { background: color-mix(in oklab, var(--alm-ok-bg) 78%, var(--alm-ok)); }
:root[data-theme^="almanach"] .cal-axis-bar[aria-current="true"] { outline: 0; box-shadow: 0 0 0 2px var(--alm-ink); }
:root[data-theme^="almanach"] .cal-axis-bar.leave-p[aria-current="true"] {
  background: var(--alm-no-bg); border-color: transparent; border-left-color: var(--alm-no);
}
:root[data-theme^="almanach"] .cal-axis-bar:focus-visible { outline: 2px solid var(--alm-accent); outline-offset: 1px; box-shadow: none; }
:root[data-theme^="almanach"] .cal-axis-detail {
  border: 1px solid var(--alm-line); border-left: 3px solid var(--alm-rule); border-radius: 0;
  background: var(--alm-raised); color: var(--alm-ink); font-size: 13.5px;
}
:root[data-theme^="almanach"] .cal-axis-detail.is-hint {
  border: 1px dashed var(--alm-line); background: transparent;
  color: var(--alm-muted); font-family: var(--alm-serif); font-style: italic; font-size: 14px;
}
:root[data-theme^="almanach"] .cal-axis-detail[data-tone="g"] { border-left-color: var(--alm-ok); }
:root[data-theme^="almanach"] .cal-axis-detail[data-tone="y"] { border-left-color: var(--alm-wait); }
:root[data-theme^="almanach"] .cal-axis-detail[data-tone="b"] { border-left-color: var(--alm-run); }
:root[data-theme^="almanach"] .cal-axis-detail[data-tone="p"] { border-left-color: var(--alm-no); }
:root[data-theme^="almanach"] .cal-axis-detail dt { color: var(--alm-muted); font-size: 10px; letter-spacing: 0.14em; }
:root[data-theme^="almanach"] .cal-axis-detail dd { color: var(--alm-ink); font-weight: 600; }
:root[data-theme^="almanach"] .cal-axis-detail dd:first-child,
:root[data-theme^="almanach"] .cal-axis-detail-facts > div:first-child dd { font-family: var(--alm-serif); font-size: 15px; }
:root[data-theme^="almanach"] .cal-axis-detail[data-tone="g"] .is-status dd { color: var(--alm-ok-ink); }
:root[data-theme^="almanach"] .cal-axis-detail[data-tone="y"] .is-status dd { color: var(--alm-wait-ink); }
:root[data-theme^="almanach"] .cal-axis-detail[data-tone="b"] .is-status dd { color: var(--alm-run-ink); }
:root[data-theme^="almanach"] .cal-axis-detail[data-tone="p"] .is-status dd { color: var(--alm-no-ink); }
:root[data-theme^="almanach"] .cal-axis-detail .is-secondary dd { color: var(--alm-muted); font-weight: 400; font-size: 12px; }
:root[data-theme^="almanach"] .cal-axis-detail-close { color: var(--alm-muted); }
:root[data-theme^="almanach"] .cal-axis-detail-close:hover { color: var(--alm-ink); }
:root[data-theme^="almanach"] .cal-card.is-axis .cal-legend i { font-size: 10px; }
:root[data-theme^="almanach"] .cal-card.is-axis .cal-legend .dot-g { color: var(--alm-ok-ink); }
:root[data-theme^="almanach"] .cal-card.is-axis .cal-legend .dot-y { color: var(--alm-wait-ink); }
:root[data-theme^="almanach"] .cal-card.is-axis .cal-legend .dot-b { color: var(--alm-run-ink); }
:root[data-theme^="almanach"] .cal-card.is-axis .cal-legend .dot-p { color: var(--alm-no-ink); }
:root[data-theme^="almanach"] .cal-axis-empty { font-family: var(--alm-serif); font-style: italic; color: var(--alm-muted); }
:root[data-theme^="almanach"] .cal-page .kpi { gap: 14px; align-items: center; }
:root[data-theme^="almanach"] .cal-page .kpi .kpi-ico {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 999px;
  background: transparent; border: 1px solid currentColor; color: var(--alm-run);
}
:root[data-theme^="almanach"] .cal-page .kpi:nth-child(2) .kpi-ico { color: var(--alm-ok); }
:root[data-theme^="almanach"] .cal-page .kpi:nth-child(3) .kpi-ico { color: var(--alm-wait); }
:root[data-theme^="almanach"] .cal-page .kpi:nth-child(4) .kpi-ico { color: var(--alm-violet); }
:root[data-theme^="almanach"] .cal-page .kpi .label { font-size: 10px; font-weight: 650; letter-spacing: 0.18em; color: var(--alm-muted); }
:root[data-theme^="almanach"] .cal-page .kpi .value { font-family: var(--alm-serif); font-size: 32px; font-weight: 400; color: var(--alm-ink); }

@media (max-width: 767px) {
  :root[data-theme^="almanach"] .cal-page .h1 { font-size: 30px; }
  :root[data-theme^="almanach"] .cal-page .kpi { gap: 10px; min-width: 0; }
  :root[data-theme^="almanach"] .cal-page .kpi > * { min-width: 0; }
  :root[data-theme^="almanach"] .cal-page .kpi .kpi-ico { width: 34px; height: 34px; flex-basis: 34px; }
  :root[data-theme^="almanach"] .cal-page .kpi .label { font-size: 9px; letter-spacing: 0.12em; }
  :root[data-theme^="almanach"] .cal-page .kpi .value { font-size: 22px; }
  :root[data-theme^="almanach"] :is(.cal-month, .cal-card-h .cal-month) .h2 { font-size: 24px; }
  :root[data-theme^="almanach"] .cal-head { padding: 0 0 6px; text-align: center; letter-spacing: 0.1em; font-size: 9px; }
  :root[data-theme^="almanach"] .cal-cell { padding: 5px 3px 4px; }
  :root[data-theme^="almanach"] .cal-cell > div:first-child { font-size: 14px; margin: 0 0 4px 2px; }
  :root[data-theme^="almanach"] .cal-cell.today > div:first-child {
    min-width: 22px; height: 22px; padding: 0 4px; margin: -2px 0 2px -1px; font-size: 12px;
  }
  :root[data-theme^="almanach"] .leave { font-size: 9px; padding: 1px 2px; border-left-width: 2px; margin-top: 3px; }
}

:root[data-theme^="almanach"] .grafik { --grafik-no-soft: color-mix(in oklab, var(--alm-no-bg) 70%, var(--alm-surface)); color: var(--alm-ink); }
:root[data-theme^="almanach"] .grafik-head { margin-bottom: 22px; }
:root[data-theme^="almanach"] .grafik-head .h1 { font-family: var(--alm-serif); font-size: 40px; font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; }
:root[data-theme^="almanach"] .grafik-sub { margin-top: 6px; font-family: var(--alm-serif); font-style: italic; font-size: 14px; font-weight: 400; color: var(--alm-muted); }
:root[data-theme^="almanach"] .grafik-help { color: var(--alm-ink); text-decoration-color: color-mix(in oklab, var(--alm-muted) 55%, transparent); }
:root[data-theme^="almanach"] .grafik-views { border: 1px solid var(--alm-ink); border-radius: 0; }
:root[data-theme^="almanach"] .grafik-seg { border: 1px solid var(--alm-rule); border-radius: 0; }
:root[data-theme^="almanach"] :is(.grafik-view, .grafik-seg button) {
  background: transparent; color: var(--alm-legend); font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em;
}
:root[data-theme^="almanach"] .grafik-view { border-left-color: var(--alm-ink); }
:root[data-theme^="almanach"] .grafik-seg button { border-left-color: var(--alm-rule); }
:root[data-theme^="almanach"] :is(.grafik-view, .grafik-seg button, .grafik-toggle):hover:not(:disabled) { background: var(--alm-hover-soft); color: var(--alm-ink); }
:root[data-theme^="almanach"] :is(.grafik-view[aria-current="page"], .grafik-seg button[aria-pressed="true"], .grafik-toggle[aria-pressed="true"]) {
  background: var(--alm-pressed); color: var(--alm-ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--alm-accent);
}
:root[data-theme^="almanach"] .grafik-toggle { border: 1px solid var(--alm-rule); border-radius: 0; background: transparent; color: var(--alm-legend); font-weight: 500; }
:root[data-theme^="almanach"] .grafik-toggle[aria-pressed="true"] { border-color: var(--alm-rule); }
:root[data-theme^="almanach"] .grafik-band { padding: 14px 0 12px; border-top: 2px solid var(--alm-ink); }
:root[data-theme^="almanach"] .grafik-nav { gap: 8px; }
:root[data-theme^="almanach"] .grafik-step {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--alm-ink); border-radius: 999px; background: transparent;
  color: var(--alm-ink); font-size: 0;
}
:root[data-theme^="almanach"] .grafik-step::before {
  content: ""; width: 8px; height: 8px; margin-left: 3px;
  border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
:root[data-theme^="almanach"] .grafik-step:last-child::before { margin: 0 3px 0 0; transform: rotate(-135deg); }
:root[data-theme^="almanach"] .grafik-step:hover:not(:disabled) { background: var(--alm-ink); color: var(--alm-on-ink); }
:root[data-theme^="almanach"] .grafik-week { font-family: var(--alm-serif); font-size: 30px; font-weight: 400; line-height: 1.1; }
:root[data-theme^="almanach"] .grafik-weekno { padding-top: 6px; color: var(--alm-muted); letter-spacing: 0.2em; }
:root[data-theme^="almanach"] .grafik-empty { font-family: var(--alm-serif); font-style: italic; font-size: 15px; color: var(--alm-muted); }
:root[data-theme^="almanach"] .grafik-grid { background: transparent; }
:root[data-theme^="almanach"] .grafik-grid thead th {
  padding-top: 12px; background: var(--alm-paper); border-top: 1px solid var(--alm-rule); border-bottom: 1px solid var(--alm-ink);
  color: var(--alm-ink); font-size: 10px; letter-spacing: 0.18em;
}
:root[data-theme^="almanach"] .grafik-th { padding-bottom: 12px; }
:root[data-theme^="almanach"] .grafik-dow { color: var(--alm-legend); padding-bottom: 2px; }
:root[data-theme^="almanach"] .grafik-dnum { font-family: var(--alm-serif); font-size: 22px; font-weight: 400; color: var(--alm-ink); }
:root[data-theme^="almanach"] .grafik-daysum { margin-top: 6px; color: var(--alm-muted); }
:root[data-theme^="almanach"] .grafik-daysum b { color: var(--alm-ink); }
:root[data-theme^="almanach"] .grafik-meter { background: var(--alm-line); }
:root[data-theme^="almanach"] :is(.grafik-meter, .grafik-pbar) i { background: var(--alm-ink); }
:root[data-theme^="almanach"] .grafik-day.is-today .grafik-dnum {
  min-width: 28px; height: 28px; padding: 0 5px; background: var(--alm-marker); color: var(--alm-marker-ink); font-size: 16px; font-weight: 700;
}
:root[data-theme^="almanach"] .grafik-day.is-today .grafik-dow { color: var(--alm-accent); }
:root[data-theme^="almanach"] :is(.grafik-day, .grafik-days button).is-high .grafik-daysum b { color: var(--alm-no-ink); }
:root[data-theme^="almanach"] :is(.grafik-day, .grafik-days button).is-high .grafik-meter i { background: var(--alm-no); }
:root[data-theme^="almanach"] .grafik-day.is-off .grafik-daysum { color: var(--alm-legend); font-weight: 600; }
:root[data-theme^="almanach"] :is(.grafik-day.is-off, .grafik-weeksum) .grafik-meter { background: transparent; }
:root[data-theme^="almanach"] .grafik-weeksum .grafik-daysum b { font-family: var(--alm-serif); font-size: 20px; font-weight: 400; }
:root[data-theme^="almanach"] .grafik-grid td { border-bottom-color: var(--alm-line); background: var(--alm-surface); }
:root[data-theme^="almanach"] .grafik-grid tbody tr:last-child td { border-bottom-color: var(--alm-rule); }
:root[data-theme^="almanach"] :is(.grafik-group th, .grafik-group td) { padding-top: 16px; background: var(--alm-paper); border-bottom-color: var(--alm-rule); }
:root[data-theme^="almanach"] .grafik-group th { font-family: var(--alm-serif); font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
:root[data-theme^="almanach"] .grafik-group th small { font-style: italic; font-size: 13px; font-weight: 400; color: var(--alm-muted); }
:root[data-theme^="almanach"] .grafik-group .grafik-sum { padding-top: 16px; color: var(--alm-legend); }
:root[data-theme^="almanach"] :is(.grafik-outline, .grafik-mpp, .grafik-plan, .grafik-rem::after) { color: var(--alm-muted); }
:root[data-theme^="almanach"] :is(.grafik-meta, .grafik-worked, .grafik-legend, .grafik-card-progress) { color: var(--alm-legend); }
:root[data-theme^="almanach"] .grafik-worked b { color: var(--alm-ink); }
:root[data-theme^="almanach"] .grafik-mark.m-no { background: var(--alm-no-bg); color: var(--alm-no-ink); border-left-color: var(--alm-no); }
:root[data-theme^="almanach"] .grafik-mark.m-wait { background: var(--alm-wait-bg); color: var(--alm-wait-ink); border-left-color: var(--alm-wait); }
:root[data-theme^="almanach"] .grafik-mark.m-ok { background: var(--alm-ok-bg); color: var(--alm-ok-ink); border-left-color: var(--alm-ok); }
:root[data-theme^="almanach"] .grafik-mark.m-off { background: var(--alm-weekend); color: var(--alm-legend); border-left-color: var(--alm-rule); }
:root[data-theme^="almanach"] .grafik-mark.m-crit { color: var(--alm-accent); border-color: color-mix(in oklab, var(--alm-accent) 55%, transparent); }
:root[data-theme^="almanach"] .grafik-pbar { background: var(--alm-line); }
:root[data-theme^="almanach"] .grafik-row.is-over .grafik-pbar i { background: var(--alm-no); }
:root[data-theme^="almanach"] .grafik-field { border-color: var(--alm-rule); border-radius: 0; background: var(--alm-raised); color: var(--alm-ink); }
:root[data-theme^="almanach"] .grafik-field.is-changed { box-shadow: inset 0 -2px 0 var(--alm-accent); }
:root[data-theme^="almanach"] .grafik-field.is-over { border-color: var(--alm-no); background: var(--grafik-no-soft); color: var(--alm-no-ink); }
:root[data-theme^="almanach"] .grafik-field:disabled { border-color: transparent; background: transparent; box-shadow: none; color: var(--alm-legend); }
:root[data-theme^="almanach"] .grafik-field[aria-invalid="true"] { outline-color: var(--alm-no); }
:root[data-theme^="almanach"] .grafik-grid td.is-today { box-shadow: inset 1px 0 0 var(--alm-marker), inset -1px 0 0 var(--alm-marker); }
:root[data-theme^="almanach"] :is(.grafik-grid td.is-off, .grafik-days button.is-off) {
  background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--alm-rule) 38%, transparent) 0 1px, transparent 1px 7px), var(--alm-weekend);
}
:root[data-theme^="almanach"] .grafik-done { border-color: var(--alm-rule); border-radius: 0; background: transparent; color: var(--alm-ink); }
:root[data-theme^="almanach"] .grafik-done:hover:not(:disabled) { border-color: var(--alm-ink); }
:root[data-theme^="almanach"] .grafik-done::before { color: var(--alm-ok); }
:root[data-theme^="almanach"] .grafik-undo { color: var(--alm-ink); font-weight: 500; text-decoration-color: color-mix(in oklab, var(--alm-muted) 55%, transparent); }
:root[data-theme^="almanach"] .grafik-legend { margin-top: 14px; }
:root[data-theme^="almanach"] .grafik-legend i { border-color: var(--alm-rule); background: var(--alm-raised); }
:root[data-theme^="almanach"] .grafik-legend i.l-changed { box-shadow: inset 0 -2px 0 var(--alm-accent); }
:root[data-theme^="almanach"] .grafik-legend i.l-over { border-color: var(--alm-no); background: var(--grafik-no-soft); }
:root[data-theme^="almanach"] .grafik-legend i.l-off {
  border: 0; background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--alm-rule) 60%, transparent) 0 1px, transparent 1px 6px), var(--alm-weekend);
}
:root[data-theme^="almanach"] .grafik-bar {
  margin-top: 22px; border: 1px solid var(--alm-ink); border-top-width: 2px; border-radius: 0; background: var(--alm-raised); box-shadow: none;
}
:root[data-theme^="almanach"] .grafik-bar-main small { color: var(--alm-muted); letter-spacing: 0.18em; }
:root[data-theme^="almanach"] .grafik-bar-main strong { font-family: var(--alm-serif); font-size: 20px; font-weight: 400; line-height: 1.2; }
:root[data-theme^="almanach"] .grafik-bar-note { border-left-color: var(--alm-wait); color: var(--alm-legend); }
:root[data-theme^="almanach"] .grafik-bar-note b { color: var(--alm-ink); }
:root[data-theme^="almanach"] .grafik-days { border-top-color: var(--alm-rule); border-bottom-color: var(--alm-ink); }
:root[data-theme^="almanach"] .grafik-days button { border-left-color: var(--alm-line); }
:root[data-theme^="almanach"] .grafik-days .grafik-dnum { font-size: 20px; }
:root[data-theme^="almanach"] .grafik-days button[aria-pressed="true"] { background: var(--alm-raised); box-shadow: inset 0 -3px 0 var(--alm-accent); }
:root[data-theme^="almanach"] .grafik-days button.is-today .grafik-dnum { color: var(--alm-accent); font-weight: 700; }
:root[data-theme^="almanach"] .grafik-dayline h3 { font-family: var(--alm-serif); font-size: 19px; font-weight: 600; }
:root[data-theme^="almanach"] .grafik-dayline span { color: var(--alm-legend); }
:root[data-theme^="almanach"] .grafik-dayline b { color: var(--alm-ink); }
:root[data-theme^="almanach"] .grafik-pgroup { border-bottom-color: var(--alm-rule); font-family: var(--alm-serif); font-size: 15px; font-weight: 600; }
:root[data-theme^="almanach"] .grafik-card { border-bottom-color: var(--alm-line); }
@media (max-width: 767px) {
  :root[data-theme^="almanach"] .grafik-head .h1 { font-size: 30px; }
  :root[data-theme^="almanach"] .grafik-week { font-size: 22px; }
  :root[data-theme^="almanach"] .grafik-bar { border-width: 2px 0 0; }
}

:root[data-theme^="almanach"] .op-area-detail-hero {
  background: transparent !important; color: var(--alm-ink) !important;
  border-radius: 0; border-left: 3px solid var(--scope-color, var(--alm-ink));
  padding: 6px 0 6px 22px; margin: 2px 0 26px;
}
:root[data-theme^="almanach"] .op-area-detail-head { gap: 16px; align-items: center; }
:root[data-theme^="almanach"] .op-area-detail-icon {
  width: 50px; height: 50px; color: var(--scope-color, var(--alm-ink));
  background: color-mix(in oklab, var(--scope-color, var(--alm-ink)) 8%, var(--alm-paper));
  border: 1px solid color-mix(in oklab, var(--scope-color, var(--alm-ink)) 30%, var(--alm-paper));
}
:root[data-theme^="almanach"] .op-area-detail-icon svg { width: 24px; height: 24px; stroke-width: 1.6; }
:root[data-theme^="almanach"] .op-area-detail-head h2 {
  font-family: var(--alm-serif); font-size: 34px; font-weight: 700; line-height: 1.1;
  letter-spacing: -0.015em; margin: 0; color: var(--alm-ink);
}
:root[data-theme^="almanach"] .op-area-detail-head p {
  font-family: var(--alm-serif); font-style: italic; font-size: 14px; font-weight: 400;
  color: var(--alm-muted); margin-top: 4px;
}
:root[data-theme^="almanach"] .op-area-detail-head p:empty { display: none; }
:root[data-theme^="almanach"] .op-area-detail-meta {
  gap: 6px 0; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--alm-legend);
}
:root[data-theme^="almanach"] .op-area-detail-meta span + span::before {
  content: "·"; margin: 0 12px; color: var(--alm-rule); font-weight: 700;
}
:root[data-theme^="almanach"] .op-area-detail-meta svg { color: var(--alm-muted); }

:root[data-theme^="almanach"] .op-area-detail-stats { gap: 14px; margin-bottom: 26px; }
:root[data-theme^="almanach"] .op-area-status-card {
  height: auto; min-height: 78px; gap: 14px; padding: 14px 16px;
  background: var(--alm-surface); border: 1px solid var(--alm-line); border-top: 2px solid var(--alm-ink);
  border-radius: 0; box-shadow: none; color: var(--alm-ink);
}
:root[data-theme^="almanach"] .op-area-status-card:hover { border-color: var(--alm-rule); border-top-color: var(--alm-ink); box-shadow: none; }
:root[data-theme^="almanach"] .op-area-status-card.is-selected {
  background: var(--alm-raised); border-color: var(--alm-ink); border-top-color: var(--alm-accent);
  box-shadow: inset 0 -2px 0 var(--alm-accent);
}
:root[data-theme^="almanach"] .op-area-status-icon {
  width: 40px; height: 40px; border-radius: 999px;
  background: transparent !important; color: var(--alm-muted) !important; border: 1px solid currentColor;
}
:root[data-theme^="almanach"] .op-area-status-card.is-selected .op-area-status-icon { color: var(--alm-accent) !important; }
:root[data-theme^="almanach"] .op-area-status-icon svg { width: 19px; height: 19px; }
:root[data-theme^="almanach"] .op-area-status-copy { gap: 4px; }
:root[data-theme^="almanach"] .op-area-status-copy small {
  color: var(--alm-muted); font-size: 10px; font-weight: 650; letter-spacing: 0.12em;
}
:root[data-theme^="almanach"] .op-area-status-copy strong {
  font-family: var(--alm-serif); font-size: 28px; font-weight: 400; line-height: 1; color: var(--alm-ink);
}
:root[data-theme^="almanach"] .op-area-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
:root[data-theme^="almanach"] .op-area-panel-head { min-height: 44px; padding: 0 14px; border-bottom-color: var(--alm-rule); }
:root[data-theme^="almanach"] .op-area-panel-head h2 { font-family: var(--alm-serif); font-size: 17px; font-weight: 600; color: var(--alm-ink); }
:root[data-theme^="almanach"] .op-area-team-card { display: flex; flex-wrap: wrap; align-items: stretch; }
:root[data-theme^="almanach"] .op-area-team-card .op-area-panel-head { border-bottom: 0; border-right: 1px solid var(--alm-line); }
:root[data-theme^="almanach"] .op-area-team-list { flex: 1 1 320px; min-width: 0; padding: 12px 14px; }
:root[data-theme^="almanach"] .op-area-team-list > div {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 20px;
}
:root[data-theme^="almanach"] .op-area-team-row { gap: 8px; min-width: 0; }
:root[data-theme^="almanach"] .op-area-team-row .op-avatar { width: 24px; height: 24px; font-size: 10px; }
:root[data-theme^="almanach"] .op-area-team-row strong { color: var(--alm-ink); }
:root[data-theme^="almanach"] .op-area-team-more { flex: 1 0 100%; color: var(--alm-accent); border-top-color: var(--alm-rule); }
:root[data-theme^="almanach"] .op-area-sheet { display: flex; flex-wrap: wrap; align-items: stretch; }
:root[data-theme^="almanach"] .op-area-sheet .op-area-panel-head { flex: 0 0 auto; border-bottom: 0; border-right: 1px solid var(--alm-line); }
:root[data-theme^="almanach"] .op-area-sheet-fields { flex: 1 1 320px; min-width: 0; padding: 12px 14px; }
:root[data-theme^="almanach"] .op-area-sheet-field dt { color: var(--alm-muted); letter-spacing: 0.12em; font-size: 10px; }
:root[data-theme^="almanach"] .op-area-sheet-field dd { color: var(--alm-ink); }
@media (max-width: 767px) {
  :root[data-theme^="almanach"] .op-area-team-card .op-area-panel-head,
  :root[data-theme^="almanach"] .op-area-sheet .op-area-panel-head {
    flex: 1 0 100%; border-right: 0; border-bottom: 1px solid var(--alm-rule);
  }
}

@media (max-width: 1279px) {
  :root[data-theme^="almanach"] .op-area-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :root[data-theme^="almanach"] .op-area-detail-hero { padding-left: 14px; }
  :root[data-theme^="almanach"] .op-area-detail-head h2 { font-size: 26px; }
  :root[data-theme^="almanach"] .op-area-detail-icon { width: 40px; height: 40px; flex-basis: 40px; }
  :root[data-theme^="almanach"] .op-area-status-card { gap: 10px; padding: 12px; }
  :root[data-theme^="almanach"] .op-area-status-icon { width: 32px; height: 32px; }
  :root[data-theme^="almanach"] .op-area-status-copy strong { font-size: 22px; }
}

:root[data-theme^="almanach"] .op-area-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 22px;
}
:root[data-theme^="almanach"] .op-area-empty { margin-top: 22px; }
:root[data-theme^="almanach"] .op-area-card {
  --area-accent: oklch(from var(--scope-color, var(--alm-rule)) min(l, 0.58) c h);
  display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto 1fr;
  column-gap: 12px; padding: 18px 18px 14px;
  background: var(--alm-surface); border: 1px solid var(--alm-line); border-top: 3px solid var(--area-accent);
  border-radius: 0; box-shadow: none; overflow: visible;
  transition: background-color .15s ease, border-color .15s ease;
}
:root[data-theme="almanach-dark"] .op-area-card {
  --area-accent: oklch(from var(--scope-color, var(--alm-rule)) max(l, calc(0.6 + c)) c h);
}
:root[data-theme^="almanach"] .op-area-card:is(:hover, :focus-visible) {
  background: var(--alm-raised); border-color: var(--alm-rule); border-top-color: var(--area-accent); box-shadow: none;
}
:root[data-theme^="almanach"] .op-area-hero {
  grid-column: 1; grid-row: 1; align-self: start;
  width: 36px; height: 36px; box-sizing: border-box; overflow: visible;
  background: color-mix(in oklab, var(--area-accent) 8%, var(--alm-surface)) !important;
  border: 1px solid color-mix(in oklab, var(--area-accent) 30%, var(--alm-surface));
  color: var(--area-accent);
}
:root[data-theme^="almanach"] .op-area-orb { display: none; }
:root[data-theme^="almanach"] .op-area-building svg { width: 20px; height: 20px; stroke-width: 1.7; }
:root[data-theme^="almanach"] .op-area-body { display: contents; }
:root[data-theme^="almanach"] .op-area-card .op-area-title {
  grid-column: 2; margin: 0; padding-top: 6px;
  font-family: var(--alm-serif); font-size: 18px; font-weight: 700; line-height: 1.3;
  letter-spacing: -0.005em; color: var(--alm-ink); overflow-wrap: anywhere; text-wrap: balance;
}
:root[data-theme^="almanach"] .op-area-card .op-area-description {
  grid-column: 1 / -1; min-height: 0; margin: 8px 0 0;
  font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--alm-legend);
  overflow-wrap: anywhere; text-wrap: pretty;
}
:root[data-theme^="almanach"] .op-area-card .op-area-description:empty { display: none; }
:root[data-theme^="almanach"] .op-area-footer {
  grid-column: 1 / -1; grid-row: 3; align-self: end;
  gap: 12px; margin-top: 18px; padding-top: 11px; border-top: 1px solid var(--alm-line);
}
:root[data-theme^="almanach"] .op-area-activity {
  flex-wrap: wrap; row-gap: 4px; font-size: 13px; color: var(--alm-legend);
}
:root[data-theme^="almanach"] .op-area-activity > span + span::before { color: var(--alm-rule); margin: 0 8px; }
:root[data-theme^="almanach"] .op-area-metric { font-variant-numeric: tabular-nums; }
:root[data-theme^="almanach"] .op-area-metric svg { width: 14px; height: 14px; margin-right: 5px; stroke-width: 1.7; color: var(--alm-muted); }
:root[data-theme^="almanach"] .op-area-open {
  gap: 5px; font-size: 13px; font-weight: 600; color: var(--alm-legend);
  transition: color .15s ease;
}
:root[data-theme^="almanach"] .op-area-open svg { width: 14px; height: 14px; margin: 0; transition: transform .15s ease; }
:root[data-theme^="almanach"] .op-area-card:is(:hover, :focus-visible) .op-area-open { color: var(--alm-accent); }
:root[data-theme^="almanach"] .op-area-card:is(:hover, :focus-visible) .op-area-open svg { transform: translateX(3px); }

:root[data-theme^="almanach"] .op-area-summary {
  gap: 0; margin-top: 40px; border-top: 2px solid var(--alm-ink); border-bottom: 1px solid var(--alm-rule);
}
:root[data-theme^="almanach"] .op-area-summary-card {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px 20px 16px; background: transparent; border: 0; border-radius: 0;
}
:root[data-theme^="almanach"] .op-area-summary-card + .op-area-summary-card { border-left: 1px solid var(--alm-line); }
:root[data-theme^="almanach"] .op-area-summary-caption {
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.14em; color: var(--alm-muted);
}
:root[data-theme^="almanach"] .op-area-summary .op-area-summary-n {
  margin-top: 6px; font-family: var(--alm-serif); font-size: 30px; font-weight: 400; line-height: 1.1; color: var(--alm-ink);
}
@media (max-width: 767px) {
  :root[data-theme^="almanach"] .op-area-grid { gap: 12px; margin-top: 16px; }
  :root[data-theme^="almanach"] .op-area-empty { margin-top: 16px; }
  :root[data-theme^="almanach"] .op-area-card { grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; padding: 14px 14px 12px; }
  :root[data-theme^="almanach"] .op-area-hero { width: 32px; height: 32px; }
  :root[data-theme^="almanach"] .op-area-building svg { width: 18px; height: 18px; }
  :root[data-theme^="almanach"] .op-area-card .op-area-title { padding-top: 4px; }
  :root[data-theme^="almanach"] .op-area-footer { margin-top: 14px; padding-top: 10px; }
  :root[data-theme^="almanach"] .op-area-summary { margin-top: 28px; }
  :root[data-theme^="almanach"] .op-area-summary-card { padding: 12px 14px 14px; }
  :root[data-theme^="almanach"] .op-area-summary-caption { letter-spacing: 0.1em; }
  :root[data-theme^="almanach"] .op-area-summary-card:nth-child(odd) { border-left: 0; }
  :root[data-theme^="almanach"] .op-area-summary-card:nth-child(n + 3) { border-top: 1px solid var(--alm-line); }
  :root[data-theme^="almanach"] .op-area-summary .op-area-summary-n { font-size: 26px; }
}

:root[data-theme^="almanach"] .dg-table-note { margin: -2px 12px 12px; color: var(--alm-legend); font-size: 13px; }
:root[data-theme^="almanach"] .dg-table-note-toggle { color: var(--alm-accent); text-decoration: underline; text-underline-offset: 2px; }
:root[data-theme^="almanach"] .dg-table-note p { padding-left: 12px; border-left: 2px solid var(--alm-rule); }

:root[data-theme^="almanach"] .op-area-docs-card .dg-table-sized { min-width: 100%; }
:root[data-theme^="almanach"] .scope-editor-table td { color: var(--alm-ink); }
:root[data-theme^="almanach"] .chip:is(.chip-new, .chip-wait, .chip-acc, .chip-warn, .chip-s0, .chip-s1, .chip-s2, .chip-dim) {
  letter-spacing: 0.04em; font-size: 10.5px; padding: 2px 7px;
}
:root[data-theme^="almanach"] .scope-editor-table td .chip {
  text-transform: none; letter-spacing: 0.01em; font-size: 11.5px; font-weight: 600; padding: 2px 7px;
}
:root[data-theme^="almanach"] .chip:is(.chip-wait, .chip-s0) {
  background: color-mix(in oklab, var(--alm-wait-bg) 55%, transparent); color: var(--alm-wait-ink);
  border-color: color-mix(in oklab, var(--alm-wait) 60%, transparent);
}
:root[data-theme^="almanach"] .chip.chip-s1 { background: var(--alm-run-bg); color: var(--alm-run-ink); border-color: var(--alm-run); }
:root[data-theme^="almanach"] .chip:is(.chip-s2, .chip-new) { background: var(--alm-ok-bg); color: var(--alm-ok-ink); border-color: var(--alm-ok); }
:root[data-theme^="almanach"] .chip.chip-warn { background: var(--alm-no-bg); color: var(--alm-no-ink); border-color: var(--alm-no); }
:root[data-theme^="almanach"] .chip.chip-acc {
  background: color-mix(in oklab, var(--alm-violet) 12%, transparent); color: var(--alm-violet); border-color: var(--alm-violet);
}
:root[data-theme^="almanach"] .dg-table-row-action {
  color: var(--alm-ink); text-underline-offset: 3px;
  text-decoration: underline 1px color-mix(in oklab, var(--alm-muted) 55%, transparent);
}
:root[data-theme^="almanach"] .dg-table-row-action:is(:hover, :focus-visible) {
  color: var(--alm-accent); text-decoration-color: currentColor;
}
:root[data-theme^="almanach"] .dg-table-filter-icon:not(.is-active) { color: var(--alm-muted); }
:root[data-theme^="almanach"] .dg-table-header-button:is(:hover, :focus-visible) .dg-table-filter-icon:not(.is-active) {
  color: var(--alm-ink);
}
:root[data-theme^="almanach"] .dg-table-filter-tools button:is(:first-child, :hover, :focus-visible),
:root[data-theme^="almanach"] .dg-table-filter-sort button:is(.is-selected, :hover, :focus-visible) {
  color: var(--alm-accent);
}
:root[data-theme^="almanach"] .dg-table-filter-sort button.is-selected {
  background: var(--alm-hover); box-shadow: inset 0 0 0 1.5px var(--alm-accent);
}
:root[data-theme^="almanach"] .chip.chip-dim { background: transparent; color: var(--alm-muted); border-color: var(--alm-rule); }

:root[data-theme^="almanach"] .document-summary :is(
  .document-summary-head, .document-summary-facts, .document-code, .document-actions
) {
  background: transparent;
}

:root[data-theme^="almanach"] .op-app .op-topbar .search > svg { display: block; flex: 0 0 auto; color: var(--alm-muted); }
:root[data-theme^="almanach"] .op-app .op-topbar .search-placeholder { display: none; }
:root[data-theme^="almanach"] .op-app .op-topbar .search input::placeholder { color: var(--alm-muted); }
:root[data-theme^="almanach"] .op-app .user-avatar { justify-content: center; }

:root[data-theme^="almanach"] .planner-page-header { background: var(--alm-paper); border-bottom: 1px solid var(--alm-ink); }
:root[data-theme^="almanach"] .planner-page-heading { font-family: var(--alm-serif); }
:root[data-theme^="almanach"] .planner-body .breadcrumbs a,
:root[data-theme^="almanach"] .planner-body .breadcrumbs a:hover {
  color: var(--alm-accent);
}
:root[data-theme^="almanach"] .planner-body .breadcrumbs .arrow,
:root[data-theme^="almanach"] .planner-body .breadcrumbs li:first-child:not(:last-child)::after {
  color: var(--alm-muted);
}
:root[data-theme^="almanach"] :is(.planner-card, .planner-menu-card) {
  border-radius: 0; border-top: 2px solid var(--alm-ink); box-shadow: none;
}

:root[data-theme^="almanach"] .dg-login-body { background: var(--alm-paper); }
:root[data-theme^="almanach"] .dg-login-card {
  background: var(--alm-surface); border: 1px solid var(--alm-ink); border-top: 3px solid var(--alm-ink);
  border-radius: 0; box-shadow: 8px 8px 0 var(--alm-shadow);
}
:root[data-theme^="almanach"] .dg-login-title { font-weight: 700; }
:root[data-theme^="almanach"] .dg-login-field input { background: var(--alm-raised); border-color: var(--alm-rule); border-radius: 0; }

:root[data-theme="almanach"] img:is([src*="logo-in-light-chrome"], [src*="dg-icon.png"]) { filter: url("#dg-almanach-logo"); }
:root[data-theme="almanach-dark"] img:is([src*="logo-in-light-chrome"], [src*="dg-icon.png"]) { filter: url("#dg-almanach-dark-logo"); }

:root[data-theme^="almanach"] .op-theme-option { border-radius: 0; border-color: var(--alm-line); background: var(--alm-raised); }
:root[data-theme^="almanach"] .op-theme-option:has(input:checked) { border-color: var(--alm-ink); box-shadow: inset 3px 0 0 var(--alm-accent); }
