/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-red-500: oklch(63.7% 0.237 25.331);
    --color-black: #000;
    --color-white: #fff;
    --spacing: 0.25rem;
    --container-md: 28rem;
    --container-lg: 32rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --tracking-normal: 0em;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --leading-relaxed: 1.625;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .\@container {
    container-type: inline-size;
  }
  .pointer-events-none {
    pointer-events: none;
  }
  .collapse {
    visibility: collapse;
  }
  .invisible {
    visibility: hidden;
  }
  .visible {
    visibility: visible;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .sticky {
    position: sticky;
  }
  .inset-0 {
    inset: calc(var(--spacing) * 0);
  }
  .-top-1 {
    top: calc(var(--spacing) * -1);
  }
  .top-1\/2 {
    top: calc(1 / 2 * 100%);
  }
  .-right-1 {
    right: calc(var(--spacing) * -1);
  }
  .right-2 {
    right: calc(var(--spacing) * 2);
  }
  .z-\[1000\] {
    z-index: 1000;
  }
  .z-\[1200\] {
    z-index: 1200;
  }
  .z-\[1300\] {
    z-index: 1300;
  }
  .z-\[1400\] {
    z-index: 1400;
  }
  .z-\[1500\] {
    z-index: 1500;
  }
  .z-\[2000\] {
    z-index: 2000;
  }
  .z-\[3000\] {
    z-index: 3000;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .-mx-1 {
    margin-inline: calc(var(--spacing) * -1);
  }
  .my-4 {
    margin-block: calc(var(--spacing) * 4);
  }
  .my-\[1px\] {
    margin-block: 1px;
  }
  .my-\[2px\] {
    margin-block: 2px;
  }
  .mt-0\.5 {
    margin-top: calc(var(--spacing) * 0.5);
  }
  .mt-1 {
    margin-top: calc(var(--spacing) * 1);
  }
  .mt-1\.5 {
    margin-top: calc(var(--spacing) * 1.5);
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .mt-2\.5 {
    margin-top: calc(var(--spacing) * 2.5);
  }
  .mt-3 {
    margin-top: calc(var(--spacing) * 3);
  }
  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }
  .mt-6 {
    margin-top: calc(var(--spacing) * 6);
  }
  .mr-1 {
    margin-right: calc(var(--spacing) * 1);
  }
  .mr-1\.5 {
    margin-right: calc(var(--spacing) * 1.5);
  }
  .mb-0 {
    margin-bottom: calc(var(--spacing) * 0);
  }
  .mb-1 {
    margin-bottom: calc(var(--spacing) * 1);
  }
  .mb-1\.5 {
    margin-bottom: calc(var(--spacing) * 1.5);
  }
  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }
  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .mb-5 {
    margin-bottom: calc(var(--spacing) * 5);
  }
  .ml-1 {
    margin-left: calc(var(--spacing) * 1);
  }
  .ml-2 {
    margin-left: calc(var(--spacing) * 2);
  }
  .ml-6 {
    margin-left: calc(var(--spacing) * 6);
  }
  .ml-8 {
    margin-left: calc(var(--spacing) * 8);
  }
  .ml-12 {
    margin-left: calc(var(--spacing) * 12);
  }
  .ml-auto {
    margin-left: auto;
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .inline-block {
    display: inline-block;
  }
  .inline-flex {
    display: inline-flex;
  }
  .table {
    display: table;
  }
  .h-2 {
    height: calc(var(--spacing) * 2);
  }
  .h-3 {
    height: calc(var(--spacing) * 3);
  }
  .h-3\.5 {
    height: calc(var(--spacing) * 3.5);
  }
  .h-4 {
    height: calc(var(--spacing) * 4);
  }
  .h-5 {
    height: calc(var(--spacing) * 5);
  }
  .h-6 {
    height: calc(var(--spacing) * 6);
  }
  .h-7 {
    height: calc(var(--spacing) * 7);
  }
  .h-8 {
    height: calc(var(--spacing) * 8);
  }
  .h-9 {
    height: calc(var(--spacing) * 9);
  }
  .h-10 {
    height: calc(var(--spacing) * 10);
  }
  .h-12 {
    height: calc(var(--spacing) * 12);
  }
  .h-16 {
    height: calc(var(--spacing) * 16);
  }
  .h-\[15px\] {
    height: 15px;
  }
  .h-\[18px\] {
    height: 18px;
  }
  .h-\[20px\] {
    height: 20px;
  }
  .h-full {
    height: 100%;
  }
  .max-h-\[80vh\] {
    max-height: 80vh;
  }
  .max-h-\[85vh\] {
    max-height: 85vh;
  }
  .max-h-\[88vh\] {
    max-height: 88vh;
  }
  .max-h-\[90vh\] {
    max-height: 90vh;
  }
  .max-h-\[180px\] {
    max-height: 180px;
  }
  .max-h-\[220px\] {
    max-height: 220px;
  }
  .max-h-\[240px\] {
    max-height: 240px;
  }
  .max-h-\[280px\] {
    max-height: 280px;
  }
  .max-h-\[400px\] {
    max-height: 400px;
  }
  .max-h-\[calc\(100vh-24px\)\] {
    max-height: calc(100vh - 24px);
  }
  .min-h-\[18px\] {
    min-height: 18px;
  }
  .min-h-\[60px\] {
    min-height: 60px;
  }
  .w-2 {
    width: calc(var(--spacing) * 2);
  }
  .w-3 {
    width: calc(var(--spacing) * 3);
  }
  .w-3\.5 {
    width: calc(var(--spacing) * 3.5);
  }
  .w-4 {
    width: calc(var(--spacing) * 4);
  }
  .w-5 {
    width: calc(var(--spacing) * 5);
  }
  .w-6 {
    width: calc(var(--spacing) * 6);
  }
  .w-7 {
    width: calc(var(--spacing) * 7);
  }
  .w-8 {
    width: calc(var(--spacing) * 8);
  }
  .w-9 {
    width: calc(var(--spacing) * 9);
  }
  .w-10 {
    width: calc(var(--spacing) * 10);
  }
  .w-11 {
    width: calc(var(--spacing) * 11);
  }
  .w-12 {
    width: calc(var(--spacing) * 12);
  }
  .w-16 {
    width: calc(var(--spacing) * 16);
  }
  .w-20 {
    width: calc(var(--spacing) * 20);
  }
  .w-24 {
    width: calc(var(--spacing) * 24);
  }
  .w-28 {
    width: calc(var(--spacing) * 28);
  }
  .w-\[15px\] {
    width: 15px;
  }
  .w-\[18px\] {
    width: 18px;
  }
  .w-\[20px\] {
    width: 20px;
  }
  .w-\[72px\] {
    width: 72px;
  }
  .w-\[200px\] {
    width: 200px;
  }
  .w-\[280px\] {
    width: 280px;
  }
  .w-\[300px\] {
    width: 300px;
  }
  .w-\[320px\] {
    width: 320px;
  }
  .w-\[340px\] {
    width: 340px;
  }
  .w-\[360px\] {
    width: 360px;
  }
  .w-full {
    width: 100%;
  }
  .max-w-\[90vw\] {
    max-width: 90vw;
  }
  .max-w-\[280px\] {
    max-width: 280px;
  }
  .max-w-\[300px\] {
    max-width: 300px;
  }
  .max-w-\[360px\] {
    max-width: 360px;
  }
  .max-w-\[420px\] {
    max-width: 420px;
  }
  .max-w-\[460px\] {
    max-width: 460px;
  }
  .max-w-\[640px\] {
    max-width: 640px;
  }
  .max-w-lg {
    max-width: var(--container-lg);
  }
  .max-w-md {
    max-width: var(--container-md);
  }
  .min-w-0 {
    min-width: calc(var(--spacing) * 0);
  }
  .min-w-\[18px\] {
    min-width: 18px;
  }
  .min-w-\[180px\] {
    min-width: 180px;
  }
  .min-w-\[200px\] {
    min-width: 200px;
  }
  .min-w-\[220px\] {
    min-width: 220px;
  }
  .flex-1 {
    flex: 1;
  }
  .flex-shrink {
    flex-shrink: 1;
  }
  .flex-shrink-0 {
    flex-shrink: 0;
  }
  .shrink {
    flex-shrink: 1;
  }
  .shrink-0 {
    flex-shrink: 0;
  }
  .grow {
    flex-grow: 1;
  }
  .translate-x-0 {
    --tw-translate-x: calc(var(--spacing) * 0);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .translate-x-5 {
    --tw-translate-x: calc(var(--spacing) * 5);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .-translate-y-1\/2 {
    --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .cursor-not-allowed {
    cursor: not-allowed;
  }
  .cursor-pointer {
    cursor: pointer;
  }
  .resize {
    resize: both;
  }
  .resize-y {
    resize: vertical;
  }
  .list-disc {
    list-style-type: disc;
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-cols-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .grid-cols-\[auto_1fr\] {
    grid-template-columns: auto 1fr;
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .items-baseline {
    align-items: baseline;
  }
  .items-center {
    align-items: center;
  }
  .items-end {
    align-items: flex-end;
  }
  .items-start {
    align-items: flex-start;
  }
  .items-stretch {
    align-items: stretch;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-center {
    justify-content: center;
  }
  .justify-end {
    justify-content: flex-end;
  }
  .gap-0 {
    gap: calc(var(--spacing) * 0);
  }
  .gap-0\.5 {
    gap: calc(var(--spacing) * 0.5);
  }
  .gap-1 {
    gap: calc(var(--spacing) * 1);
  }
  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-2\.5 {
    gap: calc(var(--spacing) * 2.5);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .space-y-1 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-2 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-3 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-4 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .gap-x-3 {
    column-gap: calc(var(--spacing) * 3);
  }
  .gap-x-4 {
    column-gap: calc(var(--spacing) * 4);
  }
  .gap-x-6 {
    column-gap: calc(var(--spacing) * 6);
  }
  .gap-y-1 {
    row-gap: calc(var(--spacing) * 1);
  }
  .gap-y-1\.5 {
    row-gap: calc(var(--spacing) * 1.5);
  }
  .self-center {
    align-self: center;
  }
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .overflow-hidden {
    overflow: hidden;
  }
  .overflow-y-auto {
    overflow-y: auto;
  }
  .rounded {
    border-radius: 0.25rem;
  }
  .rounded-2xl {
    border-radius: var(--radius-2xl);
  }
  .rounded-full {
    border-radius: calc(infinity * 1px);
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .rounded-md {
    border-radius: var(--radius-md);
  }
  .rounded-xl {
    border-radius: var(--radius-xl);
  }
  .\!rounded-b-none {
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .\!border-0 {
    border-style: var(--tw-border-style) !important;
    border-width: 0px !important;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-2 {
    border-style: var(--tw-border-style);
    border-width: 2px;
  }
  .border-t {
    border-top-style: var(--tw-border-style);
    border-top-width: 1px;
  }
  .\!border-b {
    border-bottom-style: var(--tw-border-style) !important;
    border-bottom-width: 1px !important;
  }
  .border-b {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }
  .border-none {
    --tw-border-style: none;
    border-style: none;
  }
  .bg-black\/40 {
    background-color: color-mix(in srgb, #000 40%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-black) 40%, transparent);
    }
  }
  .bg-red-500 {
    background-color: var(--color-red-500);
  }
  .bg-transparent {
    background-color: transparent;
  }
  .bg-white {
    background-color: var(--color-white);
  }
  .p-0 {
    padding: calc(var(--spacing) * 0);
  }
  .p-2 {
    padding: calc(var(--spacing) * 2);
  }
  .p-3 {
    padding: calc(var(--spacing) * 3);
  }
  .p-4 {
    padding: calc(var(--spacing) * 4);
  }
  .p-5 {
    padding: calc(var(--spacing) * 5);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .p-10 {
    padding: calc(var(--spacing) * 10);
  }
  .\!px-2 {
    padding-inline: calc(var(--spacing) * 2) !important;
  }
  .px-1 {
    padding-inline: calc(var(--spacing) * 1);
  }
  .px-2 {
    padding-inline: calc(var(--spacing) * 2);
  }
  .px-2\.5 {
    padding-inline: calc(var(--spacing) * 2.5);
  }
  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .px-5 {
    padding-inline: calc(var(--spacing) * 5);
  }
  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }
  .px-8 {
    padding-inline: calc(var(--spacing) * 8);
  }
  .px-\[3px\] {
    padding-inline: 3px;
  }
  .\!py-1 {
    padding-block: calc(var(--spacing) * 1) !important;
  }
  .py-1 {
    padding-block: calc(var(--spacing) * 1);
  }
  .py-1\.5 {
    padding-block: calc(var(--spacing) * 1.5);
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .py-2\.5 {
    padding-block: calc(var(--spacing) * 2.5);
  }
  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }
  .py-4 {
    padding-block: calc(var(--spacing) * 4);
  }
  .py-5 {
    padding-block: calc(var(--spacing) * 5);
  }
  .py-8 {
    padding-block: calc(var(--spacing) * 8);
  }
  .py-12 {
    padding-block: calc(var(--spacing) * 12);
  }
  .py-16 {
    padding-block: calc(var(--spacing) * 16);
  }
  .pt-2 {
    padding-top: calc(var(--spacing) * 2);
  }
  .pt-3 {
    padding-top: calc(var(--spacing) * 3);
  }
  .pt-4 {
    padding-top: calc(var(--spacing) * 4);
  }
  .pr-1\.5 {
    padding-right: calc(var(--spacing) * 1.5);
  }
  .pr-16 {
    padding-right: calc(var(--spacing) * 16);
  }
  .pb-1 {
    padding-bottom: calc(var(--spacing) * 1);
  }
  .pb-3 {
    padding-bottom: calc(var(--spacing) * 3);
  }
  .pb-20 {
    padding-bottom: calc(var(--spacing) * 20);
  }
  .pl-3 {
    padding-left: calc(var(--spacing) * 3);
  }
  .pl-5 {
    padding-left: calc(var(--spacing) * 5);
  }
  .text-center {
    text-align: center;
  }
  .text-left {
    text-align: left;
  }
  .text-right {
    text-align: right;
  }
  .align-\[-0\.2em\] {
    vertical-align: -0.2em;
  }
  .align-\[-0\.125em\] {
    vertical-align: -0.125em;
  }
  .\!text-xs {
    font-size: var(--text-xs) !important;
    line-height: var(--tw-leading, var(--text-xs--line-height)) !important;
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-base {
    font-size: var(--text-base);
    line-height: var(--tw-leading, var(--text-base--line-height));
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .text-\[10px\] {
    font-size: 10px;
  }
  .text-\[11px\] {
    font-size: 11px;
  }
  .text-\[12px\] {
    font-size: 12px;
  }
  .text-\[13px\] {
    font-size: 13px;
  }
  .text-\[15px\] {
    font-size: 15px;
  }
  .leading-none {
    --tw-leading: 1;
    line-height: 1;
  }
  .leading-relaxed {
    --tw-leading: var(--leading-relaxed);
    line-height: var(--leading-relaxed);
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .font-normal {
    --tw-font-weight: var(--font-weight-normal);
    font-weight: var(--font-weight-normal);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .tracking-normal {
    --tw-tracking: var(--tracking-normal);
    letter-spacing: var(--tracking-normal);
  }
  .tracking-wide {
    --tw-tracking: var(--tracking-wide);
    letter-spacing: var(--tracking-wide);
  }
  .tracking-wider {
    --tw-tracking: var(--tracking-wider);
    letter-spacing: var(--tracking-wider);
  }
  .text-wrap {
    text-wrap: wrap;
  }
  .break-words {
    overflow-wrap: break-word;
  }
  .whitespace-nowrap {
    white-space: nowrap;
  }
  .whitespace-pre-wrap {
    white-space: pre-wrap;
  }
  .text-\[var\(--color-warning\)\] {
    color: var(--color-warning);
  }
  .text-white {
    color: var(--color-white);
  }
  .capitalize {
    text-transform: capitalize;
  }
  .lowercase {
    text-transform: lowercase;
  }
  .normal-case {
    text-transform: none;
  }
  .uppercase {
    text-transform: uppercase;
  }
  .italic {
    font-style: italic;
  }
  .ordinal {
    --tw-ordinal: ordinal;
    font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
  }
  .line-through {
    text-decoration-line: line-through;
  }
  .underline {
    text-decoration-line: underline;
  }
  .opacity-40 {
    opacity: 40%;
  }
  .opacity-50 {
    opacity: 50%;
  }
  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-md {
    --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .ring {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .backdrop-filter {
    -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
    backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-all {
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-transform {
    transition-property: transform, translate, scale, rotate;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .duration-75 {
    --tw-duration: 75ms;
    transition-duration: 75ms;
  }
  .duration-100 {
    --tw-duration: 100ms;
    transition-duration: 100ms;
  }
  .duration-150 {
    --tw-duration: 150ms;
    transition-duration: 150ms;
  }
  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }
  .outline-none {
    --tw-outline-style: none;
    outline-style: none;
  }
  .select-all {
    -webkit-user-select: all;
    user-select: all;
  }
  .select-none {
    -webkit-user-select: none;
    user-select: none;
  }
  .first\:mt-0 {
    &:first-child {
      margin-top: calc(var(--spacing) * 0);
    }
  }
  .last\:border-0 {
    &:last-child {
      border-style: var(--tw-border-style);
      border-width: 0px;
    }
  }
  .last\:border-none {
    &:last-child {
      --tw-border-style: none;
      border-style: none;
    }
  }
  .hover\:underline {
    &:hover {
      @media (hover: hover) {
        text-decoration-line: underline;
      }
    }
  }
  .hover\:opacity-80 {
    &:hover {
      @media (hover: hover) {
        opacity: 80%;
      }
    }
  }
  .hover\:opacity-90 {
    &:hover {
      @media (hover: hover) {
        opacity: 90%;
      }
    }
  }
  .active\:scale-95 {
    &:active {
      --tw-scale-x: 95%;
      --tw-scale-y: 95%;
      --tw-scale-z: 95%;
      scale: var(--tw-scale-x) var(--tw-scale-y);
    }
  }
  .disabled\:cursor-not-allowed {
    &:disabled {
      cursor: not-allowed;
    }
  }
  .disabled\:opacity-40 {
    &:disabled {
      opacity: 40%;
    }
  }
  .disabled\:opacity-50 {
    &:disabled {
      opacity: 50%;
    }
  }
  .min-\[512px\]\:flex-row {
    @media (width >= 512px) {
      flex-direction: row;
    }
  }
  .min-\[512px\]\:items-center {
    @media (width >= 512px) {
      align-items: center;
    }
  }
  .min-\[512px\]\:justify-between {
    @media (width >= 512px) {
      justify-content: space-between;
    }
  }
  .min-\[512px\]\:gap-2 {
    @media (width >= 512px) {
      gap: calc(var(--spacing) * 2);
    }
  }
  .md\:grid-cols-4 {
    @media (width >= 48rem) {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
}
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-page);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.2s, color 0.2s;
}
#app {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#install-banner {
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  color: var(--text-primary);
  transition: opacity 0.3s ease;
}
#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}
#loading-mark {
  width: 104px;
  height: 104px;
  border-radius: 26px;
}
#loading-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
#loading-check {
  transition: stroke-dashoffset 0.35s ease;
}
#loading-mark.done {
  animation: loading-pop 0.38s ease;
  box-shadow: 0 0 0 6px var(--shadow-focus);
}
@keyframes loading-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  #loading-check {
    transition: none;
  }
  #loading-mark.done {
    animation: none;
    box-shadow: none;
  }
}
.loading-stage {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-secondary);
}
.loading-note {
  margin-top: 20px;
  max-width: min(340px, 80vw);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-tertiary);
}
#loading-retry {
  margin-top: 24px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-primary);
  background: var(--bg-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
#loading-retry:hover {
  opacity: 0.9;
}
#todo-items {
  position: relative;
}
.date-group-header {
  position: sticky;
  top: 0;
  z-index: 10;
}
.date-group-header::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: 100%;
  height: 14px;
  background: var(--bg-page);
  pointer-events: none;
}
.group-show-completed-btn, .subtask-filter-toggle {
  transition: opacity 0.12s, color 0.12s;
}
.group-show-completed-btn[data-state="inherit"], .subtask-filter-toggle[data-state="inherit"] {
  opacity: 0.5;
}
.group-show-completed-btn[data-state="inherit"]:hover, .subtask-filter-toggle[data-state="inherit"]:hover {
  opacity: 0.85;
}
.group-show-completed-btn[data-state="show"], .subtask-filter-toggle[data-state="show"] {
  color: var(--bg-primary);
  font-weight: 600;
}
.group-show-completed-btn[data-state="hide"], .subtask-filter-toggle[data-state="hide"] {
  color: var(--text-secondary);
}
.subtask-filter-toggle {
  opacity: 1;
}
.subtask-filter-toggle[data-state="inherit"] {
  opacity: 0.45;
}
.group-hidden-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 1px 7px;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  flex-shrink: 0;
}
.group-collapse-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  text-align: left;
}
.group-collapse-btn:hover {
  color: var(--text-secondary);
}
.group-collapse-chevron {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.group-collapse-btn[aria-expanded="false"] .group-collapse-chevron {
  transform: rotate(-90deg);
}
@media (prefers-reduced-motion: reduce) {
  .group-collapse-chevron {
    transition: none;
  }
}
.group-collapsed-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 1px 7px;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  flex-shrink: 0;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-default, #ccc) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--border-default, #ccc);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--bg-scrollbar-hover, var(--text-tertiary, #999));
  background-clip: padding-box;
}
.todo-items::-webkit-scrollbar {
  width: 6px;
}
.todo-items::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
}
.todo-items:hover::-webkit-scrollbar-thumb {
  background: var(--bg-scrollbar-hover);
}
.notice-stack {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.notice {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: var(--shadow-md), var(--shadow-sm);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.notice--in {
  opacity: 1;
  transform: translateY(0);
}
.notice--out {
  opacity: 0;
  transform: translateY(-12px);
}
.notice--floating {
  position: fixed;
  top: 24px;
  left: 50%;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(-12px);
  z-index: 10000;
}
.notice--floating.notice--in {
  transform: translateX(-50%) translateY(0);
}
.notice--floating.notice--out {
  transform: translateX(-50%) translateY(-12px);
}
.notice-chip {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--notice-accent);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--notice-accent) 14%, var(--bg-surface));
  }
  color: var(--notice-accent);
}
.notice-chip svg {
  width: 18px;
  height: 18px;
}
.notice-body {
  flex: 1;
  min-width: 0;
  align-self: center;
}
.notice-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.notice-msg {
  font-size: 13px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.notice-title + .notice-msg {
  margin-top: 1px;
}
.notice-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.notice-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}
.notice-list li {
  font-size: 12.5px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-when {
  color: var(--text-tertiary);
}
.notice-inline-acts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  align-self: center;
}
.notice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.notice-act {
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.notice-act--link {
  border: none;
  background: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-link);
}
.notice-act--link:hover {
  background: var(--bg-hover);
}
.notice-act--primary {
  border: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-primary);
  color: var(--text-on-primary);
}
.notice-act--primary:hover {
  background: var(--bg-primary-hover);
}
.notice-act--ghost {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.notice-act--ghost:hover {
  background: var(--bg-hover);
}
.notice-act--busy {
  opacity: 0.5;
  pointer-events: none;
}
.notice-x {
  flex-shrink: 0;
  border: none;
  background: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  margin: -2px -4px 0 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}
.notice-x:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.notice-x svg {
  width: 14px;
  height: 14px;
}
.notice-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--notice-accent);
  opacity: 0.45;
  animation: noticeProgress linear forwards;
}
.notice--paused .notice-progress {
  animation-play-state: paused;
}
@keyframes noticeProgress {
  from {
    width: 100%;
  }
  to {
    width: 0;
  }
}
.notice-chip--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.notice-chip--sm svg {
  width: 14px;
  height: 14px;
}
.notice-chip--neutral {
  background: var(--bg-hover);
  color: var(--text-secondary);
}
.notice-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid var(--notice-accent);
  @supports (color: color-mix(in lab, red, red)) {
    border: 2px solid color-mix(in srgb, var(--notice-accent) 30%, transparent);
  }
  border-top-color: var(--notice-accent);
  animation: noticeSpin 1s linear infinite;
}
@keyframes noticeSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .notice {
    transition: opacity 0.15s ease !important;
    transform: none !important;
  }
  .notice--floating {
    transform: translateX(-50%) !important;
  }
  .notice-progress {
    display: none !important;
  }
}
@media (width < 48rem) {
  .desktop-only {
    display: none;
  }
  #main-content .px-6 {
    padding-left: 16px;
    padding-right: 16px;
  }
  .todo-item .todo-children {
    margin-left: 0.5rem;
  }
}
.mobile-more-btn {
  display: none;
}
.offline-banner {
  background: #d97706;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 500;
}
.sync-banner {
  background: #15803d;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.sync-banner-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.8;
}
.sync-banner-close:hover {
  opacity: 1;
}
.user-menu-wrapper {
  position: relative;
}
.user-menu-trigger {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: normal;
  transition: background 0.15s;
}
.user-menu-trigger:hover {
  background: var(--bg-hover);
}
.header-connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #d93025;
  box-shadow: 0 0 5px rgba(217, 48, 37, 0.5);
}
.header-connection-dot.connected {
  background: #16a34a;
  box-shadow: 0 0 5px rgba(22, 163, 74, 0.5);
}
.header-connection-dot.polling {
  background: #d97706;
  box-shadow: 0 0 5px rgba(217, 119, 6, 0.5);
}
.header-connection-dot.connecting {
  background: #3b82f6;
  box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.user-menu-chevron {
  font-size: 0.625rem;
  line-height: 1;
  color: var(--text-tertiary);
}
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  z-index: 1400;
  transition: opacity 0.25s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.drawer-scrim.open {
  opacity: 1;
}
.settings-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: 360px;
  max-width: 88vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
  z-index: 1401;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  overscroll-behavior: contain;
}
.settings-drawer.open {
  transform: translateX(0);
}
.settings-drawer.no-anim {
  transition: none;
}
.detail-drawer {
  position: fixed;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  z-index: 1401;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  overscroll-behavior: contain;
}
.detail-drawer.no-anim {
  transition: none;
}
.detail-drawer--right {
  top: 0;
  right: 0;
  height: 100dvh;
  width: 420px;
  max-width: 92vw;
  border-left: 1px solid var(--border-default);
  transform: translateX(100%);
}
.detail-drawer--right.open {
  transform: translateX(0);
}
.detail-drawer--bottom {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: 85dvh;
  border-top: 1px solid var(--border-default);
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
}
.detail-drawer--bottom.open {
  transform: translateY(0);
}
.detail-drawer-grip {
  display: none;
}
.detail-drawer--bottom .detail-drawer-grip {
  display: block;
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: var(--border-default);
  flex-shrink: 0;
}
.detail-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.detail-drawer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-drawer-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-drawer-close:hover {
  background: var(--bg-hover);
}
.detail-surface .dl-root {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.detail-surface .dl-content {
  flex: 1 0 auto;
}
.detail-surface .dl-footer {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  container-type: inline-size;
}
.detail-surface .dl-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px 8px;
}
.detail-surface .dl-bar .compact-action-btn {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}
.detail-surface .dl-bar-label {
  display: none;
}
@container (min-width: 720px) {
  .detail-surface .dl-bar-label {
    display: inline;
  }
}
.detail-surface .dl-sub-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  text-align: left;
  color: var(--text-secondary);
}
.detail-surface button.dl-sub-progress {
  cursor: pointer;
}
.detail-surface .dl-sub-progress-none {
  color: var(--text-tertiary);
}
.detail-surface .dl-sub-progress-count {
  color: var(--text-primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.detail-surface .dl-sub-progress-bar {
  flex: 0 0 150px;
  max-width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--border-light);
  overflow: hidden;
}
.detail-surface .dl-sub-progress-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--bg-primary);
}
.detail-surface .dl-sub-progress-hint {
  color: var(--text-tertiary);
  white-space: nowrap;
}
.detail-surface button.dl-sub-progress:hover .dl-sub-progress-hint {
  color: var(--text-secondary);
}
[data-detail-layout="segments"] .detail-surface .dl-sg-top {
  padding: 14px 16px 0;
}
[data-detail-layout="segments"] .detail-surface .dl-sg-id {
  display: flex;
  align-items: center;
  gap: 8px;
}
[data-detail-layout="segments"] .detail-surface .dl-sg-id .compact-title-input {
  font-size: 16px;
  font-weight: 600;
}
[data-detail-layout="segments"] .detail-surface .dl-sg-when {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
[data-detail-layout="segments"] .detail-surface .dl-sg-sep {
  color: var(--text-tertiary);
}
[data-detail-layout="segments"] .detail-surface .dl-sg-pane {
  padding: 6px 16px 0;
}
[data-detail-layout="segments"] .detail-surface .dl-sg-pane-flow {
  padding: 14px 16px 0;
}
[data-detail-layout="segments"] .detail-surface .dl-sg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 12px 0 4px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.detail-surface .dl-tabs {
  display: flex;
  gap: 4px;
  margin: 16px 16px 0;
  padding: 3px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 11px;
}
.detail-surface .dl-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}
.detail-surface .dl-tab:hover {
  color: var(--text-primary);
}
.detail-surface .dl-tab-on {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.detail-surface .dl-tab-n {
  font-size: 10px;
  color: var(--text-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1px 6px;
  font-variant-numeric: tabular-nums;
}
.detail-surface .dl-tab-on .dl-tab-n {
  border-color: var(--border-default);
  color: var(--text-secondary);
}
.detail-surface .dl-f {
  display: grid;
  grid-template-columns: 20px 84px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 42px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.detail-surface .dl-f-i {
  color: var(--text-tertiary);
  display: flex;
}
.detail-surface .dl-f-k {
  font-size: 13px;
  color: var(--text-tertiary);
}
.detail-surface .dl-f-v {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.detail-surface .dl-f-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
[data-detail-layout="spread"] .detail-surface .dl-root, [data-detail-layout="binder"] .detail-surface .dl-root, [data-detail-layout="index"] .detail-surface .dl-root, [data-detail-layout="shelf"] .detail-surface .dl-root {
  container: dl-panel / inline-size;
}
.detail-surface .dl-split-top {
  padding: 14px 16px 0;
}
.detail-surface .dl-split-id {
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-surface .dl-split-id .compact-title-input {
  font-size: 16px;
  font-weight: 600;
}
.detail-surface .dl-split-when {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.detail-surface .dl-split-sep {
  color: var(--text-tertiary);
}
.detail-surface .dl-split-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 12px 0 4px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.detail-surface .dl-split .dl-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.detail-surface .dl-split-cols {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 22px;
  padding: 6px 16px 0;
  min-height: 0;
}
.detail-surface .dl-split-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.detail-surface .dl-split-right {
  gap: 4px;
}
.detail-surface .dl-pane-desc {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 12px;
}
.detail-surface .dl-pane-desc .compact-desc-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.detail-surface .dl-pane-desc .compact-desc-input {
  flex: 1 1 auto;
  min-height: 96px;
}
.detail-surface .dl-pane-activity {
  max-height: 46vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@container dl-panel (width < 640px) {
  [data-detail-layout="spread"] .detail-surface .dl-split-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  [data-detail-layout="spread"] .detail-surface .dl-pane-desc {
    flex: 0 0 auto;
  }
  [data-detail-layout="spread"] .detail-surface .dl-pane-activity {
    max-height: none;
    overflow-y: visible;
  }
}
[data-detail-layout="binder"] .detail-surface .dl-tabs {
  display: none;
}
.detail-surface .dl-ix-rows {
  display: none;
}
.detail-surface .dl-ix-row {
  display: grid;
  grid-template-columns: 20px auto minmax(0, 1fr) 12px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 6px 0;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: none;
  font-size: 13px;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
}
.detail-surface .dl-ix-row:hover {
  color: var(--text-link);
}
.detail-surface .dl-ix-i {
  color: var(--text-tertiary);
  display: flex;
}
.detail-surface .dl-ix-k {
  color: var(--text-tertiary);
}
.detail-surface .dl-ix-v {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.detail-surface .dl-ix-chev {
  color: var(--text-tertiary);
  transition: transform 0.12s ease;
}
.detail-surface .dl-ix-row-on {
  color: var(--text-link);
  border-bottom-color: var(--border-default);
}
.detail-surface .dl-ix-row-on .dl-ix-chev {
  transform: rotate(90deg);
}
.detail-surface .dl-shelf-count {
  display: none;
}
.detail-surface .dl-bar .dl-shelf-count {
  flex: 0 0 auto;
}
.detail-surface .dl-shelf-n {
  font-variant-numeric: tabular-nums;
}
.detail-surface .dl-shelf-count-on {
  background: var(--bg-hover);
  color: var(--text-primary);
}
@container dl-panel (width < 736px) {
  .detail-surface .dl-split-paged .dl-split-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-surface .dl-split-paged .dl-pane-desc {
    flex: 0 0 auto;
  }
  .detail-surface .dl-split-paged .dl-pane-activity {
    max-height: none;
    overflow-y: visible;
  }
  .detail-surface .dl-split-paged[data-detail-tab="details"] .dl-pane:not(.dl-pane-details), .detail-surface .dl-split-paged[data-detail-tab="notes"] .dl-pane:not(.dl-pane-notes), .detail-surface .dl-split-paged[data-detail-tab="activity"] .dl-pane:not(.dl-pane-activity) {
    display: none;
  }
  [data-detail-layout="binder"] .detail-surface .dl-tabs {
    display: flex;
  }
  [data-detail-layout="index"] .detail-surface .dl-ix-rows {
    display: block;
  }
  [data-detail-layout="shelf"] .detail-surface .dl-shelf-count {
    display: flex;
  }
  [data-detail-layout="shelf"] .detail-surface [data-detail-tab="notes"] .dl-split-right, [data-detail-layout="shelf"] .detail-surface [data-detail-tab="activity"] .dl-split-right {
    margin: 10px -16px 0;
    padding: 8px 16px 4px;
    border-top: 1px solid var(--border-default);
    background: var(--bg-page);
    max-height: 42vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
.att-section {
  border-radius: 8px;
}
.att-section.att-drop-active {
  outline: 2px dashed var(--bg-primary);
  outline-offset: 4px;
  background: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-primary) 6%, transparent);
  }
}
.att-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.att-thumb {
  position: relative;
  width: 76px;
}
.att-thumb-open {
  display: block;
  width: 76px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-hover);
  cursor: zoom-in;
}
.att-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.att-thumb-off {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}
.att-thumb-name {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.att-thumb-acts {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.att-thumb:hover .att-thumb-acts, .att-thumb:focus-within .att-thumb-acts {
  opacity: 1;
}
.att-ovl-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: var(--bg-surface);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
  }
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
}
.att-ovl-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.att-ovl-danger:hover {
  color: var(--text-error, #b91c1c);
}
.att-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.att-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.att-row .att-ovl-btn {
  opacity: 0;
  box-shadow: none;
  background: transparent;
}
.att-row:hover .att-ovl-btn, .att-row:focus-within .att-ovl-btn {
  opacity: 1;
}
@media (hover: none) {
  .att-thumb-acts, .att-row .att-ovl-btn {
    opacity: 1;
  }
}
.att-kind {
  flex: none;
  min-width: 40px;
  padding: 3px 5px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-hover);
}
.att-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
}
button.att-row-main:hover {
  background: var(--bg-hover);
}
.att-row-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-primary);
}
.att-row-size {
  flex: none;
  font-size: 11px;
  color: var(--text-tertiary);
}
.att-row-uploading .att-row-main {
  cursor: default;
}
.att-progress {
  flex: 1;
  height: 4px;
  min-width: 60px;
  border-radius: 2px;
  background: var(--border-light);
  overflow: hidden;
  align-self: center;
}
.att-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--bg-primary);
  transition: width 0.15s ease;
}
.att-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px dashed var(--text-secondary);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px dashed color-mix(in srgb, var(--text-secondary) 45%, transparent);
  }
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}
.att-add:hover:not(:disabled) {
  border-color: var(--bg-primary);
  color: var(--text-primary);
  background: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-primary) 5%, transparent);
  }
}
.att-add-disabled, .att-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.att-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text-tertiary);
}
.attv-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgb(0 0 0 / 0.92);
  touch-action: none;
  animation: attv-fade-in 0.15s ease;
}
@keyframes attv-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.attv-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.attv-img {
  max-width: none;
  max-height: none;
  flex: none;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}
