:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.64);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --accent: #7c5cff;
  --accent-2: #39d98a;
  --danger: #ff4d6d;
  --radius: 14px;
  --sidebar-width: 58px;
  --ui-font-scale: 1.2;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

html {
  font-size: calc(16px * var(--ui-font-scale));
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

.app-icon {
  display: block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(1200px 800px at 12% 10%, rgba(124, 92, 255, 0.18), transparent 55%),
    radial-gradient(900px 700px at 95% 25%, rgba(57, 217, 138, 0.12), transparent 55%),
    radial-gradient(900px 700px at 10% 95%, rgba(255, 77, 109, 0.12), transparent 50%), var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html.app-mode,
body.app-mode {
  height: 100%;
  overflow: hidden;
}

body.app-mode {
  min-height: 0;
}

body.app-ready {
  padding-left: var(--sidebar-width);
}

code,
pre {
  font-family: var(--mono);
}

main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

body.app-mode main {
  flex: 1;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#loginSection {
  width: min(760px, calc(100% - 28px));
  margin: 18px auto;
}

.loading-screen {
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 24px;
  display: grid;
  place-items: center;
}

.loading-content {
  width: min(460px, 100%);
}

.loading-title {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 700;
}

.loading-content progress {
  display: block;
  width: 100%;
  height: 8px;
}

.loading-label {
  min-height: 20px;
  margin-top: 9px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loading-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

#appSection {
  min-height: 0;
}

body.app-mode #appSection {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.app-mode #weekViewSection,
body.app-mode #todoView,
body.app-mode #searchView {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

body.app-mode #weekViewSection {
  display: flex;
  flex-direction: column;
}

body.app-mode #todoView {
  display: flex;
  flex-direction: column;
}

body.app-mode .week-scroll {
  flex: 1;
  min-height: 0;
  height: auto;
}

body.app-mode #searchView {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

