html, body { height:100%; overflow:hidden; padding:0; }
[hidden] { display:none!important; }
.pro-workspace { position:relative; width:calc(100% - 72px); height:100dvh; }
#tablo-recovery-download { position:absolute; inset-block-start:24px; inset-inline:16px; width:fit-content; margin-inline:auto; }
.pro-board { position:absolute; inset:0; border:0; width:100%; height:100%; }
.pro-navigation { position:fixed; inset-block:0; inset-inline-end:0; width:72px; box-sizing:border-box; display:flex; flex-direction:column; align-items:center; gap:10px; padding:22px 10px 16px; isolation:isolate; }
html[data-tablo-starting] .pro-navigation { visibility:hidden; }
.pro-tabs { display:flex; flex-direction:column; align-items:center; gap:8px; width:100%; min-height:0; overflow:auto; scrollbar-width:none; user-select:none; }
.pro-tabs::-webkit-scrollbar { display:none; }
.pro-nav-button { position:relative; display:flex; align-items:center; justify-content:center; flex-shrink:0; width:48px; min-height:48px; border:0; border-radius:16px; background:transparent; color:var(--text); font:inherit; cursor:pointer; transition:background .16s ease; }
.pro-icon-definitions { position:absolute; pointer-events:none; }
.pro-board-icon { font-size:23px; line-height:1; }
.pro-dock-icon { flex:none; width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.35; stroke-linecap:round; stroke-linejoin:round; transition:filter 150ms ease; }
/* Accent the artwork while keeping navigation labels in the theme text color. */
.pro-nav-button[data-kind="board"] { --dock-accent:#c83349; }
#tab-module-calendar { --dock-accent:#245dc5; --dock-calendar-secondary:#167958; }
#tab-module-agenda { --dock-accent:#167958; }
#tab-module-tasks { --dock-accent:#94521f; }
#settings { --dock-accent:#7344bc; }
:root[data-theme="dark"] #tab-module-calendar { --dock-calendar-secondary:#75dab2; }
.pro-nav-button:is([aria-selected="true"],[aria-pressed="true"],[aria-expanded="true"]) .pro-dock-icon {
  --dock-detail:var(--dock-accent);
  --dock-secondary:var(--dock-calendar-secondary);
  --dock-wash:color-mix(in srgb,var(--dock-detail) 15%,transparent);
}
:root[data-theme="dark"] .pro-nav-button:is([aria-selected="true"],[aria-pressed="true"],[aria-expanded="true"]) .pro-dock-icon {
  --dock-detail:color-mix(in srgb,var(--dock-accent) 54%,white);
}
@media(hover:hover) {
  .pro-nav-button:is([aria-selected="true"],[aria-pressed="true"],[aria-expanded="true"]):hover .pro-dock-icon {
    filter:saturate(1.35) brightness(1.07);
  }
}
.pro-nav-button:hover, .pro-nav-button:focus-visible { background:var(--glass-surface-hover); outline:0; }
.pro-navigation[data-dock-ready]::before {
  content:""; position:absolute; z-index:-1; pointer-events:none;
  top:1px; left:var(--dock-inset,0px);
  width:calc(var(--dock-width) - 2 * var(--dock-inset,0px)); height:calc(var(--dock-height) - 2px);
  border-radius:14px; background:var(--dock-selection,rgba(255,255,255,.86));
  box-shadow:var(--ui-control-shadow);
  transform:translate(var(--dock-offset));
}
:root[data-theme="dark"] .pro-navigation { --dock-selection:rgba(255,255,255,.15); }
.pro-navigation.dock-animate::before { transition:transform var(--ui-selection-motion); }
.pro-tab-name { display:none; }
.pro-nav-hint {
  position:fixed; z-index:31; max-width:200px; padding:4px 8px; border-radius:8px;
  background:var(--modal-surface); color:var(--text); box-shadow:var(--ui-control-shadow);
  font-size:11px; line-height:1.35; pointer-events:none; overflow-wrap:anywhere;
  animation:pro-hint-in 140ms cubic-bezier(.22,.8,.3,1) both;
}
@keyframes pro-hint-in { from { opacity:0; transform:translateX(4px); } to { opacity:1; transform:translateX(0); } }
.pro-settings { margin-top:auto; }
/* Embedded windows shade their own viewport. This layer covers the rest of the shell. */
#frame-modal-shade { position:fixed; inset-block:0; inset-inline-end:0; width:var(--ui-rail-width); z-index:30; }
#frame-modal-shade:not([hidden]) ~ #notice { visibility:hidden; }
.pro-dialog { width:min(360px,calc(100vw - 48px)); box-sizing:border-box; border:0; border-radius:24px; padding:24px; background:var(--modal-surface); color:var(--text); box-shadow:var(--modal-shadow); }
.pro-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
.pro-dialog h1 { font-size:19px; font-weight:550; margin:0; }
.pro-close { position:relative; flex:none; width:32px; height:32px; padding:0; border-radius:8px; font-size:0; line-height:1; }
.pro-close::before, .pro-close::after { content:""; position:absolute; left:50%; top:50%; width:16px; height:2px; border-radius:1px; background:currentColor; transform:translate(-50%,-50%) rotate(45deg); pointer-events:none; }
.pro-close::after { transform:translate(-50%,-50%) rotate(-45deg); }
.pro-dialog button { font-family:inherit; cursor:pointer; color:inherit; background:transparent; border:0; }
.pro-dialog .pro-close:hover, .pro-dialog .pro-close:focus-visible { background:var(--modal-input-focus-bg); }
.pro-actions button:focus-visible { filter:brightness(.85); }
.pro-field { display:grid; gap:7px; font-size:13px; margin:16px 0; }
.pro-field input, .pro-field select { width:100%; box-sizing:border-box; min-height:44px; border:0; border-radius:12px; padding:10px 12px; font:inherit; background:var(--modal-input-bg); color:var(--text); outline:0; }
.pro-field input:focus, .pro-field select:focus { background:var(--glass-surface-hover); }
.ui-select.mobile-board-picker { display:none; }
.pro-actions { display:flex; align-items:center; gap:12px; margin-top:24px; }
.pro-actions > span { flex:1; }
.pro-actions button { min-height:40px; border-radius:12px; padding:8px 12px; }
.pro-actions .pro-primary { background:var(--text); color:var(--page-bg); }
.pro-actions .pro-delete { color:var(--danger-link-hover); padding-inline:0; }
#page-error { font-size:12px; line-height:1.5; color:var(--danger-link-hover); }
@media(max-width:760px) {
  html { background:var(--page-bg); }
  body {
    background:
      radial-gradient(270px circle at 100% 100%,var(--page-glow-a),transparent 70%),
      radial-gradient(160px circle at 18% calc(var(--ui-mobile-flat-top) + 160px),var(--page-glow-b),transparent),
      var(--page-bg);
  }
  .pro-workspace { width:100%; height:calc(100dvh - var(--ui-rail-height)); }
  .pro-workspace[data-bookmark-footer] { height:100dvh; }
  .pro-workspace[data-bookmark-footer] ~ :is(.pro-navigation,#frame-modal-shade) {
    translate:0 var(--bookmark-dock-offset,var(--ui-rail-height));
  }
  .pro-navigation {
    --dock-left:max(8px,env(safe-area-inset-left,0px));
    --dock-right:max(8px,env(safe-area-inset-right,0px));
    --dock-inset:5px;
    inset:auto 0 0; width:100%; height:var(--ui-rail-height); flex-direction:row; gap:0;
    padding:5px var(--dock-right) calc(5px + env(safe-area-inset-bottom,0px)) var(--dock-left);
    background:var(--glass-surface); backdrop-filter:blur(24px);
  }
  .pro-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); flex:4 1 0; gap:0; width:auto; min-width:0; height:100%; overflow:visible; }
  .pro-nav-button { width:100%; min-width:0; height:54px; min-height:44px; padding:0; flex-direction:column; gap:4px; border-radius:14px; }
  .pro-navigation .pro-nav-button:hover { background:transparent; }
  .pro-nav-button > :is(.pro-board-icon,.pro-dock-icon) { transition:transform 150ms cubic-bezier(.22,.8,.3,1),filter 150ms ease; }
  .pro-navigation :is([aria-selected="true"],[aria-pressed="true"]) > :is(.pro-board-icon,.pro-dock-icon) { transform:translateY(-2px); }
  .pro-navigation .pro-nav-button:active > :is(.pro-board-icon,.pro-dock-icon) { transform:scale(.92); }
  .pro-navigation .pro-nav-button:not([aria-selected="true"]):not([aria-pressed="true"]) { color:color-mix(in srgb,currentColor 76%,transparent); }
  .pro-tab-name { display:block; font-weight:400; max-width:100%; padding-inline:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; line-height:1.3; }
  .pro-settings { flex:1 1 0; width:auto; margin:0; }
  .pro-navigation[data-board-only] { justify-content:right; background:transparent; backdrop-filter:none; }
  .pro-navigation[data-board-only] #settings { flex:0 0 44px; }
  .pro-navigation[data-board-only] #settings .pro-tab-name,
  .pro-navigation[data-board-only]::before { display:none; }
  .mobile-board-picker:has(select:not([hidden])) { display:block; position:absolute; inset:7px 12px auto; width:min(360px,calc(100% - 24px)); margin:auto; }
  #mobile-board-picker { height:34px; padding-block:0; padding-inline-start:10px; border:0; border-radius:10px; color:var(--text); background:var(--modal-input-bg); font:inherit; }
  .mobile-board-picker:has(select:not([hidden])) ~ .pro-board { inset-block-start:44px; height:calc(100% - 44px); }
  #frame-modal-shade { inset:auto 0 0; width:auto; height:var(--ui-rail-height); backdrop-filter:none; }
  /* Continue the dialog shade across the dock without a second glass surface. */
  body:has(> #frame-modal-shade:not([hidden])) > .pro-navigation { background:transparent; backdrop-filter:none; }
  .mobile-board-picker:has(select[inert]) { filter:blur(3px); opacity:.65; }
}
.pro-navigation .pro-nav-button:focus-visible { box-shadow:inset 0 0 0 2px currentColor; }
@media(prefers-reduced-motion:reduce) {
  .pro-nav-button, .pro-nav-button > :is(.pro-board-icon,.pro-dock-icon), .pro-navigation[data-dock-ready]::before { transition:none; }
  .pro-nav-hint { animation:none; }
}