.attv-img.attv-pannable {
  cursor: grab;
}
.attv-img.attv-panning {
  cursor: grabbing;
}
.attv-img.attv-anim {
  transition: transform 0.18s ease;
}
.attv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  cursor: pointer;
}
.attv-btn:hover {
  background: rgb(255 255 255 / 0.2);
}
.attv-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.attv-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
}
.attv-counter {
  margin-right: auto;
  font-size: 13px;
  color: rgb(255 255 255 / 0.75);
  font-variant-numeric: tabular-nums;
}
.attv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 72px;
  font-size: 32px;
  line-height: 1;
  padding-bottom: 6px;
}
.attv-prev {
  left: max(8px, env(safe-area-inset-left, 0px));
}
.attv-next {
  right: max(8px, env(safe-area-inset-right, 0px));
}
.attv-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, rgb(0 0 0 / 0.6));
  pointer-events: none;
}
.attv-caption-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #fff;
}
.attv-caption-size {
  flex: none;
  font-size: 11px;
  color: rgb(255 255 255 / 0.65);
}
.attv-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgb(255 255 255 / 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: attv-spin 0.8s linear infinite;
  pointer-events: none;
}
@keyframes attv-spin {
  to {
    transform: rotate(360deg);
  }
}
.attv-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(320px, 80vw);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.85);
}
.attv-retry {
  width: auto;
  padding: 0 16px;
  font-size: 13px;
}
@media (prefers-reduced-motion: reduce) {
  .attv-overlay {
    animation: none;
  }
  .attv-img.attv-anim {
    transition: none;
  }
}
.detail-drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  position: relative;
}
.compact-desc-wrap {
  position: relative;
}
.compact-desc-expand-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0.65;
  z-index: 2;
}
.compact-desc-expand-btn:hover {
  opacity: 1;
  background: var(--bg-hover);
  color: var(--text-primary);
}
.compact-desc-expand-btn .desc-ico-collapse {
  display: none;
}
.detail-surface.desc-expanded:has(.compact-desc-wrap) {
  overflow: hidden;
}
.detail-drawer--bottom:has(.desc-expanded .compact-desc-wrap) {
  height: 85dvh;
}
.detail-surface.desc-expanded:has(.compact-desc-wrap) .dl-root {
  height: 100%;
}
.detail-surface.desc-expanded:has(.compact-desc-wrap) .dl-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.detail-surface.desc-expanded:has(.compact-desc-wrap) .dl-content > *:not(.dl-keep):not(:has(.compact-desc-wrap)) {
  display: none;
}
.detail-surface.desc-expanded:has(.compact-desc-wrap) .dl-content > *:has(.compact-desc-wrap), .detail-surface.desc-expanded:has(.compact-desc-wrap) .compact-desc-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.detail-surface.desc-expanded:has(.compact-desc-wrap) .dl-sg-pane-flow > .att-section {
  display: none;
}
.detail-surface.desc-expanded:has(.compact-desc-wrap) .dl-split-cols > *:not(:has(.compact-desc-wrap)), .detail-surface.desc-expanded:has(.compact-desc-wrap) .dl-split-col > *:not(:has(.compact-desc-wrap)) {
  display: none;
}
.detail-surface.desc-expanded:has(.compact-desc-wrap) .dl-split-cols, .detail-surface.desc-expanded:has(.compact-desc-wrap) .dl-split-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.detail-surface.desc-expanded:has(.compact-desc-wrap) .compact-desc-input {
  flex: 1;
  height: 100%;
  min-height: 0;
  resize: none;
}
.detail-surface.desc-expanded .compact-desc-expand-btn .desc-ico-expand {
  display: none;
}
.detail-surface.desc-expanded .compact-desc-expand-btn .desc-ico-collapse {
  display: block;
}
.detail-surface .compact-detail {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  animation: none;
}
.todo-row-detail-open {
  background: var(--bg-hover);
}
.priority-flag-1 {
  color: #3b82f6;
}
.priority-flag-2 {
  color: #d97706;
}
.priority-flag-3 {
  color: #ef4444;
}
.todo-priority-1 {
  box-shadow: inset 3px 0 0 0 #3b82f6;
}
.todo-priority-2 {
  box-shadow: inset 3px 0 0 0 #d97706;
}
.todo-priority-3 {
  box-shadow: inset 3px 0 0 0 #ef4444;
}
.drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.drawer-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.drawer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--text-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  flex-shrink: 0;
}
.drawer-identity-text {
  min-width: 0;
}
.drawer-email {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-connection {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.drawer-close:hover {
  background: var(--bg-hover);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}
.drawer-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 4px 12px 8px;
  background: var(--bg-hover);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  transition: border-color 0.15s;
}
.drawer-search:focus-within {
  border-color: var(--bg-primary);
}
.drawer-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  line-height: 1;
  color: var(--text-tertiary);
  pointer-events: none;
}
.drawer-search-input {
  width: 100%;
  padding: 8px 32px 8px 32px;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--text-primary);
  line-height: 1.4;
}
.drawer-search-input::placeholder {
  color: var(--text-tertiary);
}
.drawer-search-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: none;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.drawer-search-clear:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}
.search-hidden {
  display: none !important;
}
.drawer-group {
  border-bottom: 1px solid var(--border-light);
}
.drawer-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.drawer-group-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}
.drawer-group-chevron {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  transition: transform 0.25s ease;
}
.drawer-group.collapsed .drawer-group-chevron {
  transform: rotate(-90deg);
}
.drawer-group-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.25s ease;
}
.drawer-group.collapsed .drawer-group-body {
  grid-template-rows: 0fr;
}
.drawer-group-inner {
  overflow: hidden;
  min-height: 0;
}
.drawer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 16px;
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.drawer-row:hover {
  background: var(--bg-hover);
}
.drawer-row-icon {
  width: 22px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.drawer-row-label {
  flex: 1;
  white-space: nowrap;
}
.drawer-row-value {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}
.drawer-row-arrow {
  color: var(--text-tertiary);
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
}
.drawer-row-standalone {
  border-bottom: 1px solid var(--border-light);
}
.drawer-row-danger .drawer-row-label, .drawer-row-danger .drawer-row-icon {
  color: #d93025;
}
.drawer-row-danger:hover {
  background: rgba(217, 48, 37, 0.08);
}
.drawer-row:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.drawer-row:disabled:hover {
  background: none;
}
.drawer-note-offline {
  color: var(--text-secondary);
}
.drawer-row-control {
  cursor: default;
}
.drawer-row-control:hover {
  background: none;
}
.drawer-row-slider {
  flex-wrap: wrap;
  gap: 4px;
  cursor: default;
}
.drawer-row-slider:hover {
  background: none;
}
.drawer-slider-group {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}
.drawer-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: repeating-linear-gradient(90deg, var(--text-secondary) 0 1px, transparent 1px calc(100% / 6)) center / 100% 8px no-repeat, var(--border-default);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.drawer-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  cursor: pointer;
}
.drawer-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  cursor: pointer;
}
.drawer-slider-value {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  cursor: text;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.drawer-slider-value:hover {
  border-color: var(--border-default);
}
.drawer-slider-value:focus {
  outline: none;
  color: var(--text-primary);
  border-color: var(--bg-primary);
  text-align: center;
}
.drawer-switch {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 12px;
  background: var(--border-default);
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.drawer-switch.on {
  background: var(--bg-primary);
}
.drawer-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.drawer-switch.on .drawer-switch-knob {
  transform: translateX(16px);
}
.drawer-segmented {
  display: flex;
  gap: 4px;
  background: var(--bg-hover);
  border-radius: 8px;
  padding: 3px;
}
.drawer-segmented-btn {
  padding: 5px 12px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.drawer-segmented-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.drawer-segmented-wrap {
  flex-wrap: wrap;
}
.user-menu-layout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.layout-beta-badge {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.05rem 0.25rem;
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-on-primary);
  line-height: 1.4;
}
.drawer-subgroup-chevron {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.drawer-subgroup.open .drawer-subgroup-chevron {
  transform: rotate(180deg);
}
.drawer-subgroup-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.drawer-subgroup.open .drawer-subgroup-body {
  grid-template-rows: 1fr;
}
.drawer-subgroup-inner {
  overflow: hidden;
  min-height: 0;
}
.drawer-theme-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 2px 12px 10px 16px;
}
.drawer-theme-list > .theme-row {
  min-width: 0;
}
.theme-row {
  display: flex;
  align-items: center;
  width: 100%;
}
.theme-fav-btn {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.1s, color 0.1s;
}
.theme-row:hover .theme-fav-btn, .theme-fav-btn.is-fav {
  opacity: 1;
}
.theme-fav-btn.is-fav {
  color: var(--color-warning);
}
.theme-fav-separator {
  height: 1px;
  background: var(--border-light);
  margin: 2px 4px;
  opacity: 0.7;
}
.drawer-account-row {
  gap: 12px;
}
.drawer-account-row.is-active {
  cursor: default;
}
.drawer-account-row.is-active:hover {
  background: none;
}
.drawer-account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--text-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
}
.drawer-account-row .drawer-row-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-account-pin {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}
.drawer-account-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-on-primary);
  background: var(--bg-primary);
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
}
.drawer-note {
  padding: 6px 16px 10px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.family-badge-pending {
  background: var(--bg-hover);
  color: var(--text-secondary);
}
.family-member-row {
  cursor: default;
}
.family-member-remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  line-height: 1;
}
.family-member-remove:hover {
  color: var(--danger, #dc2626);
  background: var(--bg-hover);
}
.family-member-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.family-member-remove:disabled:hover {
  color: var(--text-tertiary);
  background: none;
}
.plan-tier-row {
  padding: 6px 16px 10px;
}
.plan-tier-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-on-primary);
  background: var(--bg-primary);
  border-radius: 999px;
  padding: 3px 10px;
}
.plan-tier-free {
  background: var(--bg-hover);
  color: var(--text-secondary);
}
.plan-usage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.plan-usage-count {
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.plan-usage-row.is-full .plan-usage-count {
  color: var(--bg-destructive, #c0392b);
  font-weight: 600;
}
.plan-usage-row:last-of-type {
  padding-bottom: 14px;
}
.plan-upgrade-btn {
  margin-top: 6px;
}
.drawer-footer {
  flex-shrink: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-light);
}
.drawer-signout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.drawer-signout:hover {
  background: var(--bg-hover);
}
body.drawer-open-lock {
  overflow: hidden;
}
.user-menu-connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.user-menu-connection-dot.connected {
  background: #16a34a;
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.5);
}
.user-menu-connection-dot.polling {
  background: #d97706;
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.5);
}
.user-menu-connection-dot.connecting {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.user-menu-connection-dot.disconnected {
  background: #d93025;
  box-shadow: 0 0 6px rgba(217, 48, 37, 0.5);
}
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.user-menu-connection-text {
  font-size: 13px;
  color: var(--text-primary);
}
@media (hover: hover) {
  .todo-row .item-actions {
    display: none;
  }
  .todo-row:hover .item-actions {
    display: flex;
    gap: 4px;
  }
}
@media (pointer: coarse) {
  .todo-row {
    overflow: hidden;
  }
  .todo-row .item-actions, .todo-row .due-date-btn, .todo-row .repeat-btn {
    display: none !important;
    pointer-events: none !important;
  }
  .todo-row .mobile-more-btn {
    display: flex;
  }
  .todo-row .todo-title {
    min-width: 0;
  }
}
[data-task-row], .cal-chip {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
[data-task-row] :is(input, textarea, [contenteditable=""], [contenteditable="true"]) {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
.drag-handle {
  cursor: grab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 32px;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  color: var(--text-tertiary);
  user-select: none;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.drag-handle:hover {
  color: var(--text-primary);
  background: var(--bg-hover-strong);
}
.drag-handle.dragging {
  opacity: 0.3;
}
.drag-handle.drag-disabled {
  cursor: default;
  opacity: 0.25;
}
@media (pointer: coarse) {
  .drag-handle {
    width: 32px;
    height: 36px;
    font-size: 20px;
  }
}
.todo-children {
  min-height: 6px;
  padding-top: 2px;
  padding-bottom: 2px;
  transition: min-height 0.15s;
}
.todo-children.sortable-droppable-active {
  background: var(--bg-subtle-blue);
  border-radius: 6px;
}
.sortable-ghost {
  opacity: 0.35 !important;
  background: var(--bg-active) !important;
  border-radius: 6px;
}
.sortable-drag {
  opacity: 0.8;
}
.todo-item.sortable-chosen > .todo-row {
  background: var(--bg-hover-strong);
}
.change-password-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  width: min(360px, calc(100vw - 32px));
}
.change-password-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.change-password-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.change-password-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.change-password-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.change-password-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.change-password-input:focus {
  border-color: var(--border-focus);
}
.change-password-error {
  font-size: 12px;
  color: #d93025;
  margin: 0;
}
.change-password-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.change-password-cancel {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  transition: background 0.15s;
}
.change-password-cancel:hover {
  background: var(--bg-hover);
}
.change-password-submit {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg-primary);
  color: var(--text-on-primary);
  font-family: inherit;
  transition: opacity 0.15s;
}
.change-password-submit:hover {
  opacity: 0.9;
}
.change-password-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.export-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.export-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: min(600px, calc(100vw - 32px));
  max-height: min(80vh, 700px);
  display: flex;
  flex-direction: column;
}
.export-dialog-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.export-dialog-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}
.export-dialog-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px;
}
.export-dialog-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border-default);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.export-tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.export-tree-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}
.export-tree-label {
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-word;
}
.export-tree-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-left: auto;
  white-space: nowrap;
}
.export-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}
.export-select-all input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}
.export-select-all span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.notes-section {
  margin-top: 4px;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}