body.app-mode #searchView > section:last-child {
  flex: 1;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.app-mode #searchView > section:last-child .table-wrap {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  flex: 0 0 46px;
  min-height: 46px;
  max-height: 46px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.9);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: visible;
  white-space: nowrap;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar-width);
  padding: max(6px, env(safe-area-inset-top)) 6px max(6px, env(safe-area-inset-bottom));
  border-right: 1px solid var(--border);
  background: rgba(8, 12, 25, 0.96);
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sidebar-nav,
.sidebar-tools {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-zoom {
  width: 100%;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-zoom .sidebar-button {
  min-height: 29px;
  aspect-ratio: auto;
  border-radius: 4px;
  font-size: 0.85rem;
}

.sidebar-zoom .sidebar-zoom-reset {
  min-height: 38px;
  gap: 1px;
}

.sidebar-zoom-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.42rem;
  line-height: 1;
}

.sidebar-button {
  width: 100%;
  aspect-ratio: 1;
  min-height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
}

.sidebar-button:hover,
.sidebar-button:focus-visible {
  outline: none;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.sidebar-button[aria-current="page"] {
  border-color: rgba(124, 92, 255, 0.72);
  background: rgba(124, 92, 255, 0.22);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-danger {
  color: rgba(255, 145, 164, 0.9);
}

.sidebar-status {
  width: 100%;
  min-height: 20px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.45rem;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
}

.global-search {
  position: relative;
  flex: 0 1 340px;
  min-width: 150px;
  max-width: 340px;
  height: 34px;
  margin: 0;
}

.global-search > .global-search-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.global-search input {
  height: 100%;
  padding: 5px 9px 5px 31px;
  border-radius: 6px;
  font-size: 0.72rem;
}

.global-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.topbar[data-active-tab="search"] .global-search,
.topbar[data-active-tab="todos"] .global-search {
  flex: 1;
  max-width: 720px;
}

.todo-topbar-controls,
.todo-view-toggles {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.todo-topbar-controls .btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 5px;
  display: grid;
  place-items: center;
}

.todo-view-toggles .btn[aria-pressed="true"] {
  border-color: rgba(124, 92, 255, 0.9);
  background: rgba(124, 92, 255, 0.28);
  box-shadow: inset 0 -2px 0 rgba(124, 92, 255, 0.9);
}

.week-controls {
  min-width: 0;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.week-controls::-webkit-scrollbar {
  display: none;
}

.week-navigation {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.week-controls .btn {
  height: 34px;
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 0.75rem;
}

.week-controls .btn-icon {
  width: 34px;
  padding: 0;
}

.week-summary {
  min-width: 0;
  max-width: min(46vw, 620px);
  height: 34px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.6875rem;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-summary:hover,
.week-summary:focus-visible {
  outline: none;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.week-summary-compact-icon {
  display: none;
}

#weekBillable {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.overtime-total,
.overtime-direction,
.overtime-week {
  flex: none;
}

.overtime-direction {
  display: inline-flex;
  align-items: center;
}

.overtime-direction-icon {
  width: 1rem;
  height: 1rem;
}

.overtime-direction.is-positive,
.overtime-week.is-positive {
  color: rgba(93, 226, 159, 0.95);
}

.overtime-direction.is-negative,
.overtime-week.is-negative {
  color: rgba(255, 117, 142, 0.95);
}

.overtime-direction.is-neutral,
.overtime-week.is-neutral {
  color: var(--muted);
}

.week-editor-actions,
.week-history-actions,
.week-zoom-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.week-editor-actions .btn,
.week-history-actions .btn,
.week-zoom-actions .btn {
  flex: 0 0 34px;
}

.week-action-separator {
  flex: none;
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: var(--border);
}

.week-editor-actions .btn.is-active {
  border-color: rgba(124, 92, 255, 0.9);
  background: rgba(124, 92, 255, 0.28);
  box-shadow: inset 0 -2px 0 rgba(124, 92, 255, 0.9);
}

.topbar-spacer {
  min-width: 0;
  flex: 1;
}

.btn-icon {
  padding: 8px 10px;
  border-radius: 10px;
  min-width: 0;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.zoom-compact span {
  margin: 0;
  font-size: 0.625rem;
}

.zoom-compact {
  flex: none;
  gap: 6px;
}

.zoom.zoom-compact input[type="range"] {
  width: 104px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

body.app-mode .card {
  padding: 12px;
  border-radius: 10px;
}

.stack {
  display: grid;
  gap: 14px;
}

.tight {
  margin: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.8125rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

label span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wrap {
  justify-content: space-between;
  flex-wrap: wrap;
}

.col-span-2 {
  grid-column: span 2;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: auto;
}

.btn {
  border: 1px solid rgba(124, 92, 255, 0.65);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.35), rgba(124, 92, 255, 0.2));
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover {
  border-color: rgba(124, 92, 255, 0.95);
}

.btn:disabled,
button:disabled {
  cursor: default;
  opacity: 0.42;
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

.btn-danger {
  border-color: rgba(255, 77, 109, 0.65);
  background: rgba(255, 77, 109, 0.14);
  color: rgba(255, 176, 189, 1);
}

.btn-danger:hover,
.btn-danger:focus-visible {
  outline: none;
  border-color: rgba(255, 77, 109, 0.95);
  background: rgba(255, 77, 109, 0.24);
}

.error {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 109, 0.45);
  background: rgba(255, 77, 109, 0.3);
  color: rgba(255, 255, 255, 0.92);
  overflow: auto;
}

.error.is-success {
  border-color: rgba(57, 217, 138, 0.45);
  background: rgba(57, 217, 138, 0.28);
}

.error-toast {
  position: fixed;
  right: 14px;
  top: 62px;
  z-index: 3;
  margin: 0;
  width: min(720px, calc(100% - 28px));
  max-height: 46vh;
}

.editor-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.editor-badge:hover,
.editor-badge:focus-visible {
  outline: none;
  border-color: rgba(124, 92, 255, 0.75);
  background: rgba(124, 92, 255, 0.14);
}

.editor-badge.is-dirty {
  border-color: rgba(255, 77, 109, 0.45);
}

.topbar > .editor-badge {
  margin-left: auto;
}

.editor-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.editor-badge.is-dirty .dot {
  background: rgba(255, 77, 109, 0.92);
}

.editor-badge .save {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--mono);
  font-size: 0.625rem;
}

.data-badge {
  display: none;
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 0.6875rem;
  pointer-events: none;
  opacity: 0.38;
  max-width: min(720px, calc(100% - 24px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-ready .data-badge {
  display: block;
}

.data-badge:empty {
  display: none;
}

.years {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

progress {
  width: min(520px, 100%);
  height: 12px;
  accent-color: var(--accent);
}

.year-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.year-pill input {
  width: auto;
}

.filters {
  margin-top: 10px;
}

.search-controls-card {
  flex: none;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.search-controls-card > .stats {
  min-width: max-content;
  font-size: 0.6875rem;
}

.search-filters-panel {
  min-width: 0;
}

.search-filters-panel > summary {
  width: max-content;
  margin-left: auto;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 650;
  list-style-position: inside;
}

.search-filters-panel > summary:hover,
.search-filters-panel > summary:focus-visible {
  outline: none;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.search-filters-panel[open] {
  grid-column: 1 / -1;
}

.search-filters-panel[open] > summary {
  margin-bottom: 7px;
}

.search-filters-panel .filters {
  margin-top: 0;
  grid-template-columns: minmax(150px, 1.4fr) repeat(4, minmax(115px, 1fr));
  gap: 7px;
}

.todo-view {
  min-height: 0;
  background: rgba(0, 0, 0, 0.12);
}

.todo-toolbar {
  flex: none;
  min-height: 40px;
  padding: 5px 9px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.72);
}

.todo-project-filters {
  min-width: 0;
  padding: 1px 0;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  gap: 5px;
  scrollbar-width: none;
}

.todo-project-filters::-webkit-scrollbar {
  display: none;
}

.todo-project-filter {
  flex: none;
  min-height: 29px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.65rem;
  white-space: nowrap;
}

.todo-project-filter:hover,
.todo-project-filter:focus-visible {
  outline: none;
  border-color: rgba(124, 92, 255, 0.7);
  color: var(--text);
}

.todo-project-filter[aria-pressed="true"] {
  border-color: rgba(124, 92, 255, 0.9);
  background: rgba(124, 92, 255, 0.24);
  color: var(--text);
}

.todo-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 0 18px;
  outline: none;
}

.todo-list:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(124, 92, 255, 0.42);
}

.todo-project-group {
  --todo-project-color: rgba(255, 255, 255, 0.2);
  margin: 7px 7px 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
}

.todo-group-header,
.todo-section-header {
  min-height: 34px;
  padding: 5px 7px 5px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.todo-group-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 4px solid var(--todo-project-color);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.76rem;
  font-weight: 750;
}

.todo-group-title,
.todo-section-header > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-group-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
}

.todo-group-add {
  flex: none;
  width: 25px;
  height: 25px;
  margin-left: auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
}

.todo-group-add:hover,
.todo-group-add:focus-visible {
  outline: none;
  border-color: rgba(124, 92, 255, 0.75);
  background: rgba(124, 92, 255, 0.18);
  color: var(--text);
}

.todo-section-group {
  margin: 5px 0 0 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.todo-section-header {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.65rem;
  font-weight: 650;
}

.todo-row {
  --todo-depth: 0;
  --todo-project-color: rgba(255, 255, 255, 0.18);
  position: relative;
  min-height: 50px;
  margin: 0 5px;
  padding: 7px 10px 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--todo-project-color);
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  cursor: default;
}

.todo-project-group > .todo-row,
.todo-section-group > .todo-row {
  margin-right: 0;
  margin-left: 0;
}

.todo-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.todo-row.is-selected {
  background: rgba(124, 92, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.34);
}

.todo-row.is-completed {
  opacity: 0.58;
}

.todo-row.is-completed .todo-content {
  text-decoration: line-through;
}

.todo-check {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.todo-check-icon {
  width: 0.78rem;
  height: 0.78rem;
}

.todo-check:hover,
.todo-check:focus-visible {
  border-color: var(--accent-2);
  outline: none;
  box-shadow: 0 0 0 2px rgba(57, 217, 138, 0.16);
}

.todo-row.is-completed .todo-check {
  border-color: rgba(57, 217, 138, 0.7);
  background: rgba(57, 217, 138, 0.26);
}

.todo-body {
  min-width: 0;
  padding-left: calc(var(--todo-depth) * 18px);
}

.todo-content {
  overflow: hidden;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-description {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  display: -webkit-box;
  font-size: 0.6875rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.todo-meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 0.5625rem;
}

.todo-due {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.todo-recurrence-icon {
  width: 0.68rem;
  height: 0.68rem;
}

.todo-due.is-overdue {
  color: rgba(255, 117, 142, 0.95);
}

.todo-due.is-today {
  color: rgba(250, 208, 0, 0.95);
}

.todo-priority {
  font-weight: 800;
}

.todo-priority.priority-4 {
  color: rgba(255, 94, 122, 0.95);
}

.todo-priority.priority-3 {
  color: rgba(255, 174, 76, 0.95);
}

.todo-priority.priority-2 {
  color: rgba(93, 177, 255, 0.95);
}

.todo-empty {
  padding: 32px 16px;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

.todo-dialog-grid {
  align-items: start;
}

.stats {
  font-family: var(--mono);
}

.zoom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.zoom input[type="range"] {
  width: 180px;
  padding: 0;
  border-radius: 999px;
}

.week-scroll {
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  height: min(70vh, 720px);
}

.week-scroll:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.week-grid {
  --timeline-height: 560px;
  --hour-height: calc(var(--timeline-height) / 24);
  --visible-day-count: 7;
  display: grid;
  grid-template-columns: 56px repeat(var(--visible-day-count), minmax(0, 1fr));
  grid-template-rows: 50px var(--timeline-height);
  width: 100%;
  isolation: isolate;
}

.wg-header.is-window-hidden,
.wg-daycol.is-window-hidden {
  display: none;
}

.wg-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.wg-week-summary {
  align-items: center;
  padding: 4px 2px;
  font-family: var(--mono);
  text-align: center;
  white-space: nowrap;
}

.wg-week-number {
  color: var(--text);
  font-size: 0.6875rem;
  font-weight: 800;
}

.wg-week-tracked {
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 600;
}

.wg-header-top {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.wg-header.is-focused {
  box-shadow: inset 0 -2px 0 rgba(124, 92, 255, 0.85);
}

.wg-header.is-today {
  background: rgba(26, 34, 57, 0.97);
}

.wg-header .wg-dow {
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wg-header .wg-day-total {
  overflow: hidden;
  color: rgba(93, 226, 159, 0.88);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wg-header .wg-day-total.is-empty {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.wg-header .wg-date {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

.wg-timeaxis {
  position: relative;
  height: var(--timeline-height);
  border-right: 1px solid var(--border);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.11) 0,
    rgba(255, 255, 255, 0.11) 1px,
    transparent 1px,
    transparent var(--hour-height)
  );
}

.wg-time-label {
  position: absolute;
  left: 10px;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--muted);
  user-select: none;
}

.wg-daycol {
  position: relative;
  height: var(--timeline-height);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.11) 0,
    rgba(255, 255, 255, 0.11) 1px,
    transparent 1px,
    transparent var(--hour-height)
  );
}

.wg-daycol:last-child {
  border-right: none;
}

.wg-daycol.is-focused {
  box-shadow: inset 0 0 0 2px rgba(124, 92, 255, 0.55);
}

.wg-daycol.has-selected-entry {
  z-index: 4;
}

.now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 77, 109, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 77, 109, 0.35);
  pointer-events: none;
  z-index: 2;
}

.now-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 77, 109, 0.95);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(11, 16, 32, 0.7);
}

.entry-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 6px;
  padding: 5px 7px;
  background-color: var(--entry-bg, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--entry-border, rgba(255, 255, 255, 0.14));
  overflow: hidden;
  cursor: pointer;
}

.entry-block.is-dirty {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0,
    rgba(255, 255, 255, 0.14) 5px,
    transparent 5px,
    transparent 10px
  );
}

.entry-block.entry-draft {
  background: rgba(255, 255, 255, 0.04);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  cursor: default;
}

.entry-block:hover {
  filter: brightness(1.08);
}

.entry-block.is-selected {
  outline: 2px solid rgba(57, 217, 138, 0.8);
  outline-offset: -2px;
  overflow: visible;
  z-index: 10;
}

.entry-content {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.entry-block.is-selected .entry-content {
  cursor: grab;
  touch-action: none;
}

.entry-block.is-selected .entry-content:active {
  cursor: grabbing;
}

.entry-times {
  position: absolute;
  top: 4px;
  right: 6px;
  font-family: var(--mono);
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(11, 16, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 5px;
  border-radius: 6px;
  display: none;
  pointer-events: none;
  white-space: nowrap;
}

.entry-block.is-selected .entry-times {
  display: inline-flex;
}

.entry-control,
.entry-resize-handle,
.entry-gap-add {
  -webkit-tap-highlight-color: transparent;
}

.entry-control {
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  background: rgba(11, 16, 32, 0.94);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: none;
  place-items: center;
  touch-action: manipulation;
}

.entry-control svg,
.entry-gap-add svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entry-block.is-selected .entry-control {
  display: grid;
}

.entry-control:hover,
.entry-control:focus-visible {
  outline: none;
  border-color: rgba(124, 92, 255, 0.95);
  background: rgba(38, 31, 77, 0.98);
}

.entry-delete-control:hover,
.entry-delete-control:focus-visible {
  border-color: rgba(255, 77, 109, 0.85);
  color: rgba(255, 145, 164, 1);
}

.entry-action-rail {
  position: absolute;
  left: calc(100% + 5px);
  top: 50%;
  z-index: 12;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(5, 9, 19, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
  transform: translateY(-50%);
}

.entry-block.is-selected .entry-action-rail {
  display: flex;
}

.entry-block.controls-on-left .entry-action-rail {
  right: calc(100% + 5px);
  left: auto;
}

.entry-resize-handle {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 9;
  display: none;
  width: 100%;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: ns-resize;
  touch-action: none;
}

.entry-resize-handle::after {
  position: absolute;
  left: 50%;
  width: 38px;
  height: 3px;
  border-radius: 3px;
  content: "";
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(11, 16, 32, 0.8);
  transform: translateX(-50%);
}

.entry-resize-start {
  top: -14px;
}

.entry-resize-start::after {
  top: 13px;
}

.entry-resize-end {
  bottom: -14px;
}

.entry-resize-end::after {
  bottom: 13px;
}

.entry-block.is-selected .entry-resize-handle {
  display: block;
}

.entry-gap-add {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(11, 16, 32, 0.68);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  opacity: 0.42;
  transform: translate(-50%, -50%);
}

.entry-gap-add:hover,
.entry-gap-add:focus-visible {
  outline: none;
  border-color: rgba(124, 92, 255, 0.9);
  background: rgba(32, 25, 67, 0.95);
  color: var(--text);
  opacity: 1;
}

body.is-entry-dragging {
  cursor: ns-resize;
  user-select: none;
}

body.is-entry-moving,
body.is-entry-moving * {
  cursor: grabbing !important;
}

.entry-project {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.6875rem;
}

.entry-desc {
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.82);
}

.cursor-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px solid rgba(124, 92, 255, 0.9);
  opacity: 0.95;
  pointer-events: none;
  z-index: 2;
}

.cursor-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(11, 16, 32, 0.85);
}

.cursor-line.is-split {
  border-top-color: rgba(57, 217, 138, 0.95);
}

.cursor-line.is-split::after {
  background: rgba(57, 217, 138, 0.95);
}

.dialog {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: min(720px, calc(100vw - 24px));
  width: 100%;
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.dialog-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(11, 16, 32, 0.92);
  box-shadow: var(--shadow);
  padding: 14px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.dialog-title {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.dialog-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.week-requirements-summary {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.week-requirements-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.75rem;
}

.week-requirements-row strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.dialog-grid label textarea {
  width: 100%;
  resize: vertical;
}

.entry-suggestions {
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 180px;
  overflow: auto;
}

.entry-suggestion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: var(--text);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
}

.entry-suggestion:hover,
.entry-suggestion:focus {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.12);
  outline: none;
}

.entry-suggestion .suggestion-project {
  font-weight: 700;
}

.entry-suggestion .suggestion-desc {
  color: var(--muted);
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.dialog-delete-action {
  margin-right: auto;
}

.projects-toolbar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(60vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.project-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.project-fields,
.section-row {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) minmax(110px, 1fr) minmax(120px, auto) auto;
  gap: 10px;
  align-items: end;
}

.project-sections-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.project-add-section {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 0.75rem;
}

.project-sections {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.section-row {
  margin-left: 14px;
  padding: 7px;
  border-left: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.section-color-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-color-controls input[type="checkbox"] {
  flex: 0 0 auto;
}

.project-row .project-field {
  margin: 0;
}

.project-row .project-field span {
  margin-bottom: 4px;
}

.project-row .checkbox span {
  margin: 0;
}

.project-row input[type="color"] {
  padding: 2px 6px;
  height: 40px;
}

.project-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.project-row input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

html.ui-project-compact .project-fields,
html.ui-project-compact .section-row {
  grid-template-columns: minmax(0, 1fr) minmax(100px, 0.7fr);
}

html.ui-project-compact .section-row {
  margin-left: 5px;
}

.week-card {
  border-radius: 8px;
  padding: 12px;
}

.week-card h2 {
  font-size: 1rem;
}

.table-wrap {
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 10px;
  vertical-align: top;
}

.table th {
  position: sticky;
  top: 0;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(10px);
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.25px;
  color: var(--muted);
}

.table td:nth-child(6) {
  min-width: 420px;
}

.table td:nth-child(5),
.table td:nth-child(7) {
  white-space: nowrap;
}

.table tbody tr.row-link {
  cursor: pointer;
}

.table tbody tr.row-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.table tbody tr.row-link:focus-visible {
  outline: 2px solid rgba(124, 92, 255, 0.78);
  outline-offset: -2px;
  background: rgba(124, 92, 255, 0.1);
}

.table th:last-child,
.table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.footer {
  padding-bottom: 28px;
}

html.ui-narrow {
  --sidebar-width: 50px;
}

html.ui-narrow .topbar {
  flex-basis: 50px;
  min-height: 50px;
  max-height: 50px;
  gap: 5px;
  padding-right: 5px;
  padding-left: 5px;
}

html.ui-narrow .app-sidebar {
  padding-right: 4px;
  padding-left: 4px;
}

html.ui-narrow .sidebar-button {
  min-height: 40px;
}

html.ui-narrow .global-search {
  flex: 0 1 170px;
  min-width: 92px;
  max-width: 190px;
  height: 38px;
}

html.ui-narrow .topbar[data-active-tab="search"] .global-search,
html.ui-narrow .topbar[data-active-tab="todos"] .global-search {
  max-width: none;
}

html.ui-narrow .week-controls {
  height: 100%;
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
}

html.ui-narrow .week-navigation {
  order: 2;
  gap: 3px;
}

html.ui-narrow .week-history-actions {
  order: 1;
}

html.ui-narrow .week-summary {
  order: 3;
}

html.ui-narrow .week-zoom-separator {
  order: 4;
}

html.ui-narrow .week-zoom-actions {
  order: 5;
}

html.ui-narrow .week-editor-actions {
  order: 6;
}

html.ui-narrow #latestWeekBtn,
html.ui-narrow .zoom-compact {
  display: none !important;
}

html.ui-narrow .week-summary {
  width: 34px;
  max-width: 34px;
  padding: 0;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

html.ui-narrow #weekBillable {
  display: none;
}

html.ui-narrow .week-summary-compact-icon {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

html.ui-narrow .topbar-spacer {
  display: none;
}

html.ui-narrow .week-editor-actions {
  min-width: 0;
}

html.ui-narrow .week-grid {
  grid-template-columns: 48px repeat(var(--visible-day-count), minmax(0, 1fr));
}

html.ui-narrow .entry-action-rail,
html.ui-narrow .entry-block.controls-on-left .entry-action-rail {
  right: 5px;
  left: auto;
}

html.ui-narrow .entry-block.is-selected .entry-times {
  right: 46px;
}

html.ui-narrow .wg-time-label {
  left: 6px;
}

html.ui-narrow input,
html.ui-narrow select,
html.ui-narrow textarea {
  font-size: max(16px, 0.8125rem);
}

html.ui-narrow #entryDialog,
html.ui-narrow #todoDialog,
html.ui-narrow #weekReqDialog {
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
}

html.ui-narrow #entryDialog .dialog-card,
html.ui-narrow #todoDialog .dialog-card,
html.ui-narrow #weekReqDialog .dialog-card {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
  padding: 12px;
  border: 0;
  border-radius: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

html.ui-narrow #entryDialog .dialog-grid,
html.ui-narrow #todoDialog .dialog-grid,
html.ui-narrow #weekReqDialog .dialog-grid {
  flex: 1;
  align-content: start;
}

html.ui-narrow #entryDialog .dialog-actions,
html.ui-narrow #todoDialog .dialog-actions,
html.ui-narrow #weekReqDialog .dialog-actions {
  position: sticky;
  bottom: -12px;
  margin: auto -12px -12px;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.98);
}

html.ui-narrow .grid {
  grid-template-columns: 1fr;
}
html.ui-narrow .col-span-2 {
  grid-column: span 1;
}
html.ui-narrow .search-results-card {
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html.ui-narrow body.app-mode #searchView > .search-results-card .search-results-wrap {
  padding: 7px;
  overflow-x: hidden;
  overflow-y: auto;
}

html.ui-narrow .search-results-table,
html.ui-narrow .search-results-table tbody {
  display: block;
  width: 100%;
}

html.ui-narrow .search-results-table thead {
  display: none;
}

html.ui-narrow .search-results-table tbody {
  display: grid;
  gap: 7px;
}

html.ui-narrow .search-results-table .search-result-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(52px, auto);
  grid-template-areas:
    "description description description"
    "project project billable"
    "date duration duration"
    "start end end";
  gap: 7px 10px;
  cursor: pointer;
}

html.ui-narrow .search-results-table .search-result-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

html.ui-narrow .search-results-table .search-result-cell {
  min-width: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: normal;
}

html.ui-narrow .search-results-table .search-result-cell::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

html.ui-narrow .search-result-date {
  grid-area: date;
}

html.ui-narrow .search-result-start {
  grid-area: start;
}

html.ui-narrow .search-result-end {
  grid-area: end;
}

html.ui-narrow .search-result-duration {
  grid-area: duration;
}

html.ui-narrow .search-result-project {
  grid-area: project;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.ui-narrow .search-results-table td.search-result-description {
  grid-area: description;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

html.ui-narrow .search-result-description::before {
  display: none !important;
}

html.ui-narrow .search-results-table td.search-result-billable {
  grid-area: billable;
  width: auto;
  justify-self: end;
  text-align: right;
}

html.ui-narrow .todo-toolbar {
  min-height: 40px;
}

html.ui-narrow .todo-project-group {
  margin-right: 4px;
  margin-left: 4px;
}

html.ui-narrow .search-controls-card {
  display: block;
  padding: 8px;
}

html.ui-narrow .search-controls-card > .stats {
  min-width: 0;
  margin-bottom: 4px;
  white-space: normal;
}

html.ui-narrow .search-filters-panel > summary {
  margin-left: 0;
}

html.ui-narrow .search-filters-panel .filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.ui-compact {
  --sidebar-width: 46px;
}

html.ui-compact .app-sidebar {
  gap: 4px;
  padding-right: 3px;
  padding-left: 3px;
}

html.ui-compact .sidebar-nav,
html.ui-compact .sidebar-tools {
  gap: 4px;
}

html.ui-compact .sidebar-button {
  min-height: 38px;
}

html.ui-compact .global-search {
  flex-basis: 116px;
  min-width: 82px;
}

html.ui-compact .global-search input {
  padding-left: 28px;
}

html.ui-compact .todo-toolbar {
  min-height: 40px;
}

html.ui-compact .todo-group-header,
html.ui-compact .todo-section-header {
  padding-right: 4px;
  padding-left: 7px;
}

html.ui-compact .todo-section-group {
  margin-left: 8px;
}

html.ui-compact .todo-row {
  padding-right: 6px;
  padding-left: 6px;
}

html.ui-compact .search-filters-panel .filters {
  grid-template-columns: 1fr;
}

html.ui-medium .week-mode-action {
  display: none;
}

html.ui-toolbar-compact .zoom-compact span {
  display: none;
}

html.ui-toolbar-compact .zoom.zoom-compact input[type="range"] {
  width: 76px;
}