/* The same settings section is a drawer on desktop and a page on mobile. */
#workspace-settings-shade {
  position:fixed; inset-block:0; inset-inline:0 var(--ui-rail-width); z-index:29;
  background:color-mix(in srgb,var(--ui-overlay) 55%,transparent); backdrop-filter:none;
}
#workspace-settings-content {
  --settings-text-size:var(--ui-text-size);
  --settings-row-height:48px;
  --tablo-card-gap:8px;
  box-sizing:border-box; position:fixed; z-index:30; inset-block:0; inset-inline-end:var(--ui-rail-width);
  width:min(368px,calc(100vw - var(--ui-rail-width))); overflow:auto; overscroll-behavior:contain;
  display:grid; align-content:start; gap:10px; padding:18px 16px 22px;
  border-start-start-radius:24px; border-end-start-radius:24px;
  background:var(--ui-surface); color:var(--ui-text); box-shadow:var(--ui-shadow);
  font:400 var(--settings-text-size)/1.4 var(--ui-font);
}
@media(min-width:761px) and (prefers-reduced-motion:no-preference) {
  #workspace-settings-content:not([hidden]) { animation:settings-enter 200ms ease-out both; }
}
@keyframes settings-enter { from { transform:translateX(var(--settings-enter-x,18px)); opacity:0; } }
:root[dir="rtl"] { --settings-enter-x:-18px; }
.settings-section {
  border-radius:12px; background:var(--ui-control-surface); box-shadow:var(--ui-control-shadow);
}
.settings-section > summary {
  box-sizing:border-box; display:flex; align-items:center; justify-content:space-between; gap:8px;
  min-height:var(--settings-row-height); padding:10px 12px; font:inherit; list-style:none; cursor:pointer;
}
.settings-section > summary::-webkit-details-marker { display:none; }
.settings-section > summary::after, .settings-disclosure::after {
  content:""; flex:none; width:6px; height:6px; margin-inline-end:4px;
  border:solid var(--ui-muted); border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(45deg);
}
.settings-section[open] > summary::after { transform:translateY(2px) rotate(225deg); }
.settings-section > .pro-board { display:block; position:static; height:var(--settings-frame-height,0px); }
#bookmark-tools { position:relative; }
#bookmark-tools > .pro-board { display:block; position:static; height:var(--settings-frame-height,0px); }
#bookmark-tools[aria-busy="true"] > .pro-board { position:absolute; visibility:hidden; }
#bookmark-tools[aria-busy="false"] > .bookmark-tools-preview { display:none; }
.bookmark-tools-preview {
  display:grid; gap:2px; align-content:start; min-height:var(--bookmark-tools-height,0px);
  padding:0 12px 12px; box-sizing:border-box; color:var(--ui-muted);
}
.bookmark-tools-preview > span {
  display:grid; align-content:center; box-sizing:border-box; min-height:44px;
  padding:8px 10px; border-radius:8px; background:var(--ui-hover);
}
.bookmark-tools-preview small { margin-block-start:2px; font-size:12px; }
.settings-frame { display:block; width:100%; height:0; border:0; }
.settings-nested > .settings-section { background:transparent; box-shadow:none; }
.settings-nested > .settings-section > summary { padding-inline:0; }
.settings-nested > .settings-section > .settings-section-body { padding-inline:0; }
#workspace-settings-content .pro-dialog-head { min-height:var(--ui-mobile-header-height,42px); margin:0; }
@media(min-width:761px) {
  #workspace-settings-content { scroll-padding-block-start:66px; }
  #workspace-settings-content .pro-dialog-head {
    position:sticky; top:-18px; z-index:2; background:var(--ui-surface);
    padding-block:10px 6px; margin-block:-10px -6px;
  }
}
#workspace-settings-title {
  margin:0; color:var(--ui-text); font-size:var(--ui-title-size); font-weight:var(--ui-title-weight); outline:none;
}
#workspace-settings-error { margin:0; color:var(--danger-link-hover); font-size:13px; }
#workspace-settings-error:empty { display:none; }
#workspace-settings-content .settings-appearance { grid-template-columns:auto auto minmax(0,1fr); gap:8px; }
#workspace-settings-content .settings-theme-switch { border:0; }
/* Four equal tracks put the search edge on the same gutter as the pairs below. */
#workspace-settings-content .settings-appearance:has(~ #bookmark-tile-counts) {
  grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--tablo-card-gap); container:tablo-appearance / inline-size;
}
.settings-appearance:has(~ #bookmark-tile-counts) .settings-theme-switch { grid-template-columns:repeat(2,minmax(0,1fr)); }
.settings-appearance:has(~ #bookmark-tile-counts) [aria-controls="workspace-languages"] {
  gap:4px; font-size:var(--ui-label-size);
}
@container tablo-appearance (max-width:345px) {
  .settings-appearance .settings-disclosure { padding-inline:7px; }
}
.settings-appearance:has(~ #bookmark-tile-counts) [aria-controls="workspace-search-engines"] { grid-column:span 2; }
.settings-disclosure, .settings-options {
  border:0; border-radius:12px; background:var(--ui-control-surface); box-shadow:var(--ui-control-shadow);
}
.settings-disclosure {
  display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0;
  min-height:var(--settings-row-height); padding:0 12px; color:var(--ui-text); font:inherit; cursor:pointer;
}
.settings-disclosure[aria-expanded="true"]::after { transform:translateY(2px) rotate(225deg); }
#workspace-current-language { white-space:nowrap; }
#workspace-current-engines { display:flex; min-width:0; align-items:center; gap:2px; }
#workspace-current-engines:empty { display:none; }
#workspace-current-engines img { display:block; flex:0 1 17px; width:17px; min-width:0; height:17px; object-fit:contain; }
.settings-search-empty { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
#workspace-current-engines:not(:empty) + .settings-search-empty { display:none; }
.settings-options { padding:6px; }
#workspace-languages, #settings-engine-options { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; }
.settings-options button {
  display:grid; justify-items:center; align-content:center; gap:3px; min-height:44px; padding:4px 2px;
  border:0; border-radius:8px; background:transparent; color:var(--ui-text); font:inherit; font-size:10px; cursor:pointer;
}
#workspace-languages button span:first-child { font-size:17px; line-height:1; }
#settings-engine-options img { width:22px; height:22px; opacity:.5; }
#settings-engine-options span { max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
#settings-engine-options [aria-pressed="true"] img { opacity:1; }
.settings-options [aria-pressed="true"], .settings-disclosure[aria-expanded="true"] { background:var(--ui-selected); }
.settings-options button:disabled { opacity:.46; cursor:default; }
#settings-search-board { padding:3px 7px 5px; }
.settings-section-label { margin:0; color:var(--ui-muted); font-size:var(--ui-label-size); font-weight:400; line-height:1.35; }
#startup-selection { margin-inline:auto 10px; color:var(--ui-muted); text-align:end; }
#start-page { grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
#start-page label {
  position:relative; display:flex; align-items:center; justify-content:space-between; gap:8px;
  min-height:44px; padding:6px 10px; box-sizing:border-box; border-radius:8px; cursor:pointer;
}
#start-page label:hover { background:var(--ui-hover); }
#start-page label:has(:checked) { background:var(--ui-selected); }
#start-page label:has(:focus-visible) { box-shadow:inset 0 0 0 2px var(--ui-focus-edge); }
#start-page input { position:absolute; width:1px; height:1px; margin:0; clip-path:inset(50%); }
#start-page label:has(:checked)::after {
  content:""; flex:none; width:9px; height:5px; margin-inline-end:5px;
  border:solid currentColor; border-width:0 0 1.5px 1.5px; transform:translateY(-2px) rotate(-45deg);
}
#workspace-settings-content :is(.settings-disclosure,.settings-options button:not(:disabled),.settings-link,.pro-close):hover { background:var(--ui-hover); }
#workspace-settings-content :is(button,a,select,summary):focus-visible, .backup-file-picker:focus-within { box-shadow:inset 0 0 0 2px var(--ui-focus-edge); }
#workspace-settings-content summary { border-radius:12px; }
@media(prefers-reduced-motion:no-preference) {
  #workspace-settings-content summary::after, .settings-disclosure::after { transition:transform 160ms ease; }
}
#workspace-settings-content .pro-close { border:0; background:transparent; color:var(--ui-muted); cursor:pointer; }
@media(max-width:760px) {
  #workspace-settings-content {
    --settings-text-size:16px;
    inset:0 0 var(--ui-rail-height); width:100%; border-radius:0; box-shadow:none; background:var(--ui-mobile-workspace-background);
    padding:calc(env(safe-area-inset-top,0px) + var(--ui-mobile-header-top))
      max(var(--ui-mobile-gutter),env(safe-area-inset-right,0px)) 24px
      max(var(--ui-mobile-gutter),env(safe-area-inset-left,0px));
  }
  #workspace-settings-content:has(> .tablo-settings-footer) { background-color:var(--page-bg); }
  #workspace-settings-content .pro-close { display:none; }
  body:has(.pro-navigation[data-board-only]) #workspace-settings-content .pro-close { display:block; }
}