.notes-section-header {
  padding: 4px 8px;
  margin-bottom: 4px;
}
.notes-section-title {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
  padding: 0 4px;
}
.notes-empty {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding: 8px;
  text-align: center;
}
.note-entry {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 10px;
  position: relative;
}
.note-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.note-author {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.note-timestamp {
  font-size: 0.625rem;
  color: var(--text-tertiary);
}
.note-edited {
  font-size: 0.625rem;
  color: var(--text-tertiary);
  font-style: italic;
}
.agent-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-light);
  margin: 6px 0 10px;
}
.agent-tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}
.agent-tab:hover {
  color: var(--text-primary);
}
.agent-tab.is-active {
  color: var(--text-link);
  border-bottom-color: var(--border-focus);
}
.agent-activity-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.agent-activity-filters select {
  flex: 1;
  min-width: 0;
}
.agent-activity-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.agent-activity-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--bg-secondary);
}
.agent-activity-card.is-revoked {
  opacity: 0.75;
}
.agent-activity-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.agent-activity-card-name {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-primary);
}
.agent-activity-card-counts {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.agent-activity-card-meta {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}
.agent-activity-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 9999px;
  white-space: nowrap;
  background: var(--bg-active);
  color: var(--text-secondary);
}
.agent-activity-list {
  display: flex;
  flex-direction: column;
}
.agent-activity-row {
  padding: 7px 8px;
  border-radius: 6px;
  border-left: 2px solid var(--border-light);
}
.agent-activity-row[role='button'] {
  cursor: pointer;
}
.agent-activity-row[role='button']:hover, .agent-activity-row[role='button']:focus-visible {
  background: var(--bg-hover);
  border-left-color: var(--border-focus);
}
.agent-activity-row.is-gone {
  opacity: 0.6;
}
.agent-activity-row-main {
  font-size: 0.75rem;
  color: var(--text-primary);
  word-break: break-word;
}
.agent-activity-row-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.agent-activity-row-task {
  color: var(--text-secondary);
  font-weight: 600;
}
.agent-activity-row-sep {
  opacity: 0.6;
}
.agent-activity-empty {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 8px 0;
  line-height: 1.5;
}
.agent-activity-more {
  margin-top: 8px;
  align-self: flex-start;
}
.actor-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 9999px;
  white-space: nowrap;
  background: var(--bg-active);
  color: var(--text-secondary);
}
.note-content {
  font-size: 0.75rem;
  color: var(--text-primary);
  line-height: 1.5;
  word-break: break-word;
}
.note-content strong {
  font-weight: 600;
}
.note-content em {
  font-style: italic;
}
.note-content code {
  font-size: 0.6875rem;
  background: var(--bg-hover);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: monospace;
}
.note-content a {
  color: var(--text-link, #3b82f6);
  text-decoration: underline;
}
.note-content ul, .note-content ol {
  padding-left: 16px;
  margin: 4px 0;
}
.note-content ul {
  list-style: disc;
}
.note-content ol {
  list-style: decimal;
}
.note-actions {
  display: flex;
  gap: 2px;
  margin-top: 4px;
  justify-content: flex-end;
}
.note-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 4px;
  border-radius: 3px;
  color: var(--text-tertiary);
  transition: color 0.15s, background 0.15s;
}
.note-action-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.note-action-delete:hover {
  color: var(--text-error, #d93025);
}
.note-edit-area {
  margin-top: 4px;
}
.note-edit-textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px;
  font-size: 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  font-family: inherit;
}
.note-edit-textarea:focus {
  border-color: var(--border-focus);
}
.note-edit-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  justify-content: flex-end;
}
.note-save-btn, .note-cancel-btn {
  padding: 4px 12px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  font-size: 0.6875rem;
  cursor: pointer;
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: background 0.15s;
}
.note-save-btn {
  background: var(--bg-primary);
  color: var(--text-on-primary);
  border-color: var(--bg-primary);
}
.note-save-btn:hover {
  opacity: 0.9;
}
.note-cancel-btn:hover {
  background: var(--bg-hover);
}
.note-input-area {
  display: flex;
  gap: 6px;
  padding: 6px 4px;
  align-items: flex-start;
}
.note-input {
  flex: 1;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  font-family: inherit;
  line-height: 1.4;
}
.note-input:focus {
  border-color: var(--border-focus);
}
.note-post-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg-primary);
  color: var(--text-on-primary);
  white-space: nowrap;
  transition: opacity 0.15s;
}
.note-post-btn:hover {
  opacity: 0.9;
}
.audit-entry {
  padding: 6px 10px;
  border-left: 2px solid var(--border-light);
  margin-left: 4px;
}
.audit-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.audit-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.audit-text {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.audit-timestamp {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
  margin-left: 18px;
}
.note-history-dialog {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.note-history-item {
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--bg-surface);
}
.note-history-item:first-child {
  border-color: var(--border-default);
  background: var(--bg-hover);
}
.note-history-timestamp {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.note-history-content {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.5;
}
.note-history-content strong {
  font-weight: 600;
}
.note-history-content em {
  font-style: italic;
}
.note-history-content code {
  font-size: 11px;
  background: var(--bg-hover);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: monospace;
}
.compact-detail {
  animation: compactSlideDown 0.15s ease-out;
}
@keyframes compactSlideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.compact-action-btn {
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 44px;
}
.compact-action-btn:active {
  transform: scale(0.98);
}
.compact-action-btn-destructive:active {
  background: rgba(217, 48, 37, 0.08);
}
.compact-inline-btn {
  width: 36px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 0.875rem;
}
@media (pointer: coarse) {
  .compact-title-input {
    transition: all 0.15s ease;
  }
  .compact-title-input:not([readonly]) {
    background: var(--theme-hover) !important;
    border-color: var(--theme-focus) !important;
  }
  .compact-inline-btn {
    height: 24px !important;
    width: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
  }
  .compact-action-btn {
    min-height: 48px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}
.compact-complete-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 2.5px solid var(--text-tertiary);
  @supports (color: color-mix(in lab, red, red)) {
    border: 2.5px solid color-mix(in srgb, var(--text-tertiary) 75%, transparent);
  }
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
}
.compact-complete-btn:hover {
  border-color: var(--bg-primary);
  background: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-primary) 10%, transparent);
  }
}
.compact-complete-btn .complete-check {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.compact-complete-btn:hover .complete-check {
  opacity: 0.45;
}
.compact-complete-btn[aria-pressed="true"] {
  border-color: var(--bg-primary);
  background: var(--bg-primary);
  color: var(--text-on-primary);
}
.compact-complete-btn[aria-pressed="true"] .complete-check {
  opacity: 1;
}
.att-thumb-open, .att-ovl-btn {
  min-height: 0;
  padding: 0;
}
.att-row-main, .att-add {
  min-height: 0;
}
@media (pointer: coarse) {
  .att-thumb-open, .att-ovl-btn {
    padding-top: 0;
    padding-bottom: 0;
  }
  .att-ovl-btn {
    width: 28px;
    height: 28px;
  }
  .att-row-main, .att-add {
    min-height: 40px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
}
.detail-surface .dl-sub-progress, .detail-surface .dl-tab, .detail-surface .dl-ix-row {
  min-height: 0;
}
@media (pointer: coarse) {
  .detail-surface .dl-sub-progress {
    min-height: 40px;
  }
  .detail-surface .dl-tab {
    height: 40px;
  }
  .detail-surface .dl-ix-row {
    min-height: 44px;
  }
}
.todo-row {
  cursor: pointer;
}
:root {
  --layout-row-margin-y: 2px;
  --layout-row-padding-y: 0.625rem;
  --layout-checkbox-size: 20px;
  --layout-expand-btn-size-parent: 32px;
  --layout-expand-btn-size-leaf: 16px;
  --layout-title-min-height: 36px;
  --layout-child-indent: 40px;
  --layout-badge-text-size: 0.75rem;
  --layout-badge-padding-y: 0.25rem;
  --layout-badge-padding-x: 0.5rem;
}
[data-layout="compact"] {
  --layout-row-margin-y: 1px;
  --layout-row-padding-y: 0.5rem;
  --layout-checkbox-size: 16px;
  --layout-expand-btn-size-parent: 24px;
  --layout-expand-btn-size-leaf: 16px;
  --layout-title-min-height: 24px;
  --layout-child-indent: 32px;
  --layout-badge-text-size: 0.6875rem;
  --layout-badge-padding-y: 0.125rem;
  --layout-badge-padding-x: 0.375rem;
}
.todo-row-layout {
  padding-block: var(--layout-row-padding-y);
}
.todo-row-layout .todo-checkbox {
  width: var(--layout-checkbox-size);
  height: var(--layout-checkbox-size);
}
.todo-row-layout .todo-title {
  min-height: var(--layout-title-min-height);
}
.todo-row-layout .toggle-children[data-expand-parent="true"] {
  width: var(--layout-expand-btn-size-parent);
  height: var(--layout-expand-btn-size-parent);
}
.todo-row-layout .toggle-children[data-expand-parent="false"] {
  width: var(--layout-expand-btn-size-leaf);
  height: var(--layout-expand-btn-size-leaf);
}
.todo-row-layout .layout-badge {
  font-size: var(--layout-badge-text-size);
  padding-block: var(--layout-badge-padding-y);
  padding-inline: var(--layout-badge-padding-x);
}
#todo-items {
  container: todoitems / inline-size;
}
[data-task-row][data-draggable="true"] {
  cursor: grab;
}
[data-task-row][data-draggable="true"]:active {
  cursor: grabbing;
}
.mobile-more-btn {
  display: inline-flex;
}
.actions-cluster {
  gap: 2px;
}
.todo-compact-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.todo-compact-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}
[data-layout="compact"] .todo-compact-main .todo-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-layout="sidebar"] .app-shell-sidebar {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
[data-layout="sidebar"] .app-sidebar {
  flex: 0 0 15rem;
  width: 15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.625rem;
  border-right: 1px solid var(--border-light);
  background: var(--bg-surface);
  overflow-y: auto;
}
[data-layout="sidebar"] .app-sidebar-brand {
  padding: 0.375rem 0.5rem 0.625rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
[data-layout="sidebar"] .app-sidebar-lists .list-switcher {
  width: 100%;
  justify-content: flex-start;
}
[data-layout="sidebar"] .app-sidebar-nav {
  display: flex;
  flex-direction: column;
  margin-top: 0.25rem;
}
[data-layout="sidebar"] .app-sidebar-nav .view-switch {
  display: flex;
  flex-direction: column;
  height: auto;
  width: 100%;
}
[data-layout="sidebar"] .app-sidebar-nav .view-switch-btn {
  height: 38px;
  padding: 0 0.75rem;
  justify-content: flex-start;
}
[data-layout="sidebar"] .app-sidebar-nav .view-switch-btn + .view-switch-btn {
  border-left: none;
  border-top: 1px solid var(--border-default);
}
[data-layout="sidebar"] .app-sidebar-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
[data-layout="sidebar"] .app-header--sidebar {
  justify-content: flex-end;
}
@media (width < 40rem) {
  [data-layout="sidebar"] .app-shell-sidebar {
    flex-direction: column;
    position: relative;
  }
  [data-layout="sidebar"] .app-sidebar {
    flex: 0 0 auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    height: 56px;
    padding: 0 8px;
    padding-right: 120px;
    gap: 6px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    overflow: visible;
  }
  [data-layout="sidebar"] .app-sidebar-brand, [data-layout="sidebar"] .app-sidebar-nav {
    display: none;
  }
  [data-layout="sidebar"] .app-sidebar-lists {
    flex: 1;
    min-width: 0;
  }
  [data-layout="sidebar"] .app-header--sidebar {
    position: absolute;
    top: 0;
    right: 0;
    height: 56px;
    padding: 0 8px;
    border-bottom: none;
    background: transparent;
    z-index: 2;
  }
  [data-layout="sidebar"] .app-header--sidebar .app-header-left {
    display: none;
  }
}
[data-layout="inline"] .todo-item-inline-open > .todo-row {
  background: var(--bg-hover);
}
.il-panel {
  background: var(--bg-page);
  border-left: 3px solid var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  padding: 0 0 2px;
  margin: 0 0 4px 8px;
  border-radius: 0 8px 8px 0;
}
.il-panel .dl-footer {
  position: static;
  background: transparent;
  border-radius: 0 0 8px 0;
}
.il-panel.desc-expanded {
  height: 60vh;
}
@media (width < 40rem) {
  .il-panel {
    margin-left: 4px;
  }
}
[data-layout="desk"] .app-desk {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
[data-layout="desk"] .app-desk-list {
  flex: 1 1 auto;
  min-width: 0;
}
[data-layout="desk"] .app-desk-pane {
  flex: 0 0 clamp(380px, 34vw, 560px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-default);
}
[data-layout="desk"] .app-desk-pane .detail-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
[data-layout="desk"] .app-desk-empty {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 6px;
}
[data-layout="desk"] .app-desk-empty-lede {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}
[data-layout="desk"] .app-desk-empty-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
  max-width: 28ch;
}
[data-layout="desk"] .app-desk-empty-counts {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-tertiary);
}
[data-layout="desk"] .app-desk-empty-counts b {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.drawer-row-inert {
  opacity: 0.45;
}
.drawer-row-note {
  margin: -2px 0 6px;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-tertiary);
}
@media (width < 48rem) {
  .todo-compact-main {
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
  }
  .todo-compact-main .todo-title {
    flex: none;
    width: 100%;
  }
  .todo-compact-meta {
    padding-left: 0.5rem;
  }
  .todo-compact-meta .todo-repeat-label {
    display: inline-flex;
  }
}
.complete-btn {
  position: relative;
  width: var(--cb-size, 26px);
  height: var(--cb-size, 26px);
  padding: 0;
  margin-inline: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: var(--cb-border, 2px) solid var(--text-tertiary);
  @supports (color: color-mix(in lab, red, red)) {
    border: var(--cb-border, 2px) solid color-mix(in srgb, var(--text-tertiary) 75%, transparent);
  }
  border-radius: var(--cb-radius, 8px);
  background: transparent;
  color: var(--text-secondary);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
[data-checkbox-size="22"] {
  --cb-size: 22px;
  --cb-radius: 7px;
  --cb-border: 2px;
  --cb-check: 14px;
}
[data-checkbox-size="30"] {
  --cb-size: 30px;
  --cb-radius: 9px;
  --cb-border: 2.25px;
  --cb-check: 18px;
}
[data-checkbox-size="34"] {
  --cb-size: 34px;
  --cb-radius: 11px;
  --cb-border: 2.5px;
  --cb-check: 20px;
}
.complete-btn::after {
  content: "";
  position: absolute;
  inset: -5px;
}
.complete-btn:hover {
  border-color: var(--bg-primary);
  background: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-primary) 10%, transparent);
  }
}
.complete-btn .complete-check {
  width: var(--cb-check, 16px);
  height: var(--cb-check, 16px);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.complete-btn:hover .complete-check {
  opacity: 0.45;
}
.complete-btn[aria-pressed="true"] {
  border-color: var(--bg-primary);
  background: var(--bg-primary);
  color: var(--text-on-primary);
}
.complete-btn[aria-pressed="true"] .complete-check {
  opacity: 1;
}
.complete-btn.check-pop {
  animation: check-pop 0.38s ease;
}
@keyframes check-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}
.row-icon-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.row-icon-btn:hover {
  background: var(--bg-hover-strong);
  color: var(--text-primary);
}
.row-icon-btn:active {
  transform: scale(0.94);
}
.row-icon-btn-destructive:hover {
  background: var(--bg-destructive);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-destructive) 13%, transparent);
  }
  color: var(--text-error);
}
.toggle-active-btn.is-active {
  background: var(--bg-primary);
  color: var(--text-on-primary);
}
.toggle-active-btn.is-active:hover {
  background: var(--bg-primary-hover);
  color: var(--text-on-primary);
}
.subtask-count-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 9px;
  border: none;
  border-radius: 999px;
  background: var(--bg-hover-strong);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.subtask-count-pill::after {
  content: "";
  position: absolute;
  inset: -5px;
}
.subtask-count-pill:hover {
  background: var(--bg-active);
  color: var(--text-primary);
}
.subtask-count-pill svg {
  transition: transform 0.15s ease;
}
.subtask-count-pill[aria-expanded="true"] {
  background: var(--bg-active);
  color: var(--text-link);
}
.subtask-count-pill[aria-expanded="true"] svg {
  transform: rotate(90deg);
}
@media (pointer: coarse) {
  .complete-btn::after {
    inset: -7px;
  }
  .row-icon-btn {
    width: 34px;
    height: 34px;
  }
  .subtask-count-pill::after {
    inset: -7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .complete-btn.check-pop {
    animation: none;
  }
  .complete-btn, .complete-btn .complete-check, .row-icon-btn {
    transition: none;
  }
  .subtask-count-pill, .subtask-count-pill svg {
    transition: none;
  }
}
.todo-row.subtask-locate-flash {
  animation: subtask-locate-flash 0.95s ease-out;
}
@keyframes subtask-locate-flash {
  0% {
    background: var(--bg-hover);
  }
  60% {
    background: var(--bg-hover);
  }
  100% {
    background: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .todo-row.subtask-locate-flash {
    animation: none;
  }
}
@container todoitems (max-width: 559px) {
  .row-act-delete {
    display: none;
  }
}
@container todoitems (max-width: 339px) {
  .row-act-subtask {
    display: none;
  }
}
@container todoitems (max-width: 439px) {
  .row-act-repeat:not(.todo-repeat-label) {
    display: none;
  }
}
@container todoitems (max-width: 379px) {
  .row-act-date {
    display: none;
  }
}
@container todoitems (max-width: 319px) {
  .row-act-reschedule {
    display: none;
  }
}
@container todoitems (max-width: 259px) {
  .todo-repeat-label {
    display: none;
  }
}
@media (width < 48rem) {
  .todo-item .todo-children {
    margin-left: 3rem;
  }
}
@media (width < 31.25rem) {
  .todo-item .todo-children {
    margin-left: 1.5rem;
  }
}
.drawer-segmented {
  flex-wrap: wrap;
}
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10vh 16px 16px;
}
.search-panel {
  width: 100%;
  max-width: 560px;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}
.search-input-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
}
.conn-ico {
  display: inline-flex;
  align-items: center;
}
.conn-ico > i {
  display: inline-flex;
  align-items: center;
  font-style: normal;
}
.conn-ico--ok {
  color: var(--color-success);
}
.conn-ico--err {
  color: var(--color-error);
}
.conn-ico--warn {
  color: var(--color-warning);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-primary);
}
.search-input::placeholder {
  color: var(--text-tertiary);
}
.search-close {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--text-secondary);
}
.search-close:hover {
  background: var(--bg-hover);
}
.search-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-light);
}
.search-notes-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.search-hint {
  font-size: 11px;
  color: var(--text-tertiary);
}
.search-results {
  overflow-y: auto;
  padding: 6px 0;
}
.search-section {
  padding: 4px 0;
}
.search-section-title {
  padding: 6px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-count {
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-hover);
  border-radius: 10px;
  padding: 0 6px;
  font-size: 10px;
}
.search-empty, .search-empty-sm {
  color: var(--text-tertiary);
  font-size: 13px;
}
.search-empty {
  padding: 28px 16px;
  text-align: center;
}
.search-empty-sm {
  padding: 6px 16px 8px;
}
.search-error {
  color: #d93025;
}
.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}
.search-row-clickable {
  cursor: pointer;
}
.search-row-clickable:hover {
  background: var(--bg-hover);
}
.search-row-main {
  flex: 1;
  min-width: 0;
}
.search-row-title {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-row-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.search-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--bg-hover);
  color: var(--text-secondary);
}
.search-badge-warn {
  background: rgba(217, 48, 37, 0.12);
  color: #d93025;
}
.search-action {
  flex-shrink: 0;
  padding: 5px 12px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.search-action:hover {
  background: var(--bg-hover);
}
.search-action:disabled {
  opacity: 0.6;
  cursor: default;
}
.search-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.search-action-secondary {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-tertiary);
}
.search-action-secondary:hover {
  background: var(--bg-hover);
}
.search-highlight {
  animation: search-highlight-flash 1.6s ease-out;
}
@keyframes search-highlight-flash {
  0% {
    background: var(--bg-primary);
  }
  100% {
    background: transparent;
  }
}
.search-row-active {
  background: var(--bg-hover);
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  height: 56px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  flex-shrink: 0;
}
.app-header-left, .app-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.app-header-left {
  flex: 1 1 auto;
  min-width: 0;
}
.app-header-right {
  flex: 0 0 auto;
}
.header-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9375rem;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.header-icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
#notif-bell-badge {
  font-size: 0.625rem;
}
.header-icon-btn.weather-chip {
  width: auto;
  gap: 5px;
  padding: 0 9px;
  position: relative;
}
.weather-chip-icon {
  line-height: 1;
  font-size: 1rem;
}
.weather-chip-temp {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.weather-chip-hilo, .weather-chip-wind {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.weather-chip.chip-fit-nowind .weather-chip-wind {
  display: none;
}
.weather-chip.chip-fit-nohilo .weather-chip-hilo {
  display: none;
}
@media (width < 31.25rem) {
  .weather-chip-wind {
    display: none;
  }
}
@media (width < 30rem) {
  .weather-chip-hilo {
    display: none;
  }
}
.weather-chip--stale {
  opacity: 0.55;
}
.weather-chip-stale-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-warning);
  pointer-events: none;
}
.weather-chip-alert-badge {
  line-height: 1;
  font-size: 0.9375rem;
  flex-shrink: 0;
}
.weather-enable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 4px 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.weather-enable-label {
  font-size: 0.875rem;
  color: var(--text-primary);
}
.weather-zip-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.weather-zip-row .change-password-input {
  flex: 1;
}
.weather-find-btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.weather-station-map {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 6px;
  background: var(--bg-page);
  overflow: hidden;
}
.weather-station-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.weather-map-centroid {
  fill: var(--text-tertiary);
}
.weather-map-marker {
  fill: var(--bg-surface);
  stroke: var(--text-secondary);
  stroke-width: 1.5;
  cursor: pointer;
}
.weather-map-marker:hover {
  stroke: var(--text-primary);
}
.weather-map-marker.is-selected {
  fill: var(--bg-primary);
  stroke: var(--bg-primary);
}
.weather-map-contour {
  fill: none;
  stroke: var(--text-tertiary);
  stroke-width: 0.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.4;
}
.weather-map-contour-label {
  font-size: 7.5px;
  fill: var(--text-tertiary);
  opacity: 0.9;
}
.weather-map-water {
  fill: var(--color-info);
  stroke: none;
  opacity: 0.18;
}
.weather-map-urban {
  fill: var(--text-tertiary);
  stroke: none;
  opacity: 0.14;
}
.weather-map-road-casing {
  fill: none;
  stroke: var(--bg-page);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.weather-map-road {
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}
.weather-map-shield rect {
  fill: var(--bg-surface);
  stroke: var(--text-tertiary);
  stroke-width: 1;
}
.weather-map-shield text {
  font-size: 8px;
  font-weight: 600;
  text-anchor: middle;
  fill: var(--text-secondary);
}
.weather-map-river {
  fill: none;
  stroke: var(--color-info);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.45;
}
.weather-map-border {
  fill: none;
  stroke: var(--text-tertiary);
  stroke-width: 1;
  stroke-dasharray: 5 4;
  opacity: 0.55;
}
.weather-map-county {
  fill: none;
  stroke: var(--text-tertiary);
  stroke-width: 0.6;
  opacity: 0.35;
}
.weather-map-county-label {
  font-size: 8px;
  text-anchor: middle;
  fill: var(--text-tertiary);
  opacity: 0.85;
}
.weather-map-place-dot {
  fill: var(--text-tertiary);
}
.weather-map-place {
  font-size: 9px;
  fill: var(--text-secondary);
}
.weather-map-river-label {
  font-size: 9px;
  font-style: italic;
  fill: var(--color-info);
  opacity: 0.75;
}
.weather-map-marker.is-secondary {
  stroke: var(--text-tertiary);
}
.weather-map-marker.is-hollow {
  fill: none;
  stroke: var(--text-tertiary);
  stroke-dasharray: 3 2;
}
.weather-map-marker.is-hollow.is-selected {
  stroke: var(--bg-primary);
}
.weather-map-chip rect {
  fill: var(--bg-surface);
  stroke: var(--border-default);
  stroke-width: 1;
}
.weather-map-chip text {
  font-size: 10px;
  font-weight: 600;
  fill: var(--text-primary);
}
.weather-map-scale path, .weather-map-compass path {
  fill: none;
  stroke: var(--text-tertiary);
  stroke-width: 1;
}
.weather-map-scale text, .weather-map-compass text {
  font-size: 9px;
  fill: var(--text-tertiary);
}
.weather-map-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.weather-map-layer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 3px 9px;
  cursor: pointer;
}
.weather-map-layer-chip:hover {
  background: var(--bg-hover);
}
.weather-map-layer-chip.is-on {
  color: var(--text-primary);
  border-color: var(--border-default);
}
.weather-map-layer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.35;
}
.weather-map-layer-chip.is-on .weather-map-layer-dot {
  opacity: 1;
}
.weather-map-layer-dot--water {
  background: var(--color-info);
}
.weather-map-layer-dot--roads {
  background: var(--text-secondary);
}
.weather-map-layer-dot--counties {
  background: var(--text-tertiary);
}
.weather-map-layer-dot--terrain {
  background: var(--text-secondary);
  opacity: 0.6;
}
.weather-station-vitals {
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0 0 6px;
  padding: 0 2px;
}
.weather-station-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 4px;
}
.weather-station-empty {
  font-size: 0.8125rem;
  padding: 6px 4px;
  margin: 0;
}
.weather-station {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.weather-station:hover {
  background: var(--bg-hover);
}
.weather-station-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weather-station-dist {
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.weather-station-elev {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.weather-station-tag {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0 6px;
  flex-shrink: 0;
}
.weather-units {
  display: inline-flex;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  overflow: hidden;
}
.weather-unit {
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
}
.weather-unit + .weather-unit {
  border-left: 1px solid var(--border-default);
}
.weather-unit.is-active {
  background: var(--bg-primary);
  color: var(--text-on-primary);
}
.weather-offline-note, .weather-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}
.weather-chip--setup .weather-chip-setup-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
@media (width < 24rem) {
  .weather-chip--setup .weather-chip-setup-label {
    display: none;
  }
}
.weather-fc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: min(420px, calc(100vw - 32px));
  max-height: min(85vh, 680px);
  display: flex;
  flex-direction: column;
}
.weather-fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
  flex-shrink: 0;
}
.weather-fc-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.weather-fc-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.weather-fc-refresh, .weather-fc-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
}
.weather-fc-refresh:hover, .weather-fc-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.weather-fc-refresh:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.weather-fc-current {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 12px;
  flex-shrink: 0;
}
.weather-fc-cur-emoji {
  font-size: 1.75rem;
  line-height: 1;
}
.weather-fc-cur-temp {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.weather-fc-cur-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.weather-fc-cur-text {
  font-size: 0.875rem;
  color: var(--text-primary);
}
.weather-fc-cur-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.weather-fc-cur-detail {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.weather-fc-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.weather-fc-alert {
  border: 1px solid var(--border-default);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--bg-surface);
}
.weather-fc-alert--severe {
  border-left-color: var(--color-error);
}
.weather-fc-alert--moderate, .weather-fc-alert--minor {
  border-left-color: var(--color-warning);
}
.weather-fc-alert-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.weather-fc-alert-emoji {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.weather-fc-alert-event {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.weather-fc-alert-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.weather-fc-alert-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 6px 0 0;
  white-space: pre-wrap;
}
.weather-fc-toggle {
  display: inline-flex;
  align-self: center;
  flex-shrink: 0;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  overflow: hidden;
  margin: 0 18px;
}
.weather-fc-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 22px;
  line-height: 1.2;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
}
.weather-fc-tab + .weather-fc-tab {
  border-left: 1px solid var(--border-default);
}
.weather-fc-tab.is-active {
  background: var(--bg-primary);
  color: var(--text-on-primary);
}
.weather-fc-tab--alert {
  gap: 5px;
  padding-inline: 14px;
  white-space: nowrap;
}
.weather-fc-tab-emoji {
  font-size: 0.875rem;
  line-height: 1;
}
.weather-fc-tab--alert.weather-fc-tab--severe {
  color: var(--color-error);
}
.weather-fc-tab--alert.weather-fc-tab--moderate {
  color: var(--color-warning);
}
.weather-fc-tab--alert.is-active {
  background: currentColor;
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, currentColor 18%, var(--bg-surface));
  }
}
@media (width < 26rem) {
  .weather-fc-tab {
    padding-inline: 12px;
  }
  .weather-fc-tab--alert {
    padding-inline: 8px;
  }
}
.weather-fc-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 18px 4px;
  min-height: 120px;
}
.weather-fc-msg, .weather-fc-stale {
  font-size: 0.8125rem;
  margin: 6px 2px;
}
.weather-fc-stale {
  color: var(--text-secondary);
  padding: 2px 0 8px;
}
.weather-fc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.weather-fc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border-light);
}
.weather-fc-row:last-child {
  border-bottom: none;
}
.weather-fc-row-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}
.weather-fc-row-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  width: 5.5rem;
}
.weather-fc-row-hour {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  width: 4rem;
}
.weather-fc-row-temp {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
  width: 2.5rem;
  text-align: right;
}
.weather-fc-row-short {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weather-fc-daydiv {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  padding: 10px 2px 4px;
}
.weather-fc-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px 16px;
  flex-shrink: 0;
}
.list-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  max-width: 100%;
  padding: 0 10px 0 10px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
  min-width: 0;
}
.list-switcher:hover {
  background: var(--bg-hover);
  border-color: var(--border-default);
}
.list-switcher:focus-visible {
  outline: 2px solid var(--bg-primary);
  outline-offset: 1px;
}
.list-switcher[aria-expanded="true"] {
  background: var(--bg-hover);
  border-color: var(--bg-primary);
}
.list-switcher.disabled {
  opacity: 0.6;
  cursor: default;
}
.list-switcher-icon {
  font-size: 0.875rem;
  line-height: 1;
  flex-shrink: 0;
}
.list-switcher-view-sigil {
  font-size: 1rem;
  font-weight: 600;
  width: 1rem;
  text-align: center;
}
.list-switcher-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.list-switcher-chevron {
  font-size: 0.625rem;
  line-height: 1;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.filter-chip-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-chip-bar::-webkit-scrollbar {
  display: none;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-chip:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.filter-chip[aria-expanded="true"] {
  background: var(--bg-hover);
  border-color: var(--bg-primary);
  color: var(--text-primary);
}
.filter-chip-icon {
  font-size: 0.8125rem;
  line-height: 1;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
}
.filter-chip-label {
  color: var(--text-tertiary);
  font-weight: 500;
}
.filter-chip-value {
  color: var(--text-primary);
  font-weight: 600;
}
.filter-chip-chevron {
  font-size: 0.5625rem;
  line-height: 1;
  color: var(--text-tertiary);
}
.filter-chip-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.filter-chip-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.filter-chip-toggle.is-desc {
  color: var(--bg-primary);
  border-color: var(--bg-primary);
}
.filter-chip-toggle-pill.active {
  background: var(--bg-primary);
  color: var(--text-on-primary);
  border-color: var(--bg-primary);
}
.filter-chip-toggle-pill.active .filter-chip-value {
  color: var(--text-on-primary);
}
.filter-chip-toggle-pill.active .filter-chip-icon {
  opacity: 1;
}
.tag-filter-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-filter-saved-del {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  padding: 0 4px;
}
.tag-filter-saved-del:hover {
  color: var(--color-error);
}
.tag-filter-save-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.8125rem;
  outline: none;
}
.tag-filter-save-input:focus {
  border-color: var(--border-focus);
}
.tag-filter-empty {
  font-style: italic;
}
.filter-chip.active {
  background: var(--bg-primary);
  border-color: var(--bg-primary);
}
.filter-chip.active .filter-chip-value, .filter-chip.active .filter-chip-label, .filter-chip.active .filter-chip-chevron {
  color: var(--text-on-primary);
}
.filter-chip.active .filter-chip-icon {
  color: var(--text-on-primary);
  opacity: 1;
}
.filter-chip-view-dirty {
  border-color: var(--color-warning);
  color: var(--color-warning);
}
.filter-chip-view-dirty .filter-chip-value, .filter-chip-view-dirty .filter-chip-icon {
  color: var(--color-warning);
  opacity: 1;
}
.filter-chip-view-dirty:hover {
  background: var(--bg-hover);
}
.filter-chip-compact {
  display: none;
}
.list-menu-popup, .choice-menu-popup {
  min-width: 220px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.list-menu-section-label, .choice-menu-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding: 6px 10px 4px;
}
.list-menu-rows, .list-menu-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.list-menu-group .list-menu-row {
  cursor: grab;
}
.list-menu-group .list-menu-row:active {
  cursor: grabbing;
}
.list-menu-row, .choice-menu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.list-menu-row:hover, .choice-menu-row:hover {
  background: var(--bg-hover);
}
.list-menu-row.active, .choice-menu-row.active {
  color: var(--bg-primary);
  font-weight: 600;
}
.list-menu-check, .choice-menu-check {
  width: 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--bg-primary);
  flex-shrink: 0;
}
.list-menu-row-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-menu-rename {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-tertiary);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}
.list-menu-rename:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.list-menu-pin {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}
.list-menu-pin:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.list-menu-pin.pinned {
  color: var(--bg-primary);
}
.list-menu-divider, .choice-menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 6px;
}
.choice-menu-row-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.choice-menu-row-hint {
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-tertiary);
  white-space: normal;
}
.list-menu-view-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.list-menu-view-dots .tag-chip-dot {
  width: 7px;
  height: 7px;
}
.list-menu-view-row .list-menu-check {
  font-size: 0.75rem;
}
.list-menu-new {
  color: var(--bg-primary);
  font-weight: 500;
}
.list-menu-row:disabled, .list-menu-row-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.list-menu-row:disabled:hover, .list-menu-row-disabled:hover {
  background: none;
}
.list-menu-hint {
  margin: 2px 10px 4px 34px;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}
