/* [next]/internal/font/google/geist_a71539c9.module.css [app-client] (css) */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/53b9e256198e5412-s.390ncx5urfkfu.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/7178b3e590c64307-s.21jp631_3pja2.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Fallback;
  src: local(Arial);
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0.0%;
  size-adjust: 104.76%;
}

.geist_a71539c9-module__T19VSG__className {
  font-family: Geist, Geist Fallback;
  font-style: normal;
}

.geist_a71539c9-module__T19VSG__variable {
  --font-geist-sans: "Geist", "Geist Fallback";
}

/* [next]/internal/font/google/geist_mono_8d43a2aa.module.css [app-client] (css) */
@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/5ce348bf30bf5439-s.31988l_ccedte.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2") format("woff2");
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/797e433ab948586e-s.p.0r6juujl39pe6.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Mono Fallback;
  src: local(Arial);
  ascent-override: 74.67%;
  descent-override: 21.92%;
  line-gap-override: 0.0%;
  size-adjust: 134.59%;
}

.geist_mono_8d43a2aa-module__8Li5zG__className {
  font-family: Geist Mono, Geist Mono Fallback;
  font-style: normal;
}

.geist_mono_8d43a2aa-module__8Li5zG__variable {
  --font-geist-mono: "Geist Mono", "Geist Mono Fallback";
}

/* [project]/src/app/globals.css [app-client] (css) */
@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-gradient-position: initial;
      --tw-gradient-from: #0000;
      --tw-gradient-via: #0000;
      --tw-gradient-to: #0000;
      --tw-gradient-stops: initial;
      --tw-gradient-via-stops: initial;
      --tw-gradient-from-position: 0%;
      --tw-gradient-via-position: 50%;
      --tw-gradient-to-position: 100%;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: 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-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;
    }
  }
}