.settings-section-body { display:grid; gap:8px; padding:0 12px 12px; }
.settings-section-body p { margin:0; color:var(--ui-muted); font-size:var(--ui-label-size); overflow-wrap:anywhere; }
.settings-section-body p:empty { display:none; }
.tablo-plans-list {
  display:grid; gap:7px; margin:0; padding-inline-start:1.15em;
  font-size:var(--ui-text-size); line-height:1.45;
}
.tablo-plans-list li::marker { color:var(--ui-muted); font-size:.8em; }
.tablo-plans-feedback {
  padding-block-start:8px; line-height:1.5;
  -webkit-user-select:text; user-select:text;
}
.tablo-plans-feedback a { color:var(--ui-text); text-underline-offset:3px; }
#bookmark-layout-settings { gap:16px; }
#bookmark-layout-settings fieldset { min-inline-size:0; margin:0; padding:0; border:0; }
#bookmark-layout-settings legend { padding:0 0 6px; font-size:var(--ui-label-size); color:var(--ui-muted); }
.layout-segments {
  --step:100%; position:relative; isolation:isolate;
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:3px;
  border-radius:13px; background:var(--ui-hover);
}
.layout-segments:dir(rtl) { --step:-100%; }
.layout-segments::before {
  content:""; position:absolute; inset-block:3px; inset-inline-start:3px;
  width:calc((100% - 6px) / 3); border-radius:10px;
  background:var(--ui-surface); box-shadow:var(--ui-control-shadow); z-index:-1;
}
.layout-segments[data-mode="desktop"]::before { transform:translateX(var(--step)); }
.layout-segments[data-mode="phone"]::before { transform:translateX(calc(var(--step) + var(--step))); }
@media(prefers-reduced-motion:no-preference) {
  .layout-segments::before { transition:transform 180ms ease-out; }
}
.layout-segments button {
  min-width:0; min-height:54px; display:grid; place-content:center; justify-items:center; gap:3px;
  padding:5px 2px; border:0; border-radius:10px; background:transparent; color:var(--ui-muted);
  font:inherit; font-size:var(--ui-label-size); overflow-wrap:anywhere; cursor:pointer;
}
.layout-segments button[aria-pressed="true"] { color:var(--ui-text); font-weight:500; }
.layout-segments svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.6; }
.bookmark-layout-fields { display:grid; }
.bookmark-layout-fields > fieldset { grid-area:1/1; align-self:start; }
.bookmark-layout-fields > [inert] { visibility:hidden; }
[data-tile-count]:disabled, #bookmark-dock-mode:disabled { opacity:.55; }
.bookmark-layout-choices, .dock-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.bookmark-layout-choices .workspace-tool { font-size:var(--ui-text-size); }
#bookmark-tile-counts .settings-disclosure {
  width:100%; min-height:44px; padding:6px 10px; gap:6px; border-radius:9px; box-shadow:none;
  background:var(--ui-hover); text-align:start; overflow-wrap:anywhere; font-size:var(--ui-label-size);
}
#bookmark-tile-counts .settings-disclosure[aria-expanded="true"] { background:var(--ui-selected); }
#bookmark-tile-counts .settings-disclosure:disabled { cursor:default; }
#workspace-settings-content > #bookmark-tile-counts {
  min-width:0;
}
.settings-quick-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--tablo-card-gap); }
#workspace-settings-content #bookmark-tile-counts .settings-quick-card {
  display:grid; grid-template-columns:minmax(0,1fr) 6px; grid-template-rows:20px auto;
  align-content:center; align-items:center; justify-content:normal; gap:4px;
  min-width:0; min-height:60px; padding:8px 10px; border-radius:12px;
  background:var(--ui-control-surface); box-shadow:var(--ui-control-shadow);
  color:var(--ui-text); text-align:start; font:inherit; box-sizing:border-box; cursor:pointer;
}
#workspace-settings-content #bookmark-tile-counts .settings-quick-card:is(:hover,[aria-expanded="true"]) { background:var(--ui-selected); }
#workspace-settings-content #bookmark-tile-counts .settings-quick-card::after {
  grid-column:2; grid-row:1 / 3; justify-self:end; margin:0;
}
.settings-quick-top { grid-column:1; grid-row:1; display:flex; align-items:center; gap:5px; min-width:0; }
.settings-quick-top svg { width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.settings-quick-top .tile-count-value { margin:0; font-size:16px; line-height:1; font-weight:500; }
#timezone-offset, .settings-quick-heading { font-size:11px; line-height:1.1; }
#timezone-offset { direction:ltr; white-space:nowrap; }
#timezone-trigger:has(#timezone-city[hidden]) .settings-quick-top { grid-row:1 / 3; }
.settings-quick-label, .settings-quick-heading { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.settings-quick-label { grid-column:1 / -1; grid-row:2; color:var(--ui-muted); font-size:12px; line-height:1.25; }
#startup-selection.settings-quick-label { margin:0; color:var(--ui-muted); text-align:start; }
@media(max-width:360px) {
  #workspace-settings-content #bookmark-tile-counts .settings-quick-card { padding-inline:8px; }
  .settings-quick-top { gap:3px; }
  #timezone-trigger .settings-quick-top { grid-column:1 / -1; }
  #timezone-offset { font-size:10px; }
}
#workspace-settings-content > #bookmark-tile-counts .settings-quick-row > .settings-options { grid-column:1 / -1; order:1; min-width:0; }
#workspace-settings-content > #bookmark-tile-counts .tile-count-options { padding:6px; }
#timezone-search {
  box-sizing:border-box; width:100%; min-height:42px; padding:8px 12px; border:0; border-radius:8px;
  color:var(--ui-text); background:var(--ui-hover); font:inherit; font-size:16px;
}
#timezone-search:focus-visible { outline:2px solid var(--ui-focus-edge); outline-offset:-2px; }
#timezone-results { position:relative; max-height:min(236px,35dvh); overflow:auto; overscroll-behavior:contain; }
#timezone-results:not(:empty) { margin-top:4px; }
#timezone-empty { margin:0; padding:12px; color:var(--ui-muted); font-size:var(--ui-label-size); }
.timezone-options button {
  display:flex; align-items:baseline; justify-content:space-between; gap:10px; width:100%;
  min-height:42px; padding:9px 10px; text-align:start; font-size:var(--ui-label-size);
}
.timezone-option-offset { flex:none; direction:ltr; color:var(--ui-muted); font-variant-numeric:tabular-nums; }
.timezone-option-offset:only-child { color:inherit; }
.timezone-options button span { line-height:1.3; }
#start-page.startup-options { padding:6px; }
#advanced-settings #bookmark-layout-settings { padding:0; }
.tablo-advanced { display:grid; gap:var(--tablo-card-gap); font-size:var(--ui-label-size); }
.tablo-advanced > h2 { padding-inline:4px; }
.tablo-advanced > .settings-nested {
  gap:0; padding:0; border-radius:12px; background:var(--ui-control-surface);
}
.tablo-advanced #bookmark-layout-settings { padding-inline:12px; }
.tablo-advanced #assistant-settings > summary, .tablo-advanced :is(#allow-icons-settings,.planned-integration,#legacy-icon-control) {
  display:flex; align-items:center; justify-content:flex-start; gap:8px;
  width:100%; min-height:46px; padding:9px 12px;
}
.tablo-advanced #assistant-settings > summary::after { margin-inline-start:auto; }
.tablo-advanced .settings-frame { box-sizing:border-box; padding-inline:12px; }
.tablo-advanced #allow-icons-settings, .tablo-advanced .planned-integration {
  border:0; background:transparent; text-align:start; font:inherit; color:var(--ui-muted); opacity:1; cursor:default;
}
.tablo-advanced :is(summary, #allow-icons-settings, .planned-integration) > svg {
  flex:none; width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
}
.tablo-advanced .planned-integration small {
  flex:none; padding:2px 7px; border-radius:99px; background:var(--ui-hover);
  font-size:11px; line-height:1.4; font-weight:500;
}
.tablo-advanced .settings-nested > :not([hidden]) ~ :is(.planned-integration,#allow-icons-settings,#legacy-icon-control) { border-block-start:1px solid var(--ui-control-divider); }
.tile-count-value { margin-inline:auto 6px; white-space:nowrap; font-variant-numeric:tabular-nums; }
@media(max-width:360px) {
  #bookmark-tile-counts .settings-disclosure { padding-inline:7px; }
}
.tile-count-options {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px;
  margin-block-start:4px; padding:4px; border-radius:10px; background:var(--ui-hover); box-shadow:none;
}
.tile-count-options button { min-height:36px; font-size:var(--ui-label-size); font-variant-numeric:tabular-nums; }
.tile-count-options [aria-pressed="true"] { color:var(--ui-text); font-weight:600; background:var(--ui-surface); box-shadow:var(--ui-control-shadow); }
@media(pointer:coarse) { .tile-count-options button { min-height:44px; } }
.dock-choices label {
  display:flex; align-items:center; gap:7px; padding:4px 8px; min-height:44px; box-sizing:border-box;
  border-radius:9px; font-size:var(--ui-label-size); cursor:pointer;
}
.dock-choices label:has(:checked) { background:var(--ui-hover); }
.dock-choices input { width:16px; height:16px; flex:none; margin:0; accent-color:var(--ui-text); }
@media (max-width:760px) {
  .settings-quick-row > #tile-options-local, .settings-quick-row > #workspace-timezones { order:0; }
  .settings-quick-row > #start-page { order:2; }
  #workspace-settings-content #bookmark-tile-counts .settings-quick-card { padding-inline:12px; }
}
#workspace-settings-content #bookmark-tile-counts .mode-switch {
  position:relative; grid-column:1 / -1; grid-template-columns:minmax(0,1fr) auto;
}
.mode-switch input { position:absolute; width:1px; height:1px; clip-path:inset(50%); }
.mode-switch:has(:focus-visible) { outline:2px solid var(--ui-focus-edge); outline-offset:-2px; }
.switch-track {
  grid-area:1 / 2 / 3; align-self:center; width:30px; height:18px; padding:3px;
  box-sizing:border-box; border-radius:12px; background:var(--ui-border);
}
.switch-track::before { content:""; display:block; width:12px; height:12px; border-radius:50%; background:var(--ui-surface); }
.mode-switch input:checked + .switch-track { background:var(--ui-text); }
.mode-switch input:checked + .switch-track::before { transform:translateX(12px); }
.mode-switch:dir(rtl) input:checked + .switch-track::before { transform:translateX(-12px); }
.mode-switch .settings-quick-label { grid-column:1; white-space:normal; }
@media(prefers-reduced-motion:no-preference) {
  .switch-track, .switch-track::before { transition:background-color 150ms ease,transform 150ms ease; }
}
#bookmark-layout-error { color:var(--danger-link-hover); }
.workspace-tool {
  box-sizing:border-box; display:flex; align-items:center; width:100%; min-height:44px; padding:10px 12px;
  border:0; border-radius:10px; text-align:start; background:var(--ui-hover); color:inherit; font:inherit; cursor:pointer;
}
.workspace-tool:not(:disabled,.ui-primary-action):not(:has(:disabled)):is(:hover,:focus-visible) { background:var(--ui-selected); }
.workspace-tool:disabled, .workspace-tool:has(:disabled) { opacity:.55; cursor:default; }
.tablo-backup { container:backup-actions / inline-size; }
.tablo-backup .settings-section-body { padding:0; gap:var(--tablo-card-gap); }
.backup-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--tablo-card-gap); }
.backup-actions .workspace-tool {
  display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:20px auto;
  align-content:center; align-items:center; justify-content:normal; gap:4px;
  min-width:0; min-height:60px; padding:8px 10px; border-radius:12px;
  background:var(--ui-control-surface); box-shadow:var(--ui-control-shadow); color:var(--ui-text);
}
.backup-actions svg, #backup-clear svg { flex:none; width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.backup-actions .settings-quick-top svg { width:18px; height:18px; }
.backup-actions #backup-download[data-downloaded]::after { grid-column:1; grid-row:2; justify-self:start; align-self:center; margin-inline:0; }
.backup-actions #backup-download[data-downloaded] .settings-quick-label { padding-inline-start:18px; }
.backup-downloaded { color:#258457; }
:root[data-theme="dark"] .backup-downloaded { color:#75d4a1; }
#backup-clear { width:100%; min-width:0; padding-inline:4px 6px; gap:6px; background:transparent; color:var(--danger-link-hover); font-size:var(--ui-label-size); }
.backup-recovery-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; column-gap:var(--tablo-card-gap); }
.backup-recovery-actions .workspace-tool:not(#backup-clear) { width:auto; min-height:44px; padding:6px 1px; gap:4px; background:transparent; color:var(--ui-muted); font-size:var(--ui-label-size); }
.backup-recovery-actions svg { width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.backup-undo-group { display:flex; align-items:center; min-width:0; }
#backup-undo { flex:1; min-width:0; }
#backup-previous { grid-column:1 / -1; justify-self:start; }
.backup-undo-help { position:relative; flex:none; color:var(--ui-muted); }
.backup-undo-help summary { display:grid; place-items:center; width:28px; height:44px; border-radius:8px; list-style:none; cursor:pointer; }
.backup-undo-help summary::-webkit-details-marker { display:none; }
.backup-undo-help summary:is(:hover,:focus-visible) { background:var(--ui-hover); }
.backup-undo-help summary:focus-visible { box-shadow:inset 0 0 0 2px var(--ui-focus-edge); }
.backup-undo-help p {
  position:absolute; z-index:2; inset-inline-end:0; bottom:100%; width:min(270px,calc(100vw - 48px));
  margin:0; padding:10px 12px; border:1px solid var(--ui-border); border-radius:10px;
  background:var(--ui-popup-surface,var(--ui-surface)); box-shadow:var(--ui-control-shadow);
  color:var(--ui-text); font-size:12px; line-height:1.45;
}
@container backup-actions (max-width:332px) {
  #backup-clear, .backup-recovery-actions .workspace-tool:not(#backup-clear) { font-size:12px; gap:4px; }
  #backup-clear { padding-inline:2px; }
}
@container backup-actions (max-width:300px) {
  #backup-undo svg { display:none; }
}
#workspace-settings-content:has(> .tablo-settings-footer) { display:flex; flex-direction:column; padding-block-end:8px; --tablo-card-gap:var(--ui-settings-gap); gap:var(--tablo-card-gap); }
#workspace-settings-content:has(> .tablo-settings-footer) > * { flex-shrink:0; }
.tablo-settings-footer {
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-block-start:4px;
  color:var(--ui-muted); font-size:12px; line-height:1.3;
}
.tablo-settings-footer a { display:inline-flex; align-items:center; min-height:40px; border-radius:6px; color:inherit; text-decoration:none; }
.tablo-settings-footer a:is(:hover,:focus-visible) { color:var(--ui-text); text-decoration:underline; text-underline-offset:3px; }
.tablo-settings-footer .tablo-review { min-width:0; }
.tablo-settings-footer .tablo-author { flex:none; }
@media(pointer:coarse) { .tablo-settings-footer a { min-height:44px; } }
#workspace-settings-content #bookmark-tile-counts #startup-trigger {
  grid-column:1 / -1; order:1; grid-template-columns:auto minmax(0,1fr) 6px; grid-template-rows:auto; gap:12px; min-height:48px;
}
#startup-trigger #startup-selection { grid-area:1 / 2; justify-self:end; }
#workspace-settings-content #bookmark-tile-counts #startup-trigger::after { grid-area:1 / 3; }
@media(min-width:761px) {
  #workspace-settings-content:has(.tablo-settings-footer) { padding:24px 20px 10px; }
  #workspace-settings-content > #bookmark-tile-counts .settings-quick-row > :is(#tile-options-local,#workspace-timezones) { order:0; }
  .settings-quick-row > #start-page { order:2; }
}

.backup-file-picker { position:relative; }
.backup-file-picker input { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
.backup-import-review {
  display:grid; gap:8px; min-width:0; padding:12px; border-radius:12px;
  background:var(--ui-control-surface); box-shadow:var(--ui-control-shadow);
}
.backup-import-file, .backup-single-section, .backup-import-warning { margin:0; }
.backup-import-file { overflow:hidden; color:var(--ui-muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.backup-single-section { color:var(--ui-text); font-size:var(--ui-text-size); font-weight:500; }
.backup-import-warning { color:var(--ui-muted); font-size:12px; line-height:1.4; }
.backup-import-review #backup-sections { display:grid; gap:2px; padding:0; }
.backup-import-review #backup-sections legend { padding:0 0 4px; color:var(--ui-muted); font-size:12px; }
.backup-import-review #backup-sections label:has(:checked) { background:var(--ui-hover); }
.backup-import-buttons { display:flex; align-items:center; gap:8px; }
.backup-import-buttons .workspace-tool { width:auto; min-height:44px; justify-content:center; }
.backup-import-buttons #backup-restore { flex:1; }
.backup-import-buttons #backup-import-cancel { padding-inline:12px; background:transparent; color:var(--ui-muted); }
#backup-sections { min-inline-size:0; padding:4px 0 0; margin:0; border:0; }
#backup-sections legend { padding:0 8px; }
#backup-sections label { display:flex; align-items:center; gap:10px; min-height:42px; padding-inline:8px; border-radius:8px; cursor:pointer; }
#backup-sections label:has(:checked) { background:var(--ui-selected); }
#backup-sections label:has(:focus-visible) { box-shadow:inset 0 0 0 2px var(--ui-focus-edge); }
#backup-sections input { flex:none; width:16px; height:16px; margin:0; accent-color:var(--text); }
#backup-sections output { margin-inline-start:auto; color:var(--ui-muted); }
.workspace-tools-dialog { width:min(520px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; }
.workspace-tools-dialog::backdrop { background:rgba(10,15,25,.4); }
.workspace-tools-dialog p { font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.pro-dialog button:disabled { opacity:.55; cursor:default; }

.tablo-advanced #allow-icons-settings { color:var(--ui-text); cursor:pointer; }
.tablo-advanced #allow-icons-settings:hover { background:var(--ui-hover); }
#icon-consent-dialog .pro-dialog-head { margin-bottom:10px; }
#icon-consent-title { outline:0; }
#icon-consent-dialog p { margin:0; color:var(--ui-muted); font-size:var(--ui-text-size); line-height:1.5; }
#icon-consent-dialog [role="alert"] { color:var(--danger-link-hover); }
#icon-consent-dialog .pro-actions { flex-wrap:wrap; gap:6px; margin-top:18px; }
#icon-consent-dialog button { min-height:44px; }

/* Sliding theme selection follows the inline direction. */
#workspace-settings-content:has(#tablo-mode) .settings-theme-switch {
  --segment-pad:3px; --segment-step:100%; position:relative; isolation:isolate;
  padding:var(--segment-pad); gap:0;
}
#workspace-settings-content:has(#tablo-mode) .settings-theme-switch:dir(rtl) { --segment-step:-100%; }
#workspace-settings-content:has(#tablo-mode) .settings-theme-switch::before {
  content:""; position:absolute; z-index:-1; pointer-events:none;
  inset-block:var(--segment-pad); inset-inline-start:var(--segment-pad); width:calc(50% - var(--segment-pad));
  border-radius:9px; background:var(--ui-selected);
}
#workspace-settings-content:has(#tablo-mode) .settings-theme-btn[aria-pressed="true"] { background:transparent; }
:root[data-theme="dark"] #workspace-settings-content:has(#tablo-mode) .settings-theme-switch::before { transform:translateX(var(--segment-step)); }
#workspace-settings-content:has(#tablo-mode) :is(.settings-quick-heading,.settings-quick-label,#timezone-offset) {
  font-size:var(--ui-label-size); line-height:1.25;
}
@media(prefers-reduced-motion:no-preference) {
  #workspace-settings-content:has(#tablo-mode) .settings-theme-switch::before {
    transition:transform 200ms ease-in-out, background-color 200ms ease;
  }
  [data-theme-motion], [data-theme-motion] :is(body,.pro-navigation,#workspace-settings-content,.pro-dialog-head,
    .settings-appearance > *,.settings-quick-card,.backup-actions .workspace-tool,.settings-nested) {
    transition:background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  }
}