.list-menu-new:hover {
  background: var(--bg-hover);
}
.add-task-row {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  flex-shrink: 0;
}
.add-task-group {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: var(--bg-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.add-task-group:focus-within {
  border-color: var(--bg-primary);
  box-shadow: 0 0 0 3px var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg-primary) 18%, transparent);
  }
}
.add-task-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  padding: 0 12px;
  height: 40px;
}
.add-task-input::placeholder {
  color: var(--text-tertiary);
}
.add-task-details {
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 0.75rem;
  position: relative;
  border-left: 1px solid var(--border-light);
  transition: background 0.12s, color 0.12s;
  font-family: inherit;
  flex-shrink: 0;
}
.add-task-details:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.add-task-details-caret {
  line-height: 1;
  display: inline-block;
  transition: transform 0.25s ease;
}
.composer.open .add-task-details-caret {
  transform: rotate(180deg);
}
.composer.open .add-task-details {
  color: var(--bg-primary);
}
.add-task-details.has-value {
  color: var(--bg-primary);
}
.add-task-details.has-value::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg-primary);
  box-shadow: 0 0 0 2px var(--bg-surface);
}
.add-task-mic {
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  border-left: 1px solid var(--border-light);
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
  flex-shrink: 0;
}
.add-task-mic:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.add-task-mic.listening {
  color: var(--bg-primary);
  animation: micPulse 1.6s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% {
    box-shadow: inset 0 0 0 0 color-mix(in srgb, var(--bg-primary) 22%, transparent);
  }
  50% {
    box-shadow: inset 0 0 0 20px color-mix(in srgb, var(--bg-primary) 22%, transparent);
  }
}
.add-task-clear {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 0.875rem;
  border-left: 1px solid var(--border-light);
  transition: background 0.12s, color 0.12s;
}
.add-task-clear:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.add-task-clear.hidden {
  display: none;
}
.add-task-submit {
  border: none;
  background: var(--bg-primary);
  color: var(--text-on-primary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.12s;
  flex-shrink: 0;
}
.add-task-submit:hover {
  background: var(--bg-primary-hover, var(--bg-primary));
}
.qa-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 2px;
}
.qa-preview.hidden {
  display: none;
}
.qa-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--bg-primary);
  background: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-primary) 12%, transparent);
  }
  border: 1px solid var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--bg-primary) 28%, transparent);
  }
}
.qa-chip-warn {
  color: var(--color-warning);
  background: var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-warning) 12%, transparent);
  }
  border-color: var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--color-warning) 32%, transparent);
  }
}
.list-picker-popup {
  min-width: 240px;
}
.list-picker-body {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
:root {
  --tag-hue-rose: #e11d48;
  --tag-hue-amber: #d97706;
  --tag-hue-fern: #16a34a;
  --tag-hue-sky: #0284c7;
  --tag-hue-iris: #6366f1;
  --tag-hue-plum: #9333ea;
  --tag-hue-teal: #0d9488;
  --tag-hue-slate: #64748b;
}
.tag-chip[data-color="rose"], .tag-chip-dot[data-color="rose"], .tag-swatch[data-color="rose"] {
  --tag-hue: var(--tag-hue-rose);
}
.tag-chip[data-color="amber"], .tag-chip-dot[data-color="amber"], .tag-swatch[data-color="amber"] {
  --tag-hue: var(--tag-hue-amber);
}
.tag-chip[data-color="fern"], .tag-chip-dot[data-color="fern"], .tag-swatch[data-color="fern"] {
  --tag-hue: var(--tag-hue-fern);
}
.tag-chip[data-color="sky"], .tag-chip-dot[data-color="sky"], .tag-swatch[data-color="sky"] {
  --tag-hue: var(--tag-hue-sky);
}
.tag-chip[data-color="iris"], .tag-chip-dot[data-color="iris"], .tag-swatch[data-color="iris"] {
  --tag-hue: var(--tag-hue-iris);
}
.tag-chip[data-color="plum"], .tag-chip-dot[data-color="plum"], .tag-swatch[data-color="plum"] {
  --tag-hue: var(--tag-hue-plum);
}
.tag-chip[data-color="teal"], .tag-chip-dot[data-color="teal"], .tag-swatch[data-color="teal"] {
  --tag-hue: var(--tag-hue-teal);
}
.tag-chip[data-color="slate"], .tag-chip-dot[data-color="slate"], .tag-swatch[data-color="slate"] {
  --tag-hue: var(--tag-hue-slate);
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-primary);
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  --tag-hue: var(--text-tertiary);
}
.tag-chip:not([data-color=""]) {
  background: var(--tag-hue);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--tag-hue) 12%, var(--bg-surface));
  }
  border-color: var(--tag-hue);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--tag-hue) 32%, transparent);
  }
}
.tag-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tag-hue, var(--text-tertiary));
  flex-shrink: 0;
}
.tag-chip-more {
  color: var(--text-secondary);
  --tag-hue: transparent;
}
.tag-chip-more .tag-chip-dot {
  display: none;
}
.tag-chip-x {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 0 0 2px;
  opacity: 0.6;
}
.tag-chip-x:hover {
  opacity: 1;
}
.tag-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--border-light);
  background: var(--tag-hue, var(--bg-hover));
  padding: 0;
}
.tag-swatch[data-color=""] {
  background: var(--bg-hover);
}
.tag-swatch-active {
  border-color: var(--border-focus);
}
.qa-chip-glyph {
  display: inline-flex;
}
.qa-chip-icon {
  width: 13px;
  height: 13px;
  display: block;
}
.qa-note {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-warning);
  background: var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-warning) 14%, transparent);
  }
  border: 1px solid var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--color-warning) 30%, transparent);
  }
}
.qa-dismiss {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  padding: 3px 6px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.qa-dismiss:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.qa-chip-open, .qa-chip-x {
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  padding: 0;
}
.qa-chip-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
}
.qa-chip-open:hover {
  text-decoration: underline;
}
.qa-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 1px;
  border-radius: 50%;
  opacity: 0.7;
}
.qa-chip-x:hover {
  opacity: 1;
  background: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-primary) 22%, transparent);
  }
}
.qa-chip-from {
  font-size: 0.625rem;
  opacity: 0.7;
  margin-left: 2px;
}
.composer-panel-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
  background: var(--bg-surface);
}
.composer.open .composer-panel-body {
  grid-template-rows: 1fr;
}
.composer-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.composer-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px 12px;
}
.composer-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.composer-rows:empty {
  display: none;
}
.composer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 34px;
}
.composer-row-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.composer-row-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  width: 5.5rem;
  flex-shrink: 0;
}
.composer-row-ctrl {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.composer-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.composer-value:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.composer-value:focus-visible {
  outline: none;
  border-color: var(--bg-primary);
  box-shadow: 0 0 0 3px var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg-primary) 18%, transparent);
  }
}
.composer-value.is-set {
  color: var(--text-primary);
  border-color: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--bg-primary) 45%, var(--border-default));
  }
}
.composer-value:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.composer-value.is-warn {
  color: var(--color-warning);
  border-color: var(--color-warning);
}
.composer-flag {
  display: inline-flex;
  align-items: center;
}
.composer-from-text {
  font-size: 0.625rem;
  color: var(--text-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 1px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.composer-row-clear {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-tertiary);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}
.composer-row-clear:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.composer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 4px 3px 9px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.75rem;
  white-space: nowrap;
}
.composer-chip-x {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
}
.composer-chip-x:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.composer-desc {
  width: 100%;
  min-height: 52px;
  resize: vertical;
  padding: 7px 10px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8125rem;
  outline: none;
}
.composer-desc:focus {
  border-color: var(--bg-primary);
  box-shadow: 0 0 0 3px var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg-primary) 18%, transparent);
  }
}
.composer-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.composer-rail-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px dashed var(--text-secondary);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px dashed color-mix(in srgb, var(--text-secondary) 45%, transparent);
  }
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.composer-rail-pill:hover {
  border-color: var(--bg-primary);
  color: var(--text-primary);
  background: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-primary) 5%, transparent);
  }
}
.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
  border-top: 1px solid var(--border-light);
  margin-top: 2px;
}
.composer-keep {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding-top: 8px;
}
.composer-keep input {
  cursor: pointer;
}
.composer-clear-all {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 8px 6px 0;
  border-radius: 6px;
}
.composer-clear-all:hover {
  color: var(--text-primary);
  text-decoration: underline;
}
.composer-parent-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-primary) 8%, transparent);
  }
  border-bottom: 1px solid var(--border-light);
}
.composer-parent-arrow {
  color: var(--bg-primary);
  flex-shrink: 0;
}
.composer-parent-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composer-parent-label strong {
  color: var(--text-primary);
  font-weight: 600;
}
.composer-parent-detach {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-tertiary);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
}
.composer-parent-detach:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.composer-dock {
  padding: 4px 0 8px;
}
.composer-dock .composer {
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--bg-primary);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-surface);
}
.composer-dock .add-task-row {
  border-bottom: none;
  padding: 8px;
}
.composer-dock .add-task-group {
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .composer-panel-body, .add-task-details-caret, .composer-value, .composer-rail-pill, .composer-row-clear {
    transition: none;
  }
  .add-task-mic.listening {
    animation: none;
  }
}
.filter-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: filter-sheet-fade 0.18s ease-out;
}
.filter-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: filter-sheet-up 0.22s cubic-bezier(.2,.7,.3,1);
}
.filter-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-default);
  margin: 4px auto 0;
  flex-shrink: 0;
}
.filter-sheet-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-top: 2px;
}
.filter-sheet-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-sheet-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}
.filter-sheet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-sheet-pill {
  padding: 8px 14px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 36px;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.filter-sheet-pill:hover {
  background: var(--bg-hover);
}
.filter-sheet-pill.active {
  background: var(--bg-primary);
  color: var(--text-on-primary);
  border-color: var(--bg-primary);
}
.filter-sheet-actions {
  padding-top: 4px;
}
.filter-sheet-apply {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-on-primary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}
.filter-sheet-apply:hover {
  background: var(--bg-primary-hover, var(--bg-primary));
}
@keyframes filter-sheet-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes filter-sheet-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.tab-bar {
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  flex-shrink: 0;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tab-bar-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 56px;
  min-width: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s;
}
.tab-bar-btn.active {
  color: var(--text-link);
}
.tab-bar-btn.active .tab-bar-icon {
  background: var(--text-link);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--text-link) 12%, transparent);
  }
}
.tab-bar-btn:focus-visible {
  outline: 2px solid var(--bg-primary);
  outline-offset: -2px;
}
.tab-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 12px;
  border-radius: 999px;
}
.tab-bar-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tab-bar-badge {
  position: absolute;
  top: 5px;
  left: calc(50% + 8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-on-primary);
  background: var(--text-link);
}
@media (width < 40rem) {
  .filter-chip-label {
    display: none;
  }
  .filter-chip {
    padding: 0 9px;
    gap: 4px;
  }
  #btn-toggle-completed, #btn-tag-filter, #btn-sort-menu .filter-chip-label, #btn-group-menu .filter-chip-label {
    display: none;
  }
  .filter-chip-compact {
    display: inline-flex;
  }
  .list-switcher {
    padding: 0 6px;
    gap: 4px;
  }
  .user-menu-email {
    display: none;
  }
  .app-header .view-switch {
    display: none;
  }
  .tab-bar {
    display: grid;
  }
  .app-header .list-view-switch {
    border: none;
    border-radius: 0;
    overflow: visible;
    height: auto;
  }
  .app-header .list-view-switch .view-switch-btn[data-view-btn] {
    display: none;
  }
  .app-header .list-view-switch-list {
    max-width: 100%;
    height: 36px;
    padding: 0 6px;
    gap: 4px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
  }
  .app-header .list-view-switch-list.active {
    background: var(--bg-surface);
    color: var(--text-primary);
  }
  .app-header .list-view-switch-list.active .list-switcher-chevron {
    color: var(--text-tertiary);
  }
  .composer:not(.composer-docked) {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  }
  .add-task-row {
    padding: 6px 10px;
    background: var(--bg-surface);
    border-bottom: none;
  }
  .add-task-input {
    height: 38px;
    font-size: 0.875rem;
  }
  .add-task-details {
    width: 34px;
  }
  .add-task-submit {
    padding: 0 14px;
  }
  .add-task-clear {
    width: 36px;
  }
  .add-task-mic {
    width: 34px;
  }
  .composer:not(.composer-docked) .composer-panel {
    max-height: 55vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .composer-row-label {
    width: 4.75rem;
  }
  .todo-items {
    padding-bottom: 64px;
  }
}
@media (width < 30rem) {
  .header-icon-btn {
    width: 34px;
    height: 34px;
  }
  .app-header {
    padding: 0 8px;
    gap: 4px;
  }
  .list-switcher-edit {
    width: 30px;
    height: 30px;
  }
}
.console-viewer {
  position: fixed;
  z-index: 1300;
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.35);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.75rem;
}
.console-viewer.open {
  display: flex;
}
.console-viewer--bottom {
  left: 0;
  right: 0;
  bottom: 0;
  height: 40vh;
  max-height: 60vh;
  border-bottom: none;
  border-left: none;
  border-right: none;
}
.console-viewer--right {
  top: 0;
  bottom: 0;
  right: 0;
  width: 40vw;
  max-width: 90vw;
  min-width: 280px;
  border-top: none;
  border-right: none;
  border-bottom: none;
}
.console-viewer-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-page);
  flex: 0 0 auto;
}
.console-viewer-title {
  font-weight: 600;
  margin-right: 4px;
}
.console-viewer-spacer {
  flex: 1 1 auto;
}
.console-viewer-select {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.6875rem;
}
.console-viewer-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.6875rem;
  cursor: pointer;
  white-space: nowrap;
}
.console-viewer-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}
.console-viewer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 8px;
  -webkit-overflow-scrolling: touch;
}
.console-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 2px 0;
  border-bottom: 1px solid var(--border-light);
  @supports (color: color-mix(in lab, red, red)) {
    border-bottom: 1px solid color-mix(in srgb, var(--border-light) 50%, transparent);
  }
  white-space: pre-wrap;
  word-break: break-word;
}
.console-line-time {
  color: var(--text-secondary);
  flex: 0 0 auto;
  opacity: 0.8;
}
.console-line-user {
  color: var(--bg-primary);
  flex: 0 0 auto;
  opacity: 0.85;
}
.console-line-text {
  flex: 1 1 auto;
}
.console-line-level {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.625rem;
  padding: 0 4px;
  border-radius: 4px;
}
.console-line-level--log {
  color: var(--text-secondary);
}
.console-line-level--info {
  color: #2563eb;
}
.console-line-level--debug {
  color: #7c3aed;
}
.console-line-level--warn {
  color: #b45309;
}
.console-line-level--error {
  color: #dc2626;
}
.console-line--warn .console-line-text {
  color: #b45309;
}
.console-line--error .console-line-text {
  color: #dc2626;
}
.admin-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  flex-shrink: 0;
}
.admin-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}
.admin-subtitle {
  font-size: 0.71875rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-updated {
  font-size: 0.71875rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  flex-shrink: 0;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar {
  display: none;
}
.admin-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 11px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.1s, background 0.1s;
}
.admin-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.admin-tab.active {
  color: var(--text-link);
  border-bottom-color: var(--border-focus);
}
.admin-tab-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 9999px;
  background: var(--bg-hover-strong);
  color: var(--text-secondary);
}
.admin-tab.active .admin-tab-badge {
  background: var(--bg-active);
  color: var(--text-primary);
}
.admin-tab-badge--attention {
  background: var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-warning) 18%, transparent);
  }
  color: var(--color-warning);
}
.admin-offline-banner {
  padding: 10px 16px;
  text-align: center;
  font-size: 0.8125rem;
  flex-shrink: 0;
  background: var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-warning) 12%, var(--bg-surface));
  }
  color: var(--color-warning);
  border-bottom: 1px solid var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    border-bottom: 1px solid color-mix(in srgb, var(--color-warning) 30%, transparent);
  }
}
.admin-content {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 16px 56px;
}
.admin-section-head {
  margin-bottom: 16px;
}
.admin-section-head h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.admin-section-head p {
  font-size: 0.78125rem;
  color: var(--text-tertiary);
  margin-top: 3px;
  max-width: 64ch;
}
.help-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-tertiary);
  background: var(--bg-active);
  border: 1px solid var(--border-default);
  cursor: help;
  vertical-align: middle;
  user-select: none;
}
.help-badge:hover, .help-badge:focus-visible {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}
.admin-subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
}
.admin-subsection-head h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.admin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.admin-card--tight {
  padding: 14px 16px;
}
.admin-card--danger {
  border-color: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--color-error) 35%, var(--border-light));
  }
}
.admin-card-head {
  margin-bottom: 4px;
}
.admin-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.admin-card-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 3px;
}
.admin-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
}
.admin-note {
  font-size: 0.71875rem;
  color: var(--text-tertiary);
  margin-top: 10px;
}
.admin-status {
  font-size: 0.78125rem;
  color: var(--text-tertiary);
}
.admin-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.admin-field:last-of-type {
  border-bottom: none;
}
.admin-field--single {
  padding: 4px 0;
  border-bottom: none;
}
.admin-field-info {
  min-width: 0;
  flex: 1 1 240px;
}
.admin-field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}
.admin-field-desc {
  font-size: 0.71875rem;
  color: var(--text-tertiary);
  margin-top: 2px;
  max-width: 52ch;
}
.admin-field-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.admin-unit {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.admin-input, .admin-select {
  padding: 7px 10px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  font-size: 0.8125rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.1s, box-shadow 0.1s;
}
.admin-select {
  cursor: pointer;
}
.admin-input:focus, .admin-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--shadow-focus);
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.admin-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.admin-btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 0.9375rem;
  flex-shrink: 0;
}
.admin-btn-primary {
  padding: 8px 16px;
  font-size: 0.8125rem;
  background: var(--bg-primary);
  border-color: transparent;
  color: var(--text-on-primary);
}
.admin-btn-primary:hover {
  background: var(--bg-primary-hover);
  color: var(--text-on-primary);
}
.admin-btn-danger {
  color: var(--color-error);
  border-color: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--color-error) 40%, transparent);
  }
}
.admin-btn-danger:hover {
  background: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-error) 10%, transparent);
  }
  color: var(--color-error);
}
.admin-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.admin-toggle[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.admin-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.admin-table {
  width: 100%;
  font-size: 0.8125rem;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
.admin-table th[title] {
  cursor: help;
  text-decoration: underline dotted;
  text-decoration-color: var(--border-default);
  text-underline-offset: 3px;
}
.admin-table th.admin-th-sortable {
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
}
.admin-table th.admin-th-sortable:hover {
  background: var(--bg-hover);
  color: var(--text-secondary);
}
.admin-table th.admin-th-sortable:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: -2px;
}
.admin-table th.admin-th-sortable.is-sorted {
  color: var(--text-secondary);
}
.admin-th-caret::after {
  content: "";
  margin-left: 4px;
  font-size: 0.9em;
  opacity: 0.55;
}
.admin-table th.admin-th-sortable:hover .admin-th-caret::after {
  content: "↕";
}
.admin-table th.admin-th-sortable[aria-sort="ascending"] .admin-th-caret::after {
  content: "▲";
  opacity: 1;
}
.admin-table th.admin-th-sortable[aria-sort="descending"] .admin-th-caret::after {
  content: "▼";
  opacity: 1;
}
.admin-table-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.admin-table-toolbar .admin-tv-filter {
  flex: 1 1 12rem;
  max-width: 22rem;
  min-width: 7rem;
}
.admin-table-toolbar .admin-tv-count {
  margin-left: auto;
  white-space: nowrap;
}
.admin-table td {
  padding: 10px 16px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
  vertical-align: middle;
}
.admin-table tbody tr:first-child td {
  border-top: none;
}
.admin-table tbody tr:hover {
  background: var(--bg-hover);
}
.admin-table tbody tr.admin-row-deleted {
  opacity: 0.6;
}
.admin-table tbody tr.admin-row-disabled {
  opacity: 0.72;
}
.admin-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
@media (width < 40rem) {
  .admin-table--users {
    display: block;
  }
  .admin-table--users thead {
    display: none;
  }
  .admin-table--users tbody {
    display: block;
  }
  .admin-table--users tbody tr {
    display: block;
    padding: 6px 4px;
    border-top: 1px solid var(--border-light);
  }
  .admin-table--users tbody tr:first-child {
    border-top: none;
  }
  .admin-table--users td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 12px;
    border-top: none;
    text-align: right;
  }
  .admin-table--users td[data-label="User"] {
    display: block;
    text-align: left;
    padding-bottom: 4px;
  }
  .admin-table--users td::before {
    content: attr(data-label);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
    text-align: left;
  }
  .admin-table--users td[data-label="User"]::before {
    content: none;
  }
  .admin-table--users .admin-row-actions {
    justify-content: flex-end;
  }
  .admin-table--users .admin-tier-select {
    width: auto;
  }
}
.admin-cell-mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.71875rem;
}
.admin-cell-sub {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin-top: 1px;
}
.admin-user-email {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 500;
  color: var(--text-primary);
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}
.admin-badge-bug {
  background: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-error) 12%, transparent);
  }
  color: var(--color-error);
}
.admin-badge-feature {
  background: var(--color-info);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-info) 12%, transparent);
  }
  color: var(--color-info);
}
.admin-badge-admin {
  background: var(--color-success);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-success) 12%, transparent);
  }
  color: var(--color-success);
}
.admin-badge-you {
  background: var(--bg-active);
  color: var(--text-primary);
}
.admin-chip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border: 1px solid var(--border-default);
  border-radius: 9999px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
}
.admin-chip:hover {
  background: var(--bg-hover);
}
.admin-chip.active {
  background: var(--bg-active);
  border-color: transparent;
  color: var(--text-primary);
  font-weight: 600;
}
.admin-chip-count {
  opacity: 0.75;
  font-weight: 400;
}
.weather-health-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.weather-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
}
.weather-status-ok {
  background: var(--color-success);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-success) 15%, transparent);
  }
  color: var(--color-success);
}
.weather-status-degraded {
  background: var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-warning) 18%, transparent);
  }
  color: var(--color-warning);
}
.weather-status-down {
  background: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-error) 15%, transparent);
  }
  color: var(--color-error);
}
.weather-status-off {
  background: var(--bg-active);
  color: var(--text-secondary);
}
.weather-problems {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.weather-problem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
}
.weather-problem-error {
  border-color: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--color-error) 40%, var(--border-default));
  }
}
.weather-problem-warn {
  border-color: var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--color-warning) 40%, var(--border-default));
  }
}
.weather-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  margin-top: 5px;
  flex-shrink: 0;
}
.weather-dot-ok {
  background: var(--color-success);
}
.weather-dot-info {
  background: var(--color-info);
}
.weather-dot-warn {
  background: var(--color-warning);
}
.weather-dot-error {
  background: var(--color-error);
}
.weather-age-fresh {
  color: var(--color-success);
}
.weather-age-warn {
  color: var(--color-warning);
}
.weather-age-stale {
  color: var(--color-error);
}
.weather-log-level {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.weather-log-level-info {
  color: var(--text-tertiary);
}
.weather-log-level-warn {
  color: var(--color-warning);
}
.weather-log-level-error {
  color: var(--color-error);
}
.weather-log-err {
  color: var(--color-error);
}
.weather-log-table td {
  font-size: 0.8125rem;
}
.weather-log-select, .weather-log-input {
  padding: 4px 10px;
  border: 1px solid var(--border-default);
  border-radius: 9999px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.75rem;
}
.weather-log-input {
  width: 140px;
}
.email-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.email-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.email-optional {
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 0.6875rem;
}
.email-provider-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.email-provider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: var(--bg-surface);
}
.email-drag-handle {
  cursor: grab;
  color: var(--text-tertiary);
  font-size: 1rem;
  line-height: 1;
  user-select: none;
  touch-action: none;
}
.email-drag-handle:active {
  cursor: grabbing;
}
.email-provider-main {
  min-width: 0;
  flex: 1 1 auto;
}
.email-provider-name {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.email-provider-sub {
  margin-top: 2px;
}
.email-kind-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 9999px;
  background: var(--bg-active);
  color: var(--text-secondary);
}
.email-provider-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.email-provider-counts {
  display: flex;
  align-items: stretch;
  gap: 4px;
  flex-shrink: 0;
  padding: 2px 4px;
  border-radius: 8px;
}
.email-provider-counts.has-desc {
  cursor: help;
}
.email-provider-counts.has-desc:hover, .email-provider-counts.has-desc:focus-visible {
  background: var(--bg-active);
  outline: none;
}
.email-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
  padding: 0 4px;
}
.email-count + .email-count {
  border-left: 1px solid var(--border-default);
}
.email-count-val {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.2;
}
.email-count-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}
.email-count-info {
  align-self: center;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}