@layer theme {
  :root, :host {
    --color-amber-50: #fffbeb;
    --color-amber-100: #fef3c6;
    --color-amber-200: #fee685;
    --color-amber-300: #ffd236;
    --color-amber-700: #b75000;
    --color-amber-800: #953d00;
    --color-amber-900: #7b3306;
    --color-amber-950: #461901;
    --color-sky-100: #dff2fe;
    --color-sky-200: #b8e6fe;
    --color-sky-500: #00a5ef;
    --color-sky-600: #0084cc;
    --color-sky-700: #0069a4;
    --color-sky-800: #005986;
    --color-sky-900: #024a70;
    --color-sky-950: #052f4a;
    --color-violet-500: #8d54ff;
    --color-rose-50: #fff1f2;
    --color-rose-100: #ffe4e6;
    --color-rose-200: #ffccd3;
    --color-rose-400: #ff667f;
    --color-rose-500: #ff2357;
    --color-rose-600: #e70044;
    --color-rose-700: #c20039;
    --color-rose-800: #a30037;
    --color-rose-900: #8b0836;
    --color-rose-950: #4d0218;
    --color-black: #000;
    --color-white: #fff;
    --spacing: .25rem;
    --container-md: 28rem;
    --container-xl: 36rem;
    --container-2xl: 42rem;
    --container-4xl: 56rem;
    --text-xs: .75rem;
    --text-xs--line-height: calc(1 / .75);
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .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-medium: 500;
    --font-weight-semibold: 600;
    --tracking-tight: -.025em;
    --tracking-wide: .025em;
    --leading-relaxed: 1.625;
    --radius-lg: .5rem;
    --radius-xl: .75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --drop-shadow-sm: 0 1px 2px #00000026;
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --blur-sm: 8px;
    --blur-md: 12px;
    --blur-3xl: 64px;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-geist-sans);
    --default-mono-font-family: var(--font-geist-mono);
  }

  @supports (color: lab(0% 0 0)) {
    :root, :host {
      --color-amber-50: lab(98.6252% -.635922 8.42309);
      --color-amber-100: lab(95.916% -1.21653 23.111);
      --color-amber-200: lab(91.7203% -.505269 49.9084);
      --color-amber-300: lab(86.4156% 6.13147 78.3961);
      --color-amber-700: lab(47.2709% 42.9082 69.2966);
      --color-amber-800: lab(37.8822% 37.1699 52.2718);
      --color-amber-900: lab(31.2288% 30.2627 40.0378);
      --color-amber-950: lab(15.8111% 20.9107 23.3752);
      --color-sky-100: lab(94.3709% -4.56053 -8.23453);
      --color-sky-200: lab(88.6983% -11.3978 -16.8488);
      --color-sky-500: lab(63.3038% -18.433 -51.0407);
      --color-sky-600: lab(51.7754% -11.4712 -49.8349);
      --color-sky-700: lab(41.6013% -9.10804 -42.5647);
      --color-sky-800: lab(35.164% -9.57692 -34.4068);
      --color-sky-900: lab(29.1959% -8.34689 -28.2453);
      --color-sky-950: lab(17.8299% -5.31271 -21.1584);
      --color-violet-500: lab(49.9355% 55.1776 -81.8963);
      --color-rose-50: lab(96.2369% 4.94155 1.28011);
      --color-rose-100: lab(92.8221% 9.86832 2.60075);
      --color-rose-200: lab(86.806% 19.1909 4.07754);
      --color-rose-400: lab(64.4125% 63.0291 19.2068);
      --color-rose-500: lab(56.101% 79.4328 31.4532);
      --color-rose-600: lab(49.1882% 81.577 36.0311);
      --color-rose-700: lab(41.1651% 71.6251 30.3087);
      --color-rose-800: lab(34.6481% 60.802 20.1957);
      --color-rose-900: lab(29.7104% 51.514 12.6253);
      --color-rose-950: lab(14.2323% 34.0086 9.80922);
    }
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    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;
    -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 {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.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 {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :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)) {
      ::placeholder {
        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 {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-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"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .pointer-events-none {
    pointer-events: none;
  }

  .visible {
    visibility: visible;
  }

  .sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .inset-0 {
    inset: 0;
  }

  .inset-x-0 {
    inset-inline: 0;
  }

  .top-0 {
    top: 0;
  }

  .top-1 {
    top: var(--spacing);
  }

  .top-1\/2 {
    top: 50%;
  }

  .top-2 {
    top: calc(var(--spacing) * 2);
  }

  .-right-10 {
    right: calc(var(--spacing) * -10);
  }

  .right-1 {
    right: var(--spacing);
  }

  .right-2 {
    right: calc(var(--spacing) * 2);
  }

  .right-3 {
    right: calc(var(--spacing) * 3);
  }

  .bottom-0 {
    bottom: 0;
  }

  .bottom-1 {
    bottom: var(--spacing);
  }

  .bottom-3 {
    bottom: calc(var(--spacing) * 3);
  }

  .left-1 {
    left: var(--spacing);
  }

  .left-1\/2 {
    left: 50%;
  }

  .left-2 {
    left: calc(var(--spacing) * 2);
  }

  .left-3 {
    left: calc(var(--spacing) * 3);
  }

  .z-50 {
    z-index: 50;
  }

  .z-\[55\] {
    z-index: 55;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .mt-0\.5 {
    margin-top: calc(var(--spacing) * .5);
  }

  .mt-1 {
    margin-top: var(--spacing);
  }

  .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-5 {
    margin-top: calc(var(--spacing) * 5);
  }

  .mt-6 {
    margin-top: calc(var(--spacing) * 6);
  }

  .mt-8 {
    margin-top: calc(var(--spacing) * 8);
  }

  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }

  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }

  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }

  .ml-1\.5 {
    margin-left: calc(var(--spacing) * 1.5);
  }

  .ml-auto {
    margin-left: auto;
  }

  .line-clamp-1 {
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }

  .line-clamp-2 {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline-flex {
    display: inline-flex;
  }

  .table {
    display: table;
  }

  .aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
  }

  .h-1\.5 {
    height: calc(var(--spacing) * 1.5);
  }

  .h-7 {
    height: calc(var(--spacing) * 7);
  }

  .h-10 {
    height: calc(var(--spacing) * 10);
  }

  .h-20 {
    height: calc(var(--spacing) * 20);
  }

  .h-28 {
    height: calc(var(--spacing) * 28);
  }

  .h-40 {
    height: calc(var(--spacing) * 40);
  }

  .h-\[min\(58vh\,720px\)\] {
    height: min(58vh, 720px);
  }

  .h-full {
    height: 100%;
  }

  .max-h-64 {
    max-height: calc(var(--spacing) * 64);
  }

  .max-h-\[92dvh\] {
    max-height: 92dvh;
  }

  .max-h-\[94dvh\] {
    max-height: 94dvh;
  }

  .max-h-full {
    max-height: 100%;
  }

  .min-h-0 {
    min-height: 0;
  }

  .min-h-28 {
    min-height: calc(var(--spacing) * 28);
  }

  .min-h-\[50vh\] {
    min-height: 50vh;
  }

  .min-h-\[240px\] {
    min-height: 240px;
  }

  .min-h-\[320px\] {
    min-height: 320px;
  }

  .min-h-full {
    min-height: 100%;
  }

  .w-1\.5 {
    width: calc(var(--spacing) * 1.5);
  }

  .w-6 {
    width: calc(var(--spacing) * 6);
  }

  .w-7 {
    width: calc(var(--spacing) * 7);
  }

  .w-10 {
    width: calc(var(--spacing) * 10);
  }

  .w-28 {
    width: calc(var(--spacing) * 28);
  }

  .w-40 {
    width: calc(var(--spacing) * 40);
  }

  .w-full {
    width: 100%;
  }

  .max-w-2xl {
    max-width: var(--container-2xl);
  }

  .max-w-4xl {
    max-width: var(--container-4xl);
  }

  .max-w-full {
    max-width: 100%;
  }

  .max-w-xl {
    max-width: var(--container-xl);
  }

  .min-w-0 {
    min-width: 0;
  }

  .min-w-28 {
    min-width: calc(var(--spacing) * 28);
  }

  .min-w-\[12rem\] {
    min-width: 12rem;
  }

  .min-w-\[14rem\] {
    min-width: 14rem;
  }

  .flex-1 {
    flex: 1;
  }

  .shrink-0 {
    flex-shrink: 0;
  }

  .-translate-x-1\/2 {
    --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
    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-pointer {
    cursor: pointer;
  }

  .resize {
    resize: both;
  }

  .resize-y {
    resize: vertical;
  }

  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-cols-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .flex-col {
    flex-direction: column;
  }

  .flex-wrap {
    flex-wrap: wrap;
  }

  .items-center {
    align-items: center;
  }

  .items-end {
    align-items: flex-end;
  }

  .items-start {
    align-items: flex-start;
  }

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

  .justify-center {
    justify-content: center;
  }

  .justify-end {
    justify-content: flex-end;
  }

  .gap-0\.5 {
    gap: calc(var(--spacing) * .5);
  }

  .gap-1 {
    gap: var(--spacing);
  }

  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }

  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }

  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }

  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }

  :where(.space-y-1 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(var(--spacing) * var(--tw-space-y-reverse));
    margin-block-end: calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)));
  }

  :where(.space-y-1\.5 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)));
  }

  :where(.space-y-3 > :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)));
  }

  :where(.space-y-4 > :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-y-2 {
    row-gap: calc(var(--spacing) * 2);
  }

  .gap-y-6 {
    row-gap: calc(var(--spacing) * 6);
  }

  .self-start {
    align-self: flex-start;
  }

  .truncate {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .overflow-auto {
    overflow: auto;
  }

  .overflow-hidden {
    overflow: hidden;
  }

  .overflow-y-auto {
    overflow-y: auto;
  }

  .rounded {
    border-radius: .25rem;
  }

  .rounded-2xl {
    border-radius: var(--radius-2xl);
  }

  .rounded-full {
    border-radius: 3.40282e38px;
  }

  .rounded-lg {
    border-radius: var(--radius-lg);
  }

  .rounded-xl {
    border-radius: var(--radius-xl);
  }

  .rounded-t-3xl {
    border-top-left-radius: var(--radius-3xl);
    border-top-right-radius: var(--radius-3xl);
  }

  .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);
    border-bottom-width: 1px;
  }

  .border-dashed {
    --tw-border-style: dashed;
    border-style: dashed;
  }

  .border-\[var\(--accent\)\] {
    border-color: var(--accent);
  }

  .border-\[var\(--border\)\] {
    border-color: var(--border);
  }

  .border-amber-200 {
    border-color: var(--color-amber-200);
  }

  .border-amber-200\/80 {
    border-color: #fee685cc;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-amber-200\/80 {
      border-color: color-mix(in oklab, var(--color-amber-200) 80%, transparent);
    }
  }

  .border-amber-300 {
    border-color: var(--color-amber-300);
  }

  .border-rose-200 {
    border-color: var(--color-rose-200);
  }

  .border-rose-200\/80 {
    border-color: #ffccd3cc;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-rose-200\/80 {
      border-color: color-mix(in oklab, var(--color-rose-200) 80%, transparent);
    }
  }

  .border-sky-200\/80 {
    border-color: #b8e6fecc;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-sky-200\/80 {
      border-color: color-mix(in oklab, var(--color-sky-200) 80%, transparent);
    }
  }

  .border-white\/25 {
    border-color: #ffffff40;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-white\/25 {
      border-color: color-mix(in oklab, var(--color-white) 25%, transparent);
    }
  }

  .bg-\[\#111\] {
    background-color: #111;
  }

  .bg-\[\#ebe8e3\] {
    background-color: #ebe8e3;
  }

  .bg-\[var\(--accent\)\] {
    background-color: var(--accent);
  }

  .bg-\[var\(--accent-soft\)\] {
    background-color: var(--accent-soft);
  }

  .bg-\[var\(--accent-soft\)\]\/70 {
    background-color: var(--accent-soft);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-\[var\(--accent-soft\)\]\/70 {
      background-color: color-mix(in oklab, var(--accent-soft) 70%, transparent);
    }
  }

  .bg-\[var\(--surface\)\] {
    background-color: var(--surface);
  }

  .bg-\[var\(--surface-2\)\] {
    background-color: var(--surface-2);
  }

  .bg-amber-50 {
    background-color: var(--color-amber-50);
  }

  .bg-amber-100 {
    background-color: var(--color-amber-100);
  }

  .bg-black\/30 {
    background-color: #0000004d;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-black\/30 {
      background-color: color-mix(in oklab, var(--color-black) 30%, transparent);
    }
  }

  .bg-black\/45 {
    background-color: #00000073;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-black\/45 {
      background-color: color-mix(in oklab, var(--color-black) 45%, transparent);
    }
  }

  .bg-black\/55 {
    background-color: #0000008c;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-black\/55 {
      background-color: color-mix(in oklab, var(--color-black) 55%, transparent);
    }
  }

  .bg-rose-50 {
    background-color: var(--color-rose-50);
  }

  .bg-rose-100 {
    background-color: var(--color-rose-100);
  }

  .bg-sky-100 {
    background-color: var(--color-sky-100);
  }

  .bg-white {
    background-color: var(--color-white);
  }

  .bg-white\/50 {
    background-color: #ffffff80;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-white\/50 {
      background-color: color-mix(in oklab, var(--color-white) 50%, transparent);
    }
  }

  .bg-gradient-to-b {
    --tw-gradient-position: to bottom in oklab;
    background-image: linear-gradient(var(--tw-gradient-stops));
  }

  .bg-gradient-to-br {
    --tw-gradient-position: to bottom right in oklab;
    background-image: linear-gradient(var(--tw-gradient-stops));
  }

  .bg-gradient-to-t {
    --tw-gradient-position: to top in oklab;
    background-image: linear-gradient(var(--tw-gradient-stops));
  }

  .from-\[var\(--surface-2\)\] {
    --tw-gradient-from: var(--surface-2);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .from-amber-700 {
    --tw-gradient-from: var(--color-amber-700);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .from-amber-800 {
    --tw-gradient-from: var(--color-amber-800);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .from-black\/35 {
    --tw-gradient-from: #00000059;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .from-black\/35 {
      --tw-gradient-from: color-mix(in oklab, var(--color-black) 35%, transparent);
    }
  }

  .from-black\/35 {
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .from-black\/45 {
    --tw-gradient-from: #00000073;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .from-black\/45 {
      --tw-gradient-from: color-mix(in oklab, var(--color-black) 45%, transparent);
    }
  }

  .from-black\/45 {
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .from-rose-600 {
    --tw-gradient-from: var(--color-rose-600);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .from-rose-800 {
    --tw-gradient-from: var(--color-rose-800);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .from-sky-600 {
    --tw-gradient-from: var(--color-sky-600);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .from-sky-800 {
    --tw-gradient-from: var(--color-sky-800);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .via-amber-800 {
    --tw-gradient-via: var(--color-amber-800);
    --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-via-stops);
  }

  .via-rose-700 {
    --tw-gradient-via: var(--color-rose-700);
    --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-via-stops);
  }

  .via-sky-700 {
    --tw-gradient-via: var(--color-sky-700);
    --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-via-stops);
  }

  .via-transparent {
    --tw-gradient-via: transparent;
    --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-via-stops);
  }

  .to-\[var\(--border\)\] {
    --tw-gradient-to: var(--border);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .to-amber-950 {
    --tw-gradient-to: var(--color-amber-950);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .to-rose-900 {
    --tw-gradient-to: var(--color-rose-900);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .to-rose-950 {
    --tw-gradient-to: var(--color-rose-950);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .to-sky-900 {
    --tw-gradient-to: var(--color-sky-900);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .to-sky-950 {
    --tw-gradient-to: var(--color-sky-950);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .to-transparent {
    --tw-gradient-to: transparent;
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }

  .fill-current {
    fill: currentColor;
  }

  .fill-rose-400 {
    fill: var(--color-rose-400);
  }

  .fill-rose-500 {
    fill: var(--color-rose-500);
  }

  .fill-white {
    fill: var(--color-white);
  }

  .object-contain {
    object-fit: contain;
  }

  .object-cover {
    object-fit: cover;
  }

  .p-0 {
    padding: 0;
  }

  .p-1 {
    padding: var(--spacing);
  }

  .p-2 {
    padding: calc(var(--spacing) * 2);
  }

  .p-2\.5 {
    padding: calc(var(--spacing) * 2.5);
  }

  .p-3 {
    padding: calc(var(--spacing) * 3);
  }

  .p-4 {
    padding: calc(var(--spacing) * 4);
  }

  .p-8 {
    padding: calc(var(--spacing) * 8);
  }

  .px-0\.5 {
    padding-inline: calc(var(--spacing) * .5);
  }

  .px-1 {
    padding-inline: var(--spacing);
  }

  .px-1\.5 {
    padding-inline: calc(var(--spacing) * 1.5);
  }

  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }

  .px-3\.5 {
    padding-inline: calc(var(--spacing) * 3.5);
  }

  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }

  .px-5 {
    padding-inline: calc(var(--spacing) * 5);
  }

  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }

  .py-0\.5 {
    padding-block: calc(var(--spacing) * .5);
  }

  .py-1 {
    padding-block: var(--spacing);
  }

  .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-6 {
    padding-block: calc(var(--spacing) * 6);
  }

  .pr-3 {
    padding-right: calc(var(--spacing) * 3);
  }

  .pb-5 {
    padding-bottom: calc(var(--spacing) * 5);
  }

  .pl-10 {
    padding-left: calc(var(--spacing) * 10);
  }

  .text-center {
    text-align: center;
  }

  .text-left {
    text-align: left;
  }

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

  .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-\[0\.58rem\] {
    font-size: .58rem;
  }

  .text-\[0\.62rem\] {
    font-size: .62rem;
  }

  .text-\[0\.68rem\] {
    font-size: .68rem;
  }

  .text-\[0\.92rem\] {
    font-size: .92rem;
  }

  .text-\[0\.95rem\] {
    font-size: .95rem;
  }

  .leading-7 {
    --tw-leading: calc(var(--spacing) * 7);
    line-height: calc(var(--spacing) * 7);
  }

  .leading-relaxed {
    --tw-leading: var(--leading-relaxed);
    line-height: var(--leading-relaxed);
  }

  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }

  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }

  .tracking-\[0\.12em\] {
    --tw-tracking: .12em;
    letter-spacing: .12em;
  }

  .tracking-tight {
    --tw-tracking: var(--tracking-tight);
    letter-spacing: var(--tracking-tight);
  }

  .tracking-wide {
    --tw-tracking: var(--tracking-wide);
    letter-spacing: var(--tracking-wide);
  }

  .break-all {
    word-break: break-all;
  }

  .whitespace-pre-wrap {
    white-space: pre-wrap;
  }

  .text-\[var\(--accent\)\] {
    color: var(--accent);
  }

  .text-\[var\(--foreground\)\] {
    color: var(--foreground);
  }

  .text-\[var\(--foreground\)\]\/90 {
    color: var(--foreground);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .text-\[var\(--foreground\)\]\/90 {
      color: color-mix(in oklab, var(--foreground) 90%, transparent);
    }
  }

  .text-\[var\(--muted\)\] {
    color: var(--muted);
  }

  .text-amber-900 {
    color: var(--color-amber-900);
  }

  .text-rose-400 {
    color: var(--color-rose-400);
  }

  .text-rose-500 {
    color: var(--color-rose-500);
  }

  .text-rose-700 {
    color: var(--color-rose-700);
  }

  .text-rose-800 {
    color: var(--color-rose-800);
  }

  .text-rose-900 {
    color: var(--color-rose-900);
  }

  .text-sky-500 {
    color: var(--color-sky-500);
  }

  .text-sky-900 {
    color: var(--color-sky-900);
  }

  .text-violet-500 {
    color: var(--color-violet-500);
  }

  .text-white {
    color: var(--color-white);
  }

  .text-white\/70 {
    color: #ffffffb3;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .text-white\/70 {
      color: color-mix(in oklab, var(--color-white) 70%, transparent);
    }
  }

  .text-white\/90 {
    color: #ffffffe6;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .text-white\/90 {
      color: color-mix(in oklab, var(--color-white) 90%, transparent);
    }
  }

  .uppercase {
    text-transform: uppercase;
  }

  .italic {
    font-style: italic;
  }

  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .opacity-40 {
    opacity: .4;
  }

  .opacity-70 {
    opacity: .7;
  }

  .opacity-80 {
    opacity: .8;
  }

  .shadow-2xl {
    --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, #00000040);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .ring-1 {
    --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);
  }

  .ring-black\/\[0\.04\] {
    --tw-ring-color: #0000000a;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .ring-black\/\[0\.04\] {
      --tw-ring-color: color-mix(in oklab, var(--color-black) 4%, transparent);
    }
  }

  .blur-3xl {
    --tw-blur: blur(var(--blur-3xl));
    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, );
  }

  .drop-shadow-sm {
    --tw-drop-shadow-size: drop-shadow(0 1px 2px var(--tw-drop-shadow-color, #00000026));
    --tw-drop-shadow: drop-shadow(var(--drop-shadow-sm));
    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-blur-md {
    --tw-backdrop-blur: blur(var(--blur-md));
    -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, );
  }

  .backdrop-blur-sm {
    --tw-backdrop-blur: blur(var(--blur-sm));
    -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));
  }

  .duration-500 {
    --tw-duration: .5s;
    transition-duration: .5s;
  }

  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }

  .outline-none {
    --tw-outline-style: none;
    outline-style: none;
  }

  .\[ted-ed\:batch\] {
    ted-ed: batch;
  }

  .\[ted-ed\:generate\] {
    ted-ed: generate;
  }

  @media (hover: hover) {
    .group-hover\:scale-\[1\.02\]:is(:where(.group):hover *) {
      scale: 1.02;
    }
  }

  @media (hover: hover) {
    .hover\:bg-\[var\(--surface-2\)\]:hover {
      background-color: var(--surface-2);
    }
  }

  @media (hover: hover) {
    .hover\:bg-amber-100:hover {
      background-color: var(--color-amber-100);
    }
  }

  @media (hover: hover) {
    .hover\:bg-black\/45:hover {
      background-color: #00000073;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-black\/45:hover {
        background-color: color-mix(in oklab, var(--color-black) 45%, transparent);
      }
    }
  }

  @media (hover: hover) {
    .hover\:bg-black\/70:hover {
      background-color: #000000b3;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-black\/70:hover {
        background-color: color-mix(in oklab, var(--color-black) 70%, transparent);
      }
    }
  }

  @media (hover: hover) {
    .hover\:bg-rose-50:hover {
      background-color: var(--color-rose-50);
    }
  }

  @media (hover: hover) {
    .hover\:bg-white\/80:hover {
      background-color: #fffc;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-white\/80:hover {
        background-color: color-mix(in oklab, var(--color-white) 80%, transparent);
      }
    }
  }

  .focus\:border-\[var\(--accent\)\]:focus {
    border-color: var(--accent);
  }

  .disabled\:opacity-60:disabled {
    opacity: .6;
  }

  @media (min-width: 40rem) {
    .sm\:max-h-\[88vh\] {
      max-height: 88vh;
    }
  }

  @media (min-width: 40rem) {
    .sm\:min-h-\[320px\] {
      min-height: 320px;
    }
  }

  @media (min-width: 40rem) {
    .sm\:max-w-md {
      max-width: var(--container-md);
    }
  }

  @media (min-width: 40rem) {
    .sm\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (min-width: 40rem) {
    .sm\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (min-width: 40rem) {
    .sm\:flex-row {
      flex-direction: row;
    }
  }

  @media (min-width: 40rem) {
    .sm\:items-center {
      align-items: center;
    }
  }

  @media (min-width: 40rem) {
    .sm\:items-start {
      align-items: flex-start;
    }
  }

  @media (min-width: 40rem) {
    .sm\:justify-between {
      justify-content: space-between;
    }
  }

  @media (min-width: 40rem) {
    .sm\:gap-x-4 {
      column-gap: calc(var(--spacing) * 4);
    }
  }

  @media (min-width: 40rem) {
    .sm\:gap-y-7 {
      row-gap: calc(var(--spacing) * 7);
    }
  }

  @media (min-width: 40rem) {
    .sm\:rounded-3xl {
      border-radius: var(--radius-3xl);
    }
  }

  @media (min-width: 40rem) {
    .sm\:p-3 {
      padding: calc(var(--spacing) * 3);
    }
  }

  @media (min-width: 40rem) {
    .sm\:p-4 {
      padding: calc(var(--spacing) * 4);
    }
  }

  @media (min-width: 40rem) {
    .sm\:px-6 {
      padding-inline: calc(var(--spacing) * 6);
    }
  }

  @media (min-width: 40rem) {
    .sm\:px-7 {
      padding-inline: calc(var(--spacing) * 7);
    }
  }

  @media (min-width: 40rem) {
    .sm\:py-6 {
      padding-block: calc(var(--spacing) * 6);
    }
  }

  @media (min-width: 40rem) {
    .sm\:text-2xl {
      font-size: var(--text-2xl);
      line-height: var(--tw-leading, var(--text-2xl--line-height));
    }
  }

  @media (min-width: 48rem) {
    .md\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  @media (min-width: 64rem) {
    .lg\:grid-cols-5 {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
  }

  @media (min-width: 64rem) {
    .lg\:flex-row {
      flex-direction: row;
    }
  }

  @media (min-width: 64rem) {
    .lg\:items-end {
      align-items: flex-end;
    }
  }

  @media (min-width: 64rem) {
    .lg\:justify-between {
      justify-content: space-between;
    }
  }

  @media (min-width: 64rem) {
    .lg\:self-auto {
      align-self: auto;
    }
  }

  @media (min-width: 80rem) {
    .xl\:grid-cols-6 {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
  }
}

:root {
  --background: #f4f1ec;
  --foreground: #1f1c1a;
  --surface: #fffdf9;
  --surface-2: #f7f3ed;
  --border: #e6dfd4;
  --muted: #7a7268;
  --accent: #3f6b5a;
  --accent-soft: #e4efe9;
  --sidebar: #fffdf9;
  --sidebar-text: #475569;
  --sidebar-text-strong: #1f1c1a;
  --sidebar-muted: #94a3b8;
  --sidebar-active: #3f6b5a;
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 68px;
  --sidebar-accent-gradient: linear-gradient(135deg, #3f6b5a 0%, #4eb4e7 100%);
  --goal-accent: #4eb4e7;
  --goal-text: #001533;
  --goal-text-secondary: #475569;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist-sans), system-ui, sans-serif;
  margin: 0;
}

.dashboard-shell {
  min-height: 100vh;
  display: flex;
}

.mobile-nav-bar, .sidebar-backdrop, .sidebar-toggle-mobile {
  display: none;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar);
  color: var(--sidebar-text);
  border-right: 1px solid var(--border);
  flex-direction: column;
  flex-shrink: 0;
  transition: width .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  overflow: hidden;
}

.sidebar-collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  min-height: 4.75rem;
  padding: 1.25rem 1rem;
  display: flex;
}

.sidebar-collapsed .sidebar-header {
  justify-content: center;
  padding-inline: .5rem;
}

.sidebar-brand {
  min-width: 0;
  color: inherit;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  display: flex;
}

.sidebar-mark {
  background: var(--sidebar-accent-gradient);
  color: #fff;
  border-radius: .65rem;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: .95rem;
  font-weight: 800;
  display: inline-flex;
}

.sidebar-brand-text {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.sidebar-brand-title {
  letter-spacing: -.02em;
  background: var(--sidebar-accent-gradient);
  color: #0000;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
}

.sidebar-brand-sub {
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  font-size: .58rem;
  font-weight: 600;
}

.sidebar-toggle {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--sidebar-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: .45rem;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.sidebar-toggle:hover {
  background: var(--surface-2);
  color: var(--sidebar-text-strong);
}

.sidebar-nav {
  flex-direction: column;
  flex: 1;
  gap: .25rem;
  padding: 1rem .75rem;
  display: flex;
  overflow: hidden auto;
}

.sidebar-collapsed .sidebar-nav {
  align-items: center;
  padding-inline: .5rem;
}

.sidebar-group-label {
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  margin: 0 0 .25rem .75rem;
  font-size: .62rem;
  font-weight: 600;
}

.sidebar-group {
  flex-direction: column;
  gap: .2rem;
  display: flex;
}

.sidebar-collapsed .sidebar-group {
  align-items: center;
  width: 100%;
}

.sidebar-divider {
  background: var(--border);
  height: 1px;
  margin: .75rem 0;
}

.sidebar-item-wrap {
  flex-direction: column;
  gap: .15rem;
  display: flex;
}

.sidebar-item {
  width: 100%;
  color: var(--sidebar-text);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: .5rem;
  align-items: center;
  gap: .75rem;
  padding: .62rem .85rem;
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s;
  display: flex;
  position: relative;
}

.sidebar-collapsed .sidebar-item {
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.sidebar-item:hover {
  background: var(--surface-2);
  color: var(--sidebar-text-strong);
}

.sidebar-item-active {
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .sidebar-item-active {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  }
}

.sidebar-item-active {
  color: var(--sidebar-active);
  font-weight: 600;
}

.sidebar-item-active:before {
  content: "";
  background: var(--sidebar-accent-gradient);
  border-radius: 0 .25rem .25rem 0;
  width: .25rem;
  position: absolute;
  top: .45rem;
  bottom: .45rem;
  left: 0;
}

.sidebar-item-icon {
  flex-shrink: 0;
}

.sidebar-item-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-sub-nav {
  flex-direction: column;
  gap: .15rem;
  padding: .1rem 0 .2rem .35rem;
  display: flex;
}

.sidebar-sub-item {
  color: var(--sidebar-text);
  border-radius: .45rem;
  align-items: center;
  gap: .55rem;
  padding: .48rem .65rem .48rem 1.35rem;
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s;
  display: flex;
  position: relative;
}

.sidebar-sub-item:hover {
  background: var(--surface-2);
  color: var(--sidebar-text-strong);
}

.sidebar-sub-item-active {
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .sidebar-sub-item-active {
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  }
}

.sidebar-sub-item-active {
  color: var(--sidebar-active);
  font-weight: 600;
}

.sidebar-sub-item-active:before {
  content: "";
  background: var(--sidebar-accent-gradient);
  border-radius: 999px;
  width: .18rem;
  position: absolute;
  top: .42rem;
  bottom: .42rem;
  left: .55rem;
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 1rem 1rem 1.5rem;
}

.dashboard-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  display: flex;
}

.dashboard-grid {
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1.45fr) minmax(0, 1.45fr) minmax(0, .95fr) minmax(12.5rem, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: .85rem;
  width: 100%;
  min-height: calc(100vh - 5rem);
  display: grid;
}

.dashboard-grid > .panel {
  min-width: 0;
  overflow: hidden;
}

.area-goals {
  grid-area: 1 / 1 / auto / span 2;
}

.area-todo {
  grid-area: 1 / 3 / auto / span 3;
}

.area-dump {
  grid-area: 1 / 6 / auto / span 2;
}

.area-english {
  grid-area: 1 / 8 / auto / span 2;
}

.area-news {
  grid-area: 2 / 8 / span 2 / span 2;
}

.area-news.panel {
  align-self: stretch;
  height: 100%;
  min-height: 0;
  max-height: min(32rem, 100vh - 11rem);
  overflow: hidden;
}

.area-news .panel-body {
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  padding: .35rem .85rem .55rem;
  display: flex;
  overflow: hidden;
}

.news-headlines {
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.news-headlines-list {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden auto;
}

.news-headline-item {
  border-bottom: 1px solid var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  .news-headline-item {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 45%, transparent);
  }
}

.news-headline-item:last-child {
  border-bottom: none;
}

.news-headline-row {
  align-items: flex-start;
  gap: .45rem;
  display: flex;
}

.news-headline-link {
  min-width: 0;
  color: inherit;
  flex: 1;
  gap: .55rem;
  padding: .55rem 0;
  text-decoration: none;
  display: flex;
}

.news-headline-read-toggle {
  border: 1px solid var(--accent);
  flex-shrink: 0;
  align-items: center;
  gap: .28rem;
  margin-top: .55rem;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .news-headline-read-toggle {
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  }
}

.news-headline-read-toggle {
  background: var(--accent-soft);
  border-radius: 999px;
}

@supports (color: color-mix(in lab, red, red)) {
  .news-headline-read-toggle {
    background: color-mix(in srgb, var(--accent-soft) 75%, var(--surface));
  }
}

.news-headline-read-toggle {
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  z-index: 1;
  padding: .28rem .55rem;
  font-size: .62rem;
  font-weight: 700;
}

.news-headline-read-toggle:hover {
  background: var(--accent-soft);
}

.news-headline-check {
  background: var(--surface);
  border: 1.5px solid;
  border-radius: .2rem;
  flex-shrink: 0;
  width: .72rem;
  height: .72rem;
}

.news-headline-read-toggle.is-read .news-headline-check {
  background: var(--accent);
  border-color: var(--accent);
}

.news-headline-item:hover .news-headline-rail {
  background: var(--accent);
}

.news-headline-item:hover .news-headline-title {
  color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .news-headline-item:hover .news-headline-title {
    color: color-mix(in srgb, var(--accent) 72%, var(--foreground));
  }
}

.news-headline-rail {
  background: var(--border);
  border-radius: 999px;
  width: .18rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .news-headline-rail {
    background: color-mix(in srgb, var(--border) 90%, var(--foreground));
  }
}

.news-headline-rail {
  flex-shrink: 0;
  transition: background .15s;
}

.news-headline-body {
  flex: 1;
  min-width: 0;
}

.news-headline-meta {
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-bottom: .28rem;
  display: flex;
}

.news-headline-rank {
  letter-spacing: .04em;
  min-width: 1rem;
  color: var(--muted);
  justify-content: center;
  align-items: center;
  font-size: .62rem;
  font-weight: 700;
  display: inline-flex;
}

.news-headline-badge {
  color: #fff;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: #1f1c1a;
  border-radius: .25rem;
  align-items: center;
  padding: .08rem .38rem;
  font-size: .58rem;
  font-weight: 700;
  display: inline-flex;
}

.news-headline-date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: .66rem;
  font-weight: 600;
}

.news-headline-read-label {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 600;
}

.news-headline-unread-label {
  color: var(--accent);
  font-size: .58rem;
  font-weight: 600;
}

.news-headline-title {
  letter-spacing: -.015em;
  color: var(--foreground);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.42;
  transition: color .15s;
  display: -webkit-box;
  overflow: hidden;
}

.news-headline-title-unread {
  color: var(--foreground);
}

.news-headline-dek {
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: .28rem 0 0;
  font-size: .72rem;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
}

.news-headlines-footer {
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-top: .35rem;
  padding-top: .35rem;
  display: flex;
}

.news-headlines-count {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
}

.news-headlines-more {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  text-decoration: none;
}

.news-headlines-more:hover {
  color: var(--accent);
}

.news-headlines-empty {
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding: 1rem .25rem;
  font-size: .78rem;
  display: flex;
}

.news-headline-link-thumb {
  align-items: flex-start;
}

.news-headline-thumb {
  background: #111;
  flex-shrink: 0;
  width: 3.6rem;
  height: 2.55rem;
  overflow: hidden;
}

.news-headline-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.news-headline-thumb-fallback {
  color: #fff;
  background: #c62828;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: .72rem;
  font-weight: 700;
  display: grid;
}

.news-headline-thumb-fallback[data-category="경제"] {
  background: #1f4e79;
}

.news-headline-thumb-fallback[data-category="정치"] {
  background: #7a1f1f;
}

.news-headline-thumb-fallback[data-category="제약&바이오"] {
  background: #1f5b45;
}

.news-headline-thumb-fallback[data-category="패션"] {
  background: #6b1f4e;
}

.news-headline-thumb-fallback[data-category="기타"] {
  background: #444;
}

.section-list-item-unread .line-clamp-2 {
  font-weight: 600;
}

.news-list-kind {
  background: var(--surface-2);
  letter-spacing: .02em;
  border-radius: .2rem;
  padding: .05rem .3rem;
  font-size: .58rem;
  font-weight: 700;
}

.news-list-meta {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  width: 100%;
  margin-bottom: .15rem;
  display: flex;
}

.news-list-meta-left {
  align-items: center;
  gap: .35rem;
  min-width: 0;
  display: inline-flex;
}

.news-list-read-label {
  color: var(--muted);
  flex-shrink: 0;
  font-size: .58rem;
  font-weight: 600;
}

.news-list-unread-label {
  color: var(--accent);
  flex-shrink: 0;
  font-size: .58rem;
  font-weight: 700;
}

.news-content-read-btn {
  border: 1px solid var(--accent);
  flex-shrink: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .news-content-read-btn {
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  }
}

.news-content-read-btn {
  background: var(--accent-soft);
  border-radius: 999px;
}

@supports (color: color-mix(in lab, red, red)) {
  .news-content-read-btn {
    background: color-mix(in srgb, var(--accent-soft) 75%, var(--surface));
  }
}

.news-content-read-btn {
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  padding: .35rem .75rem;
  font-size: .72rem;
  font-weight: 700;
}

.news-content-read-btn.is-read {
  border-color: var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  .news-content-read-btn.is-read {
    border-color: color-mix(in srgb, var(--border) 80%, transparent);
  }
}

.news-content-read-btn.is-read {
  background: var(--surface);
  color: var(--muted);
}

.news-content-read-btn:hover {
  background: var(--accent-soft);
}

.news-content-read-btn.is-read:hover {
  background: var(--surface-2);
}

.news-page-article {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.news-letter-page {
  --news-ink: #141414;
  --news-muted: #5c5c5c;
  --news-line: #d8d8d8;
  --news-red: #d62828;
  --news-paper: #f7f5f1;
  --news-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif KR", "Songti SC", serif;
  --news-sans: var(--font-geist-sans), "Noto Sans KR", system-ui, sans-serif;
  color: var(--news-ink);
  background: linear-gradient(180deg, #fbfaf7 0%, var(--news-paper) 40%, #f3efe8 100%);
  border: 1px solid var(--news-line);
}

@supports (color: color-mix(in lab, red, red)) {
  .news-letter-page {
    border: 1px solid color-mix(in srgb, var(--news-line) 80%, #000);
  }
}

.news-letter-page {
  border-radius: .35rem;
  min-height: calc(100vh - 5.5rem);
  padding: 1.1rem 1.1rem 1.5rem;
}

.news-letter-masthead {
  text-align: center;
  padding: .35rem 0 .85rem;
}

.news-letter-kicker {
  font-family: var(--news-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--news-muted);
  font-size: .68rem;
  font-weight: 600;
}

.news-letter-brand {
  font-family: var(--news-serif);
  letter-spacing: .04em;
  margin: .2rem 0 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
}

.news-letter-sub {
  font-family: var(--news-sans);
  color: var(--news-muted);
  margin: .35rem 0 0;
  font-size: .84rem;
}

.news-letter-rule {
  background: linear-gradient(90deg, transparent, var(--news-red), transparent);
  width: min(100%, 42rem);
  height: 3px;
  margin: .85rem auto 0;
}

.news-letter-filters {
  border-bottom: 1px solid var(--news-line);
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  margin-bottom: 1rem;
  padding: .85rem 0 1rem;
  display: flex;
}

.news-letter-filter {
  font-family: var(--news-serif);
  color: var(--news-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  align-items: baseline;
  gap: .35rem;
  padding: .35rem .55rem;
  font-size: .95rem;
  display: inline-flex;
}

.news-letter-filter em {
  font-family: var(--news-sans);
  color: var(--news-muted);
  font-size: .68rem;
  font-style: normal;
}

@supports (color: color-mix(in lab, red, red)) {
  .news-letter-filter em {
    color: color-mix(in srgb, var(--news-muted) 80%, #000);
  }
}

.news-letter-filter.is-active {
  color: var(--news-red);
  border-bottom-color: var(--news-red);
  font-weight: 700;
}

.news-letter-status {
  text-align: center;
  color: var(--news-muted);
  padding: 2rem 0;
  font-size: .9rem;
}

.news-letter-status.error {
  color: #b42318;
}

.news-letter-layout {
  grid-template-columns: 1fr;
  gap: 1.25rem;
  display: grid;
}

.news-letter-layout.has-detail {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
}

.news-letter-feature {
  border-bottom: 1px solid var(--news-line);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.news-letter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem 1rem;
  display: grid;
}

.news-letter-empty, .news-letter-detail-empty {
  text-align: center;
  color: var(--news-muted);
  border: 1px dashed var(--news-line);
  padding: 2.5rem 1rem;
}

.news-letter-detail-empty-kicker {
  font-family: var(--news-sans);
  letter-spacing: .18em;
  color: var(--news-red);
  margin: 0 0 .45rem;
  font-size: .68rem;
  font-weight: 700;
}

.news-card {
  text-align: left;
  cursor: pointer;
  width: 100%;
  color: inherit;
  background: none;
  border: 0;
  gap: .65rem;
  padding: 0;
  display: grid;
}

.news-card-featured {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
}

.news-card-media {
  aspect-ratio: 16 / 10;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}

.news-card-featured .news-card-media {
  aspect-ratio: 16 / 11;
  min-height: 12rem;
}

.news-card-media img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.news-card-fallback {
  color: #fff;
  width: 100%;
  height: 100%;
  font-family: var(--news-serif);
  background: linear-gradient(145deg, #ffffff14, #0000 45%), #9a1f1f;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  display: grid;
}

.news-card-fallback[data-category="경제"] {
  background: linear-gradient(145deg, #ffffff14, #0000 45%), #1f4e79;
}

.news-card-fallback[data-category="시사"] {
  background: linear-gradient(145deg, #ffffff14, #0000 45%), #7a1f1f;
}

.news-card-fallback[data-category="제약&바이오"] {
  background: linear-gradient(145deg, #ffffff14, #0000 45%), #1f5b45;
}

.news-card-fallback[data-category="인문"] {
  background: linear-gradient(145deg, #ffffff14, #0000 45%), #5b3b1f;
}

.news-card-fallback[data-category="연예"] {
  background: linear-gradient(145deg, #ffffff14, #0000 45%), #6b1f4e;
}

.news-card-play {
  color: #fff;
  background: #d62828eb;
  border-radius: 999px;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  padding-left: .1rem;
  font-size: .62rem;
  display: grid;
  position: absolute;
  bottom: .55rem;
  right: .55rem;
}

.news-card-body {
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
  display: flex;
}

.news-card-meta {
  font-family: var(--news-sans);
  color: var(--news-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  font-size: .68rem;
  display: flex;
}

.news-card-category {
  background: var(--news-red);
  color: #fff;
  letter-spacing: .04em;
  align-items: center;
  padding: .12rem .4rem;
  font-weight: 700;
  display: inline-flex;
}

.news-card-kind {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

.news-card-unread {
  color: var(--news-red);
  letter-spacing: .08em;
  font-weight: 700;
}

.news-card-title {
  font-family: var(--news-serif);
  letter-spacing: -.01em;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-card-featured .news-card-title {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.25;
}

.news-card-lead {
  font-family: var(--news-sans);
  color: var(--news-muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: .84rem;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
}

.news-card-featured .news-card-lead {
  -webkit-line-clamp: 5;
  font-size: .92rem;
}

.news-card-source {
  font-family: var(--news-sans);
  color: var(--news-muted);
  margin: 0;
  font-size: .72rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .news-card-source {
    color: color-mix(in srgb, var(--news-muted) 85%, #000);
  }
}

.news-card-active .news-card-title {
  color: var(--news-red);
}

.news-card-read .news-card-title {
  font-weight: 600;
}

.news-letter-detail {
  border-left: 1px solid var(--news-line);
  min-width: 0;
  padding-left: 1rem;
}

.news-letter-article-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  display: flex;
}

.news-letter-article-meta {
  font-family: var(--news-sans);
  color: var(--news-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
  font-size: .72rem;
  display: flex;
}

.news-letter-close {
  border: 1px solid var(--news-line);
  cursor: pointer;
  background: #fff;
  padding: .3rem .65rem;
  font-size: .75rem;
  font-weight: 600;
}

.news-letter-article-title {
  font-family: var(--news-serif);
  margin: .7rem 0 .85rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.3;
}

.news-letter-article-media {
  background: #111;
  margin-bottom: .9rem;
  overflow: hidden;
}

.news-letter-article-media img {
  object-fit: cover;
  width: 100%;
  max-height: 18rem;
  display: block;
}

.news-letter-embed {
  background: #000;
  width: 100%;
  padding-top: 56.25%;
  position: relative;
}

.news-letter-embed iframe {
  border: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.news-letter-article-body {
  font-family: var(--news-sans);
  font-size: .92rem;
  line-height: 1.7;
}

.news-letter-article-body .markdown-body h1, .news-letter-article-body .markdown-body h2, .news-letter-article-body .markdown-body h3 {
  font-family: var(--news-serif);
}

@media (max-width: 1100px) {
  .news-letter-layout.has-detail {
    grid-template-columns: 1fr;
  }

  .news-letter-detail {
    border-left: 0;
    border-top: 1px solid var(--news-line);
    padding-top: 1rem;
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .news-letter-page {
    padding: .85rem;
  }

  .news-card-featured, .news-letter-grid {
    grid-template-columns: 1fr;
  }
}

.news-insight-editor {
  border-top: 1px solid var(--border);
  margin-top: .25rem;
  padding-top: 1rem;
}

.news-insight-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: .45rem;
  display: flex;
}

.news-insight-label {
  color: var(--foreground);
  font-size: .78rem;
  font-weight: 700;
}

.news-insight-status {
  color: var(--muted);
  font-size: .66rem;
}

.news-insight-input {
  resize: vertical;
  border: 1px solid var(--border);
  background: var(--surface-2);
  width: 100%;
  min-height: 4.5rem;
  color: var(--foreground);
  border-radius: .55rem;
  padding: .65rem .75rem;
  font-family: inherit;
  font-size: .8rem;
  line-height: 1.5;
}

.news-insight-input:focus {
  border-color: var(--accent);
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .news-insight-input:focus {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  }
}

.news-insight-input:focus {
  box-shadow: 0 0 0 3px var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .news-insight-input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
  }
}

.area-calendar {
  grid-area: 2 / 1 / span 2 / span 2;
}

.area-feedback {
  grid-area: 2 / 3 / span 2 / span 3;
}

.area-feedback .panel-body {
  flex-direction: column;
  min-height: 0;
  padding: .45rem .65rem .55rem;
  display: flex;
  overflow: hidden;
}

.area-money {
  grid-area: 2 / 6 / auto / span 2;
}

.money-dashboard-link {
  background: var(--accent);
  color: #fff;
  border-radius: .6rem;
  align-self: flex-start;
  align-items: center;
  padding: .55rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.money-dashboard-link-secondary {
  background: var(--surface-2);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.money-home-card {
  flex-direction: column;
  gap: .65rem;
  height: 100%;
  min-height: 120px;
  padding: .15rem .1rem;
  display: flex;
}

.money-home-split {
  flex: auto;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
  gap: .75rem;
  min-height: 0;
  display: grid;
}

.money-home-assets, .money-home-ledger {
  min-width: 0;
}

.money-home-section {
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.money-home-section-title {
  color: var(--foreground);
  letter-spacing: -.01em;
  align-items: baseline;
  gap: .35rem;
  margin: 0;
  font-size: .74rem;
  font-weight: 750;
  display: flex;
}

.money-home-section-sub {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 650;
}

.money-home-ledger-flows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
  display: grid;
}

.money-home-flow {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: .55rem;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
  padding: .45rem .55rem;
  display: flex;
}

.money-home-flow-label {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
}

.money-home-flow strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  word-break: break-all;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.25;
}

.money-home-flow.is-income strong {
  color: #4a7fd4;
}

.money-home-flow.is-expense strong {
  color: #e24b4a;
}

.money-home-ledger-empty {
  text-align: center;
  margin: auto 0;
}

.money-pie-wrap {
  width: 100%;
  max-width: 9.5rem;
  margin: 0 auto;
  position: relative;
}

.money-pie-wrap-home {
  max-width: 100%;
}

.money-pie-chart {
  width: 100%;
  height: auto;
  display: block;
}

.money-pie-slice-label {
  fill: #fff;
  paint-order: stroke;
  stroke: #0000006b;
  stroke-width: 2.5px;
  font-size: 9px;
  font-weight: 750;
}

.money-pie-wrap-home .money-pie-slice-label {
  stroke-width: 3px;
  font-size: 11px;
}

.money-pie-slice {
  cursor: pointer;
  outline: none;
  transition: opacity .12s, filter .12s;
}

.money-pie-slice:hover, .money-pie-slice.is-hovered, .money-pie-slice:focus-visible {
  filter: brightness(1.08);
  opacity: .95;
}

.money-pie-tooltip {
  pointer-events: none;
  z-index: 2;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .45rem;
  flex-direction: column;
  align-items: center;
  gap: .05rem;
  padding: .35rem .5rem;
  display: flex;
  position: absolute;
  transform: translate(-50%, -110%);
}

@supports (color: color-mix(in lab, red, red)) {
  .money-pie-tooltip {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
  }
}

.money-pie-tooltip {
  white-space: nowrap;
  box-shadow: 0 4px 14px #0000001f;
}

.money-pie-tooltip-label {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
}

.money-pie-tooltip strong {
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  font-size: .72rem;
  font-weight: 750;
}

.money-pie-tooltip-pct {
  color: var(--muted);
  font-size: .6rem;
  font-weight: 650;
}

.money-home-muted {
  color: var(--muted);
  margin: 0;
  font-size: .82rem;
}

.money-home-error {
  white-space: pre-wrap;
  font-size: .72rem;
  line-height: 1.45;
}

.money-home-total {
  flex-direction: column;
  gap: .15rem;
  display: flex;
}

.money-home-total-label {
  color: var(--muted);
  margin: 0;
  font-size: .72rem;
  font-weight: 650;
}

.money-home-total-value {
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.2;
}

.money-home-breakdown {
  grid-template-columns: 1fr;
  gap: .28rem;
  display: grid;
}

.money-home-item {
  align-items: center;
  gap: .3rem;
  min-width: 0;
  font-size: .74rem;
  display: flex;
}

.money-home-item-dot {
  border-radius: 999px;
  flex-shrink: 0;
  width: .45rem;
  height: .45rem;
}

.money-home-item-label {
  color: var(--muted);
  flex-shrink: 0;
  font-weight: 600;
}

.money-home-item-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-left: auto;
  font-weight: 700;
}

.money-home-actions {
  flex-direction: column;
  gap: .35rem;
  margin-top: auto;
  display: flex;
}

.money-home-actions .money-dashboard-link {
  box-sizing: border-box;
  justify-content: center;
  width: 100%;
  padding: .4rem .7rem;
  font-size: .78rem;
}

@media (max-width: 900px) {
  .money-home-split {
    grid-template-columns: 1fr;
  }
}

.money-page {
  flex-direction: column;
  min-height: calc(100dvh - 2.5rem);
  display: flex;
}

.money-page-sheet {
  height: calc(100dvh - 2.5rem);
  max-height: calc(100dvh - 2.5rem);
  overflow: hidden;
}

.money-category-tabs, .money-subcategory-tabs {
  flex-shrink: 0;
}

.money-subcategory-tabs {
  margin-top: 0;
}

.money-page .dashboard-header {
  flex-shrink: 0;
}

.money-dashboard-panel {
  flex-direction: column;
  flex: auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.money-dashboard-panel .panel-body {
  flex-direction: column;
  flex: auto;
  gap: 0;
  min-height: 0;
  padding: .25rem;
  display: flex;
  overflow: hidden;
}

.money-dashboard-panel-dashboard {
  align-self: stretch;
  width: 100%;
  max-width: none;
}

.money-dashboard-toolbar {
  flex-shrink: 0;
  justify-content: flex-end;
  display: flex;
}

.money-dashboard-open-link {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}

.money-dashboard-embed-wrap {
  border: 1px solid var(--border);
  background: var(--surface);
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: .75rem;
  flex: auto;
  width: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.money-dashboard-embed-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.money-dashboard-embed-wrap-dashboard {
  background: var(--surface);
  border-color: var(--border);
  clip-path: inset(0 0 28px round .65rem);
  border-radius: .65rem;
  width: 100%;
}

.money-dashboard-panel .panel-body, .money-dashboard-panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.money-dashboard-panel .panel-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.money-dashboard-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.money-dashboard-embed {
  background: var(--surface);
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}

.money-dashboard-embed-dashboard {
  transform-origin: top;
  background: none;
  border: 0;
  padding-bottom: 0;
  position: absolute;
  inset: 0 auto auto 50%;
}

.money-dashboard-hint {
  color: var(--muted);
  flex-shrink: 0;
  margin: 0;
  font-size: .75rem;
}

.money-portfolio-panel .panel-body {
  overflow: auto;
}

.money-portfolio-dash {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.money-portfolio-dash-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  display: flex;
}

.money-portfolio-title {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.money-portfolio-updated {
  color: var(--muted);
  margin: .2rem 0 0;
  font-size: .75rem;
}

.money-portfolio-refresh {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--foreground);
  cursor: pointer;
  border-radius: .55rem;
  padding: .4rem .7rem;
  font-size: .78rem;
  font-weight: 600;
}

.money-portfolio-refresh:disabled {
  opacity: .6;
  cursor: default;
}

.money-kpi-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  display: grid;
}

.money-kpi {
  border: 1px solid var(--border);
  background: linear-gradient(165deg,
    var(--surface),
    var(--surface));
  border-radius: .85rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .money-kpi {
    background: linear-gradient(165deg,
    color-mix(in srgb, var(--surface) 82%, var(--accent-soft)),
    var(--surface));
  }
}

.money-kpi {
  min-width: 0;
  padding: .85rem .9rem .95rem;
}

.money-kpi-badge {
  color: #fff;
  border-radius: .4rem;
  align-items: center;
  padding: .18rem .45rem;
  font-size: .72rem;
  font-weight: 700;
  display: inline-flex;
}

.money-kpi-cash .money-kpi-badge {
  background: #7b6cc9;
}

.money-kpi-deposit .money-kpi-badge {
  background: #d45aa0;
}

.money-kpi-insurance .money-kpi-badge {
  background: #3f8f6b;
}

.money-kpi-stock .money-kpi-badge {
  color: #1f1c1a;
  background: #c4b000;
}

.money-kpi-value {
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  margin: .55rem 0 0;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.2;
}

.money-kpi-delta {
  margin: .35rem 0 0;
  font-size: .78rem;
  font-weight: 650;
}

.money-portfolio-dashboard {
  flex-direction: column;
  gap: .85rem;
  min-width: 0;
  display: flex;
}

.money-portfolio-dashboard--sheet {
  --money-teal: #1abc9c;
  --money-teal-dark: #148f77;
  --money-navy: #003d4c;
  --money-navy-soft: #0b3039;
  --money-lime: #9ed167;
  --money-sheet-grid: #e0e0e0;
  --money-sheet-head: #f3f6f8;
  gap: .75rem;
}

.money-sheet-hero {
  border: 1px solid var(--money-sheet-grid);
  background: #fff;
  border-radius: .5rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 0;
  display: grid;
  overflow: hidden;
  box-shadow: 0 1px 3px #003d4c0f;
}

.money-sheet-hero__main {
  background: linear-gradient(135deg, var(--money-navy) 0%, var(--money-navy-soft) 100%);
  color: #fff;
  padding: 1rem 1.1rem;
}

.money-sheet-hero__label {
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .88;
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
}

.money-sheet-hero__value {
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  margin: .35rem 0 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
}

.money-sheet-hero__meta {
  opacity: .75;
  margin: .45rem 0 0;
  font-size: .68rem;
}

.money-sheet-kpi-strip {
  border-left: 1px solid var(--money-sheet-grid);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
}

.money-sheet-kpi {
  border-right: 1px solid var(--money-sheet-grid);
  background: #fff;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
  padding: .75rem .65rem;
  display: flex;
}

.money-sheet-kpi:last-child {
  border-right: none;
}

.money-sheet-kpi__badge {
  background: var(--kpi, var(--money-teal));
  color: #fff;
  letter-spacing: -.01em;
  border-radius: .2rem;
  align-self: flex-start;
  padding: .12rem .4rem;
  font-size: .62rem;
  font-weight: 800;
  display: inline-flex;
}

.money-sheet-kpi__value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--money-navy);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.money-sheet-kpi__delta {
  font-variant-numeric: tabular-nums;
  color: #6b7280;
  font-size: .68rem;
  font-weight: 650;
}

.money-sheet-kpi__delta.is-up {
  color: var(--money-teal-dark);
}

.money-sheet-kpi__delta.is-down {
  color: #e24b4a;
}

.money-sheet-card {
  border: 1px solid var(--money-sheet-grid);
  background: #fff;
  border-radius: .5rem;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px #003d4c0d;
}

.money-sheet-card__head {
  color: #fff;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  display: flex;
}

.money-sheet-card--teal .money-sheet-card__head {
  background: var(--money-teal);
}

.money-sheet-card--navy .money-sheet-card__head {
  background: var(--money-navy);
}

.money-sheet-card__title {
  letter-spacing: -.01em;
  margin: 0;
  font-size: .82rem;
  font-weight: 800;
}

.money-sheet-card__subtitle {
  opacity: .88;
  margin: .12rem 0 0;
  font-size: .64rem;
  font-weight: 600;
}

.money-sheet-card__body {
  background: #fff;
  padding: .65rem .75rem .75rem;
}

.money-sheet-grid {
  gap: .75rem;
  display: grid;
}

.money-sheet-grid--charts, .money-sheet-grid--tables, .money-sheet-grid--ledger {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}

.money-sheet-card--wide {
  min-width: 0;
}

.money-sheet-table-wrap {
  border: 1px solid var(--money-sheet-grid);
  border-radius: .25rem;
  overflow-x: auto;
}

.money-sheet-table {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  width: 100%;
  font-size: .74rem;
}

.money-sheet-table th {
  text-align: left;
  color: var(--money-navy);
  background: var(--money-sheet-head);
  border-bottom: 1px solid var(--money-sheet-grid);
  border-right: 1px solid var(--money-sheet-grid);
  white-space: nowrap;
  padding: .42rem .55rem;
  font-size: .68rem;
  font-weight: 800;
}

.money-sheet-table th:last-child {
  border-right: none;
}

.money-sheet-table td {
  border-bottom: 1px solid var(--money-sheet-grid);
  border-right: 1px solid var(--money-sheet-grid);
  color: #1f2937;
  vertical-align: top;
  padding: .4rem .55rem;
}

.money-sheet-table td:last-child {
  border-right: none;
}

.money-sheet-table tbody tr:nth-child(2n) td {
  background: #fafbfc;
}

.money-sheet-table tbody tr:hover td {
  background: var(--money-teal);
}

@supports (color: color-mix(in lab, red, red)) {
  .money-sheet-table tbody tr:hover td {
    background: color-mix(in srgb, var(--money-teal) 6%, #fff);
  }
}

.money-sheet-empty {
  text-align: center;
  color: #6b7280;
  margin: 0;
  padding: 1rem .5rem;
  font-size: .78rem;
}

.money-sheet-error {
  color: #e24b4a;
}

.money-sheet-month-nav {
  gap: .25rem;
  display: flex;
}

.money-sheet-nav-btn {
  color: #fff;
  cursor: pointer;
  background: #ffffff1f;
  border: 1px solid #ffffff59;
  border-radius: .3rem;
  width: 1.65rem;
  height: 1.65rem;
  font-size: 1rem;
  line-height: 1;
}

.money-sheet-nav-btn:hover {
  background: #ffffff38;
}

.money-sheet-ledger-metrics {
  border: 1px solid var(--money-sheet-grid);
  border-radius: .25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  display: grid;
  overflow: hidden;
}

.money-sheet-ledger-metric {
  border-right: 1px solid var(--money-sheet-grid);
  background: #fff;
  flex-direction: column;
  gap: .3rem;
  padding: .7rem .75rem;
  display: flex;
}

.money-sheet-ledger-metric:last-child {
  border-right: none;
}

.money-sheet-ledger-metric span {
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .68rem;
  font-weight: 800;
}

.money-sheet-ledger-metric strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  font-size: .92rem;
  font-weight: 800;
}

.money-sheet-ledger-metric.is-income strong {
  color: var(--money-teal-dark);
}

.money-sheet-ledger-metric.is-expense strong {
  color: #e24b4a;
}

.money-sheet-ledger-metric.is-net strong {
  color: var(--money-navy);
}

.money-sheet-expense-row {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: .85rem;
  display: grid;
}

.money-chart-donut-wrap--sheet {
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.money-chart-donut-wrap--sheet .money-chart-donut {
  max-width: 200px;
}

.money-chart-donut-legend {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem .5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.money-chart-donut-legend li {
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  display: flex;
}

.money-chart-donut-swatch {
  border-radius: 2px;
  flex-shrink: 0;
  width: .5rem;
  height: .5rem;
}

.money-chart-donut-legend-label {
  color: #374151;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  font-weight: 650;
  overflow: hidden;
}

.money-chart-donut-legend-pct {
  color: var(--money-navy);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.money-expense-bars {
  flex-direction: column;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.money-expense-bar-meta {
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .2rem;
  display: flex;
}

.money-expense-bar-label {
  color: var(--money-navy);
  font-size: .72rem;
  font-weight: 700;
}

.money-expense-bar-pct {
  color: var(--money-teal-dark);
  font-variant-numeric: tabular-nums;
  font-size: .68rem;
  font-weight: 800;
}

.money-expense-bar-track {
  background: #eef2f4;
  border-radius: 999px;
  height: .45rem;
  overflow: hidden;
}

.money-expense-bar-fill {
  border-radius: 999px;
  min-width: 2px;
  height: 100%;
}

.money-expense-bar-value {
  color: #6b7280;
  font-variant-numeric: tabular-nums;
  text-align: right;
  margin-top: .15rem;
  font-size: .66rem;
  font-weight: 650;
  display: block;
}

.money-page-dashboard .money-subcategory-tabs .english-category-tab-active {
  background: var(--money-teal);
  border-color: var(--money-teal);
  color: #fff;
}

.money-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  display: grid;
}

.money-kpi-card {
  border: 1px solid var(--kpi-color, var(--border));
}

@supports (color: color-mix(in lab, red, red)) {
  .money-kpi-card {
    border: 1px solid color-mix(in srgb, var(--kpi-color, var(--border)) 35%, var(--border));
  }
}

.money-kpi-card {
  background: linear-gradient(165deg,
    var(--kpi-color, var(--accent)),
    var(--surface));
  border-radius: .85rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .money-kpi-card {
    background: linear-gradient(165deg,
    color-mix(in srgb, var(--kpi-color, var(--accent)) 12%, var(--surface)),
    var(--surface));
  }
}

.money-kpi-card {
  min-width: 0;
  box-shadow: inset 3px 0 0 var(--kpi-color, var(--accent));
  padding: .85rem .9rem .95rem;
}

.money-kpi-label {
  color: var(--muted);
  letter-spacing: -.01em;
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
}

.money-kpi-card .money-kpi-value {
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  margin: .45rem 0 0;
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.2;
}

.money-kpi-card .money-kpi-delta {
  font-variant-numeric: tabular-nums;
  margin: .32rem 0 0;
  font-size: .74rem;
  font-weight: 650;
}

.money-kpi-card .money-kpi-delta.is-up {
  color: #2e9e5b;
}

.money-kpi-card .money-kpi-delta.is-down {
  color: #e24b4a;
}

.money-dashboard-main-grid, .money-dashboard-ledger-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: .75rem;
  display: grid;
}

.money-dash-panel, .money-dash-panel-wide {
  min-width: 0;
}

.money-ledger-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  display: grid;
}

.money-ledger-summary-item {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: .75rem;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
  padding: .75rem .8rem;
  display: flex;
}

.money-ledger-summary-item span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.money-ledger-summary-item strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  word-break: break-all;
  font-size: .95rem;
  font-weight: 750;
}

.money-ledger-summary-item.is-income strong {
  color: #2e9e5b;
}

.money-ledger-summary-item.is-expense strong {
  color: #e24b4a;
}

.money-ledger-summary-item.is-net strong {
  color: var(--foreground);
}

.money-category-chart-row {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: .75rem;
  display: grid;
}

.money-category-legend {
  flex-direction: column;
  gap: .4rem;
  max-height: 16rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  overflow: auto;
}

.money-category-legend li {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  display: grid;
}

.money-category-swatch {
  border-radius: 999px;
  flex-shrink: 0;
  width: .55rem;
  height: .55rem;
}

.money-category-name {
  color: var(--foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
}

.money-category-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.money-page-dashboard {
  overflow: visible;
}

.gs-portfolio {
  --gs-bg: var(--surface);
  --gs-bg-2: var(--surface);
  --gs-bg-3: var(--surface-2);
  --gs-border: var(--border);
  --gs-text: var(--foreground);
  --gs-muted: var(--muted);
  --gs-up: #e24b4a;
  --gs-down: #4a7fd4;
  min-width: 0;
}

.gs-portfolio-sheet {
  background: var(--gs-bg);
  border: 1px solid var(--gs-border);
  color: var(--gs-text);
  box-shadow: 0 1px 3px var(--foreground);
  border-radius: .85rem;
  padding: .85rem .9rem 1rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .gs-portfolio-sheet {
    box-shadow: 0 1px 3px color-mix(in srgb, var(--foreground) 4%, transparent);
  }
}

.gs-portfolio-title {
  letter-spacing: -.02em;
  color: var(--foreground);
  margin: 0 0 .75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.gs-portfolio-kpi-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
  margin-bottom: .75rem;
  display: grid;
}

.gs-portfolio-kpi {
  background: linear-gradient(165deg,
    var(--gs-kpi, var(--accent)),
    var(--surface));
}

@supports (color: color-mix(in lab, red, red)) {
  .gs-portfolio-kpi {
    background: linear-gradient(165deg,
    color-mix(in srgb, var(--gs-kpi, var(--accent)) 12%, var(--surface)),
    var(--surface));
  }
}

.gs-portfolio-kpi {
  border: 1px solid var(--gs-kpi, var(--border));
}

@supports (color: color-mix(in lab, red, red)) {
  .gs-portfolio-kpi {
    border: 1px solid color-mix(in srgb, var(--gs-kpi, var(--border)) 35%, var(--border));
  }
}

.gs-portfolio-kpi {
  min-width: 0;
  box-shadow: inset 3px 0 0 var(--gs-kpi, var(--accent));
  border-radius: .75rem;
  padding: .55rem .6rem .65rem;
}

.gs-portfolio-kpi__badge {
  background: var(--gs-kpi, var(--accent));
  color: #fff;
  border-radius: .2rem;
  padding: .1rem .38rem;
  font-size: .62rem;
  font-weight: 800;
  display: inline-flex;
}

.gs-portfolio-kpi__value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--foreground);
  margin-top: .35rem;
  font-size: 1.05rem;
  font-weight: 800;
  display: block;
}

.gs-portfolio-kpi__delta {
  font-variant-numeric: tabular-nums;
  color: var(--gs-muted);
  margin-top: .15rem;
  font-size: .64rem;
  font-weight: 650;
  display: block;
}

.gs-portfolio-kpi__delta.is-up {
  color: var(--gs-up);
}

.gs-portfolio-kpi__delta.is-down {
  color: var(--gs-down);
}

.gs-portfolio-row {
  gap: .55rem;
  margin-bottom: .55rem;
  display: grid;
}

.gs-portfolio-row--charts, .gs-portfolio-row--tables {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.gs-portfolio-panel {
  background: var(--gs-bg-2);
  border: 1px solid var(--gs-border);
  min-width: 0;
  box-shadow: 0 1px 2px var(--foreground);
  border-radius: .75rem;
  overflow: hidden;
}

@supports (color: color-mix(in lab, red, red)) {
  .gs-portfolio-panel {
    box-shadow: 0 1px 2px color-mix(in srgb, var(--foreground) 3%, transparent);
  }
}

.gs-portfolio-panel--hero {
  overflow: visible;
}

.gs-portfolio-panel__head {
  background: var(--gs-bg-3);
  border-bottom: 1px solid var(--gs-border);
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .42rem .55rem;
  display: flex;
}

.gs-portfolio-panel__head--split {
  flex-wrap: wrap;
}

.gs-portfolio-panel__head h2 {
  color: var(--foreground);
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
}

.gs-portfolio-meta {
  color: var(--gs-muted);
  flex-wrap: wrap;
  gap: .45rem .75rem;
  font-size: .64rem;
  display: flex;
}

.gs-portfolio-meta strong {
  color: var(--foreground);
  font-weight: 700;
}

.gs-portfolio-panel__body {
  padding: .55rem;
}

.gs-portfolio-panel__body--flush {
  padding: 0;
}

.gs-portfolio-panel__body--chart {
  padding: .35rem .45rem .5rem;
}

.gs-portfolio-panel__body--hero {
  grid-template-columns: minmax(18rem, 1.15fr) minmax(16rem, .85fr);
  align-items: center;
  gap: .75rem 1rem;
  display: grid;
}

.gs-portfolio-hero-chart {
  min-width: 0;
}

.gs-portfolio-hero-breakdown {
  flex-direction: column;
  gap: .7rem;
  display: flex;
}

.gs-portfolio-hero-total {
  border: 1px solid var(--gs-border);
  background: var(--surface-2);
  border-radius: .85rem;
  flex-direction: column;
  gap: .18rem;
  padding: .8rem .9rem;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .gs-portfolio-hero-total {
    background: color-mix(in srgb, var(--surface-2) 75%, var(--surface));
  }
}

.gs-portfolio-hero-total span {
  color: var(--gs-muted);
  font-size: .72rem;
}

.gs-portfolio-hero-total strong {
  letter-spacing: -.03em;
  color: var(--foreground);
  font-size: 1.35rem;
  font-weight: 800;
}

.gs-portfolio-hero-total em {
  font-size: .76rem;
  font-style: normal;
  font-weight: 700;
}

.gs-portfolio-hero-total .is-up {
  color: var(--gs-up);
}

.gs-portfolio-hero-total .is-down {
  color: var(--gs-down);
}

.gs-portfolio-allocation-list {
  flex-direction: column;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.gs-portfolio-allocation-item {
  border: 1px solid var(--gs-border);
  background: var(--surface);
  border-radius: .8rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  padding: .72rem .8rem;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .gs-portfolio-allocation-item {
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-2));
  }
}

.gs-portfolio-allocation-swatch {
  border-radius: 999px;
  width: .65rem;
  height: 2.2rem;
}

.gs-portfolio-allocation-copy {
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
  display: flex;
}

.gs-portfolio-allocation-copy strong {
  color: var(--foreground);
  font-size: .8rem;
}

.gs-portfolio-allocation-copy span {
  color: var(--gs-muted);
  font-variant-numeric: tabular-nums;
  font-size: .72rem;
}

.gs-portfolio-allocation-pct {
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  font-size: .88rem;
  font-weight: 800;
}

.gs-portfolio-table {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  width: 100%;
  font-size: .68rem;
}

.gs-portfolio-table th {
  text-align: left;
  color: var(--gs-muted);
  background: var(--gs-bg-3);
  border-bottom: 1px solid var(--gs-border);
  border-right: 1px solid var(--gs-border);
  white-space: nowrap;
  padding: .38rem .45rem;
  font-size: .62rem;
  font-weight: 700;
}

.gs-portfolio-table th:last-child {
  border-right: none;
}

.gs-portfolio-table td {
  border-bottom: 1px solid var(--gs-border);
  border-right: 1px solid var(--gs-border);
  color: var(--foreground);
  vertical-align: top;
  padding: .34rem .45rem;
}

.gs-portfolio-table td:last-child {
  border-right: none;
}

.gs-portfolio-table tbody tr:nth-child(2n) td {
  background: var(--surface-2);
}

@supports (color: color-mix(in lab, red, red)) {
  .gs-portfolio-table tbody tr:nth-child(2n) td {
    background: color-mix(in srgb, var(--surface-2) 65%, var(--surface));
  }
}

.gs-portfolio-table__empty {
  text-align: center;
  color: var(--gs-muted);
  padding: .75rem !important;
}

.gs-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.gs-portfolio-days {
  color: var(--gs-muted);
  margin-top: .08rem;
  font-size: .58rem;
  display: block;
}

.gs-portfolio-summary {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: .55rem;
  margin-bottom: .55rem;
  display: grid;
}

.gs-portfolio-summary__block {
  background: var(--gs-bg-2);
  border: 1px solid var(--gs-border);
  border-radius: .75rem;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .55rem;
  padding: .55rem .65rem;
  display: flex;
}

.gs-portfolio-summary__label {
  color: var(--foreground);
  font-size: .68rem;
  font-weight: 700;
}

.gs-portfolio-summary__year {
  color: var(--gs-muted);
  font-size: .64rem;
}

.gs-portfolio-summary__value {
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  font-size: .82rem;
  font-weight: 800;
}

.gs-portfolio-summary__value--lg {
  font-size: .95rem;
}

.gs-portfolio-summary__pnl {
  font-variant-numeric: tabular-nums;
  font-size: .68rem;
  font-weight: 700;
}

.gs-portfolio-summary__pnl.is-up {
  color: var(--gs-up);
}

.gs-portfolio-summary__pnl.is-down {
  color: var(--gs-down);
}

.gs-holding-marker {
  color: var(--gs-muted);
  width: 1rem;
  font-weight: 700;
}

.gs-holding-name {
  color: var(--foreground);
  font-weight: 700;
}

.gs-holding-top td {
  border-bottom: none;
  padding-bottom: .15rem;
}

.gs-holding-bottom td {
  color: var(--gs-muted);
  padding-top: 0;
  font-size: .62rem;
}

.gs-portfolio-table .is-up {
  color: var(--gs-up);
  font-weight: 700;
}

.gs-portfolio-table .is-down {
  color: var(--gs-down);
  font-weight: 700;
}

.gs-portfolio-empty {
  text-align: center;
  color: var(--muted);
  margin: 0;
  padding: 1rem;
  font-size: .82rem;
}

.gs-portfolio-error {
  color: #e24b4a;
}

.money-chart-donut-wrap--sheet .money-chart-donut-center-label {
  fill: var(--muted);
}

.money-chart-donut-wrap--sheet .money-chart-donut-center-value {
  fill: var(--foreground);
}

.money-chart-donut-wrap--sheet .money-chart-donut-legend-label {
  color: var(--foreground);
}

.money-chart-donut-wrap--sheet .money-chart-donut-legend-pct {
  color: var(--foreground);
  font-weight: 800;
}

.money-chart-donut-wrap--lg .money-chart-donut-center-label {
  font-size: 13px;
}

.money-chart-donut-wrap--lg .money-chart-donut-center-value {
  font-size: 19px;
  font-weight: 800;
}

.money-chart-legend--sheet {
  color: var(--muted);
}

.money-chart-legend--sheet i {
  border-radius: 2px;
}

.gs-portfolio .money-chart-grid {
  stroke: var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  .gs-portfolio .money-chart-grid {
    stroke: color-mix(in srgb, var(--border) 85%, transparent);
  }
}

.gs-portfolio .money-chart-axis {
  fill: var(--muted);
}

@media (max-width: 1100px) {
  .gs-portfolio-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gs-portfolio-panel__body--hero, .gs-portfolio-row--charts, .gs-portfolio-row--tables, .gs-portfolio-summary {
    grid-template-columns: 1fr;
  }
}

.money-chart-row {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: .75rem;
  display: grid;
}

.money-portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  display: grid;
}

.money-portfolio-block {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .85rem;
  min-width: 0;
  padding: .9rem;
}

.money-portfolio-block h3 {
  margin: 0 0 .7rem;
  font-size: .9rem;
  font-weight: 700;
}

.money-portfolio-block-wide {
  grid-column: 1 / -1;
}

.money-portfolio-block-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .65rem;
  display: flex;
}

.money-portfolio-block-head h3 {
  margin: 0;
}

.money-pill-row {
  flex-wrap: wrap;
  gap: .35rem;
  display: flex;
}

.money-pill {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  align-items: center;
  padding: .2rem .55rem;
  font-size: .72rem;
  font-weight: 600;
  display: inline-flex;
}

.money-chart-donut-wrap, .money-chart-bars-wrap {
  width: 100%;
}

.money-chart-donut, .money-chart-bars {
  width: 100%;
  height: auto;
  display: block;
}

.money-chart-donut-label {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.money-chart-donut-center-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.money-chart-donut-center-value {
  fill: var(--foreground);
  font-size: 13px;
  font-weight: 750;
}

.money-chart-grid {
  stroke: var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  .money-chart-grid {
    stroke: color-mix(in srgb, var(--border) 85%, transparent);
  }
}

.money-chart-grid {
  stroke-width: 1px;
}

.money-chart-axis {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.money-chart-legend {
  color: var(--muted);
  flex-wrap: wrap;
  gap: .55rem .9rem;
  margin-top: .35rem;
  font-size: .72rem;
  font-weight: 600;
  display: flex;
}

.money-chart-legend i {
  vertical-align: middle;
  border-radius: 2px;
  width: .55rem;
  height: .55rem;
  margin-right: .3rem;
  display: inline-block;
}

.money-table-wrap {
  overflow-x: auto;
}

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

.money-table th, .money-table td {
  border-bottom: 1px solid var(--border);
  padding: .48rem .35rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .money-table th, .money-table td {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  }
}

.money-table th, .money-table td {
  text-align: left;
  vertical-align: top;
}

.money-table th {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}

.money-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.money-table .empty {
  color: var(--muted);
  text-align: center;
}

.money-holdings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  display: grid;
}

.money-holding-card {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: .75rem;
  min-width: 0;
  padding: .75rem .8rem;
}

.money-holding-main {
  justify-content: space-between;
  gap: .75rem;
  display: flex;
}

.money-holding-name {
  margin: 0;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
}

.money-holding-meta {
  color: var(--muted);
  margin: .2rem 0 0;
  font-size: .72rem;
}

.money-holding-value {
  text-align: right;
  flex-shrink: 0;
}

.money-holding-amount {
  font-variant-numeric: tabular-nums;
  margin: 0;
  font-size: .88rem;
  font-weight: 700;
}

.money-holding-return {
  margin: .15rem 0 0;
  font-size: .78rem;
  font-weight: 700;
}

.money-holding-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem .75rem;
  margin: .7rem 0 0;
  display: grid;
}

.money-holding-grid div {
  min-width: 0;
}

.money-holding-grid dt {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
}

.money-holding-grid dd {
  font-variant-numeric: tabular-nums;
  margin: .1rem 0 0;
  font-size: .78rem;
  font-weight: 600;
}

.money-tone-up {
  color: #1f7a4c;
}

.money-tone-down {
  color: #b42318;
}

.money-muted {
  color: var(--muted);
  font-weight: 500;
}

.money-portfolio-error {
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  display: flex;
}

@media (max-width: 1100px) {
  .money-kpi-row, .money-kpi-grid, .money-sheet-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .money-sheet-hero {
    grid-template-columns: 1fr;
  }

  .money-sheet-kpi-strip {
    border-left: none;
    border-top: 1px solid var(--money-sheet-grid);
  }

  .money-chart-row, .money-dashboard-main-grid, .money-dashboard-ledger-grid, .money-sheet-grid--charts, .money-sheet-grid--tables, .money-sheet-grid--ledger, .money-sheet-expense-row, .money-category-chart-row, .money-portfolio-grid, .money-holdings, .money-ledger-summary-grid, .money-sheet-ledger-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .money-page, .money-page-sheet {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .money-dashboard-embed-wrap:not(.money-dashboard-embed-wrap-dashboard) {
    min-height: 70vh;
  }

  .money-dashboard-embed:not(.money-dashboard-embed-dashboard) {
    min-height: 70vh;
    position: relative;
  }
}

@media (max-width: 768px) {
  .money-page-sheet {
    min-height: calc(100dvh - 3.5rem);
  }

  .money-page-sheet .money-dashboard-panel {
    min-height: calc(100dvh - 10.5rem);
  }

  .money-page-sheet .money-dashboard-embed-wrap-dashboard {
    min-height: calc(100dvh - 11.5rem);
  }
}

html.capacitor .money-page-sheet .money-dashboard-panel {
  min-height: calc(100dvh - 9.5rem - env(safe-area-inset-top, 0px) -
      env(safe-area-inset-bottom, 0px));
}

html.capacitor .money-page-sheet .money-dashboard-embed-wrap-dashboard {
  min-height: calc(100dvh - 10.5rem - env(safe-area-inset-top, 0px) -
      env(safe-area-inset-bottom, 0px));
}

.money-ledger-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem .85rem;
  display: grid;
}

.money-ledger-field {
  min-width: 0;
  color: var(--muted);
  flex-direction: column;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 600;
  display: flex;
}

.money-ledger-field input, .money-ledger-field select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  border-radius: .55rem;
  padding: .55rem .7rem;
  font-size: .92rem;
  font-weight: 500;
}

.money-ledger-field-wide {
  grid-column: 1 / -1;
}

.money-ledger-actions {
  flex-wrap: wrap;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: .6rem;
  display: flex;
}

.money-ledger-submit {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: .6rem;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  font-size: .9rem;
  font-weight: 600;
}

.money-ledger-submit:disabled {
  opacity: .55;
  cursor: default;
}

.money-ledger-recalc {
  border: 1px solid var(--border);
  min-height: 2.75rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .money-ledger-recalc {
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  }
}

.money-ledger-recalc {
  color: var(--text);
  cursor: pointer;
  background: none;
  border-radius: .6rem;
  padding: 0 1rem;
  font-size: .86rem;
  font-weight: 560;
}

.money-ledger-recalc:disabled {
  opacity: .55;
  cursor: default;
}

.money-ledger-message {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .82rem;
}

.money-ledger-message-ok {
  color: var(--accent);
}

.money-ledger-message-error {
  color: #b42318;
}

@media (max-width: 720px) {
  .money-ledger-form {
    grid-template-columns: 1fr;
  }
}

.area-career {
  grid-area: 3 / 6 / auto / span 2;
}

.area-goals.panel {
  align-self: start;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: auto;
  overflow: visible;
}

.area-calendar.panel {
  overflow: visible;
}

.area-goals .panel-body {
  flex: none;
  min-width: 0;
  min-height: auto;
  overflow: visible;
}

.area-calendar .panel-body {
  min-height: 0;
  overflow-y: auto;
}

.area-todo {
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  min-height: 0;
  box-shadow: 0 1px #00000008;
}

.panel-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 1rem .5rem;
  display: flex;
}

.panel-title {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
}

.panel-subtitle {
  color: var(--muted);
  margin: .15rem 0 0;
  font-size: .72rem;
}

.panel-body {
  min-height: 0;
  padding: .85rem 1rem 1rem;
}

.panel-button, .panel-button-secondary, .panel-icon-button {
  border: 1px solid var(--border);
  color: var(--foreground);
  cursor: pointer;
  background: #fff;
  border-radius: .65rem;
  padding: .35rem .7rem;
  font-size: .78rem;
}

.panel-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.panel-button-secondary {
  background: var(--surface-2);
}

.panel-icon-button {
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.1rem;
  display: inline-flex;
}

.panel-textarea {
  border: 1px solid var(--border);
  width: 100%;
  font: inherit;
  color: var(--foreground);
  background: #fff;
  border-radius: .75rem;
  padding: .75rem;
  line-height: 1.5;
}

.calendar-day {
  cursor: pointer;
  background: none;
  border: none;
  border-radius: .75rem;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: .1rem;
  min-height: 3.6rem;
  padding: .2rem .1rem .15rem;
  font-size: .78rem;
  display: flex;
  position: relative;
}

.calendar-root {
  min-height: 0;
}

.calendar-weekday-row {
  text-align: center;
  width: 100%;
  color: var(--muted);
  margin-bottom: .5rem;
  font-size: .75rem;
  font-weight: 500;
}

.calendar-day-grid {
  flex: none;
  gap: .25rem;
  width: 100%;
}

.calendar-day-num {
  font-size: .82rem;
  line-height: 1;
}

.calendar-day:hover {
  background: var(--surface-2);
}

.calendar-day-today {
  outline: 1px solid var(--accent);
}

.calendar-day-selected {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.calendar-dot {
  border-radius: 999px;
  flex: 0 0 .42rem;
  width: .42rem;
  min-width: .42rem;
  height: .42rem;
  min-height: .42rem;
  display: block;
}

.calendar-dots {
  justify-content: center;
  align-items: center;
  gap: .14rem;
  min-height: .42rem;
  display: flex;
}

.calendar-dot-note {
  background: var(--accent);
}

.calendar-dot-event {
  background: #2563eb;
}

.calendar-dot-holiday {
  background: #dc2626;
}

.calendar-dot-career {
  background: #0f766e;
}

.calendar-dot-todo-complete {
  background: #34c759;
}

.calendar-dot-todo-incomplete {
  background: #9aa0a6;
}

.calendar-legend-swatch-todo-complete {
  background: #34c759;
}

.calendar-legend-swatch-todo-incomplete {
  background: #9aa0a6;
}

.calendar-legend {
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem .65rem;
  margin-bottom: .35rem;
  font-size: .62rem;
  display: flex;
}

.calendar-legend-item {
  align-items: center;
  gap: .25rem;
  display: inline-flex;
}

.calendar-legend-swatch {
  border-radius: 999px;
  width: .45rem;
  height: .45rem;
}

.calendar-activity-list {
  flex-direction: column;
  align-items: center;
  gap: .08rem;
  width: 100%;
  margin-top: .05rem;
  display: flex;
}

.calendar-activity-chip {
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: .25rem;
  max-width: 100%;
  padding: .05rem .2rem;
  font-size: .55rem;
  font-weight: 600;
  line-height: 1.2;
  display: block;
  overflow: hidden;
}

.calendar-speaking-chip {
  background: #ef4444;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 2.6rem;
  margin-top: .1rem;
  padding: .04rem .28rem;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .calendar-speaking-chip {
    background: color-mix(in srgb, #ef4444 18%, var(--surface));
  }
}

.calendar-speaking-chip {
  color: #b91c1c;
  font-size: .55rem;
  font-weight: 700;
}

.calendar-ted-ed-chip {
  background: #2563eb;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 2.6rem;
  margin-top: .1rem;
  padding: .04rem .28rem;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .calendar-ted-ed-chip {
    background: color-mix(in srgb, #2563eb 16%, var(--surface));
  }
}

.calendar-ted-ed-chip {
  color: #1d4ed8;
  font-size: .55rem;
  font-weight: 700;
}

.calendar-legend-swatch-english {
  background: #ef4444;
}

.calendar-legend-swatch-ted-ed, .calendar-legend-swatch-event {
  background: #2563eb;
}

.calendar-legend-swatch-holiday {
  background: #dc2626;
}

.calendar-legend-swatch-career {
  background: #0f766e;
}

.calendar-legend-swatch-note {
  background: var(--accent);
}

.calendar-event-composer {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.calendar-event-field {
  flex-direction: column;
  gap: .3rem;
  display: flex;
}

.calendar-event-field > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
}

.calendar-event-composer .calendar-event-input {
  border: 1px solid var(--border);
  width: 100%;
  font: inherit;
  color: var(--foreground);
  background: #fff;
  border-radius: .55rem;
  padding: .5rem .65rem;
  font-size: .88rem;
}

.calendar-event-composer .calendar-event-input-time {
  width: 100%;
  min-width: 0;
}

.calendar-event-composer .calendar-event-input:focus {
  outline: 2px solid var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .calendar-event-composer .calendar-event-input:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  }
}

.calendar-event-composer .calendar-event-input:focus {
  outline-offset: 1px;
}

.calendar-event-allday {
  color: var(--foreground);
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  display: flex;
}

.calendar-event-times {
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  display: grid;
}

.calendar-day-events {
  border-top: 1px solid var(--border);
  margin-top: .75rem;
  padding-top: .75rem;
}

.calendar-day-events-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .55rem;
  display: flex;
}

.calendar-day-events-heading h3 {
  letter-spacing: -.01em;
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
}

.calendar-day-events-heading p {
  color: var(--muted);
  margin: .15rem 0 0;
  font-size: .72rem;
}

.calendar-day-events-add {
  background: var(--accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  border: 0;
  border-radius: .55rem;
  flex-shrink: 0;
  padding: .4rem .7rem;
  font-size: .75rem;
  font-weight: 650;
}

.calendar-day-events-add:hover:not(:disabled) {
  filter: brightness(.96);
}

.calendar-day-events-add:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.calendar-day-events-hint, .calendar-day-events-empty {
  color: var(--muted);
  white-space: pre-line;
  margin: 0;
  padding: .65rem .1rem;
  font-size: .8rem;
  line-height: 1.45;
}

.calendar-day-events-error, .calendar-event-modal-error {
  color: #c62828;
  margin: 0 0 .45rem;
  font-size: .78rem;
  line-height: 1.4;
}

.calendar-day-events-list {
  flex-direction: column;
  gap: .35rem;
  max-height: 11.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  overflow-y: auto;
}

.calendar-day-events-item {
  background: var(--surface-2);
  border-radius: .65rem;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  align-items: start;
  gap: .55rem;
  padding: .5rem .55rem;
  display: grid;
}

.calendar-day-events-time {
  color: var(--muted);
  padding-top: .1rem;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.35;
}

.calendar-day-events-item.is-event {
  background: #2563eb;
}

@supports (color: color-mix(in lab, red, red)) {
  .calendar-day-events-item.is-event {
    background: color-mix(in srgb, #2563eb 8%, var(--surface-2));
  }
}

.calendar-day-events-item.is-event .calendar-day-events-time {
  color: #2563eb;
  font-weight: 750;
}

.calendar-day-events-item.is-holiday {
  background: #dc2626;
}

@supports (color: color-mix(in lab, red, red)) {
  .calendar-day-events-item.is-holiday {
    background: color-mix(in srgb, #dc2626 8%, var(--surface-2));
  }
}

.calendar-day-events-item.is-holiday .calendar-day-events-time {
  color: #dc2626;
  font-weight: 750;
}

.calendar-day-events-locked {
  width: .25rem;
}

.calendar-day-events-main {
  text-align: left;
  cursor: pointer;
  min-width: 0;
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: .12rem;
  padding: 0;
  display: flex;
}

.calendar-day-events-main:disabled {
  cursor: default;
}

.calendar-day-events-main:hover:not(:disabled) .calendar-day-events-title {
  text-underline-offset: 2px;
  text-decoration: underline;
}

.calendar-day-events-title {
  word-break: break-word;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.35;
}

.calendar-day-events-loc {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}

.calendar-day-events-actions {
  flex-shrink: 0;
  align-items: center;
  gap: .15rem;
  display: flex;
}

.calendar-day-events-edit, .calendar-day-events-delete {
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: .15rem .25rem;
  font-size: .7rem;
  line-height: 1.3;
}

.calendar-day-events-edit:hover:not(:disabled) {
  color: var(--foreground);
}

.calendar-day-events-delete:hover:not(:disabled) {
  color: #c62828;
}

.calendar-day-events-edit:disabled, .calendar-day-events-delete:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.calendar-event-modal-backdrop {
  z-index: 80;
  background: #0f172a59;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  display: flex;
  position: fixed;
  inset: 0;
}

.calendar-event-modal {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 1rem;
  flex-direction: column;
  width: min(100%, 24rem);
  max-height: min(88vh, 32rem);
  display: flex;
  overflow: hidden;
  box-shadow: 0 18px 50px #0f172a2e;
}

.calendar-event-modal-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1rem .7rem;
  display: flex;
}

.calendar-event-modal-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.calendar-event-modal-header p {
  color: var(--muted);
  margin: .2rem 0 0;
  font-size: .78rem;
}

.calendar-event-modal-body {
  padding: .9rem 1rem;
  overflow: auto;
}

.calendar-event-modal-hint {
  color: var(--muted);
  white-space: pre-line;
  margin: 0 0 .75rem;
  font-size: .8rem;
  line-height: 1.45;
}

.calendar-event-modal-footer {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  gap: .45rem;
  padding: .75rem 1rem .9rem;
  display: flex;
}

.activity-tracker {
  background: var(--surface-2);
  border-radius: .55rem;
  flex-direction: column;
  flex-shrink: 0;
  width: 9.75rem;
  min-width: 9.75rem;
  padding: .5rem .45rem;
  display: flex;
}

.activity-tracker-title {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 0 0 .4rem;
  font-size: .68rem;
  font-weight: 600;
}

.activity-tracker-list {
  flex-direction: column;
  gap: .4rem;
  display: flex;
}

.activity-compact-row {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .3rem;
  display: grid;
}

.activity-chip {
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  background: #fff;
  border-radius: .45rem;
  padding: .28rem .5rem;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.25;
  transition: background .15s, color .15s, border-color .15s;
}

.activity-chip-on {
  background: var(--activity-color);
  border-color: var(--activity-color);
  color: #fff;
}

.activity-chip-input {
  border: 1px solid var(--border);
  width: 100%;
  min-width: 0;
  color: var(--foreground);
  background: #fff;
  border-radius: .4rem;
  padding: .24rem .35rem;
  font-size: .72rem;
  line-height: 1.25;
}

.activity-chip-unit {
  color: var(--muted);
  white-space: nowrap;
  font-size: .65rem;
}

.activity-tracker-header {
  background: none;
  border-radius: 0;
  flex-shrink: 0;
  width: auto;
  min-width: 0;
  padding: 0;
}

.activity-header-grid {
  flex-wrap: nowrap;
  align-items: center;
  gap: .34rem;
  width: max-content;
  max-width: 100%;
  display: flex;
}

.activity-header-item {
  flex-shrink: 0;
  display: flex;
}

.activity-header-card {
  border: 1px solid var(--activity-color);
  background: #fff;
  border-radius: 999px;
  align-items: stretch;
  min-width: 0;
  display: inline-flex;
  overflow: hidden;
}

@supports (color: color-mix(in lab, red, red)) {
  .activity-header-card {
    border: 1px solid color-mix(in srgb, var(--activity-color) 38%, #d1d1d6);
  }
}

.activity-header-card {
  transition: border-color .18s, box-shadow .18s;
  box-shadow: 0 1px 2px #0000000d, 0 0 0 .5px #00000005;
}

.activity-header-card-on {
  border-color: var(--activity-color);
}

@supports (color: color-mix(in lab, red, red)) {
  .activity-header-card-on {
    border-color: color-mix(in srgb, var(--activity-color) 55%, #d1d1d6);
  }
}

.activity-header-card-on {
  box-shadow: 0 1px 4px var(--activity-color),
    0 0 0 .5px var(--activity-color);
}

@supports (color: color-mix(in lab, red, red)) {
  .activity-header-card-on {
    box-shadow: 0 1px 4px color-mix(in srgb, var(--activity-color) 18%, transparent),
    0 0 0 .5px color-mix(in srgb, var(--activity-color) 25%, transparent);
  }
}

.activity-pill.activity-pill-colored {
  letter-spacing: -.02em;
  cursor: pointer;
  white-space: nowrap;
  color: var(--activity-color);
  border: none;
  border-radius: 0;
  flex-shrink: 0;
  padding: .3rem .58rem;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.2;
}

@supports (color: color-mix(in lab, red, red)) {
  .activity-pill.activity-pill-colored {
    color: color-mix(in srgb, var(--activity-color) 82%, #1c1c1e);
  }
}

.activity-pill.activity-pill-colored {
  background: var(--activity-color);
}

@supports (color: color-mix(in lab, red, red)) {
  .activity-pill.activity-pill-colored {
    background: color-mix(in srgb, var(--activity-color) 16%, #fff);
  }
}

.activity-pill.activity-pill-colored {
  box-shadow: inset -1px 0 0 var(--activity-color);
}

@supports (color: color-mix(in lab, red, red)) {
  .activity-pill.activity-pill-colored {
    box-shadow: inset -1px 0 0 color-mix(in srgb, var(--activity-color) 18%, #e5e5ea);
  }
}

.activity-pill.activity-pill-colored {
  transition: background .18s, color .18s, transform .12s;
}

.activity-pill.activity-pill-colored:hover {
  background: var(--activity-color);
}

@supports (color: color-mix(in lab, red, red)) {
  .activity-pill.activity-pill-colored:hover {
    background: color-mix(in srgb, var(--activity-color) 22%, #fff);
  }
}

.activity-pill.activity-pill-colored:active {
  transform: scale(.98);
}

.activity-pill.activity-pill-on.activity-pill-colored {
  background: var(--activity-color);
  color: #fff;
  box-shadow: inset -1px 0 0 var(--activity-color);
}

@supports (color: color-mix(in lab, red, red)) {
  .activity-pill.activity-pill-on.activity-pill-colored {
    box-shadow: inset -1px 0 0 color-mix(in srgb, var(--activity-color) 70%, #000);
  }
}

.activity-field {
  background: #fff;
  align-items: center;
  gap: .12rem;
  min-width: 0;
  padding: 0 .38rem 0 .32rem;
  display: inline-flex;
}

.activity-amount-group {
  align-items: center;
  gap: .14rem;
  min-width: 0;
  padding-right: .14rem;
  display: inline-flex;
}

.activity-amount-input {
  font-variant-numeric: tabular-nums;
  text-align: center;
  width: 1.85rem;
  min-width: 0;
  color: var(--foreground);
  background: none;
  border: none;
  outline: none;
  padding: .3rem 0;
  font-size: .76rem;
  line-height: 1.2;
}

.activity-amount-input::placeholder {
  color: var(--muted);
}

@supports (color: color-mix(in lab, red, red)) {
  .activity-amount-input::placeholder {
    color: color-mix(in srgb, var(--muted) 45%, transparent);
  }
}

.activity-amount-input::placeholder {
  font-weight: 400;
}

.activity-amount-unit {
  color: var(--muted);
  letter-spacing: -.01em;
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 500;
}

.activity-inline-select {
  letter-spacing: -.02em;
  min-width: 4.8rem;
  max-width: 6.5rem;
  color: var(--foreground);
  cursor: pointer;
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2386868b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .15rem center / .55rem no-repeat;
  border: none;
  outline: none;
  padding: .3rem 1.1rem .3rem .1rem;
  font-size: .74rem;
  font-weight: 500;
  line-height: 1.2;
}

.activity-inline-select:invalid, .activity-inline-select option[value=""] {
  color: var(--muted);
}

.area-todo .panel-title {
  font-size: 1.12rem;
}

.area-todo .panel-header {
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
}

.area-todo .panel-header > div:first-child {
  flex-shrink: 0;
}

.area-todo .panel-body {
  padding: .35rem .85rem .55rem;
}

.planner-todo-editor {
  flex-direction: column;
  gap: 0;
  width: 100%;
  display: flex;
}

.planner-todo-section {
  flex-direction: column;
  gap: .2rem;
  display: flex;
}

.planner-todo-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: .45rem 0 .4rem;
}

.planner-section-title {
  letter-spacing: .01em;
  color: var(--muted);
  margin: 0;
  font-size: .88rem;
  font-weight: 600;
}

.planner-task-list {
  flex-direction: column;
  gap: .14rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.planner-task-item {
  border-radius: .4rem;
  align-items: center;
  gap: .45rem;
  min-width: 0;
  min-height: 1.75rem;
  padding-left: 0;
  transition: opacity .15s, background .15s, box-shadow .15s;
  display: flex;
}

.planner-task-item-composer {
  opacity: .72;
  min-height: 1.35rem;
}

.planner-task-item-composer:focus-within {
  opacity: 1;
}

.planner-task-item-composer .planner-task-checkbox {
  opacity: .45;
}

.planner-task-item-composer .task-drag-handle {
  visibility: hidden;
  pointer-events: none;
}

.planner-task-item .task-drag-handle {
  flex-shrink: 0;
  margin-left: auto;
}

.planner-task-item-draggable:hover {
  background: var(--accent-soft);
}

@supports (color: color-mix(in lab, red, red)) {
  .planner-task-item-draggable:hover {
    background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
  }
}

.planner-task-item-dragging {
  opacity: .38;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
}

.planner-task-item.task-drop-before {
  box-shadow: inset 0 2px 0 0 var(--accent);
}

.planner-task-item.task-drop-after {
  box-shadow: inset 0 -2px 0 0 var(--accent);
}

.dump-task-item.task-drop-before {
  box-shadow: inset 0 2px 0 0 var(--accent);
}

.dump-task-item.task-drop-after {
  box-shadow: inset 0 -2px 0 0 var(--accent);
}

.task-drag-handle {
  cursor: grab;
  opacity: .35;
  background: none;
  border: none;
  border-radius: .3rem;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 1.45rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  transition: opacity .15s, background .15s;
  display: inline-flex;
}

.planner-task-item-draggable:hover .task-drag-handle, .task-drag-handle:focus-visible, body.task-drag-active .task-drag-handle {
  opacity: 1;
}

.task-drag-handle:hover {
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .task-drag-handle:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
  }
}

.task-drag-handle:active {
  cursor: grabbing;
}

.task-drag-handle-grip {
  background-image: radial-gradient(circle, var(--muted) 1px, transparent 1.5px);
  opacity: .85;
  background-repeat: repeat-y;
  background-size: .42rem .22rem;
  width: .42rem;
  height: .65rem;
  display: block;
}

body.task-drag-active .planner-task-input, body.task-drag-active .planner-task-checkbox {
  pointer-events: none;
}

.task-drop-zone {
  border: 1.5px solid #0000;
  border-radius: .55rem;
  margin: 0;
  padding: .28rem .35rem .38rem;
  transition: border-color .15s, background .15s;
}

body.task-drag-active .planner-todo-editor .task-drop-zone, body.task-drag-active[data-task-drag-source="daily"] .dump-tasks-panel .task-drop-zone {
  border-color: var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  body.task-drag-active .planner-todo-editor .task-drop-zone, body.task-drag-active[data-task-drag-source="daily"] .dump-tasks-panel .task-drop-zone {
    border-color: color-mix(in srgb, var(--border) 80%, transparent);
  }
}

body.task-drag-active .planner-todo-editor .task-drop-zone, body.task-drag-active[data-task-drag-source="daily"] .dump-tasks-panel .task-drop-zone {
  background: none;
  border-style: dashed;
}

body.task-drag-active .task-drop-zone-active {
  box-shadow: inset 0 0 0 1px var(--accent);
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

@supports (color: color-mix(in lab, red, red)) {
  body.task-drag-active .task-drop-zone-active {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
  }
}

body.task-drag-active[data-task-drag-source="dump"] .dump-tasks-panel .task-drop-zone {
  box-shadow: none;
  background: none;
  border-color: #0000;
}

.planner-todo-editor-dragging .planner-task-item:not(.planner-task-item-dragging), .dump-tasks-panel-dragging .dump-task-item:not(.planner-task-item-dragging) {
  opacity: .92;
}

.dump-tasks-panel {
  flex-direction: column;
  gap: .35rem;
  min-height: 0;
  display: flex;
}

.dump-task-list {
  min-height: 3.5rem;
  max-height: min(42vh, 360px);
  margin: 0;
  list-style: none;
  overflow-y: auto;
}

.dump-tasks-hint {
  color: var(--muted);
  margin: 0;
  font-size: .68rem;
  line-height: 1.3;
}

.weather-panel {
  flex-direction: column;
  gap: .55rem;
  display: flex;
}

.weather-card {
  border: 1px solid var(--border);
  background: linear-gradient(155deg,
    var(--goal-accent) 0%,
    var(--surface-2) 48%,
    var(--surface) 100%);
  border-radius: .9rem;
  padding: .85rem .8rem .75rem;
  position: relative;
  overflow: hidden;
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-card {
    background: linear-gradient(155deg,
    color-mix(in srgb, var(--goal-accent) 14%, var(--surface)) 0%,
    var(--surface-2) 48%,
    var(--surface) 100%);
  }
}

.weather-card {
  box-shadow: 0 1px #00000008;
}

.weather-card-loading, .weather-card-empty {
  justify-content: center;
  align-items: center;
  min-height: 7.5rem;
  display: flex;
}

.weather-card-status {
  color: var(--muted);
  margin: 0;
  font-size: .78rem;
}

.weather-card-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  display: flex;
}

.weather-card-main {
  flex: 1;
  min-width: 0;
}

.weather-card-temp {
  letter-spacing: -.04em;
  color: var(--foreground);
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.weather-card-place {
  color: var(--foreground);
  margin: .45rem 0 0;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
}

.weather-card-condition {
  color: var(--muted);
  margin: .12rem 0 0;
  font-size: .74rem;
  font-weight: 500;
}

.weather-card-range {
  color: var(--muted);
  margin: .2rem 0 0;
  font-size: .68rem;
}

.weather-card-icon {
  flex-shrink: 0;
  width: 3.1rem;
  height: 3.1rem;
  margin-top: -.15rem;
}

.weather-card-icon-sun {
  background: radial-gradient(circle at 34% 32%,
    #fff8e8 0%,
    #f2d27a 42%,
    var(--goal-accent) 100%);
  border-radius: 50%;
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-card-icon-sun {
    background: radial-gradient(circle at 34% 32%,
    #fff8e8 0%,
    #f2d27a 42%,
    color-mix(in srgb, var(--goal-accent) 55%, #d4a017) 100%);
  }
}

.weather-card-icon-sun {
  box-shadow: 0 0 0 .12rem var(--goal-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-card-icon-sun {
    box-shadow: 0 0 0 .12rem color-mix(in srgb, var(--goal-accent) 18%, transparent);
  }
}

.weather-card-icon-cloud {
  box-shadow: 0 0 0 .12rem var(--border);
  background: radial-gradient(circle at 40% 35%, #fff 0%, #e8eef2 55%, #cfd8dc 100%);
  border-radius: 50%;
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-card-icon-cloud {
    box-shadow: 0 0 0 .12rem color-mix(in srgb, var(--border) 80%, transparent);
  }
}

.weather-card-icon-cloud {
  position: relative;
}

.weather-card-icon-cloud:after {
  content: "";
  background: #fffffff2;
  border-radius: 999px;
  width: 1.55rem;
  height: .95rem;
  position: absolute;
  bottom: .7rem;
  left: .55rem;
}

.weather-card-icon-rain {
  background: radial-gradient(circle at 40% 35%, #eef4f8 0%, #c5d9ea 100%);
  border-radius: 50%;
  position: relative;
}

.weather-card-icon-rain:after {
  content: "";
  background: var(--goal-accent);
  border-radius: 999px;
  width: .14rem;
  height: .85rem;
  position: absolute;
  bottom: .35rem;
  left: 1rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-card-icon-rain:after {
    background: color-mix(in srgb, var(--goal-accent) 70%, #fff);
  }
}

.weather-card-icon-rain:after {
  box-shadow: -.4rem .15rem 0 var(--goal-accent),
    .4rem .22rem 0 var(--goal-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-card-icon-rain:after {
    box-shadow: -.4rem .15rem 0 color-mix(in srgb, var(--goal-accent) 55%, #fff),
    .4rem .22rem 0 color-mix(in srgb, var(--goal-accent) 55%, #fff);
  }
}

.weather-card-icon-snow, .weather-card-icon-storm {
  background: radial-gradient(circle at 40% 35%, #f7f8fa 0%, #d5dce6 100%);
  border-radius: 50%;
}

.weather-card-stats {
  border-top: 1px solid var(--border);
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin-top: .7rem;
  padding-top: .65rem;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-card-stats {
    border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  }
}

.weather-card-source {
  color: var(--muted);
  text-align: right;
  margin: .45rem 0 0;
  font-size: .58rem;
}

.weather-stat {
  background: var(--surface);
  border-radius: .65rem;
  flex-direction: column;
  gap: .18rem;
  min-width: 0;
  padding: .45rem .5rem;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-stat {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
  }
}

.weather-stat {
  border: 1px solid var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-stat {
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  }
}

.weather-stat-label {
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 600;
}

.weather-stat-value {
  color: var(--foreground);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
}

.weather-stat-pm .weather-stat-value {
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .28rem;
  display: flex;
}

.weather-stat-pm-value {
  font-size: 1rem;
}

.weather-stat-pm-unit {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 500;
}

.weather-stat-pm-grade {
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: .08rem .35rem;
  font-size: .68rem;
  font-weight: 600;
}

.weather-stat-pm-good .weather-stat-pm-grade {
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-stat-pm-good .weather-stat-pm-grade {
    background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  }
}

.weather-stat-pm-good .weather-stat-pm-grade {
  color: var(--accent);
}

.weather-stat-pm-moderate .weather-stat-pm-grade {
  background: var(--goal-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-stat-pm-moderate .weather-stat-pm-grade {
    background: color-mix(in srgb, var(--goal-accent) 16%, var(--surface));
  }
}

.weather-stat-pm-moderate .weather-stat-pm-grade {
  color: var(--goal-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-stat-pm-moderate .weather-stat-pm-grade {
    color: color-mix(in srgb, var(--goal-accent) 75%, var(--foreground));
  }
}

.weather-stat-pm-bad .weather-stat-pm-grade {
  color: #b45309;
  background: #fff0e8;
}

.weather-stat-pm-very-bad .weather-stat-pm-grade {
  color: #b42318;
  background: #fde8e8;
}

.weather-panel .location-picker-compact {
  gap: .35rem;
}

.weather-panel .location-preset-row {
  gap: .3rem;
}

.weather-panel .location-pill {
  border-color: var(--accent);
  padding: .26rem .52rem;
  font-size: .68rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-panel .location-pill {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  }
}

.weather-panel .location-pill {
  color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-panel .location-pill {
    color: color-mix(in srgb, var(--accent) 78%, var(--foreground));
  }
}

.weather-panel .location-pill {
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-panel .location-pill {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  }
}

.weather-panel .location-pill-on {
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .weather-panel .location-pill-on {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  }
}

.weather-panel .location-pill-on {
  background: var(--accent);
  color: #fff;
}

.weather-panel .location-search-input {
  background: var(--surface);
  border-radius: 999px;
  padding: .28rem .55rem;
  font-size: .68rem;
}

.location-picker {
  flex-direction: column;
  gap: .35rem;
  display: flex;
}

.location-picker-compact {
  gap: .28rem;
}

.location-preset-row {
  flex-wrap: wrap;
  gap: .28rem;
  display: flex;
}

.location-pill {
  letter-spacing: -.02em;
  cursor: pointer;
  white-space: nowrap;
  color: #426db3;
  background: #e6edf9;
  border: 1px solid #9eb2d5;
  border-radius: 999px;
  flex-shrink: 0;
  padding: .24rem .5rem;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
}

.location-pill:hover {
  background: #d7e3f6;
}

.location-pill:active {
  transform: scale(.98);
}

.location-pill-on {
  color: #fff;
  background: #4a7fd4;
  border-color: #87a4d5;
}

.location-search-input {
  border: 1px solid var(--border);
  width: 100%;
  color: var(--foreground);
  background: #fff;
  border-radius: 999px;
  padding: .24rem .55rem;
  font-size: .68rem;
  line-height: 1.3;
}

.location-search-input::placeholder {
  color: var(--muted);
}

.location-search-input:focus {
  border-color: #4a7fd4;
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .location-search-input:focus {
    border-color: color-mix(in srgb, #4a7fd4 45%, var(--border));
  }
}

.location-search-input:focus {
  box-shadow: 0 0 0 2px #4a7fd41f;
}

.location-results {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: .55rem;
  max-height: 5.5rem;
  margin: 0;
  padding: .15rem;
  list-style: none;
  overflow: auto;
}

.location-result-item {
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: .4rem;
  width: 100%;
  padding: .28rem .45rem;
  font-size: .68rem;
}

.location-result-item:hover {
  background: var(--surface-2);
}

.dump-task-input {
  flex: 1;
  min-width: 0;
}

.area-dump .panel-body {
  padding: .35rem .85rem .55rem;
}

.planner-task-checkbox {
  cursor: pointer;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  display: inline-flex;
  position: relative;
}

.planner-task-input-wrap {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 0;
  display: flex;
  position: relative;
}

.task-metadata-bar {
  flex-wrap: wrap;
  gap: 4px;
  display: flex;
}

.task-metadata-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--foreground);
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.4;
}

.task-metadata-btn:hover {
  background: var(--surface-3, var(--surface-2));
  border-color: var(--accent, var(--border));
}

.planner-task-checkbox input {
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
  position: absolute;
}

.planner-task-checkmark {
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: .22rem;
  width: 1.05rem;
  height: 1.05rem;
  transition: background .15s, border-color .15s;
  display: block;
  position: relative;
}

.planner-task-checkbox input:checked + .planner-task-checkmark {
  background: #2e9e5b;
  border-color: #2e9e5b;
}

.planner-task-checkbox input:checked + .planner-task-checkmark:after {
  content: "";
  border: 2px solid #fff;
  border-width: 0 2px 2px 0;
  width: .22rem;
  height: .42rem;
  position: absolute;
  top: .1rem;
  left: .3rem;
  transform: rotate(45deg);
}

.planner-task-input {
  width: 100%;
  min-width: 0;
  color: var(--foreground);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  padding: .14rem 0;
  font-size: .92rem;
  line-height: 1.45;
}

.task-suggest-menu {
  z-index: 30;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .55rem;
  min-width: 13rem;
  max-width: min(18rem, 100%);
  padding: .28rem;
  position: absolute;
  top: calc(100% + .2rem);
  left: 0;
  box-shadow: 0 8px 24px #00000014;
}

.task-suggest-item {
  text-align: left;
  width: 100%;
  color: var(--foreground);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: .4rem;
  padding: .34rem .45rem;
  font-size: .82rem;
  line-height: 1.3;
  display: block;
}

.task-suggest-item-active, .task-suggest-item:hover {
  background: var(--surface-2);
}

.task-suggest-hint {
  color: var(--muted);
  margin: .2rem .15rem .1rem;
  font-size: .62rem;
}

.task-suggest-menu-portal {
  top: auto;
  left: auto;
}

.planner-task-input::placeholder {
  color: var(--muted);
}

@supports (color: color-mix(in lab, red, red)) {
  .planner-task-input::placeholder {
    color: color-mix(in srgb, var(--muted) 70%, transparent);
  }
}

.planner-task-input-done {
  color: var(--muted);
  text-decoration: line-through;
  -webkit-text-decoration-color: var(--muted);
  text-decoration-color: var(--muted);
}

@supports (color: color-mix(in lab, red, red)) {
  .planner-task-input-done {
    -webkit-text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent);
    text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent);
  }
}

.daily-diary {
  flex-direction: column;
  gap: .55rem;
  height: 100%;
  min-height: 0;
  display: flex;
}

.daily-diary-header {
  flex: 0 0 16rem;
  align-items: stretch;
  gap: .65rem;
  height: 16rem;
  max-height: 16rem;
  display: flex;
  overflow: hidden;
}

.daily-diary-side {
  flex-direction: column;
  flex: auto;
  gap: 0;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.daily-diary-main {
  flex: auto;
  min-height: 0;
  overflow: auto;
}

.daily-diary-body {
  border-top: 1px solid var(--border);
  flex-direction: column;
  flex: auto;
  gap: .25rem;
  min-width: 0;
  min-height: 0;
  padding-top: .35rem;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .daily-diary-body {
    border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  }
}

.daily-diary-body {
  overflow: hidden;
}

.diary-text-field {
  width: 100%;
  min-width: 0;
  color: var(--foreground);
  font: inherit;
  resize: none;
  box-shadow: none;
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
  margin: 0;
  padding: 0;
  font-size: .92rem;
  line-height: 1.4;
}

.diary-text-field::placeholder {
  color: var(--muted);
}

@supports (color: color-mix(in lab, red, red)) {
  .diary-text-field::placeholder {
    color: color-mix(in srgb, var(--muted) 70%, transparent);
  }
}

.diary-text-field-single {
  height: 1.4rem;
  font-size: .875rem;
  line-height: 1.4;
}

.daily-diary-memo-section {
  flex-direction: column;
  flex: auto;
  gap: .25rem;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.diary-text-field-memo {
  flex: auto;
  height: 100%;
  min-height: 0;
  font-size: .92rem;
  line-height: 1.5;
}

.diary-text-field-diary {
  flex: auto;
  min-height: 8rem;
  font-size: .95rem;
  line-height: 1.5;
}

.daily-diary-photo {
  flex: none;
}

.daily-diary-photo-input {
  display: none;
}

.daily-diary-photo-empty, .daily-diary-photo-frame {
  aspect-ratio: 1;
  border: 1px dashed var(--border);
  border-radius: .75rem;
  width: 16rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .daily-diary-photo-empty, .daily-diary-photo-frame {
    border: 1px dashed color-mix(in srgb, var(--border) 88%, var(--foreground));
  }
}

.daily-diary-photo-empty, .daily-diary-photo-frame {
  background: var(--surface-2);
}

.daily-diary-photo-empty {
  color: var(--muted);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  padding: .5rem;
  font-size: .72rem;
  display: flex;
}

.daily-diary-photo-empty:hover {
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .daily-diary-photo-empty:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  }
}

.daily-diary-photo-empty:hover {
  color: var(--foreground);
}

.daily-diary-photo-plus {
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
}

.daily-diary-photo-frame {
  border-style: solid;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.daily-diary-photo-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.daily-diary-photo-actions {
  gap: .25rem;
  display: flex;
  position: absolute;
  bottom: .35rem;
  right: .35rem;
}

.daily-diary-photo-btn {
  color: #fff;
  cursor: pointer;
  background: #111111b8;
  border: none;
  border-radius: .35rem;
  padding: .2rem .45rem;
  font-size: .62rem;
}

.daily-diary-photo-btn-muted {
  background: #11111185;
}

.daily-diary-sections {
  flex-direction: column;
  flex: auto;
  gap: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.daily-diary-section-block {
  flex-direction: column;
  gap: 0;
  display: flex;
}

.daily-diary-memo-block {
  flex-direction: column;
  flex: auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.daily-diary-section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: .3rem 0;
}

.daily-diary-section-row {
  grid-template-columns: 4.6rem minmax(0, 1fr);
  align-items: center;
  gap: .35rem;
  min-height: 1.55rem;
  display: grid;
}

.daily-diary-section-label {
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  padding: 0;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
}

.area-todo .planner-muya-editor.muya-editor-shell {
  width: 100%;
  box-shadow: none;
  cursor: text;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  min-height: 4rem !important;
}

.area-todo .planner-muya-editor .muya-editor-host {
  cursor: text;
  flex: none;
  height: auto;
  min-height: 4rem;
  font-family: Inter, Noto Sans KR, system-ui, sans-serif;
  overflow: visible;
}

.area-todo .planner-muya-editor .mu-container {
  max-width: 100%;
  min-height: auto;
  color: var(--foreground);
  outline: none;
  margin: 0;
  padding: 0;
}

.area-todo .planner-muya-editor .mu-list-item, .area-todo .planner-muya-editor .mu-task-list-item, .area-todo .planner-muya-editor .ag-paragraph, .area-todo .planner-muya-editor .mu-paragraph-content {
  margin: .05rem 0;
  font-size: 1.02rem;
  line-height: 1.45;
}

.area-todo .planner-muya-editor .ag-heading {
  color: var(--muted);
  margin: .4rem 0 .2rem;
  font-size: .92rem;
  font-weight: 600;
}

.area-todo .planner-muya-editor .ag-heading:first-child {
  margin-top: 0;
}

.area-todo .planner-muya-editor .mu-thematic-break {
  border: none;
  border-top: 1px solid var(--border);
  opacity: 1;
  background: none;
  height: 0;
  min-height: 0;
  margin: .35rem 0;
  padding: 0;
  overflow: hidden;
}

.area-todo .planner-muya-editor .mu-thematic-break .mu-content {
  display: none;
}

.area-todo .planner-muya-editor .mu-thematic-break + .ag-heading {
  margin-top: .2rem;
}

.area-todo .planner-muya-editor .mu-bullet-list, .area-todo .planner-muya-editor .mu-task-list {
  margin: 0;
  padding-left: 1.65em;
}

.area-todo .planner-muya-editor [empty-hint]:after {
  content: none !important;
}

.section-page {
  min-height: calc(100vh - 2rem);
}

.section-explorer-grid {
  grid-template-columns: 280px 1fr;
  gap: .85rem;
  min-height: calc(100vh - 6rem);
  display: grid;
}

.section-explorer-grid-3 {
  grid-template-columns: 260px 260px 1fr;
}

.section-list, .section-content {
  min-height: 0;
}

.news-youtube-page {
  flex-direction: column;
  height: calc(100dvh - 2.5rem);
  min-height: 0;
  max-height: calc(100dvh - 2.5rem);
  display: flex;
  overflow: hidden;
}

.news-youtube-page .dashboard-header, .news-youtube-page .news-category-filters {
  flex-shrink: 0;
}

.news-youtube-page .section-explorer-grid {
  flex: auto;
  align-items: stretch;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.news-youtube-page .section-list, .news-youtube-page .section-content {
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: flex;
  overflow: hidden;
}

.news-youtube-page .section-list .panel-body, .news-youtube-page .section-content .panel-body {
  overscroll-behavior: contain;
  flex: auto;
  min-height: 0;
  overflow: hidden auto;
}

.news-youtube-page .panel {
  border-color: var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  .news-youtube-page .panel {
    border-color: color-mix(in srgb, var(--border) 55%, transparent);
  }
}

.news-youtube-page .panel-header {
  border-bottom-color: var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  .news-youtube-page .panel-header {
    border-bottom-color: color-mix(in srgb, var(--border) 45%, transparent);
  }
}

.news-youtube-page .section-list-item {
  border-bottom: 1px solid var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  .news-youtube-page .section-list-item {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 35%, transparent);
  }
}

.news-youtube-page .section-list-item {
  border-radius: .45rem;
}

.news-youtube-page .section-list-item + .section-list-item {
  margin-top: .1rem;
}

.news-youtube-page .news-category-filters {
  border-bottom: 1px solid var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  .news-youtube-page .news-category-filters {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
  }
}

.news-youtube-page .news-category-filters {
  padding-bottom: .75rem;
}

@media (max-width: 768px) {
  .news-youtube-page {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .news-youtube-page .section-explorer-grid {
    min-height: 0;
    overflow: visible;
  }

  .news-youtube-page .section-list, .news-youtube-page .section-content {
    height: auto;
    max-height: min(70vh, 36rem);
  }
}

.section-list-item {
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: .65rem;
  flex-direction: column;
  gap: .15rem;
  width: 100%;
  padding: .55rem .65rem;
  display: flex;
}

.section-list-item:hover, .section-list-item-active {
  background: var(--surface-2);
}

.panel-body-flush {
  padding-top: .5rem;
}

.area-goals .panel-body-flush {
  padding: .45rem .5rem .5rem;
}

.goals-panel {
  flex-direction: column;
  gap: 0;
  min-height: auto;
  display: flex;
}

.goals-section {
  flex: none;
  width: 100%;
  min-width: 0;
  min-height: auto;
  position: relative;
  overflow: visible;
}

.goals-content-shell {
  background: var(--surface-2);
  border-radius: .55rem;
  width: 100%;
  min-width: 0;
  padding: .4rem .75rem .45rem .55rem;
  overflow: visible;
}

.goals-content-shell .goals-muya-editor.muya-editor-shell {
  background: none;
  border: none;
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: visible;
  min-height: 2rem !important;
}

.goals-content-shell .goals-muya-editor .muya-editor-host {
  flex: none;
  max-width: 100%;
  height: auto;
  min-height: 2rem;
  font-family: Inter, Noto Sans KR, system-ui, sans-serif;
  overflow: visible;
}

.goals-content-shell .goals-muya-editor .mu-container {
  max-width: 100%;
  min-height: auto;
  color: var(--foreground);
  margin: 0;
  padding: 0;
}

.goals-content-shell .goals-muya-editor ol.mu-order-list {
  counter-reset: goals-item;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.goals-content-shell .goals-muya-editor ol.mu-order-list > li.mu-list-item {
  padding-left: 1.85em;
  list-style: none;
  position: relative;
}

.goals-content-shell .goals-muya-editor ol.mu-order-list > li.mu-list-item:before {
  content: counter(goals-item) ".";
  counter-increment: goals-item;
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 1.6em;
  position: absolute;
  top: 0;
  left: 0;
}

.goals-content-shell .goals-muya-editor .mu-bullet-list, .goals-content-shell .goals-muya-editor .mu-task-list {
  margin: 0;
  padding-left: 1.85em;
}

.goals-content-shell .goals-muya-editor .mu-list-item, .goals-content-shell .goals-muya-editor .mu-task-list-item, .goals-content-shell .goals-muya-editor .ag-paragraph, .goals-content-shell .goals-muya-editor .mu-paragraph-content {
  margin: .06rem 0;
  font-size: .9rem;
  line-height: 1.38;
}

.goals-content-shell .goals-muya-editor .mu-order-list .mu-order-list, .goals-content-shell .goals-muya-editor .mu-order-list .mu-bullet-list, .goals-content-shell .goals-muya-editor .mu-bullet-list .mu-order-list, .goals-content-shell .goals-muya-editor .mu-bullet-list .mu-bullet-list {
  padding-left: 1.25em;
}

.goals-content-shell .goals-muya-editor [empty-hint]:after {
  content: none !important;
}

.goals-hero {
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
  line-height: 1.1;
  display: flex;
}

.goals-hero-date {
  white-space: nowrap;
  flex-shrink: 0;
  align-items: baseline;
  gap: .35rem;
  display: flex;
}

.goals-hero-year, .goals-hero-month {
  letter-spacing: -.02em;
  color: var(--foreground);
  font-size: 1.1rem;
  font-weight: 700;
}

.goals-hero-label {
  letter-spacing: -.02em;
  color: var(--accent);
  margin-left: .15rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.goals-view-toggle {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  flex-shrink: 0;
  padding: .15rem;
  display: flex;
}

.goals-view-btn {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 999px;
  padding: .28rem .65rem;
  font-size: .72rem;
  font-weight: 600;
  transition: background .15s, color .15s;
}

.goals-view-btn:hover {
  color: var(--foreground);
}

.goals-view-btn-active {
  color: var(--accent);
  background: #fff;
  box-shadow: 0 1px 2px #0000000f;
}

.goal-live-editor {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: .75rem;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.goal-live-editor-body {
  flex: 1;
  min-height: 180px;
  overflow: hidden;
}

.goal-live-editor-status {
  color: var(--muted);
  text-align: right;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
  padding: .35rem .75rem;
  font-size: .68rem;
}

.goal-mk-dim {
  opacity: .35;
  color: var(--muted);
  font-size: .9em;
}

.goal-mk-bold {
  color: var(--goal-text);
  font-weight: 700;
}

.goal-mk-italic {
  font-style: italic;
}

.goal-mk-list-marker {
  color: var(--goal-accent);
  -webkit-user-select: none;
  user-select: none;
  text-align: right;
  min-width: 1.6em;
  margin-right: .35em;
  font-weight: 600;
  display: inline-block;
}

.goal-mk-num {
  min-width: 1.8em;
}

.goal-live-editor .cm-line.goal-md-h1 {
  color: var(--goal-text);
  border-bottom: 2px solid var(--border);
  padding-bottom: .2rem;
  font-size: 1.35em;
  font-weight: 800;
  line-height: 1.35;
}

.goal-live-editor .cm-line.goal-md-h2 {
  color: var(--goal-text);
  font-size: 1.15em;
  font-weight: 700;
}

.goal-live-editor .cm-line.goal-md-h3 {
  color: var(--goal-text);
  font-size: 1.05em;
  font-weight: 700;
}

.goal-live-editor .cm-line.goal-md-li-l0 {
  padding-left: .15rem;
}

.goal-live-editor .cm-line.goal-md-li-l1 {
  padding-left: 1.25rem;
}

.goal-live-editor .cm-line.goal-md-li-l2 {
  padding-left: 2.5rem;
}

.goal-live-editor .cm-line.goal-md-li-l3 {
  padding-left: 3.75rem;
}

.goal-live-editor .cm-line.goal-md-li-l4 {
  padding-left: 5rem;
}

.goal-live-editor .cm-scroller::-webkit-scrollbar {
  width: 6px;
}

.goal-live-editor .cm-scroller::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.muya-editor-shell {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: .75rem;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.muya-editor-loading {
  color: var(--muted);
  justify-content: center;
  align-items: center;
  font-size: .85rem;
}

.muya-editor-host {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.muya-editor-host #muya-container, .muya-editor-host .ag-editor-wrapper {
  min-height: 100%;
}

.muya-editor-status {
  color: var(--muted);
  text-align: right;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
  padding: .35rem .75rem;
  font-size: .68rem;
}

.muya-editor-shell {
  --editorBgColor: #fff;
  --editorColor: #1f1c1a;
  --selectionColor: #4eb4e733;
  --themeColor: #4eb4e7;
  --floatBgColor: #fff;
  --floatBorderColor: #e6dfd4;
  --floatShadow: 0 8px 24px #00000014;
}

.muya-editor-shell .ag-paragraph {
  line-height: 1.75;
}

.muya-editor-shell .ag-heading {
  color: var(--goal-text);
  font-weight: 700;
}

.muya-editor-shell .ag-list-item {
  line-height: 1.7;
}

@media (max-width: 900px) {
  .section-explorer-grid, .section-explorer-grid-3 {
    grid-template-columns: 1fr;
  }
}

.markdown-body :is(h1, h2, h3, h4) {
  margin: .75rem 0 .35rem;
  font-size: .95rem;
}

.markdown-body p, .markdown-body li {
  margin: .25rem 0;
}

.markdown-body ul {
  padding-left: 1.1rem;
}

.markdown-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: .75rem;
}

.markdown-body th, .markdown-body td {
  border: 1px solid var(--border);
  padding: .25rem .35rem;
}

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
  }

  .area-goals {
    grid-area: auto / 1;
  }

  .area-todo {
    grid-area: auto / 2;
  }

  .area-dump {
    grid-area: auto / 1;
  }

  .area-calendar, .area-feedback, .area-english {
    grid-area: auto / 1 / auto / -1;
  }

  .area-money {
    grid-area: auto / 1;
  }

  .area-news, .area-career {
    grid-area: auto / 1 / auto / -1;
  }

  .area-news.panel {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .area-news .panel-body, .area-news .news-headlines {
    flex: 0 auto;
    min-height: auto;
    overflow: visible;
  }

  .area-news .news-headlines-list {
    flex: none;
    height: 22rem;
    min-height: 14rem;
    max-height: 50vh;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .dashboard-shell {
    flex-direction: column;
  }

  .mobile-nav-bar {
    z-index: 40;
    background: var(--surface);
    align-items: center;
    gap: .75rem;
    min-height: 3.25rem;
    padding: .65rem .85rem;
    display: flex;
    position: sticky;
    top: 0;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .mobile-nav-bar {
      background: color-mix(in srgb, var(--surface) 92%, transparent);
    }
  }

  .mobile-nav-bar {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav-menu-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    width: 2.4rem;
    height: 2.4rem;
    color: var(--foreground);
    cursor: pointer;
    border-radius: .7rem;
    justify-content: center;
    align-items: center;
    display: inline-flex;
  }

  .mobile-nav-title {
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
    display: flex;
  }

  .mobile-nav-brand {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
  }

  .mobile-nav-current {
    color: var(--foreground);
    font-size: .95rem;
    font-weight: 700;
  }

  .sidebar-backdrop {
    z-index: 50;
    cursor: pointer;
    background: #1f1c1a59;
    border: none;
    display: block;
    position: fixed;
    inset: 0;
  }

  .sidebar {
    z-index: 60;
    border-right: 1px solid var(--border);
    width: min(18.5rem, 86vw);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-105%);
    box-shadow: 8px 0 28px #1f1c1a1f;
  }

  .sidebar-collapsed {
    width: min(18.5rem, 86vw);
  }

  .sidebar-mobile-open {
    transform: translateX(0);
  }

  .sidebar-header {
    min-height: auto;
    padding: .9rem .85rem;
  }

  .sidebar-toggle-desktop {
    display: none;
  }

  .sidebar-toggle-mobile {
    display: inline-flex;
  }

  .sidebar-nav {
    -webkit-overflow-scrolling: touch;
    flex-flow: column;
    align-items: stretch;
    padding: .75rem;
    overflow: hidden auto;
  }

  .sidebar-group-label, .sidebar-divider {
    display: block;
  }

  .sidebar-group {
    flex-flow: column;
    gap: .2rem;
  }

  .sidebar-item {
    width: 100%;
    height: auto;
    padding: .7rem .85rem;
  }

  .sidebar-collapsed .sidebar-item {
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: .7rem .85rem;
  }

  .sidebar-sub-nav {
    flex-flow: column;
    width: 100%;
    padding-left: .35rem;
  }

  .sidebar-sub-item {
    padding: .52rem .65rem .52rem 1.35rem;
  }

  .dashboard-main {
    padding-top: .85rem;
  }

  .dashboard-grid {
    grid-template-rows: none;
    grid-template-columns: 1fr;
  }

  .area-goals, .area-todo, .area-dump, .area-calendar, .area-feedback, .area-english, .area-money, .area-news, .area-career {
    grid-area: auto / 1;
  }

  .area-news .news-headlines-list {
    height: 20rem;
    min-height: 12rem;
    max-height: min(20rem, 45vh);
  }
}

.speaking-challenge-card {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.speaking-challenge-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  display: flex;
}

.speaking-challenge-label {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 600;
}

.speaking-challenge-day {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.speaking-challenge-total {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
}

.speaking-challenge-badge {
  background: var(--accent);
  border-radius: 999px;
  flex-shrink: 0;
  padding: .2rem .55rem;
  font-size: .65rem;
  font-weight: 600;
}

@supports (color: color-mix(in lab, red, red)) {
  .speaking-challenge-badge {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
  }
}

.speaking-challenge-badge {
  color: var(--accent);
}

.speaking-challenge-badge-done {
  color: #16a34a;
  background: #22c55e33;
}

.speaking-challenge-check {
  color: var(--muted);
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 600;
  display: inline-flex;
}

.speaking-challenge-check input {
  width: .95rem;
  height: .95rem;
}

.speaking-challenge-check-input-wrap {
  display: inline-flex;
  position: relative;
}

.speaking-challenge-check-disabled input {
  accent-color: #9ca3af;
}

.speaking-challenge-check-disabled:after {
  content: "";
  pointer-events: none;
  border-top: 1.5px solid #9ca3af;
  position: absolute;
  top: 50%;
  left: -.08rem;
  right: -.08rem;
  transform: rotate(-18deg);
}

.speaking-challenge-thumb-link {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: .85rem;
  display: block;
  position: relative;
  overflow: hidden;
}

.speaking-challenge-thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  display: block;
}

.speaking-challenge-thumb-overlay {
  color: #fff;
  background: linear-gradient(#0000 35%, #000000b8);
  flex-direction: column;
  justify-content: flex-end;
  gap: .35rem;
  padding: .55rem .65rem;
  display: flex;
  position: absolute;
  inset: 0;
}

.speaking-challenge-play {
  opacity: .9;
  font-size: .75rem;
}

.speaking-challenge-thumb-title {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
}

.speaking-challenge-thumb-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  width: 100%;
  display: block;
}

.speaking-challenge-thumb-unlearned {
  cursor: default;
}

.speaking-challenge-unlearned-large {
  letter-spacing: .04em;
  color: #b91c1c;
  background: #fecaca;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  position: absolute;
  inset: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .speaking-challenge-unlearned-large {
    background: color-mix(in srgb, #fecaca 55%, var(--surface-2));
  }
}

.speaking-challenge-unlearned {
  color: #fff;
  background: #ef4444eb;
  border-radius: 999px;
  padding: .12rem .45rem;
  font-size: .62rem;
  font-weight: 700;
  position: absolute;
  top: .45rem;
  left: .5rem;
}

.speaking-challenge-week-top {
  justify-content: space-between;
  align-items: center;
  margin-bottom: .35rem;
  display: flex;
}

.speaking-challenge-week-count {
  font-size: .9rem;
  font-weight: 700;
}

.speaking-challenge-week-bar {
  background: var(--surface-2);
  border-radius: 999px;
  height: .35rem;
  overflow: hidden;
}

.speaking-challenge-week-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  height: 100%;
}

@supports (color: color-mix(in lab, red, red)) {
  .speaking-challenge-week-fill {
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #22c55e));
  }
}

.speaking-challenge-week-fill {
  transition: width .25s;
}

.speaking-challenge-actions {
  grid-template-columns: 1fr;
  gap: .45rem;
  display: grid;
}

.speaking-challenge-actions-row {
  grid-template-columns: 1fr 1fr;
}

.english-home-stack {
  flex-direction: column;
  gap: .85rem;
  display: flex;
}

.ted-ed-home-card {
  border-top: 1px solid var(--border);
  padding-top: .75rem;
}

.speaking-challenge-header-actions {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.speaking-challenge-anki-btn {
  background: var(--surface-2);
  color: var(--foreground);
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: .65rem;
  justify-content: center;
  align-items: center;
  padding: .45rem .7rem;
  font-size: .78rem;
  font-weight: 600;
  transition: background .15s, opacity .15s;
  display: inline-flex;
}

.speaking-challenge-anki-btn:disabled, .speaking-challenge-anki-btn-done {
  opacity: .55;
  cursor: default;
}

.speaking-challenge-study-btn, .speaking-challenge-complete-btn {
  border-radius: .65rem;
  justify-content: center;
  align-items: center;
  padding: .45rem .7rem;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, opacity .15s;
  display: inline-flex;
}

.speaking-challenge-study-btn {
  background: var(--surface-2);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.speaking-challenge-complete-btn {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border: none;
}

.speaking-challenge-complete-btn:disabled {
  opacity: .55;
  cursor: default;
}

.speaking-challenge-page .dashboard-header {
  align-items: center;
}

.speaking-challenge-back {
  color: var(--muted);
  margin-bottom: .35rem;
  font-size: .78rem;
  text-decoration: none;
  display: inline-block;
}

.speaking-challenge-page {
  flex-direction: column;
  height: calc(100dvh - 2.5rem);
  min-height: 0;
  max-height: calc(100dvh - 2.5rem);
  display: flex;
  overflow: hidden;
}

.speaking-challenge-page .dashboard-header {
  flex-shrink: 0;
}

.speaking-challenge-layout {
  flex: auto;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.speaking-challenge-page .speaking-challenge-list-panel, .speaking-challenge-page .speaking-challenge-video-panel {
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: flex;
  overflow: hidden;
}

.speaking-challenge-page .speaking-challenge-list-panel .panel-body {
  overscroll-behavior: contain;
  flex: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden auto;
}

.speaking-challenge-video-panel .panel-body {
  overscroll-behavior: contain;
  flex-direction: column;
  flex: auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.speaking-challenge-unavailable {
  flex-direction: column;
  flex: auto;
  gap: .4rem;
  padding: 1.25rem .25rem 1rem;
  display: flex;
}

.speaking-challenge-player-block {
  flex-direction: column;
  gap: .5rem;
  width: 100%;
  min-width: 0;
  display: flex;
}

.speaking-challenge-player-block .english-study-player-wrap {
  width: 100%;
}

.speaking-challenge-seek-controls {
  flex: none;
  gap: .5rem;
  width: 100%;
  display: flex;
}

.speaking-challenge-seek-btn {
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--surface-2);
  min-width: 0;
  height: 2.85rem;
  min-height: 2.85rem;
  color: var(--foreground);
  cursor: pointer;
  border-radius: .6rem;
  flex: 1 1 0;
  padding: 0 .75rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
}

.speaking-challenge-seek-btn:hover {
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .speaking-challenge-seek-btn:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  }
}

.speaking-challenge-seek-btn:hover {
  background: var(--accent-soft);
}

.speaking-challenge-phrases {
  flex-direction: column;
  flex: auto;
  gap: .4rem;
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.speaking-challenge-phrases-title {
  flex-shrink: 0;
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
}

.speaking-challenge-phrases-editor {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: .65rem;
  flex: auto;
  height: auto;
  min-height: 12rem;
  overflow: hidden auto;
}

.speaking-challenge-phrases-editor .muya-editor-shell {
  background: none;
  border: none;
  min-height: 0 !important;
}

.speaking-challenge-video-wrap {
  background: #000;
  border-radius: .85rem;
  flex: none;
  width: 100%;
  height: clamp(180px, 28vh, 260px);
  position: relative;
  overflow: hidden;
}

.speaking-challenge-iframe {
  border: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.speaking-challenge-video-panel .english-study-hero {
  flex: auto;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 1fr);
  align-items: stretch;
  min-height: 0;
  margin-bottom: 0;
}

.speaking-challenge-video-panel .english-study-hero-media {
  flex-direction: column;
  align-self: start;
  min-width: 0;
  display: flex;
}

.speaking-challenge-video-panel .english-study-hero-side {
  flex-direction: column;
  gap: .5rem;
  height: auto;
  min-height: 0;
  max-height: 100%;
  display: flex;
  overflow: hidden;
}

.speaking-challenge-video-panel .english-study-hero-before-actions {
  flex-direction: column;
  flex: auto;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.speaking-challenge-video-panel .english-study-hero-actions {
  flex-direction: row;
  flex-shrink: 0;
  gap: .5rem;
  width: 100%;
  display: flex;
}

.speaking-challenge-video-panel .english-study-hero-actions .english-study-action-btn {
  box-sizing: border-box;
  border-radius: .6rem;
  flex: 1 1 0;
  min-width: 0;
  height: 2.85rem;
  min-height: 2.85rem;
  padding: 0 .85rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
}

.speaking-challenge-video-panel .english-study-hero-meta, .speaking-challenge-video-panel .english-study-hero-title, .speaking-challenge-video-panel .english-study-hero-divider {
  flex-shrink: 0;
}

.speaking-challenge-video-panel .english-study-hero-divider {
  margin: .15rem 0;
}

.speaking-challenge-day-nav {
  flex: none;
  justify-content: space-between;
  margin-top: .65rem;
  display: flex;
}

.speaking-challenge-nav-link {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}

.english-category-tabs {
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
  display: flex;
}

.english-category-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  display: inline-flex;
}

.english-category-tab-active {
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .english-category-tab-active {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  }
}

.english-category-tab-active {
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .english-category-tab-active {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  }
}

.english-category-tab-active {
  color: var(--foreground);
}

.english-category-count {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}

.english-empty-category, .english-speaking-selected {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.english-speaking-day-list {
  flex-direction: column;
  gap: .25rem;
  max-height: none;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  overflow-y: visible;
}

.english-speaking-day-item {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

@media (max-width: 960px) {
  .speaking-challenge-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow: clip visible;
  }

  .speaking-challenge-layout {
    flex-direction: column;
    flex: none;
    grid-template-columns: none;
    gap: .75rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    overflow: visible;
  }

  .speaking-challenge-page .speaking-challenge-list-panel, .speaking-challenge-page .speaking-challenge-video-panel {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .speaking-challenge-page .speaking-challenge-list-panel .panel-body {
    -webkit-overflow-scrolling: touch;
    min-height: 11rem;
    max-height: min(38vh, 16rem);
    overflow: hidden auto;
  }

  .speaking-challenge-page .speaking-challenge-list-panel .panel-subtitle {
    display: none;
  }

  .speaking-challenge-video-panel .panel-body {
    max-height: none;
    overflow: visible;
  }

  .speaking-challenge-video-panel .english-study-hero, .speaking-challenge-video-panel .english-study-hero-media {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .speaking-challenge-video-panel .english-study-hero {
    flex: none;
    grid-template-columns: 1fr;
    height: auto;
  }

  .speaking-challenge-video-panel .english-study-hero-side {
    height: auto;
  }

  .speaking-challenge-phrases {
    flex: none;
    min-height: 16rem;
  }

  .speaking-challenge-phrases-editor {
    height: 14rem;
    min-height: 14rem;
  }

  .speaking-challenge-seek-controls {
    width: 100%;
  }

  .speaking-challenge-seek-btn, .speaking-challenge-video-panel .english-study-hero-actions .english-study-action-btn {
    height: 2.75rem;
    min-height: 2.75rem;
    font-size: .82rem;
  }

  .speaking-challenge-video-panel .english-study-hero-actions {
    flex-direction: row;
  }
}

.ted-ed-page {
  flex-direction: column;
  height: calc(100dvh - 2.5rem);
  min-height: 0;
  max-height: calc(100dvh - 2.5rem);
  display: flex;
  overflow: hidden;
}

.ted-ed-page .dashboard-header {
  flex-shrink: 0;
}

.ted-ed-layout {
  flex: auto;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.ted-ed-page .ted-ed-list-panel, .ted-ed-page .ted-ed-study-panel {
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: flex;
  overflow: hidden;
}

.ted-ed-page .ted-ed-list-panel .panel-body {
  overscroll-behavior: contain;
  flex: auto;
  min-height: 0;
  max-height: none;
  padding-right: .15rem;
  overflow: hidden auto;
}

.ted-ed-video-list {
  flex-direction: column;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.ted-ed-video-item {
  color: inherit;
  border: 1px solid #0000;
  border-radius: .65rem;
  grid-template-columns: 2rem 3.6rem minmax(0, 1fr);
  align-items: center;
  gap: .4rem;
  padding: .35rem;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  display: grid;
}

.ted-ed-video-item-number {
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: .72rem;
  font-weight: 700;
}

.ted-ed-video-item:hover {
  background: var(--surface-2);
}

.ted-ed-video-item-active {
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-video-item-active {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  }
}

.ted-ed-video-item-active {
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-video-item-active {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  }
}

.ted-ed-video-item-thumb {
  object-fit: contain;
  object-position: center;
  background: #111;
  border-radius: .45rem;
  width: 3.6rem;
  height: 2.05rem;
}

.ted-ed-video-item-body {
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
  display: flex;
}

.ted-ed-video-item-title {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
}

.ted-ed-video-item-meta {
  color: var(--muted);
  font-size: .68rem;
}

.ted-ed-study-panel .panel-body {
  overscroll-behavior: contain;
  flex-direction: column;
  gap: .75rem;
  min-height: 0;
  display: flex;
  overflow: hidden auto;
}

.ted-ed-top-row {
  flex: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(12rem, .8fr);
  align-items: stretch;
  gap: .75rem;
  display: grid;
}

.ted-ed-top-row .english-study-hero {
  min-width: 0;
  height: 100%;
}

.ted-ed-study-panel .english-study-hero {
  flex: none;
  grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr);
  gap: .75rem;
}

.ted-ed-study-panel .english-study-hero-media {
  width: 100%;
  max-width: 24rem;
}

.ted-ed-study-panel .english-study-hero-title {
  font-size: .88rem;
}

.ted-ed-study-panel .english-study-action-btn {
  box-sizing: border-box;
  border-radius: .5rem;
  width: 100%;
  min-height: 2.35rem;
  padding: .48rem .75rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.25;
}

.ted-ed-study-panel .english-study-hero-actions {
  align-items: stretch;
  gap: .35rem;
  width: 100%;
}

.ted-ed-unknown-words {
  border: 1px solid var(--border);
  flex: auto;
  min-width: 0;
  min-height: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-unknown-words {
    border: 1px solid color-mix(in srgb, var(--border) 80%, #c4b8a4);
  }
}

.ted-ed-unknown-words {
  background: #fff8e8;
  border-radius: .75rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-unknown-words {
    background: color-mix(in srgb, #fff8e8 70%, var(--surface));
  }
}

.ted-ed-unknown-words {
  flex-direction: column;
  padding: .65rem .8rem;
  display: flex;
  overflow: hidden;
}

.ted-ed-unknown-words-header {
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .45rem;
  display: flex;
}

.ted-ed-unknown-words-header h3 {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
}

.ted-ed-unknown-words-header span {
  color: var(--muted);
  font-size: .68rem;
}

.ted-ed-unknown-words-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .55rem;
  display: flex;
}

.ted-ed-unknown-words-empty {
  color: var(--muted);
  margin: 0;
  font-size: .75rem;
}

.ted-ed-unknown-words-list {
  flex-direction: column;
  flex: auto;
  align-content: flex-start;
  gap: .4rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  overflow-y: auto;
}

.ted-ed-unknown-word-item {
  border: 1px solid var(--accent);
  border-radius: .55rem;
  flex-direction: column;
  gap: .12rem;
  padding: .35rem .5rem;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-unknown-word-item {
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  }
}

.ted-ed-unknown-word-item {
  background: var(--accent-soft);
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-unknown-word-item {
    background: color-mix(in srgb, var(--accent-soft) 40%, #fff);
  }
}

.ted-ed-unknown-word-term {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-unknown-word-term {
    color: color-mix(in srgb, var(--accent) 80%, #222);
  }
}

.ted-ed-unknown-word-term {
  text-underline-offset: .12em;
  text-decoration: underline;
}

.ted-ed-unknown-word-meaning {
  color: var(--foreground);
  font-size: .72rem;
  line-height: 1.35;
}

.ted-ed-unknown-word-meaning.is-pending {
  color: var(--muted);
  font-style: italic;
}

.ted-ed-unknown-word-chip {
  border: 1px solid var(--accent);
  border-radius: 999px;
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-unknown-word-chip {
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  }
}

.ted-ed-unknown-word-chip {
  background: var(--accent-soft);
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-unknown-word-chip {
    background: color-mix(in srgb, var(--accent-soft) 55%, #fff);
  }
}

.ted-ed-unknown-word-chip {
  color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-unknown-word-chip {
    color: color-mix(in srgb, var(--accent) 80%, #222);
  }
}

.ted-ed-unknown-word-chip {
  text-underline-offset: .12em;
  padding: .22rem .55rem;
  font-size: .74rem;
  font-weight: 600;
  text-decoration: underline;
}

.ted-ed-bottom-row {
  flex: auto;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, .85fr);
  align-items: stretch;
  gap: .75rem;
  min-height: 0;
  display: grid;
}

.ted-ed-answers-slot {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .85rem;
  flex-direction: column;
  flex: auto;
  gap: .4rem;
  min-width: 0;
  min-height: 0;
  padding: .75rem .85rem .9rem;
  display: flex;
  overflow: auto;
}

.ted-ed-answers-slot-empty {
  justify-content: flex-start;
}

.ted-ed-answers-title {
  margin: 0 0 .15rem;
  font-size: .85rem;
  font-weight: 700;
}

.ted-ed-answers-label {
  color: var(--muted);
  margin-top: .25rem;
  font-size: .72rem;
  font-weight: 700;
}

.ted-ed-answers-input {
  border: 1px solid var(--border);
  background: var(--surface-2);
  resize: vertical;
  width: 100%;
  color: inherit;
  border-radius: .65rem;
  padding: .55rem .7rem;
  font-size: .86rem;
  line-height: 1.5;
}

.ted-ed-mcq-input {
  resize: none;
  flex: none;
  height: 7.5rem;
  min-height: 7.5rem;
  max-height: 7.5rem;
  overflow: auto;
}

.ted-ed-essay-input {
  flex: auto;
  min-height: 7rem;
  line-height: 1.6;
}

.ted-ed-grade-result {
  border-top: 1px solid var(--border);
  flex: none;
  margin-top: .45rem;
  padding-top: .65rem;
}

.ted-ed-grade-result h4 {
  margin: 0 0 .35rem;
  font-size: .8rem;
  font-weight: 700;
}

.english-study-hero {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  gap: .75rem;
  display: grid;
}

.english-study-hero-media {
  min-width: 0;
}

.english-study-thumb-link, .english-study-player-wrap {
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: .65rem;
  display: block;
  overflow: hidden;
}

.english-study-thumb-image {
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
  display: block;
}

.english-study-player {
  width: 100%;
  height: 100%;
}

.english-study-hero-side {
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
  display: flex;
}

.english-study-hero-title {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
}

.english-study-hero-meta {
  flex-direction: column;
  gap: .25rem;
  margin: 0;
  display: flex;
}

.english-study-hero-meta-row {
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: .35rem;
  font-size: .78rem;
  line-height: 1.35;
  display: grid;
}

.english-study-hero-meta-row dt {
  color: var(--muted);
  margin: 0;
  font-weight: 600;
}

.english-study-hero-meta-row dd {
  margin: 0;
}

.english-study-hero-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: .15rem 0;
}

.english-study-hero-actions {
  flex-direction: column;
  gap: .4rem;
  display: flex;
}

.english-study-action-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--foreground);
  cursor: pointer;
  border-radius: .65rem;
  justify-content: center;
  align-items: center;
  padding: .45rem .7rem;
  font-size: .78rem;
  font-weight: 600;
  transition: opacity .15s;
  display: inline-flex;
}

.english-study-action-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.english-study-action-btn:disabled {
  opacity: .55;
  cursor: default;
}

.english-study-action-btn-done:not(:disabled) {
  opacity: 1;
  cursor: pointer;
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .english-study-action-btn-done:not(:disabled) {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  }
}

.english-study-action-btn-done:not(:disabled) {
  color: var(--accent);
}

.ted-ed-material-slot {
  flex-direction: column;
  flex: auto;
  gap: .55rem;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.ted-ed-material-title {
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: baseline;
  gap: .55rem;
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
}

.ted-ed-material-file {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
}

.ted-ed-material-body {
  border: 1px solid var(--border);
  border-radius: .9rem;
  flex-direction: column;
  flex: auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-material-body {
    border: 1px solid color-mix(in srgb, var(--border) 80%, #c4b8a4);
  }
}

.ted-ed-material-body {
  background: linear-gradient(#fffdf8 0%, #f7f1e6 100%);
  padding: 0;
  box-shadow: inset 0 1px #ffffffb3;
}

.mu-format-picker, .mu-format-picker-container {
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.ted-ed-material-editor .muya-editor-shell {
  box-shadow: none;
  background: none;
  border: none;
  overflow: hidden;
}

.ted-ed-muya-editor.muya-editor-shell {
  flex-direction: column;
  flex: auto;
  min-height: min(22rem, 100%);
  display: flex;
  overflow: hidden;
}

.ted-ed-muya-editor .muya-editor-host {
  color: #1f1a14;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: auto;
  min-height: 0;
  font-family: Iowan Old Style, Palatino Linotype, Palatino, Noto Serif KR, "Source Serif 4", Georgia, serif;
  overflow: auto;
}

.muya-format-toolbar {
  z-index: 12;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  gap: .35rem;
  padding: .45rem .7rem;
  display: flex;
  position: sticky;
  top: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .muya-format-toolbar {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  }
}

.muya-format-toolbar {
  background: #fefbf6;
}

.muya-format-btn {
  border: 1px solid var(--border);
  color: #1f1a14;
  cursor: pointer;
  background: #fff;
  border-radius: .4rem;
  justify-content: center;
  align-items: center;
  min-width: 1.85rem;
  height: 1.85rem;
  font-size: .82rem;
  font-weight: 700;
  display: inline-flex;
}

.muya-format-btn:hover {
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .muya-format-btn:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  }
}

.muya-format-btn:hover {
  background: var(--accent-soft);
}

.muya-format-btn-bold {
  font-family: Georgia, serif;
}

.muya-format-btn-underline {
  text-underline-offset: .12em;
  text-decoration: underline;
}

.muya-format-btn-highlight {
  background: linear-gradient(#fff 40%, #ffe08a 40%);
}

.muya-format-hint {
  color: var(--muted);
  margin-left: .25rem;
  font-size: .68rem;
}

.ted-ed-muya-editor .mu-container {
  max-width: 46rem;
  padding: 1rem 1.25rem 1.4rem;
}

.ted-ed-muya-editor .ag-paragraph, .ted-ed-muya-editor .mu-paragraph-content, .ted-ed-muya-editor .mu-list-item, .ted-ed-muya-editor .mu-order-list .mu-list-item {
  letter-spacing: .01em;
  font-size: 1.02rem;
  line-height: 1.75;
}

.ted-ed-muya-editor .ag-heading {
  font-family: "Noto Sans KR", var(--font-geist-sans), system-ui, sans-serif;
  letter-spacing: -.01em;
  color: #17130f;
  margin: 1.15rem 0 .55rem;
  font-weight: 700;
  line-height: 1.35;
}

.ted-ed-muya-editor .ag-heading:first-child {
  margin-top: .15rem;
}

.ted-ed-muya-editor h3.ag-heading, .ted-ed-muya-editor [data-level="3"] {
  border-bottom: 1px solid #cbbfaab3;
  padding-bottom: .28rem;
  font-size: 1.08rem;
}

.ted-ed-muya-editor strong, .ted-ed-muya-editor .mu-strong {
  color: #111;
  font-weight: 700;
}

.ted-ed-muya-editor u, .ted-ed-muya-editor .mu-underline, .ted-ed-muya-editor span[style*="underline"] {
  text-underline-offset: .18em;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  -webkit-text-decoration-color: var(--accent);
  text-decoration-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-muya-editor u, .ted-ed-muya-editor .mu-underline, .ted-ed-muya-editor span[style*="underline"] {
    -webkit-text-decoration-color: color-mix(in srgb, var(--accent) 70%, #333);
    text-decoration-color: color-mix(in srgb, var(--accent) 70%, #333);
  }
}

.ted-ed-muya-editor mark, .ted-ed-muya-editor .mu-highlight, .ted-ed-muya-editor span.mu-highlight {
  color: inherit;
  background: linear-gradient(#0000 8%, #ffe498 8%, #ffd767 92%, #0000 92%);
  border-radius: .12rem;
  padding: 0 .08em;
}

.ted-ed-muya-editor .mu-bullet-list, .ted-ed-muya-editor .mu-order-list, .ted-ed-muya-editor .mu-task-list {
  margin: .45rem 0 .85rem;
  padding-left: .15rem;
}

.ted-ed-muya-editor .mu-thematic-break {
  opacity: .55;
  margin: 1.1rem 0;
}

.ted-ed-material-placeholder {
  border: 1px dashed var(--border);
  border-radius: .9rem;
  flex-direction: column;
  flex: auto;
  justify-content: center;
  align-items: flex-start;
  gap: .35rem;
  min-height: 22rem;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-material-placeholder {
    border: 1px dashed color-mix(in srgb, var(--border) 80%, #c4b8a4);
  }
}

.ted-ed-material-placeholder {
  background: #fffdf8;
}

@supports (color: color-mix(in lab, red, red)) {
  .ted-ed-material-placeholder {
    background: color-mix(in srgb, #fffdf8 80%, var(--surface));
  }
}

.ted-ed-material-placeholder {
  color: var(--muted);
  padding: 1.25rem 1.1rem;
  font-size: .86rem;
}

.ted-ed-material-placeholder-hint {
  opacity: .85;
  margin: 0;
  font-size: .72rem;
}

@media (max-width: 960px) {
  .ted-ed-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow: clip visible;
  }

  .ted-ed-layout {
    flex-direction: column;
    flex: none;
    grid-template-columns: none;
    gap: .75rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    overflow: visible;
  }

  .ted-ed-page .ted-ed-list-panel, .ted-ed-page .ted-ed-study-panel {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .ted-ed-page .ted-ed-list-panel .panel-body {
    -webkit-overflow-scrolling: touch;
    min-height: 11rem;
    max-height: min(38vh, 16rem);
    overflow: hidden auto;
  }

  .ted-ed-study-panel .panel-body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    overflow: hidden visible;
  }

  .ted-ed-top-row, .ted-ed-bottom-row {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .ted-ed-bottom-row {
    flex: none;
    min-height: 0;
  }

  .ted-ed-study-panel .english-study-hero, .ted-ed-top-row .english-study-hero, .english-study-hero {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .ted-ed-study-panel .english-study-hero-media, .english-study-hero-media {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .ted-ed-study-panel .english-study-hero-side, .english-study-hero-side {
    min-width: 0;
    max-width: 100%;
  }

  .ted-ed-study-panel .english-study-hero-meta-row {
    grid-template-columns: 4.2rem minmax(0, 1fr);
  }

  .ted-ed-unknown-words {
    max-width: 100%;
    min-height: 7.5rem;
    max-height: 12rem;
  }

  .ted-ed-material-slot, .ted-ed-answers-slot, .ted-ed-material-body, .ted-ed-material-editor, .ted-ed-muya-editor.muya-editor-shell {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .ted-ed-material-body {
    flex: 0 auto;
    min-height: 14rem;
    max-height: min(58vh, 34rem);
    overflow: hidden;
  }

  .ted-ed-muya-editor.muya-editor-shell {
    min-height: 14rem;
    overflow: hidden;
  }

  .ted-ed-muya-editor .muya-editor-host {
    -webkit-overflow-scrolling: touch;
    overflow: auto;
  }

  .ted-ed-muya-editor .muya-format-toolbar {
    top: calc(env(safe-area-inset-top, 0px) + 3.25rem);
    z-index: 35;
    box-shadow: 0 1px 0 var(--border);
    position: sticky;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .ted-ed-muya-editor .muya-format-toolbar {
      box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 70%, transparent);
    }
  }

  .ted-ed-muya-editor .muya-editor-host, .ted-ed-muya-editor .mu-container {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  .ted-ed-muya-editor .mu-container {
    padding: .75rem .85rem 1rem;
  }

  .ted-ed-muya-editor .ag-paragraph, .ted-ed-muya-editor .mu-paragraph-content, .ted-ed-muya-editor .mu-list-item, .ted-ed-muya-editor .mu-order-list .mu-list-item, .ted-ed-muya-editor .ag-heading {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .ted-ed-material-placeholder {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 12rem;
  }

  .ted-ed-video-item {
    grid-template-columns: 1.75rem 3.2rem minmax(0, 1fr);
    max-width: 100%;
  }

  .ted-ed-answers-slot {
    box-sizing: border-box;
    overflow: visible;
  }

  .ted-ed-answers-input {
    box-sizing: border-box;
    max-width: 100%;
  }

  .muya-format-hint {
    display: none;
  }
}

html.ios-app .ted-ed-material-body, html.capacitor .ted-ed-material-body {
  max-height: min(52vh, 32rem);
}

html.ios-app .ted-ed-muya-editor .muya-format-toolbar, html.capacitor .ted-ed-muya-editor .muya-format-toolbar {
  top: calc(env(safe-area-inset-top, 0px) + 3.25rem);
  z-index: 35;
}

.iphone-preview-page {
  min-height: 100vh;
  color: var(--foreground);
  background: radial-gradient(circle at top, #efe8de 0%, #0000 42%), linear-gradient(#f7f3ed 0%, #ebe4da 100%);
  flex-direction: column;
  display: flex;
}

.iphone-preview-toolbar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1rem;
  padding: .9rem 1.1rem;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .iphone-preview-toolbar {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
  }
}

.iphone-preview-toolbar {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.iphone-preview-brand {
  align-items: center;
  gap: .7rem;
  min-width: 12rem;
  display: flex;
}

.iphone-preview-title {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
}

.iphone-preview-sub {
  color: var(--muted);
  margin: .1rem 0 0;
  font-size: .72rem;
}

.iphone-preview-presets {
  flex-wrap: wrap;
  flex: 1;
  gap: .4rem;
  display: flex;
}

.iphone-preview-chip, .iphone-preview-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: .35rem;
  padding: .4rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.iphone-preview-chip.is-active, .iphone-preview-btn:hover, .iphone-preview-chip:hover {
  border-color: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .iphone-preview-chip.is-active, .iphone-preview-btn:hover, .iphone-preview-chip:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  }
}

.iphone-preview-chip.is-active, .iphone-preview-btn:hover, .iphone-preview-chip:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.iphone-preview-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  display: flex;
}

.iphone-preview-path {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  align-items: center;
  gap: .45rem;
  padding: .28rem .7rem;
  font-size: .72rem;
  display: inline-flex;
}

.iphone-preview-path input {
  width: 10rem;
  color: var(--foreground);
  font: inherit;
  background: none;
  border: none;
  outline: none;
  font-weight: 600;
}

.iphone-preview-stage {
  flex: 1;
  place-items: center;
  padding: 1.5rem 1rem 2rem;
  display: grid;
}

.iphone-preview-scaler {
  position: relative;
}

.iphone-device {
  transform-origin: 0 0;
  background: #111113;
  padding: 12px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 30px 80px #1f1c1a47, inset 0 0 0 2px #2a2a2e;
}

.iphone-device-bezel {
  background: #000;
  border-radius: 44px;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.iphone-status-bar {
  z-index: 3;
  color: #fff;
  pointer-events: none;
  background: linear-gradient(#00000059, #0000);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 54px;
  padding: 0 1.35rem;
  display: grid;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.iphone-status-time {
  letter-spacing: -.02em;
  font-size: .92rem;
  font-weight: 700;
}

.iphone-dynamic-island {
  background: #0a0a0a;
  border-radius: 999px;
  width: 126px;
  height: 37px;
  box-shadow: inset 0 0 0 1px #ffffff0a;
}

.iphone-status-icons {
  justify-content: flex-end;
  align-items: center;
  gap: .35rem;
  display: flex;
}

.iphone-signal, .iphone-wifi, .iphone-battery {
  background: #fff;
  display: inline-block;
}

.iphone-signal {
  width: 18px;
  height: 10px;
  -webkit-mask: radial-gradient(circle at 2px 8px, #000 1.5px, #0000 1.6px), radial-gradient(circle at 7px 7px, #000 1.8px, #0000 1.9px), radial-gradient(circle at 12px 5.5px, #000 2.1px, #0000 2.2px), radial-gradient(circle at 17px 4px, #000 2.4px, #0000 2.5px);
  mask: radial-gradient(circle at 2px 8px, #000 1.5px, #0000 1.6px), radial-gradient(circle at 7px 7px, #000 1.8px, #0000 1.9px), radial-gradient(circle at 12px 5.5px, #000 2.1px, #0000 2.2px), radial-gradient(circle at 17px 4px, #000 2.4px, #0000 2.5px);
}

.iphone-wifi {
  background: none;
  border: 2px solid #0000;
  border-color: #fff #0000 #0000 #fff;
  border-radius: 50%;
  width: 15px;
  height: 11px;
  transform: rotate(45deg);
  box-shadow: inset 3px 3px 0 -1px #fff;
}

.iphone-battery {
  background: none;
  border-radius: 3px;
  width: 24px;
  height: 11px;
  position: relative;
  box-shadow: inset 0 0 0 1.5px #fff;
}

.iphone-battery:before {
  content: "";
  background: #fff;
  border-radius: 1px;
  position: absolute;
  inset: 2px 8px 2px 2px;
}

.iphone-battery:after {
  content: "";
  background: #fff;
  border-radius: 0 1px 1px 0;
  width: 2px;
  height: 5px;
  position: absolute;
  top: 3px;
  right: -3px;
}

.iphone-screen {
  background: var(--background);
  width: 100%;
  height: 100%;
}

.iphone-screen-frame {
  background: var(--background);
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.iphone-home-indicator {
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: difference;
  background: #ffffffd9;
  border-radius: 999px;
  width: 134px;
  height: 5px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .iphone-preview-path input {
    width: 7.5rem;
  }
}

html.capacitor body, html.ios-app body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

html.capacitor .mobile-nav-bar, html.ios-app .mobile-nav-bar {
  padding-top: calc(.65rem + env(safe-area-inset-top));
}

html.capacitor .sidebar-mobile-open, html.ios-app .sidebar-mobile-open {
  padding-top: env(safe-area-inset-top);
}

html.ios-app .dashboard-shell {
  min-height: 100dvh;
}

.mobile-settings-form {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 1rem;
  flex-direction: column;
  gap: 1rem;
  max-width: 36rem;
  padding: 1rem;
  display: flex;
}

.mobile-settings-field {
  color: var(--muted);
  flex-direction: column;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
}

.mobile-settings-field input {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--foreground);
  border-radius: .7rem;
  padding: .7rem .85rem;
  font-size: .92rem;
  font-weight: 500;
}

.mobile-settings-actions {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.mobile-settings-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--foreground);
  cursor: pointer;
  border-radius: 999px;
  padding: .55rem .95rem;
  font-size: .85rem;
  font-weight: 600;
}

.mobile-settings-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.mobile-settings-btn:disabled {
  opacity: .6;
  cursor: default;
}

.mobile-settings-status {
  color: var(--accent);
  margin: 0;
  font-size: .85rem;
}

.mobile-settings-help {
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin-top: .5rem;
  padding-top: .85rem;
  font-size: .82rem;
}

.mobile-settings-help p {
  color: var(--foreground);
  margin: 0 0 .4rem;
  font-weight: 700;
}

.mobile-settings-help ul {
  margin: 0;
  padding-left: 1.1rem;
}

.mobile-settings-help code {
  font-size: .78rem;
}

.icloud-explorer-overlay {
  z-index: 200;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #00000073;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
  display: flex;
  position: fixed;
  inset: 0;
}

@media (min-width: 640px) {
  .icloud-explorer-overlay {
    align-items: center;
    padding: 1rem;
  }
}

.icloud-explorer {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 1.5rem 1.5rem 0 0;
  flex-direction: column;
  width: 100%;
  max-width: 56rem;
  max-height: 92dvh;
  display: flex;
  overflow: hidden;
  box-shadow: 0 24px 80px #00000038;
}

@media (min-width: 640px) {
  .icloud-explorer {
    border-radius: 1.25rem;
    max-height: 88dvh;
  }
}

.icloud-explorer-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  display: flex;
}

.icloud-explorer-title-wrap {
  align-items: flex-start;
  gap: .75rem;
  display: flex;
}

.icloud-explorer-title-wrap h2 {
  font-size: 1.05rem;
  font-weight: 600;
}

.icloud-explorer-title-wrap p {
  color: var(--muted);
  margin-top: .2rem;
  font-size: .85rem;
}

.icloud-explorer-icon-btn {
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  border-radius: .5rem;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.icloud-explorer-icon-btn:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--foreground);
}

.icloud-explorer-icon-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.icloud-explorer-body {
  flex: 1;
  grid-template-columns: 11rem minmax(0, 1fr);
  min-height: 0;
  display: grid;
}

@media (max-width: 767px) {
  .icloud-explorer-body {
    grid-template-columns: 1fr;
  }
}

.icloud-explorer-sidebar {
  border-right: 1px solid var(--border);
  background: var(--surface-2);
  overflow-y: auto;
}

@supports (color: color-mix(in lab, red, red)) {
  .icloud-explorer-sidebar {
    background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  }
}

.icloud-explorer-sidebar {
  padding: .75rem;
}

@media (max-width: 767px) {
  .icloud-explorer-sidebar {
    display: none;
  }
}

.icloud-explorer-sidebar-label {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: .25rem 0 .35rem;
  padding: 0 .5rem;
  font-size: .68rem;
  font-weight: 700;
}

.icloud-explorer-sidebar ul {
  margin: 0 0 .75rem;
  padding: 0;
  list-style: none;
}

.icloud-explorer-sidebar-item {
  width: 100%;
  color: var(--foreground);
  text-align: left;
  border-radius: .6rem;
  align-items: center;
  gap: .5rem;
  padding: .45rem .55rem;
  font-size: .82rem;
  font-weight: 500;
  display: flex;
}

.icloud-explorer-sidebar-item:hover, .icloud-explorer-sidebar-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.icloud-explorer-main {
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.icloud-explorer-toolbar {
  border-bottom: 1px solid var(--border);
  grid-template-columns: auto minmax(0, 1fr) 10rem;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  display: grid;
}

@media (max-width: 767px) {
  .icloud-explorer-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .icloud-explorer-search {
    display: none;
  }
}

.icloud-explorer-nav {
  gap: .25rem;
  display: flex;
}

.icloud-explorer-breadcrumbs {
  white-space: nowrap;
  align-items: center;
  min-width: 0;
  font-size: .8rem;
  display: flex;
  overflow-x: auto;
}

.icloud-explorer-crumb-wrap {
  align-items: center;
  display: inline-flex;
}

.icloud-explorer-crumb-sep {
  color: var(--muted);
  margin: 0 .25rem;
}

.icloud-explorer-crumb {
  text-overflow: ellipsis;
  max-width: 10rem;
  color: var(--foreground);
  border-radius: .35rem;
  padding: .15rem .35rem;
  overflow: hidden;
}

.icloud-explorer-crumb:hover {
  background: var(--surface-2);
}

.icloud-explorer-search {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: .6rem;
  align-items: center;
  gap: .4rem;
  padding: .35rem .55rem;
  display: flex;
}

.icloud-explorer-search input {
  width: 100%;
  color: var(--foreground);
  background: none;
  border: 0;
  outline: none;
  font-size: .82rem;
}

.icloud-explorer-list-head, .icloud-explorer-row {
  grid-template-columns: minmax(0, 2.2fr) 9rem 5rem 4.5rem;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  font-size: .78rem;
  display: grid;
}

.icloud-explorer-list-head {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}

.icloud-explorer-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.icloud-explorer-row {
  border: 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

@supports (color: color-mix(in lab, red, red)) {
  .icloud-explorer-row {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  }
}

.icloud-explorer-row {
  text-align: left;
  color: var(--foreground);
  background: none;
}

.icloud-explorer-row:hover {
  background: var(--surface-2);
}

.icloud-explorer-row.selected {
  background: var(--accent-soft);
}

.icloud-explorer-row.file {
  opacity: .72;
  cursor: default;
}

.icloud-explorer-row-name {
  align-items: center;
  gap: .5rem;
  min-width: 0;
  display: flex;
}

.icloud-explorer-row-open {
  color: var(--muted);
  border-radius: .35rem;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  padding: .15rem;
  display: inline-flex;
}

.icloud-explorer-row-open:hover {
  color: var(--accent);
  background: #0000000f;
}

.icloud-explorer-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-size: .9rem;
}

.icloud-explorer-empty.error {
  color: #b42318;
}

.icloud-explorer-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .icloud-explorer-footer {
    background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  }
}

.icloud-explorer-selection {
  min-width: 0;
  color: var(--muted);
  flex: 1;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  display: flex;
}

.icloud-explorer-actions {
  gap: .5rem;
  display: flex;
}

.icloud-explorer-btn {
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: .55rem 1rem;
  font-size: .85rem;
  font-weight: 600;
}

.icloud-explorer-btn:hover {
  background: var(--surface-2);
}

.icloud-explorer-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: #0000;
}

.icloud-explorer-btn.primary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.album-page {
  background-image: radial-gradient(circle at 20% 15%, #ffffff8c, #0000 42%), radial-gradient(circle at 80% 85%, #00000008, #0000 40%);
  min-height: 100%;
  position: relative;
}

.album-spread-pages {
  background-image: linear-gradient(90deg, #0000 49.8%, #0000000a 50%, #0000 50.2%);
}

@media (max-width: 1023px) {
  .album-spread-inner {
    min-height: auto;
  }
}

.media-picker-overlay {
  z-index: 70;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: #0f0c0a7a;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  display: flex;
  position: fixed;
  inset: 0;
}

.media-picker {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 1.25rem;
  flex-direction: column;
  width: min(1080px, 100%);
  max-height: min(88dvh, 820px);
  display: flex;
  overflow: hidden;
  box-shadow: 0 28px 80px #00000038;
}

.media-picker-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
}

.media-picker-eyebrow {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}

.media-picker-title {
  margin-top: .15rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.media-picker-close {
  color: var(--muted);
  border-radius: .65rem;
  justify-content: center;
  align-items: center;
  padding: .45rem;
  display: inline-flex;
}

.media-picker-close:hover {
  background: var(--surface-2);
}

.media-picker-body {
  flex: 1;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 0;
  display: grid;
}

.media-picker-sidebar {
  border-right: 1px solid var(--border);
  background: var(--surface-2);
  padding: .85rem .75rem 1rem;
  overflow-y: auto;
}

@supports (color: color-mix(in lab, red, red)) {
  .media-picker-sidebar {
    background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
  }
}

.media-picker-sidebar-label {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: .35rem .55rem .4rem;
  font-size: .68rem;
  font-weight: 700;
}

.media-picker-sidebar-list {
  margin: 0 0 .75rem;
  padding: 0;
  list-style: none;
}

.media-picker-sidebar-item {
  width: 100%;
  color: var(--sidebar-text);
  text-align: left;
  border-radius: .65rem;
  align-items: center;
  gap: .55rem;
  padding: .5rem .6rem;
  font-size: .86rem;
  font-weight: 600;
  display: flex;
}

.media-picker-sidebar-item:hover {
  background: var(--border);
}

@supports (color: color-mix(in lab, red, red)) {
  .media-picker-sidebar-item:hover {
    background: color-mix(in srgb, var(--border) 45%, transparent);
  }
}

.media-picker-sidebar-item.active {
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .media-picker-sidebar-item.active {
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  }
}

.media-picker-sidebar-item.active {
  color: var(--accent);
}

.media-picker-sidebar-count {
  color: var(--muted);
  margin-left: auto;
  font-size: .72rem;
  font-weight: 600;
}

.media-picker-import-btn {
  border: 1px dashed var(--border);
  width: calc(100% - .5rem);
  color: var(--muted);
  border-radius: .75rem;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  margin: .35rem auto 0;
  padding: .55rem .65rem;
  font-size: .78rem;
  font-weight: 600;
  display: flex;
}

.media-picker-import-btn:hover {
  background: var(--surface-2);
}

.media-picker-main {
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.media-picker-toolbar {
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .media-picker-toolbar {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  }
}

.media-picker-toolbar {
  padding: .85rem 1rem;
}

.media-picker-main-title {
  font-size: 1rem;
  font-weight: 700;
}

.media-picker-search {
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  border-radius: 999px;
  align-items: center;
  gap: .45rem;
  padding: .35rem .75rem;
  font-size: .82rem;
  display: inline-flex;
}

.media-picker-search input {
  width: 9rem;
  color: var(--foreground);
  background: none;
  border: 0;
  outline: none;
}

.media-picker-status {
  color: var(--muted);
  padding: 1rem;
  font-size: .86rem;
}

.media-picker-status.error {
  color: #be123c;
}

.media-picker-main .media-picker-grid, .media-picker-main .media-picker-album-grid, .media-picker-main .media-picker-empty {
  padding: .85rem 1rem 1rem;
}

.media-picker-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.media-picker-sidebar-albums {
  max-height: 280px;
  overflow-y: auto;
}

.media-picker-more {
  justify-content: center;
  padding: .75rem 1rem 1rem;
  display: flex;
}

.media-picker-grid {
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 3px;
  display: grid;
}

.media-picker-cell {
  aspect-ratio: 1;
  background: var(--surface-2);
  border-radius: .2rem;
  position: relative;
  overflow: hidden;
}

.media-picker-cell:after {
  content: "";
  border-radius: inherit;
  pointer-events: none;
  border: 2px solid #0000;
  transition: border-color .15s;
  position: absolute;
  inset: 0;
}

.media-picker-cell.is-selected:after {
  border-color: #3b82f6;
}

.media-picker-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.media-picker-check {
  color: #fff;
  background: #3b82f6;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  position: absolute;
  top: .35rem;
  right: .35rem;
  box-shadow: 0 2px 8px #0003;
}

.media-picker-empty {
  min-height: 220px;
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  display: flex;
}

.media-picker-album-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  display: grid;
}

.media-picker-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .media-picker-footer {
    background: color-mix(in srgb, var(--surface-2) 40%, var(--surface));
  }
}

.media-picker-selection {
  color: var(--muted);
  font-size: .84rem;
}

.media-picker-footer-actions {
  gap: .5rem;
  margin-left: auto;
  display: flex;
}

.media-picker-footer-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .75rem;
  padding: .55rem .95rem;
  font-size: .84rem;
  font-weight: 700;
}

.media-picker-footer-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: #0000;
}

.media-picker-footer-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.photos-album-tile {
  background: none;
  border: 0;
  width: 100%;
  padding: 0;
  display: block;
}

.photos-album-cover {
  aspect-ratio: 1;
  background: var(--surface-2);
  border-radius: .55rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px #00000014;
}

.photos-album-cover-favorites {
  box-shadow: 0 8px 20px #be123c26;
}

.photos-album-cover-empty {
  background: linear-gradient(135deg, #e8e2d8, #f4efe7);
  width: 100%;
  height: 100%;
}

.photos-album-mosaic {
  gap: 2px;
  width: 100%;
  height: 100%;
  display: grid;
}

.photos-album-mosaic img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.photos-album-mosaic-2 {
  grid-template-columns: 1fr 1fr;
}

.photos-album-mosaic-3 {
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
}

.photos-album-mosaic-3 img:first-child {
  grid-row: span 2;
}

.photos-album-mosaic-4 {
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
}

.photos-album-fav-badge {
  background: #be123ce0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  position: absolute;
  bottom: .45rem;
  right: .45rem;
}

.photos-album-meta {
  margin-top: .45rem;
}

.photos-album-title {
  font-size: .84rem;
  font-weight: 700;
}

.photos-album-count {
  color: var(--muted);
  margin-top: .1rem;
  font-size: .72rem;
}

@media (max-width: 767px) {
  .media-picker-body {
    grid-template-columns: 1fr;
  }

  .media-picker-sidebar {
    display: none;
  }

  .media-picker {
    max-height: 92dvh;
  }
}

.habits-page {
  --habit-green: #1f8a4c;
  --habit-muted: #8b909a;
  --habit-line: #e8eaee;
  --habit-cell: #e9ebef;
  flex-direction: column;
  gap: .85rem;
  height: calc(100dvh - 2.5rem);
  min-height: 0;
  max-height: calc(100dvh - 2.5rem);
  display: flex;
  overflow: hidden;
}

.habits-page-header {
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: flex-end;
  gap: .75rem;
  display: flex;
}

.habits-page-title {
  letter-spacing: -.02em;
  font-size: 1.25rem;
  font-weight: 700;
}

.habits-page-subtitle {
  color: var(--muted);
  margin-top: .15rem;
  font-size: .82rem;
}

.habits-page-header-actions {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.habit-rate-badge {
  flex-direction: column;
  align-items: flex-end;
  gap: .05rem;
  display: inline-flex;
}

.habit-rate-badge-label {
  color: var(--muted);
  font-size: .68rem;
}

.habit-rate-badge-value {
  color: #34c759;
  letter-spacing: -.02em;
  font-size: 1.15rem;
  font-weight: 750;
}

.habits-dashboard-grid {
  flex: auto;
  grid-template-columns: minmax(140px, .42fr) minmax(220px, .72fr) minmax(380px, 1.9fr);
  grid-template-areas: "left week month";
  align-items: stretch;
  gap: .75rem;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.habits-left-stack {
  flex-direction: column;
  grid-area: left;
  gap: 0;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.habits-panel-cal {
  border-bottom: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  flex: none;
  min-height: 0;
}

.habits-panel-cal .panel-body {
  flex: none;
  padding-bottom: .4rem;
  overflow: visible;
}

.habits-panel-cal .calendar-day {
  gap: 0;
  min-height: 0;
  padding: .08rem .05rem;
}

.habits-panel-cal .calendar-day-habits .habit-home-disc {
  width: 1.55rem;
  height: 1.55rem;
  margin: .05rem auto 0;
  font-size: .68rem;
}

.habits-panel-cal .calendar-habit-rate-row, .habits-panel-cal .calendar-legend, .habits-panel-cal .mb-2 {
  margin-bottom: .35rem;
}

.habits-panel-cal .mt-3 {
  margin-top: .45rem;
}

.habits-panel-cal .calendar-day-grid {
  gap: .15rem;
}

.habits-panel-list {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  flex: auto;
  min-height: 0;
  overflow: hidden;
}

.habits-panel-list .panel-header {
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  padding-top: .55rem;
}

.habits-panel-week, .habits-panel-month {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.habits-panel-week {
  grid-area: week;
}

.habits-panel-month {
  grid-area: month;
}

.habits-panel .panel-body {
  flex-direction: column;
  gap: .65rem;
  display: flex;
}

.habits-panel-list .panel-body, .habits-panel-week .panel-body, .habits-panel-month .panel-body {
  -webkit-overflow-scrolling: touch;
  flex: auto;
  min-height: 0;
  overflow: hidden auto;
}

.habit-panel-nav {
  gap: .2rem;
  display: inline-flex;
}

.habit-cal-compact {
  flex-direction: column;
  gap: .45rem;
  display: flex;
}

.habit-cal-compact-rate {
  color: var(--muted);
  justify-content: space-between;
  align-items: baseline;
  font-size: .78rem;
  display: flex;
}

.habit-cal-compact-rate strong {
  color: #34c759;
  font-size: .95rem;
  font-weight: 750;
}

.habit-manage-list {
  flex-direction: column;
  gap: .85rem;
  display: flex;
}

.habit-manage-section-title {
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .3rem;
  font-size: .74rem;
  font-weight: 750;
}

.habit-manage-items {
  flex-direction: column;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.habit-manage-item {
  border-radius: 8px;
  grid-template-columns: auto 1.35rem 1fr auto auto;
  align-items: center;
  gap: .3rem;
  padding: .28rem .15rem;
  display: grid;
  position: relative;
}

.habit-manage-item:hover {
  background: #f5f6f8;
}

.habit-manage-item.is-dragging {
  opacity: .45;
}

.habit-manage-item.is-drop-before:before {
  content: "";
  background: var(--habit-green);
  border-radius: 2px;
  height: 2px;
  position: absolute;
  top: -1px;
  left: .2rem;
  right: .2rem;
}

.habit-manage-section.is-drop-period {
  outline: 1px dashed var(--habit-green);
}

@supports (color: color-mix(in lab, red, red)) {
  .habit-manage-section.is-drop-period {
    outline: 1px dashed color-mix(in srgb, var(--habit-green) 55%, transparent);
  }
}

.habit-manage-section.is-drop-period {
  outline-offset: 2px;
  border-radius: 8px;
}

.habit-manage-drag {
  color: #c0c4cb;
  cursor: grab;
  background: none;
  border: 0;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  width: 1.2rem;
  height: 1.45rem;
  padding: 0;
  display: inline-flex;
}

.habit-manage-drag:active {
  cursor: grabbing;
}

.habit-manage-emoji {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1;
}

.habit-manage-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .86rem;
  font-weight: 600;
  overflow: hidden;
}

.habit-manage-icon-btn {
  width: 1.45rem;
  height: 1.45rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.habit-manage-icon-btn:hover {
  color: var(--foreground);
  background: #eef0f3;
}

.habit-manage-icon-danger:hover {
  color: #c62828;
  background: #fdecea;
}

.habit-manage-composer {
  grid-template-columns: auto 1fr auto;
  gap: .3rem;
  margin-top: .35rem;
  display: grid;
}

.habit-manage-emoji-preview {
  border: 1px solid var(--habit-line);
  background: #fff;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 2.05rem;
  height: 2.05rem;
  font-size: 1.1rem;
  display: inline-flex;
}

.habit-manage-add-btn {
  border: 1px solid var(--habit-green);
  background: var(--habit-green);
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 2.05rem;
  height: 2.05rem;
  display: inline-flex;
}

.habit-manage-add-btn:disabled {
  opacity: .45;
  cursor: default;
}

.habit-manage-input {
  border: 1px solid var(--habit-line);
  background: #fff;
  border-radius: 8px;
  height: 2.05rem;
  padding: 0 .55rem;
  font-size: .88rem;
}

.habit-manage-input:focus {
  outline: 2px solid var(--habit-green);
}

@supports (color: color-mix(in lab, red, red)) {
  .habit-manage-input:focus {
    outline: 2px solid color-mix(in srgb, var(--habit-green) 35%, transparent);
  }
}

.habit-manage-input:focus {
  border-color: var(--habit-green);
}

.habit-month-compact {
  flex-direction: column;
  gap: .85rem;
  display: flex;
}

.habit-month-card-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.habit-month-compact-label {
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: .4rem;
  font-size: .78rem;
  font-weight: 750;
}

.habit-month-card {
  border: 1px solid var(--habit-line);
  text-align: left;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  flex-direction: column;
  gap: .45rem;
  padding: .55rem .55rem .5rem;
  display: flex;
  box-shadow: 0 1px 2px #0f172a0a, 0 4px 12px #0f172a08;
}

.habit-month-card:hover {
  background: #fcfcfd;
}

.habit-month-card-top {
  align-items: center;
  gap: .45rem;
  min-width: 0;
  display: flex;
}

.habit-month-compact-emoji {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}

.habit-month-compact-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 700;
  overflow: hidden;
}

.habit-month-day-grid {
  flex-direction: column;
  gap: .22rem;
  display: flex;
}

.habit-month-day-head, .habit-month-day-body {
  grid-template-columns: repeat(7, 1fr);
  gap: .18rem;
  display: grid;
}

.habit-month-day-head {
  color: var(--muted);
  text-align: center;
  font-size: .52rem;
  font-weight: 650;
}

.habit-month-day-cell {
  aspect-ratio: 1;
  color: #6b7280;
  background: #e9ebef;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  font-size: .58rem;
  font-weight: 650;
  display: inline-flex;
}

.habit-month-day-cell.is-empty {
  background: none;
}

.habit-month-day-cell.is-done {
  color: #fff;
  font-weight: 700;
}

.habit-month-card-footer {
  justify-content: space-between;
  align-items: center;
  padding-top: .1rem;
  display: flex;
}

.habit-month-card-stat {
  color: var(--habit-green);
  align-items: center;
  gap: .2rem;
  font-size: .75rem;
  font-weight: 750;
  display: inline-flex;
}

.habit-month-card-stat-count {
  color: #6b7280;
}

.habit-week-grid {
  flex: none;
  min-height: 0;
}

.habit-week-grid-head, .habit-week-grid-row {
  grid-template-columns: minmax(4.8rem, 1fr) repeat(7, 1.2rem);
  justify-content: start;
  align-items: center;
  gap: .14rem;
  display: grid;
}

.habit-week-grid-head {
  border-bottom: 1px solid var(--habit-line);
  margin-bottom: .4rem;
  padding-bottom: .35rem;
}

.habit-week-grid-day-head {
  text-align: center;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
}

.habit-week-period {
  margin-bottom: .4rem;
}

.habit-week-period-label {
  color: var(--muted);
  letter-spacing: .04em;
  margin: .12rem 0 .22rem;
  font-size: .72rem;
  font-weight: 750;
}

.habit-week-grid-row {
  margin-bottom: .22rem;
}

.habit-week-grid-name-col {
  align-items: center;
  gap: .3rem;
  min-width: 0;
  display: flex;
}

.habit-week-emoji-badge {
  border-radius: 999px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 1.45rem;
  height: 1.45rem;
  font-size: .85rem;
  display: inline-flex;
}

.habit-week-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 650;
  overflow: hidden;
}

.habit-week-cell {
  background: var(--habit-cell);
  cursor: pointer;
  border: 0;
  border-radius: 4px;
  width: 1.15rem;
  max-width: 1.15rem;
  height: 1.15rem;
  margin: 0 auto;
}

.habit-week-cell-done {
  background: #34c759;
}

.habit-week-cell:disabled {
  opacity: .5;
  cursor: default;
}

.habit-light-stats {
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  display: grid;
}

.habit-light-stat {
  background: #f5f6f8;
  border-radius: 10px;
  padding: .45rem .5rem;
}

.habit-light-stat-label {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 650;
}

.habit-light-stat-value {
  margin-top: .1rem;
  font-size: .95rem;
  font-weight: 750;
}

.habit-light-stat-value span {
  color: var(--muted);
  margin-left: .1rem;
  font-size: .7rem;
  font-weight: 600;
}

.habit-traffic-heading {
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .45rem;
  display: flex;
}

.habit-traffic-title {
  font-size: .8rem;
  font-weight: 750;
}

.habit-traffic-month {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.habit-traffic-head, .habit-traffic-body {
  grid-template-columns: repeat(7, 1fr);
  gap: .3rem .2rem;
  display: grid;
}

.habit-traffic-head {
  text-align: center;
  color: var(--muted);
  margin-bottom: .3rem;
  font-size: .68rem;
  font-weight: 650;
}

.habit-traffic-day {
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: flex;
}

.habit-traffic-disc {
  width: 1.85rem;
  height: 1.85rem;
  color: var(--foreground);
  background: none;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  font-size: .72rem;
  font-weight: 650;
  display: inline-flex;
}

.habit-traffic-calendar.is-compact .habit-traffic-head {
  gap: .15rem;
  margin-bottom: .2rem;
  font-size: .62rem;
}

.habit-traffic-calendar.is-compact .habit-traffic-body {
  gap: .15rem;
}

.habit-traffic-calendar.is-compact .habit-traffic-disc {
  width: 1.35rem;
  height: 1.35rem;
  font-size: .62rem;
}

.habit-traffic-calendar.is-compact .habit-traffic-day-selected .habit-traffic-disc {
  outline-offset: 1px;
  outline-width: 1.5px;
}

.habit-traffic-disc.has-fill {
  box-shadow: 0 1px 2px #0f172a14;
}

.habit-traffic-day-selected .habit-traffic-disc {
  outline: 2px solid var(--foreground);
  outline-offset: 1px;
}

.habit-traffic-day-today .habit-traffic-disc:not(.has-fill) {
  background: #eef0f3;
}

.habit-month-rate-panel {
  border-top: 1px solid var(--habit-line);
  text-align: center;
  margin-top: auto;
  padding-top: .65rem;
}

.habit-month-rate-panel > p:first-child {
  font-size: .78rem;
  font-weight: 700;
}

.habit-month-rate-big {
  color: #34c759;
  letter-spacing: -.03em;
  margin-top: .15rem;
  font-size: 1.55rem;
  font-weight: 800;
}

.habit-month-rate-detail {
  color: var(--muted);
  margin-top: .1rem;
  font-size: .72rem;
}

.habit-empty-hint {
  color: var(--muted);
  padding: .5rem .1rem;
  font-size: .82rem;
}

.habit-period-row {
  gap: .35rem;
  display: flex;
}

.habit-period-chip {
  border: 1px solid var(--habit-line);
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  flex: 1;
  padding: .4rem .5rem;
  font-size: .8rem;
  font-weight: 650;
}

.habit-period-chip.is-active {
  border-color: var(--habit-green);
  background: var(--habit-green);
}

@supports (color: color-mix(in lab, red, red)) {
  .habit-period-chip.is-active {
    background: color-mix(in srgb, var(--habit-green) 12%, white);
  }
}

.habit-period-chip.is-active {
  color: var(--habit-green);
}

@media (max-width: 1100px) {
  .habits-page {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .habits-dashboard-grid {
    flex: none;
    grid-template-columns: 1fr;
    grid-template-areas: "left"
                         "week"
                         "month";
    overflow: visible;
  }

  .habits-left-stack {
    gap: .75rem;
    height: auto;
    overflow: visible;
  }

  .habits-panel-cal {
    border-bottom: 1px solid var(--border);
    border-bottom-right-radius: 1.1rem;
    border-bottom-left-radius: 1.1rem;
  }

  .habits-panel-list {
    border-top: 1px solid var(--border);
    border-top-left-radius: 1.1rem;
    border-top-right-radius: 1.1rem;
    max-height: min(50vh, 28rem);
  }

  .habits-panel-week, .habits-panel-month {
    height: auto;
    max-height: min(60vh, 36rem);
  }

  .habit-month-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .habit-month-card-list {
    grid-template-columns: 1fr;
  }
}

.habit-modal-backdrop {
  z-index: 80;
  background: #0f172a66;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  display: flex;
  position: fixed;
  inset: 0;
}

.habit-modal {
  background: #fff;
  border-radius: 16px;
  width: min(420px, 100%);
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 16px 40px #0f172a2e;
}

.habit-modal-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: .85rem;
  display: flex;
}

.habit-modal-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.habit-modal-field {
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .85rem;
  font-size: .8rem;
  font-weight: 600;
  display: flex;
}

.habit-modal-field input[type="text"] {
  border: 1px solid #e2e5eb;
  border-radius: 10px;
  padding: .55rem .65rem;
  font-size: .9rem;
  font-weight: 500;
}

.habit-emoji-row {
  flex-direction: column;
  gap: .4rem;
  display: flex;
}

.habit-emoji-input {
  text-align: center;
  width: 3.2rem;
  font-size: 1.45rem !important;
}

.habit-emoji-presets, .habit-color-row {
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  display: flex;
}

.habit-emoji-preset {
  cursor: pointer;
  background: #f3f4f6;
  border: 1px solid #0000;
  border-radius: 8px;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.15rem;
}

.habit-emoji-preset.is-active {
  border-color: var(--foreground);
}

.habit-color-swatch {
  cursor: pointer;
  border: 2px solid #0000;
  border-radius: 999px;
  width: 1.55rem;
  height: 1.55rem;
}

.habit-color-swatch.is-active {
  border-color: var(--foreground);
}

.habit-modal-footer {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-top: .35rem;
  display: flex;
}

.habit-modal-actions {
  gap: .4rem;
  display: flex;
}

.habit-modal-danger {
  color: #c62828 !important;
}

.calendar-title-row {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .35rem;
  display: grid;
}

.calendar-title-center {
  min-width: 0;
}

.area-calendar .panel-header {
  align-items: flex-start;
}

.calendar-mode-toggle {
  background: #eef0f3;
  border-radius: 999px;
  flex-shrink: 0;
  gap: .1rem;
  padding: .1rem;
  display: inline-flex;
}

.calendar-mode-toggle button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 999px;
  padding: .14rem .4rem;
  font-size: .66rem;
  font-weight: 650;
  line-height: 1.2;
}

.calendar-mode-toggle button.is-active {
  color: var(--foreground);
  background: #fff;
  box-shadow: 0 1px 2px #0f172a14;
}

.calendar-habit-rate-row {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
  display: flex;
}

.calendar-day-habits {
  background: none;
}

.calendar-day-habits .calendar-day-num {
  display: none;
}

.calendar-day-habits .habit-home-disc {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--foreground);
  background: #eceef2;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  margin: .15rem auto 0;
  font-size: .78rem;
  font-weight: 650;
  display: inline-flex;
}

.calendar-day-habits.calendar-day-selected .habit-home-disc {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.calendar-legend-habit {
  gap: .65rem;
}

.cook-page {
  min-height: calc(100vh - 2rem);
}

.cook-page-header {
  align-items: flex-start;
  gap: 1rem;
}

.cook-page-kicker {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  align-items: center;
  gap: .4rem;
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 650;
  display: inline-flex;
}

.cook-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin: .25rem 0 .35rem;
  display: flex;
}

.cook-search {
  flex: 16rem;
  max-width: 28rem;
  position: relative;
}

.cook-search svg {
  color: var(--muted);
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: .85rem;
  transform: translateY(-50%);
}

.cook-search input {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  outline: none;
  width: 100%;
  padding: .65rem .9rem .65rem 2.35rem;
  font-size: .9rem;
}

.cook-search input:focus {
  border-color: var(--accent);
}

.cook-fav-filter, .cook-btn-primary, .cook-btn-ghost, .cook-btn-danger, .cook-photo-add, .cook-favorite-toggle {
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 650;
  transition: background .15s, border-color .15s, color .15s;
  display: inline-flex;
}

.cook-fav-filter {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: .6rem 1rem;
}

.cook-fav-filter.is-on, .cook-favorite-toggle.is-on {
  color: #9f1239;
  background: #fff1f2;
  border-color: #fecdd3;
}

.cook-btn-primary {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: .65rem 1.05rem;
}

.cook-btn-primary:disabled {
  opacity: .55;
}

.cook-btn-ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  padding: .6rem 1rem;
}

.cook-btn-danger {
  color: #b91c1c;
  background: #fff1f2;
  border: 1px solid #fecaca;
  padding: .6rem 1rem;
}

.cook-count {
  color: var(--muted);
  margin: .85rem 0 .9rem;
  font-size: .85rem;
}

.cook-card-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem .75rem;
  display: grid;
}

@media (min-width: 640px) {
  .cook-card-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem .95rem;
  }
}

@media (min-width: 900px) {
  .cook-card-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .cook-card-board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.cook-recipe-card {
  width: 100%;
  color: inherit;
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  flex-direction: column;
  padding: 0;
  display: flex;
}

.cook-recipe-card-media {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #ffffff8c, #0000 42%), #e8e2d8;
  border: 1px solid #3c2d1e14;
  border-radius: 1.05rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px #ffffff8c, 0 10px 24px #281e1414;
}

.cook-recipe-card-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform .45s;
  display: block;
}

.cook-recipe-card:hover .cook-recipe-card-image {
  transform: scale(1.04);
}

.cook-recipe-card-fallback {
  color: #8a8074;
  background: radial-gradient(circle at 30% 20%, #ffffff8c, #0000 50%), linear-gradient(145deg, #efe8dc, #d9d0c3);
  place-items: center;
  width: 100%;
  height: 100%;
  display: grid;
}

.cook-recipe-card-scrim {
  pointer-events: none;
  background: linear-gradient(to top, #1c161073, #0000 42%);
  position: absolute;
  inset: 0;
}

.cook-recipe-card-fav {
  color: #fda4af;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: #0006;
  border-radius: 999px;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  position: absolute;
  top: .6rem;
  right: .6rem;
}

.cook-recipe-card-photos {
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: #0000006b;
  border-radius: 999px;
  padding: .2rem .5rem;
  font-size: .65rem;
  font-weight: 700;
  position: absolute;
  top: .6rem;
  left: .6rem;
}

.cook-recipe-card-badges {
  flex-wrap: wrap;
  gap: .3rem;
  display: flex;
  position: absolute;
  bottom: .55rem;
  left: .55rem;
  right: .55rem;
}

.cook-recipe-pill {
  color: #3f3428;
  background: #fffaf3eb;
  border: 1px solid #503c2814;
  border-radius: 999px;
  align-items: center;
  gap: .25rem;
  padding: .22rem .55rem;
  font-size: .65rem;
  font-weight: 700;
  display: inline-flex;
}

.cook-recipe-pill-ghost {
  color: #fff;
  background: #00000059;
  border-color: #0000;
}

.cook-recipe-card-body {
  padding: .7rem .15rem .15rem;
}

.cook-recipe-card-title {
  letter-spacing: -.01em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
}

.cook-recipe-card-desc {
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: .3rem 0 0;
  font-size: .78rem;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
}

.cook-recipe-card-desc-muted {
  opacity: .8;
}

.cook-recipe-card-meta {
  color: var(--muted);
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .45rem;
  font-size: .7rem;
  display: flex;
}

.cook-recipe-card-meta span {
  align-items: center;
  gap: .25rem;
  display: inline-flex;
}

.cook-empty {
  text-align: center;
  border: 1px dashed var(--border);
  background: var(--surface-2);
  border-radius: 1.25rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 20rem;
  margin-top: 2rem;
  padding: 2rem 1.25rem;
  display: flex;
}

.cook-modal-backdrop {
  z-index: 60;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #14100c6b;
  place-items: center;
  padding: 1rem;
  display: grid;
  position: fixed;
  inset: 0;
}

.cook-modal {
  background: linear-gradient(180deg, #ffffff8c, transparent 28%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  flex-direction: column;
  width: min(100%, 40rem);
  max-height: min(92vh, 52rem);
  display: flex;
  overflow: hidden;
  box-shadow: 0 24px 64px #1e160e38;
}

.cook-detail-modal {
  width: min(100%, 42rem);
}

.cook-modal-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.1rem .75rem;
  display: flex;
}

.cook-modal-kicker {
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-size: .68rem;
  font-weight: 700;
}

.cook-modal-title {
  letter-spacing: -.02em;
  margin: .15rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.cook-icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 2.1rem;
  height: 2.1rem;
  color: var(--foreground);
  border-radius: 999px;
  place-items: center;
  display: grid;
}

.cook-icon-btn.is-fav {
  color: #e11d48;
  background: #fff1f2;
  border-color: #fecdd3;
}

.cook-modal-body {
  padding: 1rem 1.1rem 1.25rem;
  overflow: auto;
}

.cook-modal-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem;
  display: flex;
}

.cook-modal-footer-actions {
  gap: .5rem;
  display: flex;
}

.cook-field {
  color: var(--muted);
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .9rem;
  font-size: .82rem;
  font-weight: 650;
  display: flex;
}

.cook-field input, .cook-field select, .cook-field textarea {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  color: var(--foreground);
  font: inherit;
  border-radius: .8rem;
  outline: none;
  padding: .65rem .75rem;
  font-weight: 500;
}

.cook-field textarea {
  resize: vertical;
  line-height: 1.45;
}

.cook-field input:focus, .cook-field select:focus, .cook-field textarea:focus {
  border-color: var(--accent);
}

.cook-editor-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  display: grid;
}

@media (max-width: 640px) {
  .cook-editor-row {
    grid-template-columns: 1fr;
  }
}

.cook-field-head {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.cook-photo-add {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  cursor: pointer;
  padding: .35rem .7rem;
}

.cook-photo-empty {
  border: 1px dashed var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: .85rem;
  margin: 0;
  padding: 1rem;
  font-size: .82rem;
  font-weight: 500;
}

.cook-photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  display: grid;
}

.cook-photo-tile {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: .8rem;
  position: relative;
  overflow: hidden;
}

.cook-photo-tile.is-cover {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.cook-photo-tile img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.cook-photo-tile-actions {
  inset-inline: 0;
  background: linear-gradient(to top, #0000008c, #0000);
  gap: .25rem;
  padding: .35rem;
  display: flex;
  position: absolute;
  bottom: 0;
}

.cook-photo-tile-actions button {
  color: #fff;
  background: #ffffff2e;
  border: 0;
  border-radius: .45rem;
  flex: 1;
  padding: .25rem .2rem;
  font-size: .65rem;
  font-weight: 700;
}

.cook-favorite-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  margin-bottom: .5rem;
  padding: .55rem .9rem;
}

.cook-error {
  color: #b91c1c;
  margin: .35rem 0 0;
  font-size: .85rem;
  font-weight: 600;
}

.cook-detail-gallery {
  margin-bottom: 1rem;
}

.cook-detail-hero {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: var(--surface-2);
  border-radius: 1rem;
  width: 100%;
  display: block;
}

.cook-detail-thumbs {
  gap: .4rem;
  margin-top: .55rem;
  display: flex;
  overflow-x: auto;
}

.cook-detail-thumbs button {
  border: 1px solid var(--border);
  opacity: .7;
  border-radius: .65rem;
  flex: none;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  overflow: hidden;
}

.cook-detail-thumbs button.is-active {
  opacity: 1;
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.cook-detail-thumbs img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.cook-detail-meta {
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: .75rem;
  display: flex;
}

.cook-detail-meta-item {
  color: var(--muted);
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  display: inline-flex;
}

.cook-detail-desc {
  margin: 0 0 .85rem;
  font-size: .95rem;
  line-height: 1.55;
}

.cook-detail-tags {
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1rem;
  display: flex;
}

.cook-detail-tags span {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: .22rem .6rem;
  font-size: .72rem;
  font-weight: 650;
}

.cook-detail-section {
  margin-top: 1.15rem;
}

.cook-detail-section h3 {
  margin: 0 0 .55rem;
  font-size: .92rem;
  font-weight: 750;
}

.cook-ingredient-list {
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.cook-ingredient-list li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: .7rem;
  padding: .55rem .7rem;
  font-size: .88rem;
}

.cook-step-list {
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.cook-step-list li {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .7rem;
  display: grid;
}

.cook-step-num {
  background: var(--accent-soft);
  width: 1.7rem;
  height: 1.7rem;
  color: var(--accent);
  border-radius: 999px;
  place-items: center;
  font-size: .75rem;
  font-weight: 750;
  display: grid;
}

.cook-step-list p, .cook-detail-notes {
  white-space: pre-wrap;
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
}

.career-page {
  flex-direction: column;
  gap: .85rem;
  min-height: 0;
  padding-bottom: 2rem;
  display: flex;
}

.career-page-header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  display: flex;
}

.career-page-title {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.career-page-subtitle {
  color: var(--muted);
  margin: .2rem 0 0;
  font-size: .85rem;
}

.career-soon-panel {
  border: 1px dashed var(--border);
  background: var(--surface-2);
  text-align: center;
  color: var(--muted);
  border-radius: .9rem;
  margin-top: 1rem;
  padding: 2.5rem 1.5rem;
}

.career-muted {
  color: var(--muted);
  margin: 0;
  font-size: .85rem;
}

.career-error {
  color: #b91c1c;
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
}

.career-panel-title {
  letter-spacing: .02em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 .65rem;
  font-size: .82rem;
  font-weight: 700;
}

.career-panel-title-row {
  justify-content: space-between;
  align-items: center;
  gap: .55rem;
  margin-bottom: .65rem;
  display: flex;
}

.career-panel-title-row .career-panel-title {
  margin: 0;
}

.career-todo-actions {
  flex-shrink: 0;
  align-items: center;
  gap: .35rem;
  display: flex;
}

.career-todo-create-btn, .career-todo-remove-btn {
  white-space: nowrap;
  padding: .28rem .55rem;
  font-size: .72rem;
}

.career-btn-danger {
  background: #b91c1c;
}

@supports (color: color-mix(in lab, red, red)) {
  .career-btn-danger {
    background: color-mix(in srgb, #b91c1c 12%, var(--surface-2, var(--surface)));
  }
}

.career-btn-danger {
  border-color: #b91c1c;
}

@supports (color: color-mix(in lab, red, red)) {
  .career-btn-danger {
    border-color: color-mix(in srgb, #b91c1c 45%, var(--border));
  }
}

.career-btn-danger {
  color: #b91c1c;
}

.career-btn-danger:disabled {
  opacity: .45;
}

.career-todo-empty {
  border: 1px dashed var(--border);
  background: var(--bg, var(--surface));
  color: var(--fg);
  border-radius: .55rem;
  gap: .35rem;
  padding: 1.1rem .85rem;
  font-size: .88rem;
  line-height: 1.45;
  display: grid;
}

.career-todo-empty-hint {
  color: var(--muted);
  margin: 0;
  font-size: .8rem;
  line-height: 1.4;
}

.career-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .9rem;
  min-width: 0;
  padding: .75rem .8rem .85rem;
}

.career-asset-top {
  grid-template-columns: minmax(12rem, .92fr) minmax(0, 2fr) minmax(15rem, 1.25fr);
  align-items: stretch;
  gap: .85rem;
  display: grid;
}

.career-col-cal-db {
  flex-direction: column;
  gap: .85rem;
  min-width: 0;
  display: flex;
}

.career-panel-calendar .calendar-root {
  font-size: .92em;
}

.career-panel-db {
  flex-direction: column;
  flex: auto;
  min-height: 14rem;
  display: flex;
  overflow: hidden;
}

.career-panel-db .career-work-db-list-wrap {
  flex: auto;
  min-height: 0;
  max-height: 22rem;
  overflow: auto;
}

.career-col-todo {
  flex-direction: column;
  min-height: 28rem;
  display: flex;
}

.career-col-todo .career-todo-editor, .career-col-todo .planner-todo-editor {
  flex: auto;
  min-height: 0;
}

.career-col-time {
  flex-direction: column;
  min-height: 36rem;
  display: flex;
  overflow: hidden;
}

.career-asset-bottom {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
  gap: .85rem;
  display: grid;
}

.career-col-journal, .career-col-performance {
  min-width: 0;
}

.career-timeblock-compact {
  grid-template-columns: 1fr;
  gap: .75rem;
}

.career-timeblock-compact .career-timeblock-grid-wrap {
  max-height: min(70vh, 42rem);
}

@media (max-width: 1100px) {
  .career-asset-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }

  .career-col-time {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .career-asset-top, .career-asset-bottom {
    grid-template-columns: 1fr;
  }
}

.career-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--fg);
  cursor: pointer;
  border-radius: .4rem;
  padding: .35rem .7rem;
  font-size: .8rem;
  font-weight: 600;
}

.career-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.career-btn-primary {
  background: var(--accent-soft, var(--surface-2));
  border-color: var(--accent, var(--border));
}

.career-btn-ghost {
  color: var(--muted);
  background: none;
  border-color: #0000;
}

.career-input, .career-textarea {
  border: 1px solid var(--border);
  background: var(--bg, var(--surface));
  width: 100%;
  color: var(--fg);
  font: inherit;
  border-radius: .4rem;
  padding: .4rem .55rem;
  font-size: .88rem;
}

.career-textarea {
  resize: vertical;
  line-height: 1.45;
}

.career-field {
  gap: .3rem;
  margin-bottom: .7rem;
  display: grid;
}

.career-field > span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 650;
}

.career-task-time-badge {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: .3rem;
  flex-shrink: 0;
  padding: .1rem .35rem;
  font-size: .72rem;
  font-weight: 650;
}

.career-task-row {
  flex-direction: column;
  align-items: stretch;
  gap: .25rem;
  display: flex;
}

.career-task-main {
  align-items: center;
  gap: .35rem;
  width: 100%;
  min-width: 0;
  display: flex;
}

.career-task-manual-link {
  color: #5b6b7c;
  border: 1px solid var(--border);
  border-radius: .28rem;
  flex-shrink: 0;
  padding: .12rem .35rem;
  font-size: .78rem;
  font-weight: 650;
  text-decoration: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .career-task-manual-link {
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  }
}

.career-task-manual-link {
  background: var(--surface-2);
}

.career-task-manual-link:hover {
  color: var(--accent, var(--foreground));
  text-decoration: underline;
}

.career-task-memo-toggle {
  appearance: none;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: .3rem;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  gap: .2rem;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .2rem;
  transition: background .12s, color .12s, box-shadow .12s;
  display: inline-flex;
}

.career-task-memo-toggle:hover {
  background: var(--surface-2);
  color: var(--foreground);
}

.career-task-memo-toggle.is-open {
  color: var(--foreground);
  background: var(--surface-2);
}

.career-task-memo-toggle.has-memo {
  color: var(--accent, #2f6b4f);
  background: var(--accent, #2f6b4f);
}

@supports (color: color-mix(in lab, red, red)) {
  .career-task-memo-toggle.has-memo {
    background: color-mix(in srgb, var(--accent, #2f6b4f) 12%, transparent);
  }
}

.career-task-memo-toggle.has-memo:hover, .career-task-memo-toggle.has-memo.is-open {
  background: var(--accent, #2f6b4f);
}

@supports (color: color-mix(in lab, red, red)) {
  .career-task-memo-toggle.has-memo:hover, .career-task-memo-toggle.has-memo.is-open {
    background: color-mix(in srgb, var(--accent, #2f6b4f) 18%, transparent);
  }
}

.career-task-memo-badge {
  letter-spacing: -.02em;
  background: var(--accent, #2f6b4f);
  border-radius: 999px;
  padding: .12rem .28rem;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
}

@supports (color: color-mix(in lab, red, red)) {
  .career-task-memo-badge {
    background: color-mix(in srgb, var(--accent, #2f6b4f) 18%, var(--surface));
  }
}

.career-task-memo-badge {
  color: var(--accent, #2f6b4f);
}

.career-task-memo {
  padding-left: 1.85rem;
}

.career-task-memo-input {
  resize: vertical;
  border: 1px solid var(--border);
  background: var(--surface-2);
  width: 100%;
  min-height: 2.4rem;
  color: var(--foreground);
  font: inherit;
  border-radius: .4rem;
  padding: .4rem .55rem;
  font-size: .8rem;
  line-height: 1.4;
}

.career-task-memo-input:focus {
  border-color: var(--accent, #666);
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .career-task-memo-input:focus {
    border-color: color-mix(in srgb, var(--accent, #666) 45%, var(--border));
  }
}

.career-todo-editor .planner-task-item {
  gap: .35rem;
}

.planner-todo-editor .planner-task-item.career-task-row {
  align-items: stretch;
}

.planner-todo-editor .career-task-memo-input {
  min-height: 3.6rem;
}

.career-work-db-toolbar {
  align-items: center;
  gap: .45rem;
  margin-bottom: .35rem;
  display: flex;
}

.career-work-db-search {
  flex: auto;
  min-width: 0;
  position: relative;
}

.career-work-db-search svg {
  color: var(--muted);
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: .65rem;
  transform: translateY(-50%);
}

.career-work-db-search input {
  width: 100%;
  color: var(--foreground);
  font: inherit;
  background: none;
  border: 1px solid #0000;
  border-radius: .45rem;
  outline: none;
  padding: .4rem .55rem .4rem 1.9rem;
  font-size: .86rem;
}

.career-work-db-search input:hover, .career-work-db-search input:focus {
  border-color: var(--border);
  background: var(--surface-2);
}

.career-work-db-add {
  width: 1.85rem;
  height: 1.85rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: .4rem;
  flex: none;
  place-items: center;
  transition: background .12s, color .12s;
  display: inline-grid;
}

.career-work-db-add:hover {
  background: var(--surface-2);
  color: var(--foreground);
}

.career-work-db-add:disabled {
  opacity: .45;
  cursor: default;
}

.career-work-db-form {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: .65rem;
  gap: .65rem;
  margin: .45rem 0 .65rem;
  padding: .75rem;
  display: grid;
}

.career-work-db-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem .65rem;
  display: grid;
}

.career-work-db-form-title, .career-work-db-form-span {
  grid-column: 1 / -1;
}

.career-work-db-cat-preview {
  border: 1px solid;
  border-radius: .3rem;
  align-items: center;
  margin-top: .35rem;
  padding: .12rem .45rem;
  font-size: .8rem;
  font-weight: 600;
  display: inline-flex;
}

.career-work-db-form-actions {
  gap: .4rem;
  display: flex;
}

.career-work-db-list-wrap {
  min-height: 0;
}

.career-work-db-notion-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-work-db-notion-head, .career-work-db-notion-row {
  grid-template-columns: 1.1rem minmax(4rem, 5.8rem) minmax(0, 1.4fr) minmax(3.8rem, 4.8rem) minmax(3.6rem, 4.4rem) minmax(3.6rem, 1fr) 3.2rem;
  align-items: center;
  gap: .45rem;
  padding: .4rem .1rem;
  display: grid;
}

.career-work-db-notion-head {
  border-bottom: 1px solid var(--border);
  margin-bottom: .1rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .career-work-db-notion-head {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  }
}

.career-work-db-notion-head {
  color: #9a9a9a;
  letter-spacing: .01em;
  font-size: .8rem;
  font-weight: 600;
}

.career-work-db-notion-row {
  border-bottom: 1px solid var(--border);
  min-height: 2.5rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .career-work-db-notion-row {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  }
}

.career-work-db-notion-row {
  cursor: grab;
  transition: background .1s;
}

.career-work-db-notion-row:last-child {
  border-bottom-color: #0000;
}

.career-work-db-notion-row:hover {
  background: var(--foreground);
}

@supports (color: color-mix(in lab, red, red)) {
  .career-work-db-notion-row:hover {
    background: color-mix(in srgb, var(--foreground) 3.5%, transparent);
  }
}

.career-work-db-notion-row:active {
  cursor: grabbing;
}

.career-work-db-cell-grip {
  place-items: center;
  display: grid;
}

.career-work-db-grip {
  color: var(--muted);
  opacity: 0;
  place-items: center;
  display: grid;
}

.career-work-db-notion-row:hover .career-work-db-grip {
  opacity: .7;
}

.career-work-db-cell-cat {
  min-width: 0;
}

.career-work-db-chip {
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: .28rem;
  flex: 0 auto;
  align-items: center;
  max-width: 100%;
  padding: .16rem .45rem;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  overflow: hidden;
}

.career-work-db-notion-title {
  appearance: none;
  color: var(--foreground);
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  min-width: 0;
  padding: .1rem 0;
  font-size: .86rem;
  font-weight: 500;
  overflow: hidden;
}

.career-work-db-notion-title:hover {
  text-underline-offset: 2px;
  text-decoration: underline;
}

.career-work-db-prop {
  color: #6b7280;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-items: center;
  gap: .22rem;
  max-width: 100%;
  font-size: .84rem;
  font-weight: 500;
  display: inline-flex;
  overflow: hidden;
}

.career-work-db-prop.is-empty {
  color: silver;
}

.career-work-db-cell-time {
  font-variant-numeric: tabular-nums;
  color: #787878;
}

.career-work-db-prop-manual {
  color: #5b6b7c;
  text-decoration: none;
}

.career-work-db-prop-manual:hover {
  color: var(--accent);
  text-decoration: underline;
}

.career-work-db-cell-notes {
  color: #8a8a8a;
}

.career-work-db-notion-actions {
  opacity: 0;
  justify-content: flex-end;
  align-items: center;
  gap: .05rem;
  display: inline-flex;
}

.career-work-db-notion-row:hover .career-work-db-notion-actions {
  opacity: 1;
}

.career-work-db-icon-btn {
  appearance: none;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: .35rem;
  padding: .22rem;
}

.career-work-db-icon-btn:hover {
  background: var(--surface-2);
  color: var(--foreground);
}

.career-work-db-icon-btn.is-danger:hover {
  color: #be123c;
  background: #fff1f2;
}

.career-work-db-empty {
  text-align: center;
  color: var(--muted);
  margin: 0;
  padding: 1.1rem .35rem;
  font-size: .86rem;
}

@media (max-width: 900px) {
  .career-work-db-notion-head, .career-work-db-notion-row {
    grid-template-columns: 1.1rem minmax(3.2rem, 4.4rem) minmax(0, 1fr) minmax(3rem, 3.8rem) 3.2rem;
  }

  .career-work-db-cell-manual, .career-work-db-cell-notes {
    display: none;
  }
}

.career-timeblock {
  grid-template-columns: 1fr;
  align-items: start;
  gap: .75rem;
  display: grid;
}

.career-timeblock-grid-wrap {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .55rem;
  max-height: min(70vh, 720px);
  overflow: auto;
}

.career-timeblock-grid {
  min-height: 200px;
  margin-left: 3.2rem;
  position: relative;
}

.career-timeblock-grid-readonly {
  cursor: default;
}

.career-timeblock-hour {
  border-top: 1px solid var(--border);
  pointer-events: none;
  position: absolute;
  left: -3.2rem;
  right: 0;
}

.career-timeblock-hour span {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: .68rem;
  position: absolute;
  top: -.55rem;
  left: .35rem;
}

.career-timeblock-block {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--fg);
  text-align: left;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  border-radius: .35rem;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  padding: .35rem .45rem;
  display: flex;
  position: absolute;
  left: .35rem;
  right: .5rem;
  overflow: hidden;
}

.career-timeblock-block:active {
  cursor: grabbing;
}

.career-timeblock-block-selected {
  border-color: var(--accent, var(--fg));
}

.career-timeblock-block-done {
  opacity: .65;
  text-decoration: line-through;
}

.career-timeblock-block-time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: .68rem;
}

.career-timeblock-block-title {
  font-size: .8rem;
  font-weight: 600;
}

.career-timeblock-handle {
  background: var(--foreground);
  border-radius: 999px;
  height: .45rem;
  position: absolute;
  left: .35rem;
  right: .35rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .career-timeblock-handle {
    background: color-mix(in srgb, var(--foreground) 18%, transparent);
  }
}

.career-timeblock-handle {
  opacity: 0;
  cursor: ns-resize;
}

.career-timeblock-block:hover .career-timeblock-handle, .career-timeblock-block-selected .career-timeblock-handle {
  opacity: 1;
}

.career-timeblock-handle-start {
  top: .12rem;
}

.career-timeblock-handle-end {
  bottom: .12rem;
}

.career-timeblock-empty {
  color: var(--muted);
  margin: 0;
  font-size: .8rem;
  line-height: 1.4;
  position: absolute;
  inset: 1.5rem .75rem auto;
}

.career-journal {
  gap: 1rem;
  display: grid;
}

.career-journal-section {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .55rem;
  padding: .85rem .9rem .4rem;
}

.career-journal-group {
  margin: 0 0 .65rem;
  font-size: .92rem;
  font-weight: 700;
}

.career-journal-preview {
  appearance: none;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--bg, var(--surface));
  width: 100%;
  color: var(--fg);
  cursor: text;
  border-radius: .4rem;
  min-height: 2.75rem;
  padding: .55rem .65rem;
  display: block;
}

.career-journal-preview.is-empty {
  color: var(--muted);
}

.career-journal-placeholder {
  color: var(--muted);
  font-size: .85rem;
}

.career-journal-md.markdown-body, .career-journal-md.markdown-body :is(h1, h2, h3, h4) {
  margin: .35rem 0;
  font-size: .88rem;
}

.career-journal-md.markdown-body p, .career-journal-md.markdown-body li {
  margin: .2rem 0;
  line-height: 1.45;
}

.career-journal-md.markdown-body ul {
  margin: .2rem 0;
  padding-left: 1.1rem;
}

.career-home-md.markdown-body :is(h1, h2, h3, h4) {
  color: var(--fg);
  margin: .65rem 0 .25rem;
  font-size: .82rem;
  font-weight: 700;
}

.career-home-md.markdown-body hr {
  display: none;
}

.career-performance {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .55rem;
  gap: .85rem;
  padding: .9rem;
  display: grid;
}

.career-performance-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .55rem;
  display: flex;
}

.career-segment {
  border: 1px solid var(--border);
  border-radius: .4rem;
  display: inline-flex;
  overflow: hidden;
}

.career-segment button {
  appearance: none;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  padding: .35rem .75rem;
  font-size: .8rem;
  font-weight: 650;
}

.career-segment button.is-active {
  background: var(--surface-2);
  color: var(--fg);
}

.career-performance-table-wrap {
  overflow: auto;
}

.career-performance-table {
  border-collapse: collapse;
  width: 100%;
  font-size: .85rem;
}

.career-performance-table th, .career-performance-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  padding: .35rem .25rem;
}

.career-performance-table th {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
}

.career-performance-table .career-input {
  min-width: 4rem;
}

@media (max-width: 960px) {
  .career-split, .career-timeblock {
    grid-template-columns: 1fr;
  }
}

.workout-page {
  --workout-green: #1f8a4c;
  --workout-blue: #4a7fd4;
  --workout-line: #e8eaee;
  flex-direction: column;
  gap: .85rem;
  height: calc(100dvh - 2.5rem);
  min-height: 0;
  max-height: calc(100dvh - 2.5rem);
  display: flex;
  overflow: hidden;
}

.workout-page-header {
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: flex-end;
  gap: .75rem;
  display: flex;
}

.workout-page-title {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.workout-page-subtitle {
  color: var(--muted);
  margin: .15rem 0 0;
  font-size: .82rem;
}

.workout-page-header-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
  display: flex;
}

.workout-stat-badge, .workout-weight-badge {
  flex-direction: column;
  align-items: flex-end;
  gap: .05rem;
  display: inline-flex;
}

.workout-stat-badge-label {
  color: var(--muted);
  font-size: .68rem;
}

.workout-stat-badge-value {
  color: var(--workout-green);
  letter-spacing: -.02em;
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.1;
}

.workout-stat-badge-muted {
  color: var(--foreground);
}

.workout-weight-badge-row {
  align-items: baseline;
  gap: .2rem;
  display: inline-flex;
}

.workout-weight-badge-input {
  letter-spacing: -.02em;
  text-align: right;
  width: 3.2rem;
  color: var(--workout-blue);
  background: none;
  border: 0;
  padding: 0;
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.1;
}

.workout-weight-badge-input:focus {
  outline: none;
}

.workout-weight-badge-unit {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.workout-dashboard-grid {
  flex: auto;
  grid-template-columns: minmax(260px, .9fr) minmax(340px, 1.35fr) minmax(240px, .85fr);
  grid-template-areas: "day calendar charts";
  align-items: stretch;
  gap: .75rem;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.workout-panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.workout-panel-day {
  grid-area: day;
}

.workout-panel-calendar {
  grid-area: calendar;
}

.workout-panel-charts {
  grid-area: charts;
}

.workout-panel .panel-body {
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
  flex: auto;
  min-height: 0;
  display: flex;
  overflow: auto;
}

.workout-empty-hint {
  color: var(--muted);
  font-size: .85rem;
}

.workout-day-stack {
  flex-direction: column;
  gap: .95rem;
  height: 100%;
  min-height: 0;
  display: flex;
}

.workout-section {
  flex-direction: column;
  gap: .4rem;
  display: flex;
}

.workout-section-grow {
  flex: auto;
  min-height: 0;
}

.workout-section-label {
  letter-spacing: .04em;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 750;
}

.workout-sets-hero {
  align-items: center;
  gap: .45rem;
  display: flex;
}

.workout-sets-step {
  border: 1px solid var(--workout-line);
  width: 2rem;
  height: 2rem;
  color: var(--foreground);
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
}

.workout-sets-step:disabled {
  opacity: .35;
  cursor: default;
}

.workout-sets-step:hover:not(:disabled) {
  background: #f5f6f8;
}

.workout-sets-display {
  justify-content: center;
  align-items: baseline;
  gap: .25rem;
  min-width: 4.8rem;
  display: inline-flex;
}

.workout-sets-input {
  letter-spacing: -.03em;
  text-align: center;
  width: 2.6rem;
  color: var(--foreground);
  background: none;
  border: 0;
  padding: 0;
  font-size: 1.55rem;
  font-weight: 750;
}

.workout-sets-input:focus {
  outline: none;
}

.workout-sets-unit {
  color: var(--workout-green);
  font-size: .78rem;
  font-weight: 700;
}

.workout-done-pill {
  border: 1px solid var(--workout-line);
  color: var(--muted);
  cursor: pointer;
  background: #fff;
  border-radius: 999px;
  margin-left: auto;
  padding: .32rem .7rem;
  font-size: .74rem;
  font-weight: 650;
}

.workout-done-pill.is-on {
  border-color: var(--workout-green);
}

@supports (color: color-mix(in lab, red, red)) {
  .workout-done-pill.is-on {
    border-color: color-mix(in srgb, var(--workout-green) 40%, var(--workout-line));
  }
}

.workout-done-pill.is-on {
  background: var(--workout-green);
}

@supports (color: color-mix(in lab, red, red)) {
  .workout-done-pill.is-on {
    background: color-mix(in srgb, var(--workout-green) 12%, #fff);
  }
}

.workout-done-pill.is-on {
  color: var(--workout-green);
}

.workout-note-input {
  border: 1px solid var(--workout-line);
  resize: vertical;
  width: 100%;
  min-height: 4.8rem;
  color: inherit;
  background: #fff;
  border-radius: 10px;
  padding: .55rem .7rem;
  font-size: .86rem;
  line-height: 1.5;
}

.workout-note-input:focus {
  border-color: var(--workout-green);
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .workout-note-input:focus {
    border-color: color-mix(in srgb, var(--workout-green) 35%, var(--workout-line));
  }
}

.workout-exercise-list {
  flex-direction: column;
  gap: .1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.workout-exercise-item {
  border-radius: 8px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .45rem;
  padding: .34rem .2rem;
  display: grid;
}

.workout-exercise-item:hover {
  background: #f5f6f8;
}

.workout-exercise-name {
  color: inherit;
  background: none;
  border: 0;
  min-width: 0;
  padding: .1rem .15rem;
  font-size: .86rem;
  font-weight: 600;
}

.workout-exercise-name:focus {
  box-shadow: inset 0 0 0 1px var(--workout-line);
  background: #fff;
  border-radius: 6px;
  outline: none;
}

.workout-exercise-target {
  align-items: center;
  gap: .25rem;
  display: inline-flex;
}

.workout-exercise-count {
  border: 1px solid var(--workout-line);
  text-align: center;
  background: #fff;
  border-radius: 7px;
  width: 2.8rem;
  padding: .22rem .3rem;
  font-size: .82rem;
  font-weight: 650;
}

.workout-exercise-count:focus {
  border-color: var(--workout-green);
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .workout-exercise-count:focus {
    border-color: color-mix(in srgb, var(--workout-green) 40%, var(--workout-line));
  }
}

.workout-exercise-unit {
  color: var(--muted);
  min-width: 1rem;
  font-size: .72rem;
}

.workout-year-calendar {
  flex-direction: column;
  gap: .55rem;
  min-height: 0;
  display: flex;
}

.workout-year-legend {
  color: var(--muted);
  flex-wrap: wrap;
  gap: .7rem;
  font-size: .68rem;
  display: flex;
}

.workout-year-legend-item {
  align-items: center;
  gap: .3rem;
  display: inline-flex;
}

.workout-year-legend-dot {
  border-radius: 999px;
  width: .55rem;
  height: .55rem;
}

.workout-year-legend-dot.is-done {
  background: var(--workout-green);
}

.workout-year-legend-dot.is-selected {
  background: var(--workout-blue);
}

.workout-year-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  display: grid;
}

.workout-month-card {
  border: 1px solid var(--workout-line);
  background: #fff;
  border-radius: 10px;
  padding: .5rem .45rem .55rem;
}

.workout-month-title {
  text-align: center;
  letter-spacing: -.01em;
  margin: 0 0 .28rem;
  font-size: .78rem;
  font-weight: 750;
}

.workout-month-weekdays {
  color: var(--muted);
  text-align: center;
  grid-template-columns: repeat(7, 1fr);
  gap: .08rem;
  margin-bottom: .14rem;
  font-size: .58rem;
  display: grid;
}

.workout-month-grid {
  grid-template-columns: repeat(7, 1fr);
  gap: .14rem;
  display: grid;
}

.workout-month-pad {
  min-height: 2.65rem;
}

.workout-month-day {
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: .05rem;
  min-height: 2.65rem;
  padding: .12rem .05rem .14rem;
  display: flex;
  position: relative;
}

.workout-month-day:hover {
  background: #f5f6f8;
}

.workout-month-day.is-done {
  background: var(--workout-green);
}

@supports (color: color-mix(in lab, red, red)) {
  .workout-month-day.is-done {
    background: color-mix(in srgb, var(--workout-green) 14%, #fff);
  }
}

.workout-month-day.has-weight {
  background: var(--workout-blue);
}

@supports (color: color-mix(in lab, red, red)) {
  .workout-month-day.has-weight {
    background: color-mix(in srgb, var(--workout-blue) 7%, #fff);
  }
}

.workout-month-day.is-selected {
  background: var(--workout-blue);
}

@supports (color: color-mix(in lab, red, red)) {
  .workout-month-day.is-selected {
    background: color-mix(in srgb, var(--workout-blue) 14%, #fff);
  }
}

.workout-month-day.is-selected {
  box-shadow: inset 0 0 0 1.5px var(--workout-blue);
}

.workout-month-day-num {
  font-size: .66rem;
  font-weight: 700;
  line-height: 1;
}

.workout-month-day-sets {
  color: var(--workout-green);
  font-variant-numeric: tabular-nums;
  font-size: .52rem;
  font-weight: 750;
  line-height: 1;
}

.workout-month-day-weight {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: .5rem;
  font-weight: 650;
  line-height: 1;
}

.workout-month-day-dot {
  background: var(--workout-green);
  border-radius: 999px;
  width: .22rem;
  height: .22rem;
  position: absolute;
  bottom: .12rem;
}

.workout-charts-stack {
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  display: flex;
}

.workout-chart-block {
  flex-direction: column;
  gap: .25rem;
  display: flex;
}

.workout-chart-header {
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  display: flex;
}

.workout-chart-empty {
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--workout-line);
  border-radius: 10px;
  margin: 0;
  padding: 1.6rem 0;
  font-size: .82rem;
}

.workout-line-chart {
  width: 100%;
  height: auto;
  display: block;
}

.workout-chart-grid {
  stroke: var(--workout-line);
  stroke-width: 1px;
}

.workout-chart-axis {
  fill: var(--muted);
  font-size: 9px;
}

.workout-chart-unit {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .workout-page {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .workout-dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "day"
                         "calendar"
                         "charts";
    overflow: visible;
  }

  .workout-panel {
    height: auto;
  }

  .workout-year-grid {
    grid-template-columns: 1fr;
  }
}

.daily-planner-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .55rem;
  display: flex;
}

.home-weight-input {
  border: 1px solid #4a7fd4;
  align-items: center;
  gap: .28rem;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .home-weight-input {
    border: 1px solid color-mix(in srgb, #4a7fd4 35%, var(--border));
  }
}

.home-weight-input {
  background: #4a7fd4;
  border-radius: 999px;
  padding: .18rem .45rem .18rem .55rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .home-weight-input {
    background: color-mix(in srgb, #4a7fd4 8%, var(--surface));
  }
}

.home-weight-input {
  font-size: .72rem;
}

.home-weight-label {
  color: #4a7fd4;
  font-weight: 600;
}

@supports (color: color-mix(in lab, red, red)) {
  .home-weight-label {
    color: color-mix(in srgb, #4a7fd4 80%, var(--foreground));
  }
}

.home-weight-field {
  text-align: center;
  width: 2.8rem;
  color: inherit;
  background: none;
  border: none;
  font-size: .78rem;
  font-weight: 600;
}

.home-weight-field:focus {
  outline: none;
}

.home-weight-unit {
  color: var(--muted);
  font-size: .68rem;
}

@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-gradient-position {
  syntax: "*";
  inherits: false
}

@property --tw-gradient-from {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}

@property --tw-gradient-via {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}

@property --tw-gradient-to {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}

@property --tw-gradient-stops {
  syntax: "*";
  inherits: false
}

@property --tw-gradient-via-stops {
  syntax: "*";
  inherits: false
}

@property --tw-gradient-from-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0%;
}

@property --tw-gradient-via-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 50%;
}

@property --tw-gradient-to-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-leading {
  syntax: "*";
  inherits: false
}

@property --tw-font-weight {
  syntax: "*";
  inherits: false
}

@property --tw-tracking {
  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: 0;
}

@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-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
}

/*# sourceMappingURL=%5Broot-of-the-server%5D__04kpziu._.css.map*/