@media (max-width: 560px) {
  .email-provider-counts {
    order: 3;
  }
  .email-provider-actions {
    order: 2;
  }
}
.email-status {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 9999px;
  text-transform: capitalize;
}
.email-status--queued {
  background: var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-warning) 18%, var(--bg-surface));
  }
  color: var(--color-warning);
}
.email-status--sending {
  background: var(--color-info);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-info) 18%, var(--bg-surface));
  }
  color: var(--color-info);
}
.email-status--sent {
  background: var(--color-success);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-success) 18%, var(--bg-surface));
  }
  color: var(--color-success);
}
.email-status--failed {
  background: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-error) 18%, var(--bg-surface));
  }
  color: var(--color-error);
}
.email-log-table td {
  vertical-align: top;
}
.email-log-subject {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.email-log-detail {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-tertiary);
  font-size: 0.71875rem;
}
.email-log-actions {
  text-align: right;
  white-space: nowrap;
}
.email-provider-from {
  display: inline-block;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin-left: 6px;
}
.admin-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78125rem;
  margin-bottom: 12px;
  background: var(--bg-active);
  color: var(--text-secondary);
}
.admin-banner--warn {
  background: var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-warning) 16%, var(--bg-surface));
  }
  color: var(--color-warning);
}
.admin-feedback-title {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.admin-feedback-body {
  font-size: 0.78125rem;
  color: var(--text-secondary);
  margin-top: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin-feedback-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.admin-feedback-shot {
  display: block;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
  background: var(--bg-surface);
}
.admin-feedback-shot img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.admin-log-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.admin-log-presets-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-right: 2px;
}
.admin-log-preset {
  padding: 3px 10px;
  font-size: 0.71875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.admin-log-preset:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
  background: var(--bg-sidebar);
}
.admin-log-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-log-toolbar-spacer {
  flex: 1 1 auto;
}
.admin-log-toolbar .admin-select, .admin-log-toolbar .admin-input {
  padding: 5px 8px;
  font-size: 0.75rem;
}
.admin-log-search {
  width: 160px;
}
.admin-log-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
}
.admin-log-conn {
  display: inline-flex;
  align-items: center;
  font-size: 0.71875rem;
  font-weight: 600;
  white-space: nowrap;
}
.admin-log-conn--ok {
  color: var(--color-success);
}
.admin-log-conn--wait {
  color: var(--text-tertiary);
}
.admin-log-conn--err {
  color: var(--color-warning);
}
.admin-log-stream {
  height: 60vh;
  min-height: 240px;
  overflow-y: auto;
  padding: 8px 10px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.71875rem;
  line-height: 1.5;
  -webkit-overflow-scrolling: touch;
}
.admin-log-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 1px 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-log-time {
  color: var(--text-tertiary);
  flex: 0 0 auto;
  opacity: 0.85;
}
.admin-log-text {
  flex: 1 1 auto;
  color: var(--text-secondary);
}
.admin-log-level {
  flex: 0 0 auto;
  width: 42px;
  font-weight: 700;
  font-size: 0.625rem;
  text-align: right;
}
.admin-log-level--debug {
  color: #7c3aed;
}
.admin-log-level--info {
  color: #2563eb;
}
.admin-log-level--http {
  color: var(--text-tertiary);
}
.admin-log-level--warn {
  color: #b45309;
}
.admin-log-level--error {
  color: #dc2626;
}
.admin-log-line--warn .admin-log-text {
  color: #b45309;
}
.admin-log-line--error .admin-log-text {
  color: #dc2626;
}
.fb-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fb-shots:empty {
  display: none;
}
.fb-shot {
  position: relative;
  width: 72px;
  height: 72px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-surface);
}
.fb-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fb-shot-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-shot-remove:hover {
  background: rgba(0, 0, 0, 0.8);
}
.fb-shots-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.fb-add-shot {
  width: auto;
}
.fb-add-shot:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.fb-shots-hint {
  font-size: 0.75rem;
}
.admin-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}
.admin-empty-icon {
  margin-bottom: 8px;
  opacity: 0.7;
  display: flex;
  justify-content: center;
}
.admin-file {
  font-size: 0.78125rem;
  color: var(--text-secondary);
  max-width: 100%;
}
.admin-file::file-selector-button {
  margin-right: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.1s;
}
.admin-file::file-selector-button:hover {
  background: var(--bg-hover);
}
#print-root {
  display: none;
}
@media print {
  body.is-printing > *:not(#print-root) {
    display: none !important;
  }
  body.is-printing {
    background: #fff;
  }
  #print-root {
    display: block !important;
    position: absolute;
    inset: 0;
    color: #000;
    background: #fff;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 12pt;
    line-height: 1.45;
    padding: 0;
  }
  @page {
    margin: 1.6cm;
  }
  #print-root .print-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    border-bottom: 1.5pt solid #000;
    padding-bottom: 6pt;
    margin-bottom: 12pt;
  }
  #print-root .print-app-name {
    font-size: 15pt;
    font-weight: 700;
  }
  #print-root .print-stamp {
    font-size: 9pt;
    color: #444;
    white-space: nowrap;
  }
  #print-root .print-check {
    font-size: 13pt;
    margin-right: 7pt;
  }
  #print-root .print-done {
    color: #555;
  }
  #print-root .print-task-title {
    display: flex;
    align-items: baseline;
    gap: 2pt;
    font-size: 18pt;
    font-weight: 700;
    margin: 0 0 12pt;
  }
  #print-root .print-task-title.print-done span {
    text-decoration: line-through;
  }
  #print-root .print-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 2pt 16pt;
    margin-bottom: 14pt;
  }
  #print-root .print-meta-row {
    display: contents;
  }
  #print-root .print-meta-key {
    font-weight: 600;
    color: #333;
  }
  #print-root .print-meta-val {
    color: #000;
  }
  #print-root .print-section {
    margin: 14pt 0;
    break-inside: avoid;
  }
  #print-root .print-section-title {
    font-size: 10pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #333;
    border-bottom: 0.5pt solid #bbb;
    padding-bottom: 3pt;
    margin: 0 0 6pt;
  }
  #print-root .print-desc {
    white-space: normal;
  }
  #print-root .print-desc a, #print-root .print-note-body a {
    color: #000;
    text-decoration: underline;
  }
  #print-root .print-note {
    margin-bottom: 8pt;
    break-inside: avoid;
  }
  #print-root .print-note-meta {
    font-size: 9pt;
    color: #555;
    margin-bottom: 2pt;
  }
  #print-root .print-list, #print-root .print-subtask-list {
    list-style: none;
    margin: 0 0 8pt;
    padding: 0;
  }
  #print-root .print-item, #print-root .print-subtask {
    display: flex;
    align-items: baseline;
    gap: 4pt;
    flex-wrap: wrap;
    padding: 2.5pt 0;
    border-bottom: 0.25pt solid #ddd;
    break-inside: avoid;
  }
  #print-root .print-item-title, #print-root .print-subtask-title {
    flex: 1;
    min-width: 50%;
  }
  #print-root .print-done .print-item-title, #print-root .print-done .print-subtask-title {
    text-decoration: line-through;
  }
  #print-root .print-group-title {
    font-size: 11pt;
    font-weight: 700;
    margin: 12pt 0 4pt;
    break-after: avoid;
  }
  #print-root .print-badge {
    font-size: 9pt;
    color: #333;
    border: 0.5pt solid #999;
    border-radius: 3pt;
    padding: 0 4pt;
    white-space: nowrap;
  }
  #print-root .print-badge-pri {
    font-weight: 600;
  }
  #print-root .print-empty {
    color: #555;
  }
  #print-root.print-cal-month {
    page: cal-landscape;
  }
  #print-root .print-cal-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }
  #print-root .print-cal-th {
    border: 0.5pt solid #999;
    padding: 3pt 4pt;
    font-size: 9pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    background: #eee;
  }
  #print-root .print-cal-cell {
    border: 0.5pt solid #999;
    vertical-align: top;
    padding: 2pt 3pt 4pt;
    height: 2.6cm;
    width: 14.28%;
    break-inside: avoid;
  }
  #print-root .print-cal-cell.is-outside {
    background: #f4f4f4;
    color: #888;
  }
  #print-root .print-cal-cell.is-today {
    background: #e8e8e8;
  }
  #print-root .print-cal-cell.is-today .print-cal-daynum {
    font-weight: 700;
    text-decoration: underline;
  }
  #print-root .print-cal-daynum {
    font-size: 10pt;
    font-weight: 600;
    margin-bottom: 2pt;
  }
  #print-root .print-cal-tasklist {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #print-root .print-cal-task {
    display: flex;
    align-items: baseline;
    gap: 2pt;
    font-size: 8.5pt;
    line-height: 1.25;
    margin-bottom: 1.5pt;
    break-inside: avoid;
  }
  #print-root .print-cal-task .print-check {
    font-size: 8.5pt;
    margin-right: 1pt;
  }
  #print-root .print-cal-task.print-done .print-cal-task-title {
    text-decoration: line-through;
    color: #666;
  }
  #print-root .print-cal-time {
    font-weight: 600;
    white-space: nowrap;
  }
  #print-root .print-cal-task-title {
    overflow-wrap: anywhere;
  }
  #print-root .print-cal-workout {
    font-size: 8.5pt;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 1.5pt;
    break-inside: avoid;
  }
  #print-root .print-cal-workout.is-missed {
    font-weight: 400;
    font-style: italic;
    color: #666;
  }
  #print-root .print-section .print-cal-workout {
    font-size: 9.5pt;
    margin: 0 0 3pt;
  }
}
@page cal-landscape {
  size: landscape;
  margin: 1.2cm;
}
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: auto;
  background: transparent;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.tour-overlay--dim {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.tour-overlay.tour-leaving {
  opacity: 0;
}
.tour-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  outline: 2px solid var(--bg-primary);
  outline-offset: 2px;
  pointer-events: none;
  transition: top 0.25s cubic-bezier(0.32, 0.72, 0, 1), left 0.25s cubic-bezier(0.32, 0.72, 0, 1), width 0.25s cubic-bezier(0.32, 0.72, 0, 1), height 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.tour-pop {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  max-width: calc(100vw - 20px);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px 18px 14px;
  z-index: 2001;
  transition: top 0.2s ease, left 0.2s ease;
}
.tour-pop--card {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  width: 420px;
}
.tour-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tour-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.tour-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 6px;
}
.tour-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 24px 8px 0;
}
.tour-pop--card .tour-title {
  margin-right: 0;
}
.tour-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 14px;
}
.tour-body svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  display: inline-block;
}
.tour-lede {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.tour-pop--hub {
  width: 480px;
  max-height: min(86vh, 680px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tour-pop--hub .tour-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tour-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 2px;
}
.tour-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.tour-card:hover {
  border-color: var(--bg-primary);
  background: var(--bg-hover);
}
.tour-card:active {
  transform: translateY(1px);
}
.tour-card:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}
.tour-card-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--bg-primary);
  color: var(--text-on-primary);
}
.tour-card-icon svg {
  width: 18px;
  height: 18px;
}
.tour-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.tour-card-title {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.25;
}
.tour-card-blurb {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-tertiary);
}
.tour-card-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.tour-card-count {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.tour-card-check {
  display: flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--text-on-primary);
}
.tour-card-check svg {
  width: 12px;
  height: 12px;
}
.tour-card.is-done {
  border-color: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--bg-primary) 35%, var(--border-default));
  }
}
.tour-finish-mark {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 2px 0 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--text-on-primary);
}
.tour-finish-mark svg {
  width: 24px;
  height: 24px;
}
.tour-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.tour-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-default);
  transition: background 0.2s, transform 0.2s;
}
.tour-dot.is-done {
  background: var(--bg-primary);
  opacity: 0.5;
}
.tour-dot.is-active {
  background: var(--bg-primary);
  transform: scale(1.4);
}
.tour-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.tour-actions--hub {
  justify-content: space-between;
}
.tour-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.tour-btn-primary {
  background: var(--bg-primary);
  color: var(--text-on-primary);
}
.tour-btn-primary:hover {
  background: var(--bg-primary-hover);
}
.tour-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}
.tour-btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.tour-btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}
.tour-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.tour-btn:disabled:hover {
  background: transparent;
  color: var(--text-secondary);
}
@media (max-width: 520px) {
  .tour-pop, .tour-pop--card, .tour-pop--hub {
    width: calc(100vw - 20px);
  }
  .tour-hub-grid {
    grid-template-columns: 1fr;
  }
  .tour-card-blurb {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-overlay, .tour-spotlight, .tour-pop, .tour-dot, .tour-card {
    transition: none;
  }
}
.view-switch {
  display: inline-flex;
  height: 36px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}
.view-switch-btn + .view-switch-btn {
  border-left: 1px solid var(--border-default);
}
.view-switch-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.view-switch-btn.active {
  background: var(--bg-primary);
  color: var(--text-on-primary);
}
.view-switch-btn:focus-visible {
  outline: 2px solid var(--bg-primary);
  outline-offset: -2px;
}
.view-switch-icon {
  display: inline-flex;
}
.list-view-switch {
  display: inline-flex;
  height: 36px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}
.list-view-switch-list {
  min-width: 0;
  max-width: 240px;
  border-radius: 0;
}
.list-view-switch-list .list-switcher-chevron {
  margin-left: 2px;
}
.list-view-switch-list.active .list-switcher-chevron {
  color: var(--text-on-primary);
}
.list-view-switch-list.disabled {
  opacity: 0.6;
  cursor: default;
}
.tracker-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px;
  gap: 20px;
}
.tracker-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}
.tracker-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.tracker-manage-btn {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-family: inherit;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.tracker-manage-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.tracker-type-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.tracker-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tracker-summary-stats {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.tracker-summary-date {
  font-weight: 600;
  color: var(--text-primary);
}
.tracker-summary-stat strong {
  color: var(--text-primary);
  font-weight: 600;
}
.tracker-panes {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--bg-hover);
  border-radius: 10px;
  align-self: flex-start;
}
.tracker-pane-tab {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}
.tracker-pane-tab.is-active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}
.tracker-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.tracker-card-grid.is-compact {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.tracker-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.tracker-card:hover {
  border-color: var(--bg-primary);
}
.tracker-card.is-empty {
  border-style: dashed;
}
.tracker-card.is-stale .tracker-card-hero-value {
  color: var(--text-secondary);
}
.tracker-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 12px 8px;
  background: transparent;
  border: none;
  font-family: inherit;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.tracker-card-body:hover {
  background: var(--bg-hover);
}
.tracker-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.tracker-card-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tracker-card-hero {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.tracker-card-hero-value {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tracker-card-hero-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tracker-card-delta {
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tracker-card-delta[data-tone="neutral"] {
  color: var(--text-secondary);
}
.tracker-card-delta[data-tone="good"] {
  color: var(--bg-primary);
}
.tracker-card-delta[data-tone="bad"] {
  color: var(--color-warning);
}
.tracker-card-spark {
  width: 100%;
  height: 28px;
  margin-top: 6px;
  overflow: visible;
}
.tracker-card.is-compact .tracker-card-spark {
  height: 20px;
  margin-top: 4px;
}
.tracker-spark-base {
  stroke: var(--border-default);
  stroke-width: 1;
}
.tracker-spark-line {
  fill: none;
  stroke: var(--bg-primary);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.tracker-spark-area {
  fill: var(--bg-primary);
  opacity: 0.12;
  stroke: none;
}
.tracker-spark-bar {
  fill: var(--bg-primary);
  opacity: 0.35;
}
.tracker-spark-bar.is-today {
  opacity: 1;
}
.tracker-spark-dot {
  fill: var(--bg-primary);
}
.tracker-card-foot, .tracker-card-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 12px;
  border-top: 1px solid var(--border-default);
  min-height: 40px;
}
.tracker-card-meta {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.tracker-streak-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.tracker-card-log {
  position: relative;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.tracker-card-log::after {
  content: '';
  position: absolute;
  inset: 50% 0 0 0;
  height: 44px;
  transform: translateY(-50%);
}
.tracker-card-log:hover {
  background: var(--bg-primary);
  border-color: var(--bg-primary);
  color: var(--text-on-primary);
}
.tracker-card.is-stale .tracker-card-log {
  color: var(--text-secondary);
}
.tracker-entry-input {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8125rem;
  outline: none;
}
.tracker-entry-input:focus {
  border-color: var(--border-focus);
}
.tracker-entry-input.is-invalid {
  border-color: var(--color-error);
}
.tracker-entry-commit {
  padding: 5px 10px;
  border: none;
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-on-primary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}
.tracker-entry-more, .tracker-entry-cancel {
  padding: 5px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.tracker-entry-more:hover, .tracker-entry-cancel:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.tracker-card-entry.is-choice {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 6px 8px;
}
.tracker-entry-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}
.tracker-chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tracker-chip-row::-webkit-scrollbar {
  display: none;
}
.tracker-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.tracker-chip.is-icon {
  width: 28px;
  height: 28px;
  padding: 0;
}
.tracker-chip:hover {
  background: var(--bg-primary);
  border-color: var(--bg-primary);
  color: var(--text-on-primary);
}
.tracker-chip-icon {
  font-size: 1rem;
  line-height: 1;
}
.tracker-chip-label {
  max-width: 11ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tracker-card-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 110px;
  border: 1px dashed var(--border-default);
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  cursor: pointer;
}
.tracker-card-new:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.tracker-card-grid.is-compact .tracker-card-new {
  min-height: 84px;
}
.tracker-empty {
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 8px 0;
}
.tracker-filter-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-family: inherit;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  max-width: 50%;
}
.tracker-history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tracker-day-head {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.tracker-log-row {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--border-default);
}
.tracker-log-row:last-child {
  border-bottom: none;
}
.tracker-log-flash {
  animation: tracker-log-flash 1.6s ease-out;
  border-radius: 6px;
}
@keyframes tracker-log-flash {
  0% {
    background: var(--bg-hover);
  }
  100% {
    background: transparent;
  }
}
.tracker-log-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
  text-align: left;
  min-width: 0;
}
.tracker-log-main:hover {
  background: var(--bg-hover);
  border-radius: 6px;
}
.tracker-log-name {
  font-size: 0.875rem;
  font-weight: 500;
  flex-shrink: 0;
}
.tracker-log-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bg-primary);
  flex-shrink: 0;
}
.tracker-log-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: auto;
  flex-shrink: 0;
}
.tracker-log-note {
  font-size: 0.75rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-primary) 12%, var(--bg-surface));
  }
  border: 1px solid var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--bg-primary) 30%, var(--border-default));
  }
  border-radius: 999px;
  padding: 2px 9px;
  max-width: 45%;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tracker-log-del {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 6px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.tracker-log-del:hover {
  background: var(--bg-hover);
  color: var(--text-destructive, #dc2626);
}
.calendar-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-title {
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-left: 4px;
}
.calendar-nav-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  border-radius: 7px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.calendar-nav-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.calendar-today-btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border-default);
  border-radius: 7px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.calendar-today-btn:hover {
  background: var(--bg-hover);
}
.calendar-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-completed-toggle, .calendar-weather-toggle, .calendar-tag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border-default);
  border-radius: 7px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.calendar-completed-toggle:hover, .calendar-weather-toggle:hover, .calendar-tag-toggle:hover {
  background: var(--bg-hover);
}
.calendar-completed-toggle.active, .calendar-weather-toggle.active, .calendar-tag-toggle.active {
  background: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-primary) 12%, var(--bg-surface));
  }
  border-color: var(--bg-primary);
  color: var(--text-primary);
}
.calendar-completed-icon {
  font-size: 0.75rem;
}
.calendar-weather-icon {
  font-size: 0.75rem;
}
.calendar-tag-icon {
  font-size: 0.8125rem;
  font-weight: 700;
  opacity: 0.75;
}
.calendar-tag-value {
  max-width: 11ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-weight: 600;
}
.calendar-mode-switch {
  display: inline-flex;
  border: 1px solid var(--border-default);
  border-radius: 7px;
  overflow: hidden;
}
.calendar-mode-btn {
  height: 30px;
  padding: 0 11px;
  border: none;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.calendar-mode-btn + .calendar-mode-btn {
  border-left: 1px solid var(--border-default);
}
.calendar-mode-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.calendar-mode-btn.active {
  background: var(--bg-primary);
  color: var(--text-on-primary);
}
.calendar-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border-default);
  border-radius: 7px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.calendar-print-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.calendar-print-btn svg {
  display: block;
}
@media (max-width: 560px) {
  .calendar-print-label {
    display: none;
  }
  .calendar-print-btn {
    padding: 0 8px;
  }
  .calendar-tag-label {
    display: none;
  }
  .calendar-tag-toggle {
    padding: 0 8px;
  }
}
.calendar-month {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 16px 16px;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px 0 6px;
}
.calendar-weekday {
  text-align: right;
  padding-right: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.calendar-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 1fr;
  min-height: 0;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}
.calendar-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 4px 4px 2px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  cursor: pointer;
  overflow: hidden;
  transition: background 0.12s;
}
.calendar-cell:hover {
  background: var(--bg-hover);
}
.calendar-cell:nth-child(7n) {
  border-right: none;
}
.calendar-grid > .calendar-cell:nth-last-child(-n+7) {
  border-bottom: none;
}
.calendar-cell.is-outside {
  background: var(--bg-hover);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-hover) 45%, var(--bg-surface));
  }
}
.calendar-cell.is-outside .calendar-cell-day {
  color: var(--text-tertiary);
}
.calendar-cell-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1px 3px 2px;
}
.calendar-cell-wx {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: auto;
  min-width: 0;
  overflow: hidden;
  font-size: 0.625rem;
  line-height: 1.4;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.calendar-cell-wx-icon {
  font-size: 0.6875rem;
}
.calendar-cell-wx-temps {
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-cell.is-outside .calendar-cell-wx {
  opacity: 0.6;
}
.calendar-cell-day {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
  min-width: 1.4em;
  text-align: center;
  border-radius: 999px;
}
.calendar-cell.is-today .calendar-cell-day {
  background: var(--bg-primary);
  color: var(--text-on-primary);
  padding: 1px 2px;
}
.calendar-cell-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  min-height: 0;
  flex: 1;
}
.calendar-cell.is-drop-target {
  background: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-primary) 10%, var(--bg-surface));
  }
  box-shadow: inset 0 0 0 2px var(--bg-primary);
}
.cal-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 1px 5px;
  border: none;
  border-radius: 5px;
  background: var(--bg-hover);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.12s;
}
.cal-chip:hover {
  background: var(--bg-hover-strong);
}
.cal-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.cal-chip-flag {
  flex-shrink: 0;
  font-size: 0.6875rem;
  line-height: 1;
}
.cal-chip-time {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.cal-chip-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.cal-chip.is-completed {
  opacity: 0.55;
}
.cal-chip.is-completed .cal-chip-title {
  text-decoration: line-through;
}
.cal-chip.is-overdue {
  background: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-error) 14%, var(--bg-surface));
  }
}
.cal-chip.is-overdue .cal-chip-title {
  color: var(--text-error);
}
.calendar-more {
  align-self: flex-start;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.calendar-more:hover {
  color: var(--bg-primary);
  text-decoration: underline;
}
.calendar-agenda {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 32px;
}
.agenda-section {
  margin-top: 14px;
}
.agenda-section:first-child {
  margin-top: 4px;
}
.agenda-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 8px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 1;
}
.agenda-section-label {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--text-primary);
}
.agenda-section-count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--bg-hover);
  border-radius: 999px;
  padding: 1px 7px;
}
.agenda-section.is-overdue .agenda-section-label {
  color: var(--text-error);
}
.agenda-section.is-overdue .agenda-section-count {
  color: var(--text-error);
  background: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-error) 14%, var(--bg-surface));
  }
}
.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agenda-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 9px 6px;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.agenda-row:hover {
  background: var(--bg-hover);
}
.agenda-row-time {
  flex-shrink: 0;
  width: 64px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.agenda-row.is-overdue .agenda-row-time {
  color: var(--text-error);
}
.agenda-row-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.agenda-row-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agenda-row.is-completed {
  opacity: 0.55;
}
.agenda-row.is-completed .agenda-row-title {
  text-decoration: line-through;
}
.agenda-row-list {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.calendar-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 48px 16px;
  text-align: center;
  color: var(--text-secondary);
}
.calendar-empty-hint {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}
@media (max-width: 1000px) {
  .app-header .view-switch-label {
    display: none;
  }
  .app-header .view-switch-btn {
    padding: 0 9px;
  }
}
@media (max-width: 640px) {
  .calendar-month {
    overflow-y: auto;
  }
  .calendar-grid {
    grid-auto-rows: minmax(76px, 1fr);
  }
  .calendar-title {
    font-size: 0.9375rem;
  }
  .calendar-cell-wx-temps {
    display: none;
  }
  .calendar-weather-label {
    display: none;
  }
}
.todo-item-active {
  position: relative;
  background: var(--text-link);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--text-link) 10%, transparent);
  }
}
.todo-item-active > .todo-row:hover {
  background: var(--text-link);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--text-link) 16%, transparent);
  }
}
.todo-item-active::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset -3px 0 0 0 var(--text-link);
  pointer-events: none;
}
.todo-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 2px;
  margin-right: 8px;
  padding: 1px 8px 1px 6px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-link);
  background: var(--text-link);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--text-link) 14%, transparent);
  }
}
.view-switch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  margin-left: 5px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-on-primary);
  background: var(--text-link);
}
.active-view-group {
  margin-bottom: 18px;
}
.active-view-group-header {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 4px 4px 8px;
  cursor: pointer;
  border-radius: 6px;
}
.active-view-group-header:hover, .active-view-group-header:focus-visible {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.active-view-group-count {
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-hover);
}
.workout-root {
  padding: 16px 18px 40px;
  overflow-y: auto;
  height: 100%;
}
.workout-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.workout-title {
  font-size: 1.125rem;
  font-weight: 650;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}
.workout-header-actions {
  display: flex;
  gap: 8px;
}
.workout-back {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8125rem;
  padding: 4px 6px;
  border-radius: 6px;
}
.workout-back:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.workout-btn {
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8125rem;
  font-weight: 550;
  cursor: pointer;
  background: var(--bg-primary);
  color: var(--text-on-primary);
}
.workout-btn:hover {
  background: var(--bg-primary-hover);
}
.workout-btn--ghost {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.workout-btn--ghost:hover {
  background: var(--bg-hover-strong);
}
.workout-btn--danger {
  background: var(--bg-destructive);
  color: var(--text-on-primary);
}
.workout-btn--danger:hover {
  background: var(--bg-destructive-hover);
}
.workout-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-secondary);
}
.workout-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.workout-empty-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.workout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.workout-card {
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg-surface);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.workout-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-sm);
}
.workout-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.workout-card-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  flex: 1;
}
.workout-card-log {
  border: none;
  background: var(--bg-hover);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.workout-card-log:hover {
  background: var(--bg-active);
}
.workout-card-summary {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.workout-card-summary--empty {
  font-style: italic;
  color: var(--text-tertiary);
}
.workout-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.workout-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  white-space: nowrap;
}
.workout-badge--streak {
  background: #f97316;
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, #f97316 18%, var(--bg-surface));
  }
  color: var(--text-primary);
}
.workout-badge--best {
  background: #eab308;
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, #eab308 20%, var(--bg-surface));
  }
  color: var(--text-primary);
}
.cal-workout-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  cursor: pointer;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 1px 5px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.5;
}
.cal-workout-chip:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
}
.cal-workout-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-workout-chip.is-done {
  background: var(--color-success);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-success) 16%, var(--bg-surface));
  }
  border-color: var(--color-success);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--color-success) 45%, var(--border-default));
  }
  color: var(--text-primary);
}
.cal-workout-chip.is-missed {
  border-style: dashed;
  border-color: var(--bg-destructive);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--bg-destructive) 45%, var(--border-default));
  }
}
.agenda-workout-row {
  margin: 0 0 6px;
}
.agenda-workout-row .cal-workout-chip {
  width: auto;
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
}
.cal-tracker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.cal-tracker-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0 5px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  line-height: 1.5;
}
.cal-tracker-row:hover .cal-tracker-pill {
  border-color: var(--border-focus);
  color: var(--text-primary);
}
.cal-tracker-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-tracker-count {
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.cal-tracker-overflow {
  color: var(--text-tertiary);
  font-weight: 600;
}
.agenda-tracker-row {
  margin: 0 0 6px;
}
.agenda-tracker-row .cal-tracker-pill {
  padding: 2px 9px;
  font-size: 0.75rem;
}
.workout-hero {
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--bg-primary);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.workout-hero--rest {
  border-left-color: var(--border-default);
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}
.workout-hero--done {
  border-left-color: var(--color-success);
}
.workout-hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}
.workout-hero-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.workout-hero-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}
.workout-hero-next {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.workout-hero-start {
  font-size: 0.875rem;
  padding: 9px 18px;
}
.workout-hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.workout-hero-ex {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-primary);
  padding: 2px 0;
}
.workout-hero-ex-target {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.workout-hero-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.workout-hero-check {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 7px 10px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.8125rem;
}
.workout-hero-check:hover {
  background: var(--bg-hover);
}
.workout-hero-check.is-done {
  opacity: 0.75;
}
.workout-hero-check.is-done .workout-hero-check-name {
  text-decoration: line-through;
  color: var(--text-secondary);
}
.workout-hero-check-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--border-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  color: var(--text-on-primary);
  flex-shrink: 0;
}
.workout-hero-check.is-done .workout-hero-check-mark {
  background: var(--color-success);
  border-color: var(--color-success);
}
.workout-hero-check-name {
  flex: 1;
  font-weight: 550;
}
.workout-hero-check-count {
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .workout-hero {
    transition: border-color 0.25s;
  }
  .workout-hero-checklist {
    animation: hero-reveal 0.25s ease-out;
  }
  @keyframes hero-reveal {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
.workout-week {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
}
.workout-week-seg {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1.5px solid var(--border-light);
  border-radius: 9px;
  padding: 6px 2px 5px;
  background: transparent;
  cursor: pointer;
  color: var(--text-tertiary);
}
.workout-week-seg:hover {
  border-color: var(--border-focus);
}
.workout-week-day {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.workout-week-routine {
  font-size: 0.625rem;
  font-weight: 550;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 3px;
}
.workout-week-seg.is-planned {
  border-color: var(--border-default);
  color: var(--text-secondary);
}
.workout-week-seg.is-done {
  background: var(--color-success);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--color-success) 16%, var(--bg-surface));
  }
  border-color: var(--color-success);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--color-success) 45%, var(--border-default));
  }
  color: var(--text-primary);
}
.workout-week-seg.is-missed {
  border-style: dashed;
  border-color: var(--bg-destructive);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--bg-destructive) 45%, var(--border-default));
  }
  color: var(--text-secondary);
}
.workout-week-seg.is-today {
  border-width: 2px;
  border-color: var(--bg-primary);
  transform: scale(1.06);
}
.workout-sched-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
@media (max-width: 560px) {
  .workout-sched-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.workout-sched-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  border: 1px dashed var(--border-default);
  border-radius: 10px;
  padding: 10px 4px;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 0.75rem;
}
.workout-sched-day:hover {
  border-color: var(--border-focus);
  background: var(--bg-hover);
}
.workout-sched-day.has-routine {
  border-style: solid;
  border-color: var(--border-default);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.workout-sched-day-name {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}
.workout-sched-day-routine {
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workout-sched-day-remind {
  font-size: 0.625rem;
  color: var(--text-tertiary);
}
.workout-sched-routine {
  padding: 10px 0;
  border-top: 1px solid var(--border-light);
}
.workout-sched-routine:first-of-type {
  border-top: none;
  padding-top: 0;
}
.workout-sched-routine.is-archived {
  opacity: 0.6;
}
.workout-sched-routine-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.workout-sched-routine-name {
  font-weight: 650;
  font-size: 0.9375rem;
  color: var(--text-primary);
  flex: 1;
}
.workout-sched-routine-days {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.workout-sched-routine-exs {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 3px;
}
.workout-template-list {
  margin: 10px 0;
}
.workout-template-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border: 0;
  border-top: 1px solid var(--border-light);
}
.workout-template-item:hover {
  background: var(--bg-hover);
}
.routine-entries {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}
.routine-entry {
  display: grid;
  grid-template-columns: 1fr 64px 80px auto auto;
  gap: 6px;
  align-items: center;
}
@media (max-width: 560px) {
  .routine-entry {
    grid-template-columns: 1fr 56px 68px auto auto;
  }
}
.routine-entry-hint {
  font-weight: 400;
  color: var(--text-tertiary);
}
.routine-entry-move {
  display: inline-flex;
  gap: 2px;
}
.workout-history-overview {
  margin-top: 22px;
}
.workout-hist-day {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border-light);
}
.workout-hist-day:first-of-type {
  border-top: none;
}
.workout-hist-date {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.workout-hist-date-main {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.workout-hist-rel {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}
.workout-hist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.workout-hist-chip {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  white-space: nowrap;
}
.workout-hist-count {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .workout-hist-day {
    grid-template-columns: 1fr auto;
  }
  .workout-hist-chips {
    grid-column: 1 / -1;
  }
}
.workout-detail-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.4fr);
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 760px) {
  .workout-detail-top {
    grid-template-columns: 1fr;
  }
}
.workout-panel {
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg-surface);
}
.workout-detail .workout-panel + .workout-panel {
  margin-top: 14px;
}
.workout-panel-title {
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.workout-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.workout-chart-head .workout-panel-title {
  margin: 0;
  flex: 1;
}
.workout-metric-switch {
  display: inline-flex;
  background: var(--bg-hover);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.workout-metric-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 550;
  padding: 4px 9px;
  border-radius: 6px;
}
.workout-metric-btn:hover {
  color: var(--text-primary);
}
.workout-metric-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.workout-chart {
  width: 100%;
  height: auto;
}
.workout-chart-empty {
  padding: 28px 10px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}
.chart-grid {
  stroke: var(--border-light);
  stroke-width: 1;
}
.chart-axis-label {
  fill: var(--text-tertiary);
  font-size: 9px;
}
.chart-line {
  stroke: var(--bg-primary);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-area {
  fill: var(--bg-primary);
  opacity: 0.1;
}
.chart-dot {
  fill: var(--bg-primary);
}
.chart-bar {
  fill: var(--bg-primary);
  opacity: 0.85;
}
.chart-bar:hover {
  opacity: 1;
}
.workout-videos {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.workout-video-link {
  font-size: 0.8125rem;
  color: var(--text-link);
  text-decoration: none;
}
.workout-video-link:hover {
  text-decoration: underline;
}
.workout-video {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.workout-video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-hover);
}
.workout-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.workout-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 1.1rem;
  padding-left: 3px;
  transition: background 0.15s, transform 0.15s;
}
.workout-video-thumb:hover .workout-video-play {
  background: rgba(220, 38, 38, 0.92);
  transform: scale(1.06);
}
.workout-video-cap {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.workout-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.workout-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.workout-session {
  padding: 8px 0;
  border-top: 1px solid var(--border-light);
}
.workout-session:first-of-type {
  border-top: none;
}
.workout-session-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.workout-set-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.workout-set-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border-radius: 8px;
}
.workout-set-row:hover {
  background: var(--bg-hover);
}
.workout-set-row.is-done .workout-set-num {
  color: var(--color-success);
}
.workout-set-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-on-primary);
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.workout-set-row.is-done .workout-set-check {
  background: var(--color-success);
  border-color: var(--color-success);
}
.workout-set-num {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  width: 48px;
}
.workout-set-weight {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  width: 72px;
}
.workout-set-reps {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  flex: 1;
}
.workout-set-edit {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 6px;
}
.workout-set-edit:hover {
  color: var(--text-primary);
}
.body-diagram {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.body-figures {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.body-figure {
  flex: 1;
  max-width: 150px;
  text-align: center;
}
.body-figure svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.body-figure-label {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.body-silhouette {
  fill: var(--text-tertiary);
  @supports (color: color-mix(in lab, red, red)) {
    fill: color-mix(in srgb, var(--text-tertiary) 14%, var(--bg-surface));
  }
  stroke: var(--text-tertiary);
  @supports (color: color-mix(in lab, red, red)) {
    stroke: color-mix(in srgb, var(--text-tertiary) 45%, var(--bg-surface));
  }
  stroke-width: 0.6;
  stroke-linejoin: round;
}
.muscle-region path {
  fill: var(--text-tertiary);
  @supports (color: color-mix(in lab, red, red)) {
    fill: color-mix(in srgb, var(--text-tertiary) 38%, var(--bg-surface));
  }
  stroke: var(--text-tertiary);
  @supports (color: color-mix(in lab, red, red)) {
    stroke: color-mix(in srgb, var(--text-tertiary) 65%, var(--bg-surface));
  }
  stroke-width: 0.5;
  stroke-linejoin: round;
  transition: fill 0.15s, stroke 0.15s;
}
.muscle-region.is-targeted path {
  fill: var(--bg-primary);
  stroke: var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    stroke: color-mix(in srgb, var(--bg-primary) 70%, black);
  }
}
.muscle-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.muscle-legend--empty {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-style: italic;
}
.muscle-legend-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.muscle-legend-region {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-tertiary);
  margin-right: 2px;
}
.muscle-chip {
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--text-secondary);
}
.workout-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.workout-modal-card {
  background: var(--bg-surface);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  width: 420px;
  max-width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}
.workout-modal-card--wide {
  width: 560px;
}
.workout-modal-head {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}
.workout-modal-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  flex: 1;
}
.workout-modal-close {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1rem;
}
.workout-modal-close:hover {
  color: var(--text-primary);
}
.workout-modal-body {
  padding: 16px;
  overflow-y: auto;
}
.workout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.workout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.workout-field > span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.workout-input {
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.875rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
}
.workout-input:focus {
  border-color: var(--border-focus);
}
.workout-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}
.workout-link-btn {
  border: none;
  background: transparent;
  color: var(--text-link);
  cursor: pointer;
  font-size: 0.8125rem;
  padding: 2px 4px;
  align-self: flex-start;
}
.workout-link-btn:hover {
  text-decoration: underline;
}
.workout-link-btn--danger {
  color: var(--text-error);
}
.muscle-select {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.muscle-select-group {
  border: none;
  margin: 0;
  padding: 0;
}
.muscle-select-group legend {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}
.muscle-select-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-primary);
  padding: 1px 0;
  cursor: pointer;
}
.video-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}
.video-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 6px;
  align-items: center;
}
.editset-weight {
  display: flex;
  gap: 8px;
}
.editset-weight .workout-input:first-child {
  flex: 1;
  min-width: 0;
}
.editset-weight .editset-unit {
  flex: 0 0 72px;
}
.editset-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-primary);
  cursor: pointer;
}
.manage-exercises {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.manage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.manage-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 8px;
}
.manage-row:hover {
  background: var(--bg-hover);
}
.manage-row.is-archived {
  opacity: 0.6;
}
.manage-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.manage-actions {
  display: flex;
  gap: 4px;
}
.catalog-picker {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.catalog-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.catalog-group-head h4 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-primary);
  flex: 1;
}
.catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.catalog-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.catalog-item-main {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.catalog-item-name {
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text-primary);
}
.catalog-owned {
  font-size: 0.6875rem;
  color: var(--color-success);
  font-weight: 600;
}
[data-row-style="rail"] :is(.todo-priority-1, .todo-priority-2, .todo-priority-3) {
  box-shadow: none;
}
[data-row-style="rail"] :is(.todo-priority-1, .todo-priority-2, .todo-priority-3) > .todo-row {
  position: relative;
}
[data-row-style="rail"] :is(.todo-priority-1, .todo-priority-2, .todo-priority-3) > .todo-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 999px;
  pointer-events: none;
}
[data-row-style="rail"] .todo-priority-1 > .todo-row::before {
  background: #3b82f6;
}
[data-row-style="rail"] .todo-priority-2 > .todo-row::before {
  background: #d97706;
}
[data-row-style="rail"] .todo-priority-3 > .todo-row::before {
  background: #ef4444;
  box-shadow: 0 0 6px color-mix(in srgb, #ef4444 55%, transparent);
}
[data-row-style="rail"] .il-panel {
  position: relative;
  border-left-color: transparent;
}
[data-row-style="rail"] .il-panel::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 999px;
  background: var(--bg-primary);
  pointer-events: none;
}
[data-row-style="rail"] .todo-item-inline-open > .todo-children:has(> .todo-item) {
  position: relative;
}
[data-row-style="rail"] .todo-item-inline-open > .todo-children:has(> .todo-item)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 999px;
  background: var(--text-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--text-primary) 12%, transparent);
  }
  pointer-events: none;
}
[data-row-style="notch"] :is(.todo-priority-1, .todo-priority-2, .todo-priority-3) {
  box-shadow: none;
}
[data-row-style="notch"] :is(.todo-priority-1, .todo-priority-2, .todo-priority-3) > .todo-row {
  position: relative;
}
[data-row-style="notch"] :is(.todo-priority-1, .todo-priority-2, .todo-priority-3) > .todo-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 22px;
  margin-top: -11px;
  border-radius: 999px;
  pointer-events: none;
}
[data-row-style="notch"] .todo-priority-1 > .todo-row::before {
  background: #3b82f6;
  box-shadow: 0 0 7px color-mix(in srgb, #3b82f6 40%, transparent);
}
[data-row-style="notch"] .todo-priority-2 > .todo-row::before {
  background: #d97706;
  box-shadow: 0 0 7px color-mix(in srgb, #d97706 45%, transparent);
}
[data-row-style="notch"] .todo-priority-3 > .todo-row::before {
  background: #ef4444;
  box-shadow: 0 0 9px color-mix(in srgb, #ef4444 55%, transparent);
}
[data-row-style="notch"] .il-panel {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  padding: 2px 4px 4px;
  margin: 2px 8px 8px 40px;
}
[data-row-style="notch"] .il-panel .dl-footer {
  border-radius: 0 0 13px 13px;
}
[data-layout="compact"][data-row-style="notch"] .il-panel {
  margin-left: 28px;
}
@media (width < 40rem) {
  [data-row-style="notch"] .il-panel {
    margin-left: 16px;
  }
}
[data-row-style="notch"] .todo-children:has(> .todo-item) {
  border-left: 1px solid var(--border-light);
}
[data-row-style="glyph"] :is(.todo-priority-1, .todo-priority-2, .todo-priority-3) {
  box-shadow: none;
}
[data-row-style="glyph"] :is(.todo-priority-1, .todo-priority-2, .todo-priority-3) > .todo-row .todo-title::before {
  content: "";
  display: inline-block;
  vertical-align: -1px;
  width: 13px;
  height: 13px;
  margin-right: 6px;
  background-repeat: no-repeat;
  background-position: 0 100%, 5px 100%, 10px 100%;
  background-size: 3px 5px, 3px 9px, 3px 13px;
}
[data-row-style="glyph"] .todo-priority-1 > .todo-row .todo-title::before {
  background-image: linear-gradient(#3b82f6, #3b82f6);
}
[data-row-style="glyph"] .todo-priority-2 > .todo-row .todo-title::before {
  background-image: linear-gradient(#d97706, #d97706), linear-gradient(#d97706, #d97706);
}
[data-row-style="glyph"] .todo-priority-3 > .todo-row .todo-title::before {
  background-image: linear-gradient(#ef4444, #ef4444), linear-gradient(#ef4444, #ef4444), linear-gradient(#ef4444, #ef4444);
}
[data-row-style="glyph"] .il-panel {
  border: none;
  border-radius: 12px;
  background: var(--bg-page);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bg-page) 85%, black);
  }
  box-shadow: inset 0 1px 4px color-mix(in srgb, black 22%, transparent);
  padding: 4px 6px 6px;
  margin: 2px 8px 6px 8px;
}
[data-row-style="glyph"] .il-panel .dl-footer {
  border-radius: 0 0 11px 11px;
}
[data-row-style="thread"] {
  --rs-thread-line: var(--border-default);
}
[data-row-style="thread"] :is(.todo-priority-1, .todo-priority-2, .todo-priority-3) {
  box-shadow: none;
}
[data-row-style="thread"] .todo-priority-1 > .todo-row .complete-btn {
  box-shadow: 0 0 0 3px color-mix(in srgb, #3b82f6 24%, transparent);
}
[data-row-style="thread"] .todo-priority-2 > .todo-row .complete-btn {
  box-shadow: 0 0 0 3px color-mix(in srgb, #d97706 26%, transparent);
}
[data-row-style="thread"] .todo-priority-3 > .todo-row .complete-btn {
  box-shadow: 0 0 0 3px color-mix(in srgb, #ef4444 30%, transparent);
}
[data-row-style="thread"] .todo-priority-1 > .todo-row .complete-btn:not([aria-pressed="true"]) {
  border-color: #3b82f6;
}
[data-row-style="thread"] .todo-priority-2 > .todo-row .complete-btn:not([aria-pressed="true"]) {
  border-color: #d97706;
}
[data-row-style="thread"] .todo-priority-3 > .todo-row .complete-btn:not([aria-pressed="true"]) {
  border-color: #ef4444;
}
[data-row-style="thread"] .todo-children:has(> .todo-item) {
  box-shadow: inset 1px 0 0 0 var(--rs-thread-line);
}
[data-row-style="thread"] .todo-children > .todo-item > .todo-row {
  position: relative;
}
[data-row-style="thread"] .todo-children > .todo-item > .todo-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 11px;
  height: 50%;
  border-left: 1px solid var(--rs-thread-line);
  border-bottom: 1px solid var(--rs-thread-line);
  border-bottom-left-radius: 8px;
  pointer-events: none;
}
[data-row-style="thread"] :is(.sortable-drag, .sortable-fallback) > .todo-row::before {
  display: none;
}
[data-row-style="thread"] .il-panel {
  border: none;
  border-radius: 12px;
  background: var(--bg-hover);
  padding: 4px 6px 6px;
  margin: 2px 8px 6px 8px;
}
[data-row-style="thread"] .il-panel .dl-footer {
  border-radius: 0 0 11px 11px;
}
[data-row-style="glow"] :is(.todo-priority-1, .todo-priority-2, .todo-priority-3) {
  box-shadow: none;
}
[data-row-style="glow"] .todo-priority-1 > .todo-row {
  box-shadow: 0 0 8px color-mix(in srgb, #3b82f6 22%, transparent);
}
[data-row-style="glow"] .todo-priority-2 > .todo-row {
  box-shadow: 0 0 11px color-mix(in srgb, #d97706 28%, transparent);
}
[data-row-style="glow"] .todo-priority-3 > .todo-row {
  box-shadow: 0 0 15px color-mix(in srgb, #ef4444 34%, transparent);
}
[data-row-style="glow"] .il-panel {
  border: none;
  border-radius: 12px;
  background: var(--bg-hover);
  box-shadow: 0 0 14px var(--bg-primary);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 0 14px color-mix(in srgb, var(--bg-primary) 26%, transparent);
  }
  padding: 4px 6px 6px;
  margin: 2px 8px 8px 8px;
}
[data-row-style="glow"] .il-panel .dl-footer {
  border-radius: 0 0 11px 11px;
}
[data-row-style="wash"] :is(.todo-priority-1, .todo-priority-2, .todo-priority-3) {
  box-shadow: none;
}
[data-row-style="wash"] .todo-priority-1 > .todo-row {
  background-image: linear-gradient(color-mix(in srgb, #3b82f6 4%, transparent), color-mix(in srgb, #3b82f6 4%, transparent));
}
[data-row-style="wash"] .todo-priority-2 > .todo-row {
  background-image: linear-gradient(color-mix(in srgb, #d97706 6%, transparent), color-mix(in srgb, #d97706 6%, transparent));
}
[data-row-style="wash"] .todo-priority-3 > .todo-row {
  background-image: linear-gradient(color-mix(in srgb, #ef4444 8%, transparent), color-mix(in srgb, #ef4444 8%, transparent));
}
[data-row-style="wash"] .il-panel {
  border: none;
  border-radius: 10px;
  margin: 2px 8px 6px 8px;
  padding: 4px 6px 6px;
}
[data-row-style="wash"] .todo-priority-1 > .il-panel {
  background-image: linear-gradient(color-mix(in srgb, #3b82f6 5%, transparent), color-mix(in srgb, #3b82f6 5%, transparent));
}
[data-row-style="wash"] .todo-priority-2 > .il-panel {
  background-image: linear-gradient(color-mix(in srgb, #d97706 7%, transparent), color-mix(in srgb, #d97706 7%, transparent));
}
[data-row-style="wash"] .todo-priority-3 > .il-panel {
  background-image: linear-gradient(color-mix(in srgb, #ef4444 9%, transparent), color-mix(in srgb, #ef4444 9%, transparent));
}
[data-row-style="wash"] .il-panel .dl-footer {
  border-radius: 0 0 9px 9px;
}
[data-row-style="gauge"] {
  --rs-gauge-fill: var(--bg-primary);
  --rs-gauge-track: var(--text-primary);
  @supports (color: color-mix(in lab, red, red)) {
    --rs-gauge-track: color-mix(in srgb, var(--text-primary) 12%, transparent);
  }
}
[data-row-style="gauge"] :is(.todo-priority-1, .todo-priority-2, .todo-priority-3) {
  box-shadow: none;
}
[data-row-style="gauge"] .todo-priority-1 {
  --rs-gauge-fill: #3b82f6;
}
[data-row-style="gauge"] .todo-priority-2 {
  --rs-gauge-fill: #d97706;
}
[data-row-style="gauge"] .todo-priority-3 {
  --rs-gauge-fill: #ef4444;
}
[data-row-style="gauge"] :is(.todo-priority-1, .todo-priority-2, .todo-priority-3) > .todo-row .complete-btn:not([aria-pressed="true"]) {
  border-color: var(--rs-gauge-fill);
  background: var(--rs-gauge-fill);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--rs-gauge-fill) 30%, transparent);
  }
}
[data-row-style="gauge"] .todo-item[style*="--rs-subtask-progress"] > .todo-row {
  position: relative;
}
[data-row-style="gauge"] .todo-item[style*="--rs-subtask-progress"] > .todo-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--rs-gauge-fill) var(--rs-subtask-progress), var(--rs-gauge-track) var(--rs-subtask-progress));
  pointer-events: none;
}
[data-row-style="gauge"] :is(.sortable-drag, .sortable-fallback) > .todo-row::before {
  display: none;
}
[data-row-style="gauge"] .il-panel {
  border: none;
  border-radius: 12px;
  background: var(--bg-hover);
  padding: 4px 6px 6px;
  margin: 2px 8px 6px 8px;
}
[data-row-style="gauge"] .il-panel .dl-footer {
  border-radius: 0 0 11px 11px;
}
@property --tw-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-z {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-leading {
  syntax: "*";
  inherits: false;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-tracking {
  syntax: "*";
  inherits: false;
}
@property --tw-ordinal {
  syntax: "*";
  inherits: false;
}
@property --tw-slashed-zero {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-figure {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-duration {
  syntax: "*";
  inherits: false;
}
@property --tw-ease {
  syntax: "*";
  inherits: false;
}
@property --tw-scale-x {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-y {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-z {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-translate-x: 0;
      --tw-translate-y: 0;
      --tw-translate-z: 0;
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-space-y-reverse: 0;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-duration: initial;
      --tw-ease: initial;
      --tw-scale-x: 1;
      --tw-scale-y: 1;
      --tw-scale-z: 1;
    }
  }
}
