/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties;
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/files/poppins-devanagari-400-normal-8366e9af.woff2") format('woff2'), url("/assets/files/poppins-devanagari-400-normal-fd64a9b1.woff") format('woff');
  unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/files/poppins-latin-ext-400-normal-839d7a13.woff2") format('woff2'), url("/assets/files/poppins-latin-ext-400-normal-bfbf14bd.woff") format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/files/poppins-latin-400-normal-d360be31.woff2") format('woff2'), url("/assets/files/poppins-latin-400-normal-9b0fe1a5.woff") format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/assets/files/poppins-devanagari-800-normal-6dd04ea9.woff2") format('woff2'), url("/assets/files/poppins-devanagari-800-normal-eb1a5266.woff") format('woff');
  unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/assets/files/poppins-latin-ext-800-normal-99bfd7c9.woff2") format('woff2'), url("/assets/files/poppins-latin-ext-800-normal-6d50aba5.woff") format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/assets/files/poppins-latin-800-normal-b7299acd.woff2") format('woff2'), url("/assets/files/poppins-latin-800-normal-87c6d67a.woff") format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/files/roboto-mono-cyrillic-ext-400-normal-b12b7c89.woff2") format('woff2'), url("/assets/files/roboto-mono-cyrillic-ext-400-normal-ffe73311.woff") format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/files/roboto-mono-cyrillic-400-normal-137d56d6.woff2") format('woff2'), url("/assets/files/roboto-mono-cyrillic-400-normal-419f9033.woff") format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/files/roboto-mono-greek-400-normal-e6ae4510.woff2") format('woff2'), url("/assets/files/roboto-mono-greek-400-normal-2c520e5d.woff") format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/files/roboto-mono-vietnamese-400-normal-6753e124.woff2") format('woff2'), url("/assets/files/roboto-mono-vietnamese-400-normal-9ee895d0.woff") format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/files/roboto-mono-latin-ext-400-normal-ddbd9eb5.woff2") format('woff2'), url("/assets/files/roboto-mono-latin-ext-400-normal-e3538fec.woff") format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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: 'Roboto Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/files/roboto-mono-latin-400-normal-ea188753.woff2") format('woff2'), url("/assets/files/roboto-mono-latin-400-normal-39ceb361.woff") format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/files/roboto-mono-cyrillic-ext-700-normal-cfcbe3ad.woff2") format('woff2'), url("/assets/files/roboto-mono-cyrillic-ext-700-normal-5fd2cb81.woff") format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/files/roboto-mono-cyrillic-700-normal-22f16496.woff2") format('woff2'), url("/assets/files/roboto-mono-cyrillic-700-normal-06c41054.woff") format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/files/roboto-mono-greek-700-normal-640786b9.woff2") format('woff2'), url("/assets/files/roboto-mono-greek-700-normal-5d868889.woff") format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/files/roboto-mono-vietnamese-700-normal-decfe477.woff2") format('woff2'), url("/assets/files/roboto-mono-vietnamese-700-normal-0c8665a9.woff") format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/files/roboto-mono-latin-ext-700-normal-3cf03d8f.woff2") format('woff2'), url("/assets/files/roboto-mono-latin-ext-700-normal-fe9c5623.woff") format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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: 'Roboto Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/files/roboto-mono-latin-700-normal-8b076b53.woff2") format('woff2'), url("/assets/files/roboto-mono-latin-700-normal-9b69b5f1.woff") format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: Arial, Helvetica, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --color-violet-400: oklch(70.2% 0.183 293.541);
    --color-purple-600: oklch(55.8% 0.288 302.321);
    --color-gray-200: oklch(92.8% 0.006 264.531);
    --color-gray-300: oklch(87.2% 0.01 258.338);
    --color-gray-400: oklch(70.7% 0.022 261.325);
    --color-gray-500: oklch(55.1% 0.027 264.364);
    --color-gray-950: oklch(13% 0.028 261.692);
    --color-white: #fff;
    --spacing: 0.25rem;
    --container-sm: 24rem;
    --container-md: 28rem;
    --container-lg: 32rem;
    --container-3xl: 48rem;
    --container-6xl: 72rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --tracking-wide: 0.025em;
    --tracking-widest: 0.1em;
    --leading-normal: 1.5;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --animate-spin: spin 1s linear infinite;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .collapse {
    visibility: collapse;
  }
  .collapse\! {
    visibility: collapse !important;
  }
  .invisible {
    visibility: hidden;
  }
  .visible {
    visibility: visible;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .sticky {
    position: sticky;
  }
  .-start {
    inset-inline-start: calc(var(--spacing) * -1);
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .start\! {
    inset-inline-start: var(--spacing) !important;
  }
  .-end {
    inset-inline-end: calc(var(--spacing) * -1);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .right-0 {
    right: calc(var(--spacing) * 0);
  }
  .right-1 {
    right: calc(var(--spacing) * 1);
  }
  .bottom-0 {
    bottom: calc(var(--spacing) * 0);
  }
  .isolate {
    isolation: isolate;
  }
  .z-\[9999\] {
    z-index: 9999;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .m-114 {
    margin: calc(var(--spacing) * 114);
  }
  .m-744 {
    margin: calc(var(--spacing) * 744);
  }
  .mx-auto {
    margin-inline: auto;
  }
  .mt-0 {
    margin-top: calc(var(--spacing) * 0);
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .mt-3 {
    margin-top: calc(var(--spacing) * 3);
  }
  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }
  .mt-6 {
    margin-top: calc(var(--spacing) * 6);
  }
  .mb-1 {
    margin-bottom: calc(var(--spacing) * 1);
  }
  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .mb-10 {
    margin-bottom: calc(var(--spacing) * 10);
  }
  .-ml-1 {
    margin-left: calc(var(--spacing) * -1);
  }
  .ml-1 {
    margin-left: calc(var(--spacing) * 1);
  }
  .ml-2 {
    margin-left: calc(var(--spacing) * 2);
  }
  .ml-3 {
    margin-left: calc(var(--spacing) * 3);
  }
  .box-content {
    box-sizing: content-box;
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .inline\! {
    display: inline !important;
  }
  .inline-block {
    display: inline-block;
  }
  .inline-flex {
    display: inline-flex;
  }
  .table {
    display: table;
  }
  .table\! {
    display: table !important;
  }
  .h-3 {
    height: calc(var(--spacing) * 3);
  }
  .h-3\.5 {
    height: calc(var(--spacing) * 3.5);
  }
  .h-4 {
    height: calc(var(--spacing) * 4);
  }
  .h-5 {
    height: calc(var(--spacing) * 5);
  }
  .h-8 {
    height: calc(var(--spacing) * 8);
  }
  .h-64 {
    height: calc(var(--spacing) * 64);
  }
  .h-\[16px\] {
    height: 16px;
  }
  .h-dvh {
    height: 100dvh;
  }
  .h-full {
    height: 100%;
  }
  .min-h-20 {
    min-height: calc(var(--spacing) * 20);
  }
  .min-h-screen {
    min-height: 100vh;
  }
  .w-3 {
    width: calc(var(--spacing) * 3);
  }
  .w-3\.5 {
    width: calc(var(--spacing) * 3.5);
  }
  .w-4 {
    width: calc(var(--spacing) * 4);
  }
  .w-5 {
    width: calc(var(--spacing) * 5);
  }
  .w-8 {
    width: calc(var(--spacing) * 8);
  }
  .w-\[230px\] {
    width: 230px;
  }
  .w-auto {
    width: auto;
  }
  .w-full {
    width: 100%;
  }
  .max-w-3xl {
    max-width: var(--container-3xl);
  }
  .max-w-6xl {
    max-width: var(--container-6xl);
  }
  .max-w-full {
    max-width: 100%;
  }
  .max-w-lg {
    max-width: var(--container-lg);
  }
  .max-w-md {
    max-width: var(--container-md);
  }
  .max-w-sm {
    max-width: var(--container-sm);
  }
  .min-w-0 {
    min-width: calc(var(--spacing) * 0);
  }
  .flex-1 {
    flex: 1;
  }
  .flex-shrink {
    flex-shrink: 1;
  }
  .flex-shrink-0 {
    flex-shrink: 0;
  }
  .shrink-0 {
    flex-shrink: 0;
  }
  .flex-grow {
    flex-grow: 1;
  }
  .grow {
    flex-grow: 1;
  }
  .border-collapse {
    border-collapse: collapse;
  }
  .-rotate-45 {
    rotate: calc(45deg * -1);
  }
  .rotate-0 {
    rotate: 0deg;
  }
  .rotate-45 {
    rotate: 45deg;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .transform\! {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,) !important;
  }
  .animate-spin {
    animation: var(--animate-spin);
  }
  .cursor-not-allowed {
    cursor: not-allowed;
  }
  .cursor-pointer {
    cursor: pointer;
  }
  .resize {
    resize: both;
  }
  .columns-2 {
    columns: 2;
  }
  .columns-3 {
    columns: 3;
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-cols-6 {
    grid-template-columns: repeat(6, 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;
  }
  .justify-items-end {
    justify-items: end;
  }
  .gap-1 {
    gap: calc(var(--spacing) * 1);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .space-y-2 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-3 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-4 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-5 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-6 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-8 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-x-3 {
    :where(& > :not(:last-child)) {
      --tw-space-x-reverse: 0;
      margin-inline-start: calc(calc(var(--spacing) * 3) * var(--tw-space-x-reverse));
      margin-inline-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-x-reverse)));
    }
  }
  .self-end {
    align-self: flex-end;
  }
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .overflow-hidden {
    overflow: hidden;
  }
  .overflow-y-auto {
    overflow-y: auto;
  }
  .overscroll-none {
    overscroll-behavior: none;
  }
  .rounded {
    border-radius: 0.25rem;
  }
  .rounded-full {
    border-radius: calc(infinity * 1px);
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .rounded-md {
    border-radius: var(--radius-md);
  }
  .rounded-l-lg {
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-t {
    border-top-style: var(--tw-border-style);
    border-top-width: 1px;
  }
  .border-none {
    --tw-border-style: none;
    border-style: none;
  }
  .border-\[\#9b1c1c\] {
    border-color: #9b1c1c;
  }
  .border-\[var\(--border\)\] {
    border-color: var(--border);
  }
  .border-\[var\(--border-subtle\)\] {
    border-color: var(--border-subtle);
  }
  .border-\[var\(--color-border\)\] {
    border-color: var(--color-border);
  }
  .border-transparent {
    border-color: transparent;
  }
  .bg-\[var\(--color-bg-subtle\)\] {
    background-color: var(--color-bg-subtle);
  }
  .bg-\[var\(--danger\)\] {
    background-color: var(--danger);
  }
  .bg-\[var\(--primary\)\] {
    background-color: var(--primary);
  }
  .bg-\[var\(--surface\)\] {
    background-color: var(--surface);
  }
  .bg-\[var\(--surface-secondary\)\] {
    background-color: var(--surface-secondary);
  }
  .bg-gray-950 {
    background-color: var(--color-gray-950);
  }
  .bg-transparent {
    background-color: transparent;
  }
  .bg-gradient-to-r {
    --tw-gradient-position: to right in oklab;
    background-image: linear-gradient(var(--tw-gradient-stops));
  }
  .from-violet-400 {
    --tw-gradient-from: var(--color-violet-400);
    --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-purple-600 {
    --tw-gradient-to: var(--color-purple-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));
  }
  .bg-clip-text {
    background-clip: text;
  }
  .mask-repeat {
    mask-repeat: repeat;
  }
  .stroke-1 {
    stroke-width: 1;
  }
  .stroke-2 {
    stroke-width: 2;
  }
  .p-0 {
    padding: calc(var(--spacing) * 0);
  }
  .p-1 {
    padding: calc(var(--spacing) * 1);
  }
  .p-2 {
    padding: calc(var(--spacing) * 2);
  }
  .p-5 {
    padding: calc(var(--spacing) * 5);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .px-1\.5 {
    padding-inline: calc(var(--spacing) * 1.5);
  }
  .px-2\.5 {
    padding-inline: calc(var(--spacing) * 2.5);
  }
  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .py-0\.5 {
    padding-block: calc(var(--spacing) * 0.5);
  }
  .py-1 {
    padding-block: calc(var(--spacing) * 1);
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .py-24 {
    padding-block: calc(var(--spacing) * 24);
  }
  .pt-6 {
    padding-top: calc(var(--spacing) * 6);
  }
  .pr-1 {
    padding-right: calc(var(--spacing) * 1);
  }
  .pb-2\.5 {
    padding-bottom: calc(var(--spacing) * 2.5);
  }
  .text-center {
    text-align: center;
  }
  .text-justify {
    text-align: justify;
  }
  .text-left {
    text-align: left;
  }
  .font-mono {
    font-family: var(--font-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-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .text-\[10px\] {
    font-size: 10px;
  }
  .leading-4 {
    --tw-leading: calc(var(--spacing) * 4);
    line-height: calc(var(--spacing) * 4);
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .font-normal {
    --tw-font-weight: var(--font-weight-normal);
    font-weight: var(--font-weight-normal);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .tracking-widest {
    --tw-tracking: var(--tracking-widest);
    letter-spacing: var(--tracking-widest);
  }
  .text-wrap {
    text-wrap: wrap;
  }
  .break-words {
    overflow-wrap: break-word;
  }
  .whitespace-pre-wrap {
    white-space: pre-wrap;
  }
  .text-\[var\(--color-fg\)\] {
    color: var(--color-fg);
  }
  .text-\[var\(--danger\)\] {
    color: var(--danger);
  }
  .text-\[var\(--danger-fg\)\] {
    color: var(--danger-fg);
  }
  .text-\[var\(--primary\)\] {
    color: var(--primary);
  }
  .text-\[var\(--primary-fg\)\] {
    color: var(--primary-fg);
  }
  .text-\[var\(--text-muted\)\] {
    color: var(--text-muted);
  }
  .text-\[var\(--text-primary\)\] {
    color: var(--text-primary);
  }
  .text-\[var\(--text-secondary\)\] {
    color: var(--text-secondary);
  }
  .text-transparent {
    color: transparent;
  }
  .text-white {
    color: var(--color-white);
  }
  .capitalize {
    text-transform: capitalize;
  }
  .lowercase {
    text-transform: lowercase;
  }
  .uppercase {
    text-transform: uppercase;
  }
  .italic {
    font-style: italic;
  }
  .italic\! {
    font-style: italic !important;
  }
  .line-through {
    text-decoration-line: line-through;
  }
  .underline {
    text-decoration-line: underline;
  }
  .underline\! {
    text-decoration-line: underline !important;
  }
  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .opacity-50 {
    opacity: 50%;
  }
  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-none {
    --tw-shadow: 0 0 #0000;
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-sm {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .ring {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .invert {
    --tw-invert: invert(100%);
    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,);
  }
  .invert\! {
    --tw-invert: invert(100%) !important;
    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,) !important;
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .backdrop-filter {
    -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
    backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-all {
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .duration-150 {
    --tw-duration: 150ms;
    transition-duration: 150ms;
  }
  .duration-200 {
    --tw-duration: 200ms;
    transition-duration: 200ms;
  }
  .ease-in {
    --tw-ease: var(--ease-in);
    transition-timing-function: var(--ease-in);
  }
  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }
  .select-none {
    -webkit-user-select: none;
    user-select: none;
  }
  .\[rdoc-ref\:lib\/racc\/rdoc\/grammar\.en\.rdoc\] {
    rdoc-ref: lib/racc/rdoc/grammar.en.rdoc;
  }
  .hover\:cursor-pointer {
    &:hover {
      @media (hover: hover) {
        cursor: pointer;
      }
    }
  }
  .hover\:bg-\[var\(--danger-hover\)\] {
    &:hover {
      @media (hover: hover) {
        background-color: var(--danger-hover);
      }
    }
  }
  .hover\:bg-\[var\(--primary-hover\)\] {
    &:hover {
      @media (hover: hover) {
        background-color: var(--primary-hover);
      }
    }
  }
  .hover\:bg-\[var\(--surface-hover\)\] {
    &:hover {
      @media (hover: hover) {
        background-color: var(--surface-hover);
      }
    }
  }
  .hover\:text-\[var\(--danger-hover\)\] {
    &:hover {
      @media (hover: hover) {
        color: var(--danger-hover);
      }
    }
  }
  .hover\:text-\[var\(--text-primary\)\] {
    &:hover {
      @media (hover: hover) {
        color: var(--text-primary);
      }
    }
  }
  .hover\:text-\[var\(--text-secondary\)\] {
    &:hover {
      @media (hover: hover) {
        color: var(--text-secondary);
      }
    }
  }
  .hover\:underline {
    &:hover {
      @media (hover: hover) {
        text-decoration-line: underline;
      }
    }
  }
  .focus\:ring-2 {
    &:focus {
      --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + 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);
    }
  }
  .focus\:ring-\[var\(--primary\)\] {
    &:focus {
      --tw-ring-color: var(--primary);
    }
  }
  .focus\:ring-offset-2 {
    &:focus {
      --tw-ring-offset-width: 2px;
      --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    }
  }
  .focus\:outline-none {
    &:focus {
      --tw-outline-style: none;
      outline-style: none;
    }
  }
  .focus-visible\:outline {
    &:focus-visible {
      outline-style: var(--tw-outline-style);
      outline-width: 1px;
    }
  }
  .focus-visible\:outline-2 {
    &:focus-visible {
      outline-style: var(--tw-outline-style);
      outline-width: 2px;
    }
  }
  .focus-visible\:outline-offset-2 {
    &:focus-visible {
      outline-offset: 2px;
    }
  }
  .focus-visible\:outline-\[var\(--danger\)\] {
    &:focus-visible {
      outline-color: var(--danger);
    }
  }
  .focus-visible\:outline-\[var\(--primary\)\] {
    &:focus-visible {
      outline-color: var(--primary);
    }
  }
  .motion-reduce\:animate-none {
    @media (prefers-reduced-motion: reduce) {
      animation: none;
    }
  }
  .sm\:max-w-\[410px\] {
    @media (width >= 40rem) {
      max-width: 410px;
    }
  }
  .sm\:grid-cols-5 {
    @media (width >= 40rem) {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
  }
  .sm\:px-6 {
    @media (width >= 40rem) {
      padding-inline: calc(var(--spacing) * 6);
    }
  }
  .md\:w-\[625px\] {
    @media (width >= 48rem) {
      width: 625px;
    }
  }
  .md\:grid-cols-2 {
    @media (width >= 48rem) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .lg\:p-10 {
    @media (width >= 64rem) {
      padding: calc(var(--spacing) * 10);
    }
  }
  .lg\:px-8 {
    @media (width >= 64rem) {
      padding-inline: calc(var(--spacing) * 8);
    }
  }
}
.box-navigation__identity {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  font-weight: 700;
  font-size: 1rem;
}
.box-navigation__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.box-navigation__icon, .box-navigation__settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: .5rem;
}
.box-navigation__icon {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.box-navigation__settings {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
.box-navigation__icon:hover, .box-navigation__settings:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.box-navigation__new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.5rem;
  padding: .5rem 1rem;
  border-radius: .5rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: .875rem;
  white-space: nowrap;
}
.box-navigation__new:hover {
  background: var(--primary-hover);
}
.box-navigation__new:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.box-navigation__icon:focus-visible, .box-navigation__settings:focus-visible, .box-navigation__new:focus-visible, .zettel-list__group-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .box-navigation__actions {
    gap: .375rem;
  }
  .box-navigation__new {
    padding: .5rem;
  }
  .box-navigation__new span {
    display: none;
  }
  .box-navigation__identity {
    font-size: .875rem;
    gap: .375rem;
  }
}
[aria-controls="app-sidebar"][aria-expanded="false"] .box-navigation__sidebar-expanded, [aria-controls="app-sidebar"][aria-expanded="true"] .box-navigation__sidebar-collapsed {
  display: none;
}
.app-navbar {
  width: 100%;
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  background: var(--surface);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px #00000012;
}
.app-navbar__content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .625rem .5rem;
  min-height: 4rem;
}
.app-navbar__context {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}
.app-navbar__content:has(.app-navbar__workspace) > .app-navbar__context {
  flex: 0 1 auto;
}
.app-navbar__divider {
  align-self: stretch;
  border-left: 1px solid var(--border-subtle);
}
.app-navbar__workspace {
  flex: 1;
  min-width: 0;
}
.app-navbar__workspace-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.25rem;
  padding: .375rem .625rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  white-space: nowrap;
  cursor: pointer;
}
.app-navbar__workspace-toggle:hover {
  color: var(--primary);
}
.app-navbar__workspace-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: .25rem;
}
.app-navbar__workspace-toggle kbd {
  margin-left: .25rem;
  padding: 0 .3rem;
  border: 1px solid var(--border-subtle);
  border-radius: .25rem;
  color: var(--text-muted);
  font-size: .65rem;
}
.app-navbar__actions, .app-navbar__account {
  flex-shrink: 0;
}
.box-navigation__icon.box-navigation__search {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.pane-navigation {
  position: relative;
}
.pane-navigation__trigger {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.5rem;
  padding: .5rem .75rem;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  cursor: pointer;
  border-radius: .375rem;
}
.pane-navigation__menu {
  position: absolute;
  z-index: 1;
  right: 0;
  top: calc(100% + .5rem);
  width: 20rem;
  max-width: calc(100vw - 2rem);
  padding: .375rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface);
  box-shadow: 0 8px 24px #0002;
}
.pane-navigation__menu[hidden] {
  display: none;
}
.pane-navigation__menu.navbar-theme-menu {
  width: max-content;
  min-width: 8rem;
}
.pane-navigation__menu button {
  display: block;
  width: 100%;
  padding: .75rem;
  text-align: left;
  border-radius: .375rem;
  cursor: pointer;
}
.pane-navigation__menu strong {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--text-sm);
  font-weight: 500;
}
.pane-navigation__menu span {
  display: block;
  margin-top: .25rem;
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}
.pane-navigation__menu [aria-checked="true"] {
  background: var(--primary-subtle);
}
.pane-navigation__trigger:hover, .pane-navigation__menu button:hover {
  background: var(--surface-secondary);
}
.pane-navigation :is(button):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.app-navbar__home {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  font-size: .875rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.app-navbar__brand {
  display: inline-flex;
  align-items: center;
}
.app-navbar .zettel-box-logo {
  display: block;
  width: 100px;
  height: 30px;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  background: var(--text-primary);
}
.navbar-user {
  position: relative;
}
.app-navbar__account {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.navbar-user__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  color: var(--text-secondary);
  border-radius: .5rem;
  padding: .25rem;
}
.navbar-user__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface-secondary);
  flex-shrink: 0;
  overflow: hidden;
}
.navbar-user__menu {
  position: absolute;
  right: 0;
  top: calc(100% + .75rem);
  width: 19rem;
  max-width: calc(100vw - 1rem);
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .75rem;
  box-shadow: 0 20px 40px #0003;
}
.navbar-user__identity {
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
}
.navbar-user__identity span, .navbar-user__identity strong {
  display: block;
  overflow-wrap: anywhere;
}
.navbar-user__section {
  padding: .5rem;
}
.navbar-user__section + .navbar-user__section {
  border-top: 1px solid var(--border);
}
.navbar-user__section p {
  padding: .5rem .75rem;
  font-size: .75rem;
  color: var(--text-muted);
}
.navbar-user__section a, .navbar-user__section button {
  display: block;
  width: 100%;
  text-align: left;
  padding: .625rem .75rem;
  border-radius: .375rem;
  font-size: .875rem;
}
.navbar-user__section a:hover, .navbar-user__section button:hover {
  background: var(--surface-secondary);
}
.navbar-user__trigger:focus-visible, .navbar-user__section :is(a, button):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .app-navbar__content, .app-navbar__context {
    gap: .375rem;
  }
  .app-navbar__home {
    padding: .5rem .25rem;
  }
}
.navbar-user__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pane-navigation-confirmation__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}
.box-navigation__icon.box-navigation__notes {
  background: var(--text-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--text-primary) 7%, var(--surface));
  }
  border-color: var(--text-primary);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--text-primary) 14%, var(--surface));
  }
  color: var(--text-secondary);
}
.box-navigation__icon.box-navigation__notes:hover {
  background: var(--text-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--text-primary) 12%, var(--surface));
  }
  border-color: var(--text-primary);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--text-primary) 22%, var(--surface));
  }
  color: var(--text-primary);
}
@media (max-width: 1024px) {
  .app-navbar__content, .app-navbar__context {
    gap: .5rem;
  }
  .app-navbar__actions {
    gap: .375rem;
  }
  .app-navbar__home {
    padding-inline: .25rem;
  }
  .box-navigation__new {
    padding: .5rem;
  }
  .box-navigation__new span {
    display: none;
  }
}
.box-navigation__inbox {
  position: relative;
}
.box-navigation__inbox-count {
  position: absolute;
  top: -.35rem;
  right: -.35rem;
  min-width: 1.125rem;
  padding: .05rem .25rem;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--text-secondary);
  color: var(--surface);
  font-size: .625rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}
@media (max-width: 640px) {
  .app-navbar__content {
    flex-wrap: wrap;
  }
  .app-navbar__content > .app-navbar__context {
    order: -2;
    flex: 1 1 calc(100% - 9rem);
  }
  .app-navbar__account {
    order: -1;
  }
  .app-navbar__content > .app-navbar__divider {
    display: none;
  }
  .app-navbar__workspace:empty {
    display: none;
  }
  .app-navbar__actions {
    margin-left: auto;
  }
}
@media (max-width: 640px) {
  .app-navbar__workspace {
    order: 1;
    flex: 1 0 100%;
  }
  .app-navbar__workspace-toggle {
    max-width: 100%;
    white-space: normal;
  }
}
.zettel-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.375rem;
  vertical-align: middle;
  background-color: var(--surface-secondary);
  color: var(--text-primary) !important;
  text-decoration: none !important;
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.125rem 0.625rem 0.125rem 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.zettel-link__icon, .zettel-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--text-primary);
}
.zettel-link__text {
  font-weight: 500;
}
.zettel-link:hover, .zettel-link[data-open-pane="true"] {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg) !important;
}
.zettel-link:hover .zettel-link__icon, .zettel-link:hover svg, .zettel-link[data-open-pane="true"] .zettel-link__icon, .zettel-link[data-open-pane="true"] svg {
  color: var(--primary-fg);
}
.zettel-link__box {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--success);
  background: var(--success);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--success) 12%, var(--surface));
  }
  border-radius: 9999px 0 0 9999px;
  padding: 0.125rem 0.375rem;
  margin: -0.125rem 0 -0.125rem -0.375rem;
  font-weight: 500;
}
.zettel-link .zettel-link__box svg {
  color: inherit;
}
:root {
  --editor-highlight: #fef08a;
  --editor-highlight-fg: #1a1a1a;
  --syntax-keyword: #9d3b87;
  --syntax-string: #187950;
  --syntax-number: #b35412;
  --syntax-title: #386db0;
  color-scheme: light;
  --tyrian-deep: #4A0E2E;
  --tyrian-royal: #662D6D;
  --tyrian-wine: #3D0C37;
  --tyrian-charcoal: #1A1A1A;
  --tyrian-offwhite: #F5F5F0;
  --tyrian-gold: #C9A227;
  --app-bg: var(--color-white);
  --app-fg: var(--tyrian-charcoal);
  --surface: var(--color-white);
  --surface-secondary: #FAFAF8;
  --surface-hover: #F5F5F0;
  --surface-active: rgba(102, 45, 109, 0.08);
  --surface-overlay: var(--color-white);
  --surface-elevated: #FFFFFF;
  --border: var(--color-gray-300);
  --border-subtle: var(--color-gray-200);
  --border-active: var(--tyrian-royal);
  --primary: var(--tyrian-royal);
  --primary-hover: var(--tyrian-deep);
  --primary-subtle: rgba(102, 45, 109, 0.1);
  --primary-fg: var(--color-white);
  --secondary: var(--tyrian-deep);
  --secondary-hover: #3A0B23;
  --secondary-fg: var(--color-white);
  --success: #15803d;
  --success-hover: #166534;
  --success-fg: var(--color-white);
  --success-border: #15803d;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --danger-fg: var(--color-white);
  --text-primary: var(--tyrian-charcoal);
  --text-secondary: #374151;
  --text-muted: #6B7280;
  --text-placeholder: #9CA3AF;
  --text-disabled: #9CA3AF;
  --text-link: var(--tyrian-royal);
  --text-link-hover: var(--tyrian-deep);
  --shadow-color: rgb(0 0 0 / 0.1);
  --input-bg: var(--color-white);
  --input-border: var(--color-gray-300);
  --input-focus-ring: var(--tyrian-royal);
  --input-disabled-bg: #F3F4F6;
  --input-disabled-fg: #9CA3AF;
  --scrollbar-thumb: rgba(0, 0, 0, 0.15);
  --scrollbar-track: transparent;
  --chat-bg: rgba(102, 45, 109, 0.08);
  --chat-bot-bg: var(--tyrian-royal);
  --chat-bot-fg: var(--color-white);
  --chat-user-bg: var(--color-white);
  --chat-user-fg: var(--tyrian-charcoal);
  --chat-input-bg: var(--color-white);
  --overlay-bg: rgba(26, 26, 26, 0.4);
  --auth-gradient-from: var(--tyrian-deep);
  --auth-gradient-to: var(--tyrian-royal);
  --color-amber-50: #FFFBEB;
  --color-amber-100: #FEF3C7;
  --color-amber-200: #FDE68A;
  --color-amber-700: #B45309;
  --color-amber-800: #92400E;
  --color-yellow-100: #FEF9C3;
  --color-yellow-800: #854D0E;
  --color-green-100: #DCFCE7;
  --color-green-800: #166534;
  --note-bg: #fffbeb;
  --note-fg: #854d0e;
  --note-toolbar-fg: var(--text-primary);
  --note-scrollbar-thumb: rgba(0, 0, 0, 0.15);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="paper"]) {
    color-scheme: dark;
    --syntax-keyword: #e4a0d6;
    --syntax-string: #9cd6b5;
    --syntax-number: #efbd8b;
    --syntax-title: #a6c9f5;
    --app-bg: var(--tyrian-charcoal);
    --app-fg: var(--tyrian-offwhite);
    --surface: #242024;
    --surface-secondary: #2D2429;
    --surface-hover: #362A32;
    --surface-active: rgba(102, 45, 109, 0.2);
    --surface-overlay: #1E1A1E;
    --surface-elevated: #2D2429;
    --border: #3D3540;
    --border-subtle: #2D2830;
    --border-active: var(--tyrian-royal);
    --primary: #7B3D82;
    --primary-hover: #955A9C;
    --primary-subtle: rgba(102, 45, 109, 0.25);
    --primary-fg: var(--color-white);
    --secondary: #5A1A3D;
    --secondary-hover: #6B2348;
    --secondary-fg: var(--color-white);
    --success: #22C55E;
    --success-hover: #4ADE80;
    --success-fg: var(--tyrian-charcoal);
    --success-border: #22C55E;
    --danger: #EF4444;
    --danger-hover: #F87171;
    --danger-fg: var(--color-white);
    --text-primary: var(--tyrian-offwhite);
    --text-secondary: #D1D1C8;
    --text-muted: #9CA3AF;
    --text-placeholder: #6B7280;
    --text-disabled: #4B5563;
    --text-link: #D7A3DD;
    --text-link-hover: #EACAF0;
    --shadow-color: rgb(0 0 0 / 0.5);
    --input-bg: #2A252A;
    --input-border: #4A4A52;
    --input-focus-ring: var(--tyrian-royal);
    --input-disabled-bg: #1E1A1E;
    --input-disabled-fg: #4B5563;
    --scrollbar-thumb: rgba(255, 255, 255, 0.15);
    --scrollbar-track: transparent;
    --chat-bg: #2D2429;
    --chat-bot-bg: var(--tyrian-royal);
    --chat-bot-fg: var(--color-white);
    --chat-user-bg: #362A32;
    --chat-user-fg: var(--tyrian-offwhite);
    --chat-input-bg: #2A252A;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --auth-gradient-from: var(--tyrian-wine);
    --auth-gradient-to: var(--tyrian-royal);
    --color-amber-50: rgba(251, 191, 36, 0.1);
    --color-amber-100: rgba(251, 191, 36, 0.15);
    --color-amber-200: rgba(251, 191, 36, 0.25);
    --color-amber-700: #FCD34D;
    --color-amber-800: #FDE68A;
    --color-yellow-100: rgba(250, 204, 21, 0.15);
    --color-yellow-800: #FDE047;
    --color-green-100: rgba(34, 197, 94, 0.15);
    --color-green-800: #86EFAC;
    --note-bg: #2e2a2e;
    --note-fg: var(--text-muted);
    --note-toolbar-fg: var(--text-primary);
    --note-scrollbar-thumb: rgba(255, 255, 255, 0.2);
  }
}
[data-theme="dark"] {
  --syntax-keyword: #e4a0d6;
  --syntax-string: #9cd6b5;
  --syntax-number: #efbd8b;
  --syntax-title: #a6c9f5;
  color-scheme: dark;
  --app-bg: var(--tyrian-charcoal);
  --app-fg: var(--tyrian-offwhite);
  --surface: #242024;
  --surface-secondary: #4b3c44;
  --surface-hover: #362A32;
  --surface-active: rgba(102, 45, 109, 0.2);
  --surface-overlay: #1E1A1E;
  --surface-elevated: #2D2429;
  --border: #3D3540;
  --border-subtle: #2D2830;
  --border-active: var(--tyrian-royal);
  --primary: #7B3D82;
  --primary-hover: #955A9C;
  --primary-subtle: rgba(102, 45, 109, 0.25);
  --primary-fg: var(--color-white);
  --secondary: #5A1A3D;
  --secondary-hover: #6B2348;
  --secondary-fg: var(--color-white);
  --success: #22C55E;
  --success-hover: #4ADE80;
  --success-fg: var(--tyrian-charcoal);
  --success-border: #22C55E;
  --danger: #EF4444;
  --danger-hover: #F87171;
  --danger-fg: var(--color-white);
  --text-primary: var(--tyrian-offwhite);
  --text-secondary: #D1D1C8;
  --text-muted: #9CA3AF;
  --text-placeholder: #6B7280;
  --text-disabled: #4B5563;
  --text-link: #D7A3DD;
  --text-link-hover: #EACAF0;
  --shadow-color: rgb(0 0 0 / 0.5);
  --input-bg: #2A252A;
  --input-border: #4A4A52;
  --input-focus-ring: var(--tyrian-royal);
  --input-disabled-bg: #1E1A1E;
  --input-disabled-fg: #4B5563;
  --scrollbar-thumb: rgba(255, 255, 255, 0.15);
  --scrollbar-track: transparent;
  --chat-bg: #2D2429;
  --chat-bot-bg: var(--tyrian-royal);
  --chat-bot-fg: var(--color-white);
  --chat-user-bg: #362A32;
  --chat-user-fg: var(--tyrian-offwhite);
  --chat-input-bg: #2A252A;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --auth-gradient-from: var(--tyrian-wine);
  --auth-gradient-to: var(--tyrian-royal);
  --color-amber-50: rgba(251, 191, 36, 0.1);
  --color-amber-100: rgba(251, 191, 36, 0.15);
  --color-amber-200: rgba(251, 191, 36, 0.25);
  --color-amber-700: #FCD34D;
  --color-amber-800: #FDE68A;
  --color-yellow-100: rgba(250, 204, 21, 0.15);
  --color-yellow-800: #FDE047;
  --color-green-100: rgba(34, 197, 94, 0.15);
  --color-green-800: #86EFAC;
  --note-bg: #2e2a2e;
  --note-fg: var(--text-muted);
  --note-toolbar-fg: var(--text-primary);
  --note-scrollbar-thumb: rgba(255, 255, 255, 0.2);
  .zettel-box-logo {
    fill: white !important;
  }
}
select option, select optgroup {
  background: var(--input-bg);
  color: var(--text-primary);
}
:root {
  --color-bg: var(--app-bg);
  --color-fg: var(--app-fg);
  --color-paper: var(--surface-secondary);
  --color-hover: var(--surface-hover);
  --color-primary: var(--primary);
  --color-border: var(--border-subtle);
}
html, body {
  overscroll-behavior: none;
  background-color: var(--app-bg);
}
body {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  background-color: var(--app-bg);
  color: var(--app-fg);
}
@layer base {
  button:not(:disabled), [role="button"]:not(:disabled) {
    cursor: pointer;
  }
}
turbo-frame#modal {
  position: fixed;
}
.turbo-progress-bar {
  background-color: var(--primary);
}
@keyframes scaleIn {
  from {
    transform: scale(0.98);
    opacity: 0.8;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
turbo-frame {
  animation: scaleIn 0.3s ease-out forwards;
}
.auth {
  --auth-bg-gradient: linear-gradient(to right,
    var(--auth-gradient-from),
    var(--auth-gradient-to));
  @supports (color: color-mix(in lab, red, red)) {
    --auth-bg-gradient: linear-gradient(to right,
    color-mix(in oklch, var(--auth-gradient-from), transparent 30%),
    color-mix(in oklch, var(--auth-gradient-to), transparent 30%));
  }
  .input {
    margin-top: calc(var(--spacing) * 2);
    display: block;
    width: 100%;
    border-radius: var(--radius-md);
    padding-inline: calc(var(--spacing) * 3);
    padding-block: calc(var(--spacing) * 2);
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    outline: none;
    box-shadow: var(--shadow-xs);
    &:disabled {
      background-color: var(--input-disabled-bg);
      color: var(--input-disabled-fg);
      cursor: not-allowed;
      border-color: var(--border-subtle);
    }
  }
  .button {
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    cursor: pointer;
    border-radius: var(--radius-lg);
  }
  .button--primary {
    color: var(--primary-fg);
    --tw-gradient-position: to right in oklab;
    background-image: linear-gradient(var(--tw-gradient-stops));
    --tw-gradient-from: color-mix(in oklab, var(--color-gray-400) 20%, transparent);
    --tw-gradient-to: color-mix(in oklab, var(--color-gray-500) 20%, 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));
    &:hover {
      background: var(--auth-bg-gradient);
    }
  }
}
.auth .login-methods {
  width: 100%;
  max-width: none;
  margin: 0 0 1rem;
}
.auth .login-methods .spread-switcher__tab {
  min-height: 2.5rem;
  font-size: .875rem;
}
.auth [data-controller="login-method"] > [role="tabpanel"] {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}
.auth-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  padding-inline: calc(var(--spacing) * 4);
  padding-block: calc(var(--spacing) * 4);
  --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
}
.box-new {
  min-height: 100%;
  padding: 4rem 1.5rem;
  background: var(--bg);
  color: var(--text-primary);
}
.box-new__content {
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
}
.box-new__back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: .875rem;
}
.box-new__back:hover {
  color: var(--primary);
}
.box-new .input {
  color: var(--text-primary);
}
.box-new .input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.box-new .button--primary {
  background: var(--primary);
}
.input {
  margin-top: calc(var(--spacing) * 2);
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  padding-inline: calc(var(--spacing) * 3);
  padding-block: calc(var(--spacing) * 2);
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  outline: none;
  box-shadow: var(--shadow-xs);
  &:disabled {
    background-color: var(--input-disabled-bg);
    color: var(--input-disabled-fg);
    cursor: not-allowed;
    border-color: var(--border-subtle);
  }
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacing) * 1);
  border-radius: var(--radius-md);
  padding-inline: calc(var(--spacing) * 2.5);
  padding-block: calc(var(--spacing) * 1);
  text-align: center;
  --tw-font-weight: var(--font-weight-bold);
  font-weight: var(--font-weight-bold);
  -webkit-user-select: none;
  user-select: none;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-xs);
  svg {
    margin-left: calc(var(--spacing) * -1);
  }
  background-color: var(--secondary);
  color: var(--secondary-fg);
  border: 1px solid transparent;
  &:hover {
    background-color: var(--secondary-hover);
  }
  &:focus-visible {
    outline: 2px solid var(--secondary-hover);
    outline-offset: 2px;
  }
}
.button--small {
  font-size: var(--text-xs);
  padding-inline: calc(var(--spacing) * 2.5);
  padding-block: calc(var(--spacing) * 1);
}
.app.app--public .pane-stack {
  margin-top: calc(var(--spacing) * 0) !important;
}
.app.app--public .pane {
  margin: calc(var(--spacing) * 0) !important;
}
.main-content {
  min-height: calc(var(--spacing) * 0);
  flex: 1;
}
.pane-stack {
  height: 100%;
}
.app-layout {
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.app-layout__main {
  min-width: calc(var(--spacing) * 0);
  flex: 1;
  overflow: hidden;
}
.sidebar {
  display: flex;
  height: 100%;
  flex-direction: row;
  transition: transform 0.2s ease-in-out, margin-right 0.2s ease-in-out;
  width: 281px;
  flex-shrink: 0;
  background-color: var(--surface-secondary);
  border-right: 1px solid var(--border);
  overflow: hidden;
  will-change: transform, margin-right;
}
.sidebar--collapsed {
  transform: translateX(-280px);
  margin-right: -280px;
}
.sidebar__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  width: 280px;
  min-width: 0;
  min-height: 0;
  flex-shrink: 0;
}
.sidebar__toolbar {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 2);
  padding: calc(var(--spacing) * 3);
  flex-shrink: 0;
}
.sidebar__search-field {
  flex: 1;
  min-width: 0;
}
.sidebar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: .375rem;
  color: var(--text-muted);
  cursor: pointer;
}
.sidebar__toggle svg {
  width: 1rem;
  height: 1rem;
}
.sidebar__toggle:hover {
  background: var(--surface);
  color: var(--text-primary);
}
.sidebar__toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.sidebar-reveal {
  display: none;
  flex-shrink: 0;
  width: 1.5rem;
  padding: .75rem 0;
  border-right: 1px solid var(--border);
  background: var(--surface-secondary);
}
.sidebar-reveal .sidebar__toggle {
  width: 100%;
  height: 2rem;
  border-radius: 0;
}
.sidebar-reveal .sidebar__toggle svg {
  width: .875rem;
  height: .875rem;
  stroke-width: 1.5;
}
.sidebar-reveal .sidebar__toggle:focus-visible {
  outline-offset: -2px;
}
.sidebar--collapsed + .sidebar-reveal {
  display: block;
}
.sidebar__search-input {
  width: 100%;
  padding-inline: calc(var(--spacing) * 3);
  padding-block: calc(var(--spacing) * 2);
  font-size: var(--text-xs);
  line-height: var(--tw-leading, var(--text-xs--line-height));
  padding-left: 2.125rem;
  background-color: var(--surface);
  color: var(--text-primary);
  border-radius: calc(infinity * 1px);
  border-style: var(--tw-border-style);
  border-width: 1px;
  border-color: var(--border);
  --tw-outline-style: none;
  outline-style: none;
  &::placeholder {
    color: var(--text-muted);
  }
  &:focus {
    --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);
  }
  &:focus {
    --tw-ring-color: var(--primary);
  }
}
@media (max-width: 767px) {
  .sidebar {
    position: absolute;
    top: calc(var(--spacing) * 0);
    left: calc(var(--spacing) * 0);
    z-index: 50;
    height: 100%;
    --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    border-right: 1px solid var(--border);
    margin-right: 0;
  }
  .sidebar--collapsed {
    transform: translateX(-100%);
    margin-right: 0;
  }
}
.sidebar .zettel-list__item[aria-selected="true"] {
  outline: 1px solid var(--primary);
  outline-offset: -1px;
  border-radius: var(--radius-md);
}
.sidebar__filter-status {
  padding: .5rem 1rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.sidebar__filter-status[data-announcement-only="true"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sidebar__search-field {
  position: relative;
}
.sidebar__search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: .9375rem;
  height: .9375rem;
  color: var(--text-muted);
  pointer-events: none;
}
.sidebar__search-input--with-create {
  padding-right: 5.5rem;
}
.sidebar__create {
  position: absolute;
  right: .25rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .6rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}
.sidebar__create svg {
  width: .875rem;
  height: .875rem;
  flex-shrink: 0;
}
.sidebar__create[hidden] {
  display: none;
}
.sidebar__create:hover {
  background: var(--primary-hover);
}
.sidebar__create:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.sidebar .zettel-list__empty {
  color: var(--text-muted);
  opacity: .65;
}
.sidebar #browser-results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.sidebar .zettel-list {
  display: flex;
  flex-direction: column;
  gap: .125rem;
  padding: .5rem;
  max-height: none;
  overflow: visible;
}
.sidebar .zettel-list > * {
  margin-block: 0;
}
.sidebar .zettel-list__item--sidebar {
  border: 0;
  box-shadow: none;
  font-size: .8125rem;
  border-radius: .375rem;
  margin-left: 2.25rem;
}
.sidebar .zettel-list__item--sidebar:not(.has-backdrop) {
  background: transparent;
}
.sidebar .zettel-list__item--sidebar .zettel-list__item__link {
  height: auto;
  min-height: 2.125rem;
  padding: .375rem .625rem;
  align-items: center;
  column-gap: .5rem;
  white-space: nowrap;
  border-radius: inherit;
}
.sidebar .zettel-list__item--sidebar .zettel-list__item__link > * {
  margin-inline: 0;
}
.sidebar .zettel-list__item--sidebar .zettel-list__item__title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}
.sidebar .zettel-list__item--sidebar::before {
  content: "";
  position: absolute;
  left: -1.3125rem;
  top: -.125rem;
  bottom: 0;
  border-left: 1px solid var(--border);
}
.sidebar .zettel-list__item--sidebar:not(.has-backdrop):hover {
  background: var(--primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--primary) 6%, var(--surface-secondary));
  }
}
.sidebar .zettel-list__item.zettel-list__item--sidebar.active {
  border-left: 0;
}
.sidebar .zettel-list__item--sidebar:not(.has-backdrop).active {
  background: var(--primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--primary) 13%, var(--surface-secondary));
  }
  box-shadow: none;
}
.sidebar .zettel-list__item--sidebar.active::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: .25rem;
  height: .875rem;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--primary);
  pointer-events: none;
}
.sidebar .zettel-list__item--sidebar.has-backdrop.active::after {
  background: #fff;
}
.sidebar .zettel-list__item--sidebar:not(.has-backdrop).active .zettel-list__item__title {
  color: var(--text-primary);
  font-weight: 500;
}
.sidebar .zettel-list__group-label {
  padding: 0;
  margin-block-start: .25rem;
  background: transparent;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}
.sidebar .zettel-list__group-label[data-zettel-group="archived"] {
  margin-block-start: .75rem;
  padding-block-start: .75rem;
  border-top: 1px solid var(--border);
}
.sidebar .zettel-list__group-label__text {
  flex: 1;
  letter-spacing: normal;
}
.sidebar .zettel-list__group-label__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  stroke-width: 1.65;
}
.sidebar .zettel-list__group-toggle {
  gap: .5625rem;
  min-height: 2.125rem;
  padding: .375rem .5rem;
  border-radius: .375rem;
}
.sidebar .zettel-list__group-toggle:hover {
  color: var(--text-primary);
  background: var(--primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--primary) 6%, var(--surface-secondary));
  }
}
.sidebar .zettel-list__group-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: .25rem;
}
.sidebar .zettel-list__group-chevron {
  width: .8125rem;
  height: .8125rem;
}
.sidebar .zettel-list__group-toggle[aria-expanded="false"] .zettel-list__group-chevron {
  transform: rotate(-90deg);
}
.sidebar .zettel-list > [hidden] {
  display: none;
}
@supports (interpolate-size: allow-keywords) {
  .sidebar .zettel-list__item--sidebar {
    interpolate-size: allow-keywords;
    height: auto;
    min-height: 0;
    opacity: 1;
    transition: height 220ms ease, opacity 180ms ease, display 220ms allow-discrete;
  }
  .sidebar .zettel-list__item--sidebar[hidden] {
    height: 0;
    opacity: 0;
    overflow: clip;
  }
  @starting-style {
    .sidebar .zettel-list__item--sidebar {
      height: 0;
      opacity: 0;
      overflow: clip;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar .zettel-list__item--sidebar, .sidebar .zettel-list__group-chevron {
    transition: none;
  }
}
.sidebar #browser-results {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}
.sidebar__footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}
.sidebar__trash, .sidebar__archive-toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .85rem 1rem;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
}
.sidebar__trash:hover {
  background: var(--primary-subtle);
  color: var(--text-primary);
}
.sidebar__trash svg {
  width: 1rem;
  height: 1rem;
}
.sidebar__trash-count {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.app-layout:has(#pane-stack[data-spread-open="true"] #spread-panel-trash:not([hidden])) .sidebar__trash, .app-layout:not(:has(#pane-stack > .pane)):has(#spread-panel-trash:not([hidden])) .sidebar__trash {
  background: var(--primary-subtle);
  color: var(--text-primary);
}
.sidebar__archive-toggle {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
  padding-top: .6rem;
  padding-bottom: .6rem;
}
.sidebar__archive-toggle:hover {
  color: var(--text-secondary);
}
.sidebar__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .3rem;
  width: 3.2rem;
  padding: .15rem .3rem;
  border: 1px solid var(--border);
  border-radius: .4rem;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
}
.sidebar__switch-thumb {
  width: .65rem;
  height: 1rem;
  border-radius: .15rem;
  background: var(--text-muted);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--text-muted) 40%, transparent);
  }
}
.sidebar__archive-toggle[aria-checked="true"] .sidebar__switch {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}
.sidebar__archive-toggle[aria-checked="true"] .sidebar__switch-thumb {
  background: var(--primary-fg);
}
.sidebar__archive-toggle[aria-checked="false"] .sidebar__switch-thumb {
  order: -1;
}
.sidebar__title-line {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  min-width: 0;
}
.sidebar__title-line {
  flex: 1;
}
.sidebar__title-line > .zettel-list__item__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zettel-archived-label {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: .05rem .35rem;
  border: 1px solid var(--border-subtle);
  border-radius: .3rem;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: .625rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .015em;
  vertical-align: middle;
}
.search-content__archive-scope[hidden] {
  display: none;
}
.sidebar__navigation-hint {
  flex-shrink: 0;
  padding: 0 1rem .25rem;
  color: var(--text-muted);
  font-size: .6875rem;
}
.sidebar__edit-border {
  position: absolute;
  inset: 0;
  border: 3px solid var(--sidebar-editor-color);
  border-radius: inherit;
  pointer-events: none;
  z-index: 15;
}
.sidebar .sidebar-item--editing .zettel-list__item__link {
  padding-right: 2.75rem;
}
.sidebar__editor {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sidebar-editor-color);
  color: #fff;
  font-weight: 600;
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--surface);
}
.sidebar__editor img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.spread-switcher {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.spread-switcher__bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: stretch;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: .75rem 1rem;
  padding: 3px;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  border-radius: .75rem;
  background: var(--text-muted);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--text-muted) 7%, var(--surface-secondary));
  }
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 4%);
}
.spread-switcher__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2rem;
  padding: .375rem .75rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  color: var(--text-secondary);
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.spread-switcher__tab svg {
  width: .9375rem;
  height: .9375rem;
  flex-shrink: 0;
}
.spread-switcher__tab:hover {
  color: var(--text-primary);
  background: var(--surface);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--surface) 45%, transparent);
  }
}
.spread-switcher__tab[aria-selected="true"] {
  border-color: var(--border-subtle);
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 1px rgb(0 0 0 / 6%);
}
.spread-switcher__tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.spread-switcher__panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.spread-switcher__panel[hidden] {
  display: none;
}
.zettel-connections.workbench, .workbench .zettel-connections__viewport {
  background-image: linear-gradient(to right, var(--text-muted) 1px, transparent 1px), linear-gradient(to bottom, var(--text-muted) 1px, transparent 1px);
  @supports (color: color-mix(in lab, red, red)) {
    background-image: linear-gradient(to right, color-mix(in srgb, var(--text-muted) 6%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--text-muted) 6%, transparent) 1px, transparent 1px);
  }
  background-size: 24px 24px;
}
.box-empty {
  min-height: 100%;
  padding: clamp(2rem, 10vh, 6rem) 2.5rem 2.5rem;
  color: var(--text-primary);
}
.box-empty__content {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}
.box-empty__icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.box-empty h1 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}
.box-empty p {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.box-empty__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}
.box-empty__create.button {
  display: inline-flex;
  gap: .5rem;
  padding: .75rem 1rem;
  background: var(--primary);
  color: var(--primary-fg);
}
.box-empty__create.button:hover {
  background: var(--primary-hover);
}
.box-empty__create.button:focus-visible {
  outline-color: var(--primary);
}
.box-empty__archived {
  font-size: var(--text-sm);
  color: var(--text-link);
  text-decoration: underline;
  cursor: pointer;
}
.box-empty__archived:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.box-empty p.box-empty__hint {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: var(--text-xs);
}
.spread-switcher:is([data-spread="overview"], [data-spread="connections"], [data-spread="workbench"]) {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 1rem;
}
.spread-switcher:is([data-spread="overview"], [data-spread="connections"], [data-spread="workbench"]) > .spread-switcher__bar {
  grid-area: 1 / 1;
  align-self: start;
  max-width: none;
  margin: .75rem 0 .75rem 1rem;
}
.spread-switcher:is([data-spread="overview"], [data-spread="connections"], [data-spread="workbench"]) > .spread-switcher__panel:not([hidden]), .spread-switcher:is([data-spread="overview"], [data-spread="connections"], [data-spread="workbench"]) .zettel-connections {
  display: contents;
}
.spread-switcher__controls {
  grid-area: 1 / 2;
  align-self: start;
  justify-self: start;
  width: max-content;
  max-width: calc(100% - 1rem);
  min-height: 2.5rem;
  min-width: 0;
  margin: .75rem 1rem .75rem 0;
  padding: 3px .5rem;
  border: 1px solid var(--border-subtle);
  border-radius: .75rem;
  background: var(--surface);
  box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 1px rgb(0 0 0 / 6%);
}
@media (max-width: 1100px) {
  .spread-switcher:is([data-spread="overview"], [data-spread="connections"], [data-spread="workbench"]) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .spread-switcher__controls {
    grid-area: 2 / 1;
    margin: 0 1rem .75rem;
  }
  .spread-switcher:is([data-spread="overview"], [data-spread="connections"], [data-spread="workbench"]) .zettel-connections__viewport {
    grid-area: 3 / 1;
  }
}
#pane-stack[data-spread-open="true"] > .pane {
  display: none;
}
#pane-stack[data-spread-open="true"] > .spread-switcher {
  display: flex;
}
#pane-stack[data-spread-open="true"] > .spread-switcher:is([data-spread="overview"], [data-spread="connections"], [data-spread="workbench"]) {
  display: grid;
}
.archive-spread {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem;
}
.archive-spread h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: .5rem;
  margin-bottom: .5rem;
}
.archive-spread header p, .archive-spread__empty {
  color: var(--text-secondary);
}
.archive-spread__filters {
  display: flex;
  align-items: end;
  gap: .75rem;
  margin: 1.75rem 0 1rem;
}
.archive-spread__filters label {
  display: block;
  font-size: var(--text-xs);
  margin-bottom: .3rem;
}
.archive-spread__list {
  display: flex;
  flex-direction: column;
}
.archive-spread__list .archive-spread__row {
  display: flex;
  align-items: start;
  justify-content: start;
  padding: 1.2rem 0;
  gap: .85rem;
  border-bottom: 1px solid var(--border-subtle);
}
.archive-spread__list a {
  color: var(--text-primary);
}
.archive-spread__list a:hover {
  color: var(--primary);
}
.archive-spread__list svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}
.zettel-archive-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 1rem;
  font-size: var(--text-xs);
  background: var(--primary-subtle);
  border-bottom: 1px solid var(--border);
}
.archive-action button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.zettel-archive-banner svg, .archive-action svg {
  width: 1rem;
  height: 1rem;
}
.archive-action button {
  cursor: pointer;
}
.archive-spread__filters input[type="search"] {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: .4rem;
  width: 100%;
  min-width: 0;
  padding: .8rem 1rem;
}
.archive-spread__filters input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.spread-switcher:is([data-spread="archive"], [data-spread="trash"]) > .spread-switcher__bar {
  display: none;
}
.archive-spread__filters > div {
  flex: 1;
}
.archive-spread__filters button {
  padding: .8rem 0;
  color: var(--text-secondary);
  cursor: pointer;
}
.archive-spread__summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .8rem;
  color: var(--text-muted);
  font-size: var(--text-xs);
  border-bottom: 1px solid var(--border-subtle);
}
.archive-spread__summary > span:last-child {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
}
.archive-spread__summary svg {
  width: 1rem;
  height: 1rem;
}
.archive-spread__row > svg {
  margin-top: .2rem;
  color: var(--text-muted);
}
.archive-spread__details {
  flex: 1;
  min-width: 0;
}
.archive-spread__list .archive-spread__title {
  display: block;
  font-weight: 600;
  line-height: 1.5;
}
.archive-spread__excerpt, .archive-spread__date {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  line-height: 1.7;
  margin-top: .35rem;
}
.archive-spread__date {
  color: var(--text-muted);
}
.archive-spread__unarchive {
  align-self: center;
  color: var(--primary);
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in srgb, var(--primary) 65%, var(--text-primary));
  }
  cursor: pointer;
  font-size: var(--text-xs);
}
.archive-spread__unarchive:disabled {
  opacity: .6;
  cursor: wait;
}
.archive-spread [hidden] {
  display: none;
}
.archive-spread__empty button {
  color: var(--text-primary);
  text-decoration: underline;
  cursor: pointer;
}
.archive-spread__empty {
  padding: 1.5rem 0;
}
.archive-spread__next {
  display: inline-block;
  margin-top: 1rem;
}
.zettel-archive-banner__state {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.zettel-archive-banner__state > span, .zettel-archive-banner__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.zettel-archive-banner__state small {
  color: var(--text-secondary);
}
.zettel-archive-banner__actions > button {
  cursor: pointer;
  text-decoration: underline;
}
.zettel-version-banner {
  flex-wrap: wrap;
}
.zettel-version-banner__modes {
  display: flex;
  align-self: flex-start;
  gap: .2rem;
}
.zettel-version-banner__modes button {
  padding: .15rem .5rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.zettel-version-banner__modes button:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}
.zettel-version-banner__modes button.active {
  color: var(--text-primary);
  background: var(--surface);
  border-color: var(--border);
}
.zettel-version-banner__modes button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.archive-spread header .archive-spread__eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.archive-spread__header > p:last-child {
  margin-top: .5rem;
  font-size: var(--text-sm);
}
.archive-spread__card {
  margin-top: 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface);
}
.archive-spread__unarchive, .archive-action__restore {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .35rem .75rem;
  white-space: nowrap;
}
.archive-spread__unarchive:hover, .archive-action__restore:hover {
  border-color: var(--primary);
}
@media (max-width: 700px) {
  .archive-spread {
    padding: 1.5rem;
  }
}
#spread-panel-trash {
  overflow: hidden;
}
#trash-content {
  display: flex;
  height: 100%;
  min-height: 0;
}
#trash-content > .archive-spread {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
#trash-content .archive-spread__header, #trash-content .archive-spread__filters, #trash-content .archive-spread__summary {
  flex-shrink: 0;
}
#trash-content .archive-spread__card, #trash-content .archive-spread__results {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
#trash-content .archive-spread__scroll {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  scrollbar-gutter: stable;
}
.archive-spread__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-secondary);
  font-size: var(--text-xs);
}
.archive-spread__back svg {
  width: 1rem;
  height: 1rem;
}
.archive-spread__back:hover {
  color: var(--primary);
}
.archive-spread__back:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.spread-switcher__bar {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: none;
  gap: .2rem;
}
.spread-switcher__tab {
  color: var(--text-primary);
  font-weight: 600;
}
.spread-switcher__tab[aria-selected="true"] {
  color: var(--primary-fg);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 1px 2px #0002;
}
.archive-spread__unarchive, .archive-action__restore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2rem;
  padding: .4rem .7rem;
  font-weight: 600;
  font-size: var(--text-xs);
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 1px 2px #0002;
}
.archive-spread__unarchive:hover, .archive-action__restore:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.archive-spread__unarchive:focus-visible, .archive-action__restore:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.archive-spread__unarchive:disabled, .archive-action__restore:disabled {
  opacity: .5;
  cursor: wait;
}
.archive-spread__back {
  padding: .4rem .65rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 600;
}
.archive-spread__back:hover {
  border-color: var(--primary);
}
.archive-spread__header h1:focus {
  outline: none;
}
#pane-stack[data-workspace-transition] {
  view-transition-name: box-workspace;
}
html:has([data-workspace-transition])::view-transition-group(box-workspace) {
  animation-duration: 240ms;
}
html:has([data-workspace-transition])::view-transition-old(box-workspace), html:has([data-workspace-transition])::view-transition-new(box-workspace) {
  animation-duration: 240ms;
  animation-timing-function: cubic-bezier(.2, .7, .3, 1);
  mix-blend-mode: normal;
  transform-origin: center center;
}
html:has([data-workspace-transition="panes"])::view-transition-old(box-workspace) {
  animation-name: workspace-spread-out;
}
html:has([data-workspace-transition="panes"])::view-transition-new(box-workspace) {
  animation-name: workspace-panes-in;
}
html:has([data-workspace-transition="spread"])::view-transition-old(box-workspace) {
  animation-name: workspace-panes-out;
}
html:has([data-workspace-transition="spread"])::view-transition-new(box-workspace) {
  animation-name: workspace-spread-in;
}
@keyframes workspace-panes-in {
  from {
    opacity: 0;
    transform: translateY(64px) scale(.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes workspace-panes-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(64px) scale(.94);
  }
}
@keyframes workspace-spread-in {
  from {
    opacity: 0;
    transform: scale(.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes workspace-spread-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(.94);
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(box-workspace), ::view-transition-old(box-workspace), ::view-transition-new(box-workspace) {
    animation: none !important;
  }
}
.zettel-connections {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background-color: var(--surface-secondary);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
}
.zettel-connections__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  color: var(--text-secondary);
  font-size: .75rem;
}
.zettel-connections__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: .5rem;
  cursor: pointer;
}
.zettel-connections__controls .zettel-connections__search-input {
  display: block;
  box-sizing: border-box;
  width: clamp(160px, 16vw, 230px);
  height: 2rem;
  min-height: 2rem;
  max-height: 2rem;
  margin: 0;
  padding: 0 .625rem;
  line-height: 1.25;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface-secondary);
  color: var(--text-primary);
  font-size: .75rem;
}
.zettel-connections__settings {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 0;
}
.zettel-connections__settings label {
  display: inline-flex;
  gap: .375rem;
  align-items: center;
  white-space: nowrap;
}
.zettel-connections__settings input {
  accent-color: var(--primary);
}
.zettel-connections__zoom {
  display: flex;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  overflow: hidden;
}
.zettel-connections__zoom button {
  flex: 1 0 auto;
  min-width: 2rem;
  min-height: 0;
  padding: .375rem .5rem;
  border-right: 1px solid var(--border);
  cursor: pointer;
}
.zettel-connections__zoom button:last-child {
  border-right: 0;
}
.zettel-connections__controls button:hover {
  background: var(--primary-subtle);
}
.zettel-connections__status {
  margin: 0;
  white-space: nowrap;
  font-size: .6875rem;
  color: var(--text-muted);
}
.zettel-connections__show-all {
  margin: 0;
  white-space: nowrap;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}
.zettel-connections__viewport {
  position: relative;
  grid-area: 2 / 1 / 3 / -1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background-color: var(--surface-secondary);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  outline-offset: -3px;
}
.zettel-connections__surface {
  position: relative;
  touch-action: none;
}
.zettel-connections__edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.zettel-connections__edges > path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  opacity: .5;
}
.zettel-connections__card {
  position: absolute;
  width: 260px;
  min-height: 0;
  padding: 0;
  text-align: left;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 3px 10px rgb(0 0 0 / 4%);
  cursor: pointer;
  user-select: none;
  touch-action: none;
}
.zettel-connections__header {
  cursor: grab;
  display: flex;
  align-items: flex-start;
  gap: .375rem;
  padding: .75rem;
  border-radius: .75rem .75rem 0 0;
  background: var(--surface-secondary);
}
.zettel-connections__focus {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  flex: 1;
  min-width: 0;
  text-align: left;
  cursor: grab;
}
.zettel-connections__card.zettel-summary {
  padding: 0;
  gap: 0;
}
.zettel-connections__card.zettel-summary .zettel-connections__header {
  padding-top: 0;
  background: var(--surface);
}
.zettel-connections__focus > .zettel-summary__header {
  flex: 1;
  min-width: 0;
}
.zettel-connections__card.zettel-summary .zettel-connections__header > :is(.zettel-connections__open, .zettel-connections__expand) {
  margin-top: .3rem;
}
.zettel-connections__title {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.zettel-connections__open, .zettel-connections__expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: .125rem;
  border-radius: .25rem;
  color: var(--text-muted);
  cursor: pointer;
}
.zettel-connections__open:hover, .zettel-connections__expand:hover {
  color: var(--primary);
  background: var(--primary-subtle);
}
.zettel-connections__content {
  max-height: min(22rem, 45dvh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: .875rem;
  border-top: 1px solid var(--border);
  user-select: text;
  cursor: auto;
  font-size: .8125rem;
  line-height: 1.6;
}
.zettel-connections__content[hidden] {
  display: none;
}
.zettel-connections__content .zettel-prose {
  font-size: inherit;
}
.zettel-connections__description {
  padding: .75rem .875rem;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.zettel-connections__card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
}
.zettel-connections__card[data-selected="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-subtle);
}
.zettel-connections button:focus-visible, .zettel-connections input:focus-visible, .zettel-connections__open:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.zettel-connections__show-all[hidden] {
  display: none;
}
.zettel-connections__card[data-expanded="true"] {
  display: flex;
  flex-direction: column;
  resize: both;
  height: min(26rem, 55dvh);
  min-width: 260px;
  max-width: min(48rem, 80dvw);
  min-height: 12rem;
  max-height: min(44rem, 75dvh);
}
.zettel-connections__card[data-expanded="true"] .zettel-connections__header, .zettel-connections__card[data-expanded="true"] .zettel-connections__description {
  flex-shrink: 0;
}
.zettel-connections__card[data-expanded="true"] .zettel-connections__content {
  flex: 1;
  min-height: 0;
  max-height: none;
}
.zettel-connections__card.zettel-summary .zettel-connections__header.zettel-summary__header--cover {
  margin-inline: 0;
  padding: 0 .75rem .75rem;
  border-radius: .65rem .65rem 0 0;
  background: #202522;
}
.zettel-connections__header.zettel-summary__header--cover > :is(.zettel-connections__open, .zettel-connections__expand) {
  color: #fff;
}
.workbench__selector {
  min-width: 10rem;
  max-width: 16rem;
  height: 2rem;
  padding: 0 1.75rem 0 .625rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface);
  color: var(--text-primary);
  font-size: .75rem;
}
.workbench__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: .375rem .625rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
}
.workbench__button--primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.workbench__form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.workbench__form input, .workbench__picker-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .625rem;
  background: var(--surface);
  color: var(--text-primary);
}
.workbench__picker-list {
  max-height: 55dvh;
  overflow: auto;
  margin-top: .75rem;
}
.workbench__picker-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  text-align: left;
  padding: .875rem .5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
}
.workbench__picker-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: var(--text-muted);
  stroke-width: 1.5;
}
.workbench__picker-title {
  min-width: 0;
  overflow-wrap: anywhere;
}
.workbench__picker-title small {
  display: block;
  margin-top: .25rem;
}
.workbench__picker-item small, .workbench__empty {
  color: var(--text-muted);
  font-size: .75rem;
}
.workbench__picker-item:hover {
  background: var(--primary-subtle);
}
.workbench__picker-item:disabled {
  opacity: .5;
  cursor: default;
}
.workbench[data-editable="false"] .zettel-connections__card[data-expanded="true"] {
  resize: none;
}
.workbench__label {
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  min-height: 0;
  width: 320px;
}
.workbench__label .zettel-connections__focus {
  font-size: 1.5rem;
  font-weight: 700;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.workbench__label .zettel-connections__header {
  background: transparent;
  border: 0;
  align-items: center;
}
.workbench__label:is(:hover, :focus-within) {
  background: var(--surface);
  border-color: var(--border);
}
.workbench__label .zettel-connections__expand {
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  line-height: 1;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}
.workbench__label:hover .zettel-connections__expand, .workbench__label:focus-within .zettel-connections__expand {
  opacity: 1;
  pointer-events: auto;
}
.zettel-window {
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  color: var(--text-primary);
}
.zettel-window-document {
  height: 100%;
  min-width: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.zettel-window .zettel {
  box-shadow: none;
}
.zettel-window .zettel-body {
  border: 0;
  box-shadow: none;
}
.zettel-window .zettel-header, .zettel-window .zettel-content {
  width: 100%;
  max-width: 80ch;
  margin-inline: auto;
}
.zettel-window .pane--wide .zettel-header, .zettel-window .pane--wide .zettel-content {
  max-width: 112ch;
}
.zettel-window .zettel-header__content, .zettel-window .zettel-header__title-wrapper {
  min-width: 0;
  flex: 1;
}
.zettel-window .zettel-header__title {
  overflow-wrap: anywhere;
}
.zettel-window .zettel-header__perma-menu {
  flex-shrink: 0;
  opacity: 1;
  pointer-events: auto;
}
.zettel-window .zettel-floating-actions {
  right: max(1rem, calc((100% - 80ch) / 2 + 1rem));
}
.zettel-window .pane--wide .zettel-floating-actions {
  right: max(1rem, calc((100% - 112ch) / 2 + 1rem));
}
.zettel-window .zettel-overlay {
  left: max(0.5rem, calc((100% - 80ch) / 2 + 0.5rem));
  right: max(4rem, calc((100% - 80ch) / 2 + 4rem));
  max-width: none;
}
.zettel-window .pane--wide .zettel-overlay {
  left: max(0.5rem, calc((100% - 112ch) / 2 + 0.5rem));
  right: max(4rem, calc((100% - 112ch) / 2 + 4rem));
}
.zettel-window-launch {
  max-width: 40rem;
  margin-inline: auto;
  padding: 3rem 1.5rem;
}
.zettel-window-launch h1 {
  font-size: 2rem;
  font-weight: 600;
}
.zettel-window-launch p {
  margin-block: 1rem;
}
.utility-window {
  height: 100%;
  min-height: 0;
  position: relative;
}
.utility-window--jump {
  display: flex;
  flex-direction: column;
  padding-top: 1.25rem;
}
.utility-window--jump .jump-menu__heading {
  padding-right: 2rem;
}
.utility-window--jump .jump-menu__results {
  flex: 1;
  height: auto;
  max-height: none;
  transition: none;
}
.utility-window--jump :is(.jump-menu__heading, .jump-menu__input, .jump-menu__footer) {
  flex-shrink: 0;
}
.utility-window__close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  padding: .25rem .5rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.utility-window__close:focus-visible {
  outline: 2px solid var(--primary);
}
.utility-window--search .search-content {
  height: 100%;
  max-height: none;
}
.utility-window--search .search-content__body {
  flex: 1;
  height: auto;
}
.utility-window--search #search-results {
  display: block;
  min-height: 8rem;
}
@media (max-width: 540px) {
  .utility-window--search .search-content__body--selected {
    grid-template-columns: 1fr;
    grid-template-rows: 40% 60%;
  }
  .utility-window--search .search-content__list-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .utility-window--search .search-content__header {
    padding: .75rem;
  }
  .utility-window--search .search-content__input {
    font-size: 1rem;
  }
}
.perma-menu {
  margin-top: calc(var(--spacing) * 0);
  margin-right: calc(var(--spacing) * 0);
  font-size: var(--text-sm) !important;
}
.perma-menu__button--primary {
  --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  background-color: var(--primary);
  color: var(--primary-fg);
  border: 1px solid var(--surface);
  cursor: pointer;
  border-radius: calc(infinity * 1px);
  padding: calc(var(--spacing) * 2);
  font-size: var(--text-sm);
  &:hover {
    background-color: var(--primary-hover);
  }
}
.perma-menu__button--save {
  --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  background-color: var(--success);
  color: var(--success-fg);
  border: 1px solid var(--success-border);
  cursor: pointer;
  border-radius: calc(infinity * 1px);
  padding: calc(var(--spacing) * 2);
  font-size: var(--text-sm);
  &:hover {
    background-color: var(--success-hover);
  }
}
.perma-menu__button--outline {
  --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  border: 1px solid var(--border);
  color: var(--text-primary);
  background-color: var(--surface);
  cursor: pointer;
  border-radius: calc(infinity * 1px);
  padding: calc(var(--spacing) * 1);
}
.perma-menu__dropdown {
  font-size: var(--text-xs);
  background-color: var(--surface-overlay);
  color: var(--text-primary);
  border: 1px solid var(--border);
  position: absolute;
  right: calc(var(--spacing) * 0);
  z-index: 50;
  margin-top: calc(var(--spacing) * 2);
  overflow: hidden;
  border-radius: var(--radius-lg);
  --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  width: 14rem;
  max-width: calc(100vw - 2rem);
  transform-origin: 100% 0;
  a, button {
    display: block;
    padding: .7rem .85rem;
    font-size: var(--text-xs);
    line-height: 1.4;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
  }
  a:hover, button:hover, a:focus-visible, button:focus-visible {
    background-color: var(--primary-subtle);
    color: var(--primary);
  }
}
.perma-menu__group {
  padding: .4rem 0;
}
.perma-menu__group + .perma-menu__group {
  border-top: 1px solid var(--border);
}
.perma-menu__heading {
  padding: .25rem .85rem .2rem;
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.perma-menu__dropdown svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  color: var(--text-muted);
  stroke-width: 1.5;
}
.perma-menu__shortcut {
  border-radius: 0.25rem;
  padding-inline: calc(var(--spacing) * 1);
  padding-block: calc(var(--spacing) * 0);
  font-family: var(--font-mono);
  font-size: 10px;
  --tw-font-weight: var(--font-weight-medium);
  font-weight: var(--font-weight-medium);
  background-color: var(--surface-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  min-width: 1.25rem;
  text-align: center;
  line-height: 1.2;
}
.perma-menu__dropdown button:disabled {
  opacity: .6;
  cursor: wait;
}
.perma-menu__enter {
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}
.perma-menu__leave {
  transition: opacity 100ms ease-in, transform 100ms ease-in;
}
.perma-menu__collapsed {
  opacity: 0;
  transform: translateY(-.25rem) scale(.97);
}
.perma-menu__expanded {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .perma-menu__enter, .perma-menu__leave {
    transition: none;
  }
}
.perma-menu__switch {
  margin-left: auto;
  flex: none;
  width: 1.8rem;
  height: 1rem;
  border-radius: 1rem;
  background: var(--text-muted);
  padding: .15rem;
}
.perma-menu__switch::after {
  content: "";
  display: block;
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--surface);
}
[aria-checked="true"] .perma-menu__switch {
  background: var(--primary);
}
[aria-checked="true"] .perma-menu__switch::after {
  transform: translateX(.8rem);
}
.perma-menu__row {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  min-width: 0;
}
#pane-stack:has(> .pane) > div {
  display: none;
}
.pane-stack {
  display: flex;
  width: 100%;
  min-width: calc(var(--spacing) * 0);
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  @media (width >= 48rem) {
    margin-top: calc(var(--spacing) * 0);
  }
  @media (width >= 48rem) {
    margin-right: calc(var(--spacing) * 0);
  }
  @media (width >= 48rem) {
    margin-bottom: calc(var(--spacing) * 0);
  }
  background: transparent;
  scroll-behavior: smooth;
}
.pane {
  background-color: transparent;
  height: 100%;
  min-width: calc(var(--spacing) * 0);
  flex-shrink: 0;
  padding-bottom: calc(var(--spacing) * 0);
  @media (width >= 48rem) {
    margin-inline: calc(var(--spacing) * 0);
  }
  position: sticky;
  top: 0;
}
.pane:focus-visible {
  outline: none;
}
.pane-stack > .pane:has(> .zettel) {
  padding: 10px 6px;
}
.pane-stack > .pane > article.zettel {
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--border-subtle) 70%, var(--surface));
  }
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.18), 0 12px 28px rgb(0 0 0 / 0.24);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.pane-stack > .pane--focused > article.zettel {
  border-color: var(--primary);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--primary) 65%, var(--surface));
  }
  box-shadow: 0 0 0 1px var(--primary), 0 6px 14px rgb(0 0 0 / 0.24), 0 16px 40px rgb(0 0 0 / 0.32);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent), 0 6px 14px rgb(0 0 0 / 0.24), 0 16px 40px rgb(0 0 0 / 0.32);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pane-stack > .pane > .zettel {
    transition: none;
  }
}
.pane-stack > .pane > .zettel > .zettel-body {
  border-radius: inherit;
  border: 0;
  box-shadow: none;
}
.pane-stack > .pane > .zettel.zettel--more-above:not(:has(.zettel-body--edit))::before, .pane-stack > .pane > .zettel.zettel--more-below:not(:has(.zettel-body--edit))::after {
  content: "";
  position: absolute;
  height: 12px;
  z-index: 15;
  pointer-events: none;
}
.pane-stack > .pane > .zettel.zettel--more-below::after {
  inset: auto 0 0;
  background: linear-gradient(to bottom, transparent, var(--surface) 95%);
}
.pane-stack > .pane > .zettel.zettel--more-above::before {
  inset: var(--zettel-scroll-hint-top, 0px) 0 auto;
  background: linear-gradient(to bottom, var(--surface), transparent);
}
@keyframes zettel-slide-in {
  from {
    transform: translateY(1.5rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
turbo-frame.pane:has(.zettel) {
  animation: zettel-slide-in 400ms ease-out;
}
.zettel turbo-frame {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  turbo-frame.pane:has(.zettel) {
    animation: none;
  }
}
.pane--focused {
  .zettel {
    box-shadow: 0 0 0 0.5px var(--primary), 0 0 30px 8px rgba(0, 0, 0, 0.15);
  }
}
.pane--base {
  box-shadow: none;
}
.pane--resting .zettel__spine {
  display: none;
}
.pane--overlay .zettel__spine {
  display: none;
}
.pane--obscured .zettel__spine {
  display: flex;
}
.pane--base {
  margin-left: calc(var(--spacing) * 2) !important;
  border-right: 1px solid var(--border-subtle);
}
.pane:has(.zettel), .pane:has(> .loading-status), .pane:has(.zettel-body) {
  width: 100vw;
}
@media (min-width: 768px) {
  .pane:has(.zettel), .pane:has(> .loading-status), .pane:has(.zettel-body) {
    width: 625px;
    transition: width 240ms ease-in-out, min-width 240ms ease-in-out;
  }
  .pane.pane--wide {
    width: 940px;
    min-width: 940px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pane:has(.zettel), .pane:has(.zettel-body) {
    transition: none;
  }
}
@media (max-width: 767px) {
  .pane {
    position: relative;
    left: 0 !important;
    box-shadow: none;
    margin-block: calc(var(--spacing) * 0);
    padding: calc(var(--spacing) * 0);
  }
  .pane--focused {
    box-shadow: none;
  }
  .pane--obscured .zettel-body {
    visibility: visible;
  }
}
.pane--transparent {
  margin-right: calc(var(--spacing) * 0);
  border-radius: 0;
  background-color: transparent;
  padding-top: calc(var(--spacing) * 0);
  --tw-shadow: 0 0 #0000;
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.base_pane__nav {
  display: flex;
  :where(& > :not(:last-child)) {
    --tw-space-x-reverse: 0;
    margin-inline-start: calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse));
    margin-inline-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)));
  }
  margin-bottom: calc(var(--spacing) * 6);
  a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    --tw-font-weight: var(--font-weight-normal);
    font-weight: var(--font-weight-normal);
    font-size: var(--text-base);
  }
  a:hover {
    color: var(--primary);
    text-decoration-line: underline;
  }
  a.active {
    color: var(--primary);
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
    text-decoration-line: underline;
  }
  a .lucide {
    height: calc(var(--spacing) * 5);
    width: calc(var(--spacing) * 5);
    padding-right: calc(var(--spacing) * 1);
  }
}
.settings-pane {
  display: flex;
  height: 100%;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  width: 100vw;
  @media (width >= 48rem) {
    width: 700px;
  }
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 95vh;
}
.settings-pane--index {
  @media (width >= 48rem) {
    width: 320px;
  }
}
.settings-pane__header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: calc(var(--spacing) * 2);
  padding-inline: calc(var(--spacing) * 4);
  padding-block: calc(var(--spacing) * 3);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--surface);
  position: sticky;
  top: calc(var(--spacing) * 0);
  z-index: 10;
}
.settings-pane__title {
  color: var(--text-primary);
  font-size: var(--text-lg);
  line-height: var(--tw-leading, var(--text-lg--line-height));
  --tw-font-weight: var(--font-weight-semibold);
  font-weight: var(--font-weight-semibold);
}
.settings-pane__content {
  padding: calc(var(--spacing) * 2);
  padding-inline: calc(var(--spacing) * 4);
}
.settings-pane--index .settings-pane__content {
  :where(& > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
  }
  padding: calc(var(--spacing) * 2);
}
.settings-dialog__input {
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 0.375rem;
  color: var(--text-primary);
  font-size: 0.875rem;
}
.settings-dialog__input:focus {
  outline: 2px solid var(--input-focus-ring);
  outline-offset: 1px;
}
.settings-dialog__save {
  padding: 0.6rem 1rem;
  border-radius: 0.375rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.875rem;
  cursor: pointer;
}
.settings-dialog__save:hover {
  background: var(--primary-hover);
}
.zettel-type-form__fields {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.zettel-type-form__icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  cursor: pointer;
}
.zettel-type-form__icons {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  width: 17rem;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 6px 24px #0002;
}
.zettel-types-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.zettel-type {
  border: 1px solid var(--border-subtle);
  border-radius: 0.375rem;
  background: var(--surface);
}
.zettel-type:hover {
  border-color: var(--primary);
}
.zettel-type__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
}
.zettel-type__handle {
  color: var(--text-muted);
  cursor: grab;
  flex-shrink: 0;
}
.zettel-type__handle:active {
  cursor: grabbing;
}
.zettel-type__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: 0.25rem;
}
.zettel-type__name {
  font-weight: 500;
  color: var(--text-primary);
}
.zettel-type__slug {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface-secondary);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
}
.zettel-type__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.zettel-type__count {
  color: var(--text-muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-right: .5rem;
}
.zettel-type__action {
  display: flex;
  align-items: center;
  padding: 0.375rem;
  border-radius: 0.25rem;
  color: var(--text-muted);
  cursor: pointer;
}
.zettel-type__action:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}
.zettel-type__action--delete:hover {
  color: var(--danger);
}
.zettel-type__editor {
  padding: 0;
}
.zettel-type__row[hidden] {
  display: none;
}
.zettel-type__editor .zettel-type-form {
  border: 0;
  margin: 0;
  border-radius: inherit;
}
.zettel-types-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.875rem;
  border: 2px dashed var(--border);
  border-radius: 0.25rem;
  color: var(--text-muted);
  cursor: pointer;
}
.zettel-types-add:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.zettel-type.is-dragging {
  opacity: 0.5;
}
.zettel-type.is-drop-target {
  border-color: var(--primary);
  box-shadow: 0 -2px 0 var(--primary);
}
.zettel-type-form {
  display: flex;
  gap: 0.75rem;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.75rem;
  border: 1px solid var(--primary);
  border-radius: 0.25rem;
  background: var(--primary-subtle);
}
.zettel-type-form .zettel-type-form__fields {
  flex: 1;
  min-width: 15rem;
}
.zettel-type-form__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.zettel-type-form__cancel {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text-secondary);
  background: var(--surface);
  font-size: 0.875rem;
  cursor: pointer;
}
.zettel-type-form__options {
  flex-basis: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
}
[data-type-editor][hidden], [data-zettel-types-target="newButton"][hidden] {
  display: none;
}
.main-content {
  position: relative;
}
.settings-workspace-frame {
  overflow: hidden;
  position: absolute;
  inset: 0;
  z-index: 40;
  display: block;
  background: var(--app-bg);
}
.settings-workspace-frame[hidden], .settings-workspace [hidden] {
  display: none !important;
}
.settings-workspace-frame[busy]:empty::before {
  content: "Loading settings…";
  display: block;
  padding: 2rem;
}
.settings-workspace-frame, .settings-workspace turbo-frame {
  animation: none;
}
@keyframes settings-slide-in {
  from {
    transform: translateY(-1.5rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.settings-workspace {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: var(--app-bg);
  animation: settings-slide-in 250ms ease-out;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .settings-workspace {
    animation: none;
  }
}
.settings-workspace__navigation.settings-pane {
  flex: 0 0 281px;
  width: 281px;
  height: 100%;
  max-height: none;
  box-shadow: none;
  border: 0;
  border-right: 1px solid var(--border-subtle);
}
.settings-workspace__navigation .settings-pane__header {
  flex-shrink: 0;
  margin-bottom: 0;
}
.settings-workspace__navigation [role=tablist] {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  padding: .5rem;
}
.settings-workspace__navigation [role=tab][aria-selected=true] {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.settings-workspace__navigation [role=tab][aria-selected=true] > div:first-child {
  background: var(--primary);
  color: var(--primary-fg);
}
.settings-workspace__navigation [role=tab][aria-selected=true] span {
  color: var(--primary);
}
.settings-workspace__panes {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.settings-workspace__pane {
  height: 100%;
  min-height: 0;
  width: min(100%, 46rem);
}
.settings-workspace__pane > turbo-frame {
  display: block;
  height: 100%;
}
.settings-workspace__pane .settings-pane {
  width: 100%;
  height: 100%;
  max-height: none;
  box-shadow: none;
  border-block: 0;
  border-left: 0;
}
.settings-workspace__pane .settings-pane {
  min-height: 0;
  overflow: hidden;
}
.settings-workspace__pane .settings-pane__header {
  flex-shrink: 0;
}
.settings-workspace__pane .settings-pane__content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.settings-workspace__close {
  display: inline-flex;
  padding: .35rem;
  border-radius: .375rem;
}
.settings-workspace__close:hover {
  background: var(--surface-hover);
}
.box-navigation__settings[aria-expanded=true] {
  background: var(--primary-subtle);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
@media (max-width: 767px) {
  .settings-workspace__navigation.settings-pane {
    flex-basis: 12rem;
    width: 12rem;
  }
}
.settings-workspace__card {
  background: var(--surface);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.settings-workspace__card > div:first-child {
  background: var(--primary-subtle);
  color: var(--primary);
}
.settings-workspace__card:hover {
  border-color: var(--primary);
}
#workspace-content {
  height: 100%;
  min-height: 0;
  overflow: auto;
}
.settings-workspace__embedded {
  display: block;
  height: 100%;
  overflow: auto;
  background: var(--surface);
}
.settings-workspace__embedded > main {
  min-height: 0;
  display: block;
  margin: 0;
  padding: 1.5rem;
}
.settings-workspace__embedded > main > section {
  max-width: none;
}
.zettel-types-create {
  margin-bottom: .75rem;
}
.zettel-types-create .zettel-types-add {
  margin-top: 0;
}
.settings-workspace__description {
  display: block;
  margin-top: .2rem;
  font-size: .75rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.5rem;
  border-radius: .75rem;
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.profile-form__avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.profile-form__avatar {
  display: grid;
  place-items: center;
  width: 8rem;
  height: 8rem;
  overflow: hidden;
  border: var(--avatar-border-width, 3px) solid var(--border-subtle);
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--text-link);
  font-size: 3rem;
}
.profile-form__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-form__avatar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.profile-form__upload, .profile-form__save {
  background: var(--primary);
  color: var(--primary-fg);
  padding: .6rem 1rem;
  border-radius: .4rem;
  font-size: .875rem;
  cursor: pointer;
}
.profile-form__upload:hover, .profile-form__save:hover {
  background: var(--primary-hover);
}
.profile-form__remove {
  color: var(--danger);
  font-size: .875rem;
  cursor: pointer;
}
.profile-form__remove:hover {
  text-decoration: underline;
}
.profile-form__hint {
  margin-top: .35rem;
  color: var(--text-muted);
  font-size: .75rem;
}
.profile-form__avatar-section .profile-form__hint {
  text-align: center;
}
.profile-form__field label {
  display: block;
  margin-bottom: .5rem;
  color: var(--text-secondary);
  font-size: .875rem;
}
.profile-form__field input {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--input-border);
  border-radius: .4rem;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: .875rem;
}
.profile-form__field input:disabled {
  background: var(--input-disabled-bg);
  color: var(--text-muted);
}
.profile-form :is(input, button):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.profile-form__save:disabled {
  opacity: .6;
  cursor: wait;
}
.hub__management {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.hub__management h2 {
  font-size: 1rem;
  font-weight: 600;
}
.hub__management p {
  color: var(--text-muted);
  margin: .5rem 0 1rem;
  font-size: var(--text-sm);
}
.hub__management .hub__new {
  display: inline-flex;
  width: max-content;
}
.node-people__card {
  border: 1px solid var(--border-subtle);
  border-radius: .6rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--surface);
}
.node-people__card summary {
  cursor: pointer;
  font-size: var(--text-sm);
}
.node-people__card p, .node-people__hint {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: .5rem;
}
.node-people__identity {
  display: flex;
  gap: .75rem;
  align-items: center;
}
.node-people__identity small {
  display: block;
  color: var(--text-muted);
}
.node-people__avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-subtle);
  color: var(--text-link);
  flex-shrink: 0;
}
.node-people__form {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-block: 1rem;
  font-size: var(--text-sm);
}
.node-people__form :is(input:not([type=submit]),select), .node-people__access-row select, .node-people__copy input {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: .4rem;
  padding: .5rem .65rem;
  background: var(--input-bg);
  color: var(--text-primary);
}
.node-people__form :is(input,select):focus-visible, .node-people__access-row select:focus-visible {
  outline: 2px solid var(--input-focus-ring);
  outline-offset: 2px;
}
.node-people__form input[type=submit] {
  align-self: start;
}
.node-people__access-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
}
.node-people__access-row select {
  flex: 1;
}
.node-people__secondary {
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: .4rem;
  color: var(--text-primary);
  background: var(--surface);
  font-size: var(--text-xs);
  cursor: pointer;
}
.node-people__copy {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: 1rem;
}
.node-people__copy input {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-mono);
}
#node-people .profile-form {
  margin-top: 1rem;
}
.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1rem;
  flex-shrink: 0;
}
.timeline__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--text-muted);
  box-shadow: 0 0 0 2px var(--color-bg);
  flex-shrink: 0;
  margin: 0.25rem 0;
}
.box-dropdown header:first-child {
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}
.box-dropdown header {
  margin-top: calc(var(--spacing) * 2);
}
.box-list .active {
  --tw-font-weight: var(--font-weight-bold);
  font-weight: var(--font-weight-bold);
  border-left: 2px solid var(--primary);
  background-color: var(--primary-subtle);
}
dialog.dialog {
  --dialog-width: 50ch;
  --dialog-padding: 1.5rem;
  --dialog-radius: 0.5rem;
  position: fixed;
  inset: 0;
  margin: auto;
  background-color: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--dialog-radius);
  padding: 0;
  inline-size: var(--dialog-width);
  max-inline-size: calc(100dvw - 2rem);
  max-height: 80dvh;
  overflow: hidden;
  &[open] {
    animation: dialogPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  &::backdrop {
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100% );
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s ease-out;
  }
  &[open]::backdrop {
    opacity: 1;
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="paper"]) dialog.dialog::backdrop {
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100% );
  }
}
[data-theme="dark"] dialog.dialog::backdrop {
  background: linear-gradient( 180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100% );
}
dialog.dialog--small {
  --dialog-width: 30ch;
}
dialog.dialog--large {
  --dialog-width: 70ch;
}
dialog.dialog--wide {
  --dialog-width: 90vw;
  max-width: 80ch;
}
.dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--dialog-padding);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.dialog__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.dialog__content {
  padding: var(--dialog-padding);
  overflow-y: auto;
  max-height: calc(80dvh - 6rem);
}
.dialog__close-form {
  display: inline-flex;
}
.dialog__close-form--absolute {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
}
.dialog__close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
  &:hover {
    color: var(--text-primary);
    background-color: var(--surface-hover);
  }
  &:focus {
    outline: 2px solid var(--input-focus-ring);
    outline-offset: 2px;
  }
}
@keyframes dialogPopIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
dialog.dialog--shortcuts {
  --dialog-width: 56rem;
  max-height: 90dvh;
  border-radius: .75rem;
}
dialog.dialog--shortcuts-home {
  --dialog-width: 34rem;
}
dialog.dialog--shortcuts .dialog__header {
  padding: 1.5rem 2rem .5rem;
  border-bottom: 0;
}
dialog.dialog--shortcuts .dialog__title {
  font-size: var(--text-lg);
  font-weight: 700;
}
dialog.dialog--shortcuts .dialog__content {
  padding: 0;
  max-height: calc(90dvh - 5rem);
}
.shortcuts-dialog__sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 2.5rem;
  padding: 1rem 2rem 1.5rem;
}
.shortcuts-dialog__column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}
.shortcuts-dialog__section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 .5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.shortcuts-dialog__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.125rem;
  padding: .25rem 0;
}
.shortcuts-dialog__row--separated {
  border-top: 1px solid var(--border-subtle);
  padding-top: .85rem;
  margin-top: .65rem;
}
.shortcuts-dialog__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.shortcuts-dialog__label small {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.shortcuts-dialog__keys {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.shortcuts-dialog__key-sep {
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: 0 .125rem;
}
.shortcuts-dialog__kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .2rem .5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: .3rem;
  box-shadow: 0 1px 0 var(--border-subtle);
  min-width: 1.75rem;
  line-height: 1.4;
}
.shortcuts-dialog__footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: var(--text-xs);
}
.shortcuts-dialog__preference {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .6rem;
  cursor: pointer;
}
.shortcuts-dialog__preference input {
  accent-color: var(--primary);
}
.shortcuts-dialog__footer-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.shortcuts-dialog__footer-keys > span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
@media (max-width: 650px) {
  .shortcuts-dialog__sheet {
    gap: 1.5rem;
    padding-inline: 1.25rem;
  }
}
dialog.dialog--search {
  --dialog-width: 1200px;
  inset: min(10dvh, 5rem) 0 auto;
  margin: 0 auto;
  border-radius: 1rem;
  max-height: 82dvh;
}
dialog.dialog--search .dialog__content {
  padding: 0;
  max-height: none;
  overflow: hidden;
}
dialog.dialog--search > .dialog__close-form {
  display: none;
}
.search-content {
  display: flex;
  flex-direction: column;
  max-height: 82dvh;
}
.search-content__header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.search-content__form {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.search-content__input-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
}
.search-content__search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--primary);
}
.search-content__input {
  width: 100%;
  min-width: 0;
  padding: .65rem .5rem .65rem 2.5rem;
  font-size: 1.25rem;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: .375rem;
}
.search-content__input:focus {
  box-shadow: none;
}
.search-content__input:focus-visible {
  outline: 2px solid var(--input-focus-ring);
  outline-offset: 2px;
}
.search-content__input::placeholder {
  color: var(--text-muted);
}
.search-content__clear, .search-content__close {
  flex-shrink: 0;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  cursor: pointer;
}
.search-content__scope {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .75rem 0 0;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.search-content__scope svg {
  width: 1rem;
  height: 1rem;
}
.search-content__body {
  min-height: 0;
  overflow: hidden;
}
.search-content__body--selected {
  display: grid;
  grid-template-columns: 45% 55%;
  height: min(66dvh, 700px);
}
.search-content__list-panel {
  overflow-y: auto;
  min-height: 0;
}
.search-content__body--selected .search-content__list-panel {
  border-right: 1px solid var(--border-subtle);
}
.search-content__results {
  padding: .75rem .65rem 1rem;
}
.search-content__section-title {
  padding: .25rem .75rem .75rem;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 400;
}
.search-result {
  position: relative;
  border-radius: .5rem;
  margin-bottom: .75rem;
}
.search-result[aria-selected="true"] > .zettel-summary {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.search-result[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.search-result:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.search-result__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: .35rem;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.search-match {
  background: color-mix(in srgb, #c9a227 45%, transparent);
  color: var(--text-primary);
  border-radius: 2px;
}
.search-content__empty, .search-content__hints {
  padding: 2rem 1.5rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.search-content__empty p + p {
  margin-top: .75rem;
}
.search-content__empty button {
  text-decoration: underline;
  cursor: pointer;
}
.search-content__preview-panel {
  display: none;
  min-width: 0;
  min-height: 0;
}
.search-content__body--selected .search-content__preview-panel {
  display: block;
}
.search-preview {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.search-preview__open-btn {
  display: inline-flex;
  padding: .5rem .75rem;
  font-size: var(--text-xs);
  color: var(--primary-fg);
  background: var(--primary);
  border-radius: .4rem;
  text-decoration: none;
}
.search-preview__open-btn:hover {
  background: var(--primary-hover);
}
.search-preview__passage {
  margin-bottom: 1rem;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.search-preview__excerpt {
  border-left: 2px solid var(--primary);
  padding-left: .75rem;
  margin-bottom: 1rem;
}
.search-content__footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
  padding: .75rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.search-content kbd {
  font: inherit;
  border: 1px solid var(--border-subtle);
  border-radius: .25rem;
  padding: .1rem .3rem;
}
@media (max-width: 640px) {
  .search-content__body--selected {
    grid-template-columns: 42% 58%;
  }
  .search-content__header {
    padding: 1rem;
  }
  .search-content__footer {
    gap: .5rem;
    padding: .75rem;
  }
}
.media-preview__iframe {
  width: 100%;
  height: 75vh;
  border: none;
  display: block;
}
.media-preview__image {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  margin: 0 auto;
}
.shortcut-hint {
  margin-left: auto;
  padding-left: .75rem;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.zettel-transfer {
  padding: 1.25rem;
}
.zettel-transfer__description {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: .5rem;
  background: var(--surface-secondary);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.zettel-transfer__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--primary);
}
.zettel-transfer__form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.zettel-transfer select {
  width: 100%;
  padding: .65rem;
  border: 1px solid var(--border-subtle);
  border-radius: .4rem;
  background: var(--input-bg);
  color: var(--text-primary);
}
.zettel-transfer__hint {
  margin-top: .4rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.zettel-transfer__actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: .75rem;
}
.zettel-transfer__cancel, .zettel-transfer__confirm {
  padding: .55rem .85rem;
  border: 1px solid var(--border-subtle);
  border-radius: .4rem;
}
.zettel-transfer__confirm {
  background: var(--primary);
  color: var(--primary-fg);
  cursor: pointer;
}
.zettel-transfer__confirm:disabled {
  opacity: .6;
  cursor: wait;
}
dialog.dialog--jump {
  --dialog-width: 42rem;
  margin-block-start: 4dvh;
  max-height: 92dvh;
}
.dialog--jump .dialog__content {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 0 0;
  overflow: hidden;
  max-height: 92dvh;
}
.dialog--jump :is(.jump-menu__heading, .jump-menu__input, .jump-menu__footer) {
  flex-shrink: 0;
}
.jump-menu__heading {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 1.25rem .75rem;
  font-size: .8rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.jump-menu__heading svg {
  width: 1rem;
  height: 1rem;
}
.jump-menu__input[type="text"] {
  display: block;
  width: calc(100% - 2.5rem);
  margin: 0 1.25rem 1rem;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1.15rem;
  box-shadow: none;
}
.jump-menu__input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.jump-menu__results {
  flex: 0 1 auto;
  min-height: 0;
  height: var(--jump-compact-height, 8rem);
  max-height: max(6rem, calc(92dvh - 11rem));
  overflow: auto;
  padding: .35rem .5rem;
  border-top: 1px solid var(--border-subtle);
  transition: height .24s cubic-bezier(.22, 1, .36, 1);
}
.dialog--jump[data-expanded="true"] .jump-menu__results {
  height: max(6rem, calc(92dvh - 11rem));
}
.jump-menu__group + .jump-menu__group {
  margin-top: .65rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border-subtle);
}
.jump-menu__group-heading {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  color: var(--text-secondary);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.jump-menu__group-heading > span {
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
}
.jump-menu__result {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .75rem;
  border-radius: .4rem;
  color: var(--text-primary);
  text-decoration: none;
}
.jump-menu__result[aria-selected="true"] {
  background: var(--primary-subtle);
  outline: 1px solid var(--border-active);
  outline-offset: -1px;
}
.jump-menu__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: .4rem;
  color: var(--text-secondary);
}
.jump-menu__glyph svg {
  width: 1.1rem;
  height: 1.1rem;
}
.jump-menu__result--box .jump-menu__glyph {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--border-subtle);
}
.jump-menu__result--box .jump-menu__label {
  font-weight: 650;
}
.jump-menu__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jump-menu__result.zettel-identity-link {
  max-width: none;
}
.jump-menu__result > .zettel-identity-link__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jump-menu__scope {
  max-width: 35%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
  color: var(--text-muted);
}
.jump-menu__footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .7rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: .7rem;
}
.jump-menu__footer kbd {
  font-family: inherit;
  margin-inline: .2rem;
}
.jump-menu__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 100%;
  color: var(--text-muted);
  text-align: center;
  font-size: .875rem;
}
.jump-menu__empty svg {
  width: 2rem;
  height: 2rem;
}
.jump-menu__row {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.jump-menu__row + .jump-menu__row {
  margin-top: .35rem;
}
.jump-menu__row > .jump-menu__result {
  flex: 1;
  min-width: 0;
}
.jump-menu__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  margin-right: .5rem;
  border-radius: .4rem;
  color: var(--text-muted);
  cursor: pointer;
}
.jump-menu__pin svg {
  width: 1rem;
  height: 1rem;
}
.jump-menu__pin[aria-pressed="true"], .jump-menu__pin:hover {
  color: var(--primary);
  background: var(--primary-subtle);
}
.jump-menu__pin:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.jump-menu__pin:disabled {
  opacity: .5;
  cursor: wait;
}
@media (prefers-reduced-motion: reduce) {
  .jump-menu__results {
    transition: none;
  }
  dialog.dialog--jump[open] {
    animation: none;
  }
}
.loading-status {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  height: 100%;
}
.loading-status, .search-preview[aria-busy="true"] {
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.loading-status::before, .search-preview[aria-busy="true"]::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: content-loading-spin .8s linear infinite;
}
@keyframes content-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-status::before, .search-preview[aria-busy="true"]::before {
    animation: none;
  }
}
.attachment__caption {
  margin-inline: auto;
  text-align: center;
}
.attachment__size {
  color: var(--text-disabled);
}
.attachment--preview > .attachment__caption > .attachment__download {
  display: flex;
  align-items: center;
  justify-content: center;
  :where(& > :not(:last-child)) {
    --tw-space-x-reverse: 0;
    margin-inline-start: calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));
    margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)));
  }
}
.attachment--file > .attachment__caption > .attachment__download {
  display: flex;
  align-items: center;
  :where(& > :not(:last-child)) {
    --tw-space-x-reverse: 0;
    margin-inline-start: calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));
    margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)));
  }
}
.attachment__container {
  cursor: pointer;
}
.zettel-prose .tiptap-attachment {
  position: relative;
  margin: 1.5em 0;
  padding: .75rem;
  border: 1px solid var(--border-subtle);
  border-radius: .5rem;
}
.zettel-prose .tiptap-attachment img {
  margin: 0 auto;
  max-height: 36rem;
  object-fit: contain;
}
.tiptap-attachment figcaption {
  margin: .5rem 0 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: .875rem;
}
.tiptap-attachment figcaption:empty {
  display: none;
}
.tiptap-attachment textarea {
  display: block;
  width: 100%;
  resize: none;
  overflow: hidden;
  border: 0;
  background: transparent;
  text-align: center;
  color: inherit;
  font: inherit;
  min-height: 1.8em;
}
.tiptap-attachment textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.zettel-prose .tiptap-attachment__pdf {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: .65rem;
  background: var(--surface);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 550;
  transition: background .15s, border-color .15s;
}
.zettel-prose .tiptap-attachment__pdf:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  text-decoration: none;
}
.tiptap-attachment__pdf:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.tiptap-attachment__badge {
  color: var(--primary);
  font-size: .7rem;
  font-weight: 700;
  border: 1px solid currentColor;
  border-radius: .2rem;
  padding: .15rem .3rem;
  flex: none;
}
.tiptap-attachment__filename {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tiptap-attachment__arrow {
  color: var(--text-secondary);
  flex: none;
  font-size: 1.35rem;
}
.zettel-prose .tiptap-attachment[data-attachment-type="pdf"] {
  padding: 0;
  border: 0;
}
.tiptap-attachment[data-attachment-type="pdf"] figcaption {
  padding-inline: .75rem;
}
.tiptap-attachment video {
  display: block;
  width: 100%;
  max-height: 36rem;
  border-radius: .4rem;
  background: #161616;
}
.tiptap-attachment[data-attachment-type="video"] figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .25rem .5rem;
}
.tiptap-attachment[data-attachment-type="video"] figcaption > span:empty {
  display: none;
}
.tiptap-attachment[data-attachment-type="video"] figcaption textarea {
  flex: 1 1 12rem;
  width: auto;
  min-width: 0;
}
.tiptap-attachment__download {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  flex: none;
  margin: 0;
  font-size: .8rem;
}
.tiptap-attachment__download svg {
  width: 1em;
  height: 1em;
  flex: none;
}
.media-preview__content {
  padding: 0;
  overflow: hidden;
}
.media-preview__footer {
  padding: .65rem 1.25rem;
  text-align: right;
}
.media-preview__footer a {
  color: var(--primary);
  text-decoration: underline;
}
.tiptap-attachment.ProseMirror-selectednode {
  outline: 2px solid var(--primary);
}
.tiptap-attachment__remove {
  position: absolute;
  top: .25rem;
  right: .25rem;
  width: 2rem;
  height: 2rem;
  border-radius: .3rem;
  background: var(--surface-hover);
  color: var(--text-primary);
  font-size: 1.5rem;
  opacity: .55;
  cursor: pointer;
}
.tiptap-attachment:hover .tiptap-attachment__remove, .tiptap-attachment:focus-within .tiptap-attachment__remove, .tiptap-attachment.ProseMirror-selectednode .tiptap-attachment__remove {
  opacity: 1;
}
dialog.dialog--media-preview {
  --dialog-width: min(1100px, calc(100dvw - 3rem));
  max-width: 1100px;
  height: min(900px, calc(100dvh - 3rem));
  max-height: calc(100dvh - 3rem);
}
.dialog--media-preview[open] {
  display: flex;
  flex-direction: column;
}
.dialog--media-preview .dialog__header, .dialog--media-preview .media-preview__footer {
  flex: none;
}
.dialog--media-preview .dialog__content {
  flex: 1;
  min-height: 0;
  max-height: none;
}
.dialog--media-preview .media-preview__iframe {
  height: 100%;
}
.native-editor-content .tiptap-attachment__pdf {
  padding-right: 3.5rem;
}
.tiptap-attachment__image-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.tiptap-attachment__image-preview:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: .25rem;
}
.zbackdrop {
  position: absolute;
  inset: calc(var(--spacing) * 0);
}
.zbackdrop__wrapper {
  position: absolute;
  inset: calc(var(--spacing) * 0);
  img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}
.zbackdrop--rounded-lg .zbackdrop {
  border-radius: var(--radius-lg);
}
.zbackdrop--rounded-lg img {
  border-radius: var(--radius-lg);
}
.zbackdrop--purple {
  background-color: var(--primary);
  --tw-gradient-position: to right in oklab;
  background-image: linear-gradient(var(--tw-gradient-stops));
  --tw-gradient-from: color-mix(in oklab, var(--tyrian-deep) 30%, transparent);
  --tw-gradient-to: color-mix(in oklab, var(--tyrian-royal) 40%, 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));
}
.zbackdrop--dark {
  --tw-gradient-position: to right in oklab;
  background-image: linear-gradient(var(--tw-gradient-stops));
  --tw-gradient-from: var(--tyrian-charcoal);
  --tw-gradient-to: color-mix(in oklab, var(--tyrian-charcoal) 40%, 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));
}
.zettel-list {
  :where(& > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
  }
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: calc(var(--spacing) * 2);
  padding-left: calc(var(--spacing) * 2);
  padding-top: calc(var(--spacing) * 2);
  max-height: calc(93vh);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.zettel-list__item {
  background-color: var(--surface);
  --tw-font-weight: var(--font-weight-normal);
  font-weight: var(--font-weight-normal);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  cursor: pointer;
  border-radius: var(--radius-lg);
  --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  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));
  --tw-duration: 150ms;
  transition-duration: 150ms;
  --tw-ease: var(--ease-in-out);
  transition-timing-function: var(--ease-in-out);
}
.zettel-list__item__link {
  height: 2.4rem;
  :where(& > :not(:last-child)) {
    --tw-space-x-reverse: 0;
    margin-inline-start: calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));
    margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)));
  }
  padding-right: calc(var(--spacing) * 6);
  padding-left: calc(var(--spacing) * 3);
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zettel-list__item__link:hover {
  background-color: var(--primary-subtle);
}
.zettel-list__item__icon {
  margin-right: calc(var(--spacing) * 0);
  height: 16px;
  flex-shrink: 0;
  stroke-width: 1;
}
.zettel-list__item__avatar {
  flex-shrink: 0;
  img {
    height: calc(var(--spacing) * 6);
    width: calc(var(--spacing) * 6);
    border-radius: calc(infinity * 1px);
    object-fit: cover;
  }
}
.zettel-list__item__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  --tw-font-weight: var(--font-weight-normal);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
}
.zettel-list__item__description {
  font-size: 8px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zettel-list__item.active {
  border-left: 2px solid var(--primary);
  background-color: var(--surface);
}
.zettel-list__item.active .zettel-list__item__title {
  --tw-font-weight: var(--font-weight-bold);
  font-weight: var(--font-weight-bold);
}
.zettel-list__item.active.has-backdrop {
  border-left: 2px solid var(--primary);
}
.zettel-list__item.has-backdrop {
  color: var(--primary-fg) !important;
  margin-top: calc(var(--spacing) * 1);
  --tw-border-style: none !important;
  border-style: none !important;
  --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1)) !important;
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) !important;
}
.zettel-list__item.has-backdrop .zettel-list__item__link {
  border-radius: inherit;
}
.zettel-list__item.has-backdrop .zettel-list__item__link:is(:hover, :focus-visible) {
  background-color: rgb(0 0 0 / 35%);
}
.zettel-list__item:has(.zettel-list__item--backdrop) a {
  color: var(--primary-fg);
  --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1)) !important;
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) !important;
}
.zettel-list__item.has-backdrop .zettel-list__item__title {
  color: var(--primary-fg) !important;
}
.zettel-list__item.has-backdrop .zettel-list__item__description {
  color: var(--primary-fg) !important;
}
.zettel-list__item.has-backdrop .zettel-list__item__icon {
  color: var(--primary-fg) !important;
}
.zettel-list__group-label {
  list-style-type: none;
  padding-block: calc(var(--spacing) * 1);
  font-size: var(--text-xs);
  line-height: var(--tw-leading, var(--text-xs--line-height));
  --tw-font-weight: var(--font-weight-semibold);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  color: var(--text-muted);
  background-color: var(--surface-secondary);
  margin-top: calc(var(--spacing) * 1);
  margin-bottom: calc(var(--spacing) * 1);
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 2);
}
.zettel-list__group-label:first-child {
  margin-top: calc(var(--spacing) * 0);
}
.zettel-list__group-label__text {
  --tw-tracking: var(--tracking-wide);
  letter-spacing: var(--tracking-wide);
}
.zettel-list__group-label__icon {
  height: 16px;
  flex-shrink: 0;
  stroke-width: 1;
  color: var(--text-muted);
}
.zettel-list__group-toggle {
  display: flex;
  align-items: center;
  gap: .375rem;
  width: 100%;
  text-align: left;
  font: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.zettel-list__group-chevron {
  width: .875rem;
  height: .875rem;
  flex-shrink: 0;
  transition: transform 150ms;
}
.zettel-list__group-toggle[aria-expanded="false"] .zettel-list__group-chevron {
  transform: rotate(-90deg);
}
.zettel {
  display: flex;
  flex-direction: column;
  @media (width >= 48rem) {
    margin-left: calc(var(--spacing) * 0);
  }
  position: relative;
  overflow: hidden;
  height: 100%;
  box-shadow: 0px 0px 8px 3px rgba(0, 0, 0, 0.1);
}
.zettel__spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--surface);
  padding-top: calc(var(--spacing) * 2);
  cursor: pointer;
}
@media (max-width: 767px) {
  .zettel__spine {
    display: none !important;
  }
}
.zettel__spine-label {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  font-size: 17px;
  line-height: 40px;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(100% - 3.5rem);
  min-height: 0;
  flex-shrink: 1;
  padding: 8px 0;
}
.zettel__spine .zettel__spine-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: horizontal-tb;
  transform: none;
  flex: none;
  width: 28px;
  height: 28px;
  margin: 8px 0 0;
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
}
.zettel__spine-type > span {
  display: none;
}
.zettel__spine-type .zettel-header__type-icon {
  width: 18px;
  height: 18px;
}
.app.app--public .zettel-body {
  max-height: calc(100dvh - 0.2rem) !important;
}
.zettel-body {
  border: 1px solid var(--border-subtle);
  --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  background-color: var(--surface);
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  position: relative;
  z-index: 10;
  height: 100%;
  min-height: 0;
}
.zettel-header {
  position: sticky;
  top: calc(var(--spacing) * 0);
  z-index: 10;
  background-color: var(--surface);
  padding-top: calc(var(--spacing) * 4);
  padding-bottom: calc(var(--spacing) * 4);
  margin-bottom: calc(var(--spacing) * 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zettel-header__wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zettel-header__content {
  padding-inline: calc(var(--spacing) * 6);
  z-index: 20;
  display: flex;
  align-items: center;
  :where(& > :not(:last-child)) {
    --tw-space-x-reverse: 0;
    margin-inline-start: calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));
    margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)));
  }
}
.zettel-header__avatar {
  height: calc(var(--spacing) * 12);
  width: calc(var(--spacing) * 12);
  border-radius: calc(infinity * 1px);
}
.zettel-header__cta {
  font-size: var(--text-sm);
  color: var(--primary-fg) !important;
  background-color: var(--secondary);
  border-radius: var(--radius-md);
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
  margin-top: calc(var(--spacing) * 2);
  padding-inline: calc(var(--spacing) * 2);
  padding-block: calc(var(--spacing) * 1);
  display: inline-block;
  text-decoration-line: none !important;
  &:hover {
    background-color: var(--secondary-hover);
  }
}
.zettel-header__perma-menu {
  opacity: 0%;
  pointer-events: none;
  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));
  --tw-duration: 300ms;
  transition-duration: 300ms;
  --tw-ease: var(--ease-in-out);
  transition-timing-function: var(--ease-in-out);
  z-index: 10;
  margin-right: calc(var(--spacing) * 4) !important;
}
.zettel:is(:hover, :focus-within) .zettel-header__perma-menu, .zettel-header__perma-menu:has([aria-expanded="true"]), .zettel-header__perma-menu:has(.perma-menu__button--save) {
  opacity: 1;
  pointer-events: auto;
}
.zettel-header__content.has-backdrop .zettel-header__title {
  color: var(--primary-fg) !important;
}
.zettel-header__content.has-backdrop .zettel-header__description {
  color: var(--primary-fg) !important;
}
.zettel-header__title {
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}
.zettel-header__description {
  color: var(--text-muted);
  font-style: italic;
  font-size: var(--text-sm);
}
.zettel-header--size--small {
  min-height: 2.5rem !important;
}
.zettel-header--size--medium {
  min-height: 6rem !important;
}
.zettel-header--size--large {
  min-height: 8.5rem !important;
}
.zettel-content {
  font-size: var(--text-sm);
  color: var(--text-primary);
  padding-inline: calc(var(--spacing) * 6);
  padding-bottom: calc(var(--spacing) * 6);
  height: max-content;
}
.zettel-body.zettel-body--edit, .zettel-body:has(> .zettel-body--edit) {
  overflow: hidden;
}
.zettel-edit-scrollable {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.zettel-body--edit .zettel-header {
  padding-inline: calc(var(--spacing) * 8);
  background-color: var(--surface);
  input[type='text'] {
    margin: calc(var(--spacing) * 0);
    padding: calc(var(--spacing) * 0);
    width: 100%;
    border-style: var(--tw-border-style);
    border-width: 0px;
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    &:focus {
      --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + 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);
    }
    background-color: transparent;
    color: var(--text-primary);
  }
}
.zettel-metadata {
  position: relative;
  z-index: 30;
}
.zettel-metadata summary {
  margin-inline: calc(var(--spacing) * 0);
  padding-inline: calc(var(--spacing) * 4);
  padding-block: calc(var(--spacing) * 1.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 2);
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}
.zettel-metadata summary:hover {
  background: var(--primary);
  color: var(--primary-fg);
}
.zettel-metadata summary::marker {
  color: transparent;
}
.zettel--edit .zettel {
  border-left: 5px solid var(--primary);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}
.metadata-custom-select {
  position: relative;
  min-width: 120px;
}
.metadata-custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--spacing) * 1);
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 3px;
  border: 1px solid var(--input-border);
  padding: 0.125rem 0.375rem;
  background-color: var(--input-bg);
  color: var(--text-primary);
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.metadata-custom-select-trigger:hover {
  border-color: var(--border-active);
}
.metadata-custom-select-trigger:focus-visible {
  outline: 2px solid var(--input-focus-ring);
  outline-offset: 2px;
}
.metadata-custom-select-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.metadata-custom-select-icon {
  color: var(--text-muted);
  opacity: 0.7;
  flex-shrink: 0;
}
.metadata-custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  box-shadow: var(--shadow-lg);
  max-height: 200px;
  overflow-y: auto;
  min-width: 120px;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.metadata-custom-select-option {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 2);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 0.375rem 0.5rem;
  background-color: transparent;
  color: var(--text-primary);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.15s ease;
}
.metadata-custom-select-option:hover {
  background-color: var(--surface-hover);
}
.metadata-custom-select-option svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.metadata-remove-btn {
  border-radius: 0.25rem;
  padding: calc(var(--spacing) * 0.5);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  &:hover {
    color: var(--tyrian-gold);
    background-color: rgba(201, 162, 39, 0.1);
  }
}
.metadata-add-btn {
  margin-top: calc(var(--spacing) * 2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 1.5);
  border-radius: 0.25rem;
  padding-inline: calc(var(--spacing) * 3);
  padding-block: calc(var(--spacing) * 1);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tyrian-offwhite);
  background-color: rgba(102, 45, 109, 0.2);
  border: 1px solid var(--tyrian-royal);
  transition: all 0.2s ease;
  &:hover {
    background-color: var(--tyrian-royal);
    color: var(--primary-fg);
    border-color: var(--tyrian-royal);
  }
}
.metadata-count {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 0.05rem 0.35rem;
  border-radius: 9999px;
  font-weight: 700;
  min-width: 1rem;
  text-align: center;
}
.zettel-diff {
  padding: 0 1rem 1.5rem;
}
.zettel-diff__legend {
  padding: .65rem 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.zettel-diff__lines {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: 'Roboto Mono', monospace;
  font-size: .75rem;
  line-height: 1.7;
}
.zettel-diff__lines th:nth-child(-n+2) {
  width: 2.75rem;
}
.zettel-diff__lines th:nth-child(3) {
  width: 1.5rem;
}
.zettel-diff__lines td {
  vertical-align: top;
}
.zettel-diff__number {
  width: 2.75rem;
  padding: .12rem .4rem;
  text-align: right;
  color: var(--text-muted);
  user-select: none;
  border-right: 1px solid var(--border-subtle);
}
.zettel-diff__sign {
  width: 1.5rem;
  text-align: center;
  user-select: none;
}
.zettel-diff__source {
  padding: .12rem .5rem;
}
.zettel-diff__source code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  color: inherit;
  background: none;
}
.zettel-diff__removed {
  background: #ef4444;
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, #ef4444 12%, var(--surface));
  }
}
.zettel-diff__added {
  background: #22c55e;
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, #22c55e 12%, var(--surface));
  }
}
.zettel-diff__removed .zettel-diff__sign {
  color: light-dark(#b91c1c, #fca5a5);
}
.zettel-diff__added .zettel-diff__sign {
  color: light-dark(#15803d, #86efac);
}
.zettel-diff__source mark {
  color: inherit;
  border-radius: .15rem;
}
.zettel-diff__removed mark {
  background: color-mix(in srgb, #ef4444 30%, transparent);
}
.zettel-diff__added mark {
  background: color-mix(in srgb, #22c55e 30%, transparent);
}
.zettel-diff__gap td {
  padding: .4rem .75rem;
  color: var(--text-muted);
  background: var(--primary-subtle);
  font-family: var(--font-sans);
}
.zettel-diff__empty {
  padding-block: calc(var(--spacing) * 8);
  text-align: center;
  font-size: var(--text-sm);
  line-height: var(--tw-leading, var(--text-sm--line-height));
  color: var(--text-muted);
  font-style: italic;
}
.zettel-floating-actions {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.zettel:hover .zettel-floating-actions, .zettel:focus-within .zettel-floating-actions, .zettel-body:hover .zettel-floating-actions, .zettel-body:focus .zettel-floating-actions, .zettel-body:focus-within .zettel-floating-actions {
  opacity: 1;
  pointer-events: auto;
}
.zettel-body:has(.zettel-body--edit) ~ .zettel-overlay, .zettel-body:has(.zettel-body--edit) ~ .zettel-floating-actions, .zettel-body--edit ~ .zettel-overlay, .zettel-body--edit ~ .zettel-floating-actions {
  display: none !important;
}
.zettel-body--edit .zettel-floating-actions {
  display: flex !important;
}
@media (hover: none) {
  .zettel-header__perma-menu, .zettel-floating-actions {
    opacity: 1;
    pointer-events: auto;
  }
}
.zettel-floating-action-btn {
  position: relative;
  width: 2.0rem;
  height: 2.0rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.zettel-floating-action-btn:hover, .zettel-floating-action-btn.is-active {
  background-color: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.zettel-floating-action-btn__badge {
  position: absolute;
  bottom: -0.125rem;
  right: -0.125rem;
  min-width: 0.875rem;
  height: 0.875rem;
  padding: 0 0.2rem;
  border-radius: 9999px;
  background-color: var(--surface-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-size: 0.55rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.zettel-floating-action-btn__badge--dot {
  min-width: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  bottom: 0;
  right: 0;
  background-color: var(--text-muted);
  border: none;
}
.zettel-lease {
  margin: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: .75rem;
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  max-width: 42rem;
}
.zettel-lease__heading {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.zettel-lease__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: .65rem;
  background: var(--primary-subtle);
  color: var(--primary);
}
.zettel-lease__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}
.zettel-lease h2 {
  margin: 0 0 .25rem;
  font-size: 1.1rem;
  font-weight: 650;
}
.zettel-lease p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.zettel-lease .zettel-lease__description {
  margin: 1rem 0 1.25rem;
}
.zettel-lease__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.zettel-lease__actions svg, .zettel-lease__recovery summary svg {
  width: 1rem;
  height: 1rem;
}
.zettel-lease__reopen {
  color: var(--primary);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.zettel-lease__recovery {
  border-top: 1px solid var(--border-subtle);
  margin-top: 1.5rem;
  padding-top: 1rem;
}
.zettel-lease__recovery summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
}
.zettel-lease__recovery[open] summary {
  margin-bottom: .75rem;
}
.zettel-lease__form {
  margin-top: 1rem;
}
.zettel-lease__form label {
  font-size: .8rem;
  font-weight: 600;
}
.zettel-lease__form .input {
  margin: .35rem 0 .85rem;
}
.zettel-lease__form button {
  width: auto;
}
.zettel-lease .zettel-lease__permission {
  margin-top: 1.25rem;
  font-size: .8rem;
}
.zettel-lease .zettel-lease__error {
  margin-top: .75rem;
  color: var(--danger);
}
.zettel-lease__holder {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: 0;
  font-size: .875rem;
}
.zettel-lease__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--primary-subtle);
  color: var(--primary);
}
.zettel-lease__identity {
  position: relative;
  display: block;
  flex: none;
}
.zettel-lease__lock-badge {
  position: absolute;
  top: -.25rem;
  right: -.25rem;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
}
.zettel-lease__lock-badge svg {
  width: .7rem;
  height: .7rem;
}
.zettel-overlay {
  position: absolute;
  right: calc(var(--spacing) * 2);
  left: calc(var(--spacing) * 2);
  bottom: 0.1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 30;
  height: auto;
  max-height: calc(80% - 0.6rem);
  max-width: calc(100% - 4.0rem);
  pointer-events: none;
  background-color: var(--surface);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 16px rgb(0 0 0 / 0.08);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
}
.zettel-overlay.visible {
  transform: translateY(0);
  opacity: 1;
}
.zettel-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: calc(var(--spacing) * 4);
  padding-block: calc(var(--spacing) * 2);
  flex-shrink: 0;
  pointer-events: auto;
  background-color: var(--primary);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.zettel-overlay__title {
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  :where(& > :not(:last-child)) {
    --tw-space-x-reverse: 0;
    margin-inline-start: calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));
    margin-inline-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-x-reverse)));
  }
  --tw-font-weight: var(--font-weight-bold);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  color: var(--color-white);
}
.zettel-overlay__close {
  border-radius: var(--radius-md);
  padding: calc(var(--spacing) * 1);
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
  color: var(--color-white);
}
.zettel-overlay__close:hover {
  color: var(--text-primary);
  background-color: var(--primary-subtle-hover);
}
.zettel-overlay__shortcut {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--primary-fg);
  margin-left: 0.5rem;
}
.zettel-overlay__body {
  overflow-y: auto;
  padding-inline: calc(var(--spacing) * 3);
  padding-block: calc(var(--spacing) * 3);
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  overscroll-behavior: contain;
}
.zettel-overlay__body--with-footer {
  min-height: calc(var(--spacing) * 0);
  flex: 1;
}
.zettel-overlay__footer {
  flex-shrink: 0;
  padding-inline: calc(var(--spacing) * 3);
  padding-block: calc(var(--spacing) * 2);
  pointer-events: auto;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--surface-elevated);
}
.zettel-overlay__empty {
  padding-block: calc(var(--spacing) * 6);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.zettel-overlay.zettel-overlay--head {
  position: relative;
  inset: auto;
  width: calc(100% - 1rem);
  max-width: none;
  height: auto;
  max-height: 0;
  min-height: 0;
  margin: 0 auto;
  border: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
  }
  transform: translateY(1.75rem);
  visibility: hidden;
  box-shadow: none;
  transition: max-height 280ms ease-in-out, transform 280ms ease-out, margin 280ms ease-in-out, opacity 200ms ease-in-out, visibility 280ms;
}
.zettel-overlay.zettel-overlay--head.visible {
  max-height: min(55dvh, 36rem);
  margin: .5rem auto -.35rem;
  border: 1px solid var(--border-subtle);
  border-bottom: 0;
  transform: translateY(0);
  visibility: visible;
  box-shadow: none;
}
.zettel-overlay--head > .zettel-overlay__body {
  flex: 1;
  min-height: 0;
  padding-bottom: 1.1rem;
  background: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .zettel-overlay.zettel-overlay--head {
    transition: none;
  }
}
.zettel-overlay.zettel-overlay--head {
  flex-shrink: 0;
}
.zettel-files__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.zettel-files__list li + li {
  border-top: 1px solid var(--border-subtle);
}
.zettel-files__list a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .25rem;
  color: var(--text-primary);
}
.zettel-files__list a > span {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.zettel-files__list small {
  color: var(--text-secondary);
  font-size: .75rem;
}
.zettel-files__list a:hover {
  background: var(--surface-hover);
}
.zettel-header__panel-count {
  font-size: .6rem;
  margin-left: .1rem;
  color: var(--primary);
}
.zettel-header__clip-action:has(.zettel-header__panel-count) {
  width: auto;
  min-width: 2rem;
  padding-inline: .3rem;
  gap: .1rem;
}
.zettel-overlay--head .zettel-overlay__header {
  padding: 1rem 1.5rem .65rem;
  gap: .75rem;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.zettel-overlay--head .zettel-overlay__title {
  margin-right: auto;
  gap: .5rem;
  font-size: 1rem;
  text-transform: none;
  color: var(--text-primary);
}
.zettel-overlay--head .zettel-overlay__title > svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}
.zettel-overlay--head .zettel-overlay__close {
  color: var(--primary);
}
.zettel-overlay--head .zettel-overlay__shortcut {
  display: none;
}
.zettel-overlay--head .zettel-overlay__count {
  font-weight: 400;
}
.zettel-overlay--head > .zettel-overlay__body {
  padding: .5rem 1.5rem 1.25rem;
}
.zettel-overlay--head .notes-related {
  padding: 0;
  border: 0;
}
.zettel-overlay--head .notes-related__grid {
  margin-top: 0;
}
.zettel-overlay--head .note--compact {
  border-width: 1px;
  border-left-width: 5px;
  border-radius: .65rem;
  box-shadow: none;
}
.zettel-overlay--head .note--compact .note__title {
  background: transparent;
  border: 0;
}
.zettel-overlay--notes {
  height: auto;
  max-height: calc(65% - 0.6rem);
  min-height: 0;
}
.zettel-overlay--notes .zettel-overlay__body {
  background-color: var(--note-bg);
  color: var(--note-fg);
  padding: .75rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.zettel-overlay--notes .notes-related {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border: 0;
  padding: 0;
}
.zettel-overlay--notes .notes-related__heading {
  flex-shrink: 0;
}
.zettel-overlay--notes .notes-related__grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  grid-auto-rows: max-content;
  align-content: start;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: .2rem;
}
.zettel-overlay__count {
  margin-left: .5rem;
  padding: .1rem .35rem;
  border-radius: .3rem;
  background: #ffffff26;
  color: var(--primary-fg);
  font-size: .65rem;
}
.notes-related__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.zettel-overlay--notes .notes-related__heading h3 {
  margin: 0;
}
.notes-related__heading > a.button {
  display: inline-flex;
  width: auto;
  margin-left: auto;
  padding: .3rem .55rem;
  font-size: .75rem;
}
.zettel-overlay--notes .notes-related__grid {
  margin-top: .65rem;
}
.zettel-overlay__reference-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  line-height: 2;
}
.zettel-overlay__reference-list > li {
  display: inline;
  margin: 0;
  padding: 0;
}
.zettel-overlay__reference-link {
  display: inline;
  color: var(--text-primary);
  border-radius: .2rem;
  overflow-wrap: anywhere;
}
.zettel-overlay__reference-link svg {
  display: inline;
  vertical-align: -.15em;
}
.zettel-overlay__reference-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}
.zettel-overlay__reference-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.zettel-reference-separator {
  padding-inline: .25rem;
  color: var(--text-secondary);
}
.zettel-overlay__reference-link .zettel-archived-label {
  margin-left: .4rem;
}
.zettel-references__loading {
  min-height: 8rem;
}
.zettel-overlay__body--quick-guide {
  padding-inline: calc(var(--spacing) * 4);
  padding-block: calc(var(--spacing) * 3);
}
.quick-guide__section {
  margin-bottom: 1rem;
}
.quick-guide__section:last-child {
  margin-bottom: 0;
}
.quick-guide__section-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--border-subtle);
}
.quick-guide__columns {
  display: flex;
  gap: 0;
  position: relative;
}
.quick-guide__column {
  flex: 1 1 0;
  padding: 0 1.5rem;
}
.quick-guide__column:first-child {
  padding-left: 0;
}
.quick-guide__column:last-child {
  padding-right: 0;
}
.quick-guide__columns::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background-color: var(--border-subtle);
}
.quick-guide__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
}
.quick-guide__code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-primary);
  background-color: var(--surface-secondary);
  padding: 0.15rem 0.375rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  flex-shrink: 0;
}
.quick-guide__desc {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.quick-guide__hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--surface-secondary);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
  line-height: 1.5;
}
.quick-guide__hint--links {
  border-left-color: var(--primary);
}
.quick-guide__hint--mentions {
  border-left-color: var(--text-link);
}
.quick-guide__hint-text {
  margin: 0;
}
.quick-guide__preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.quick-guide__preview-label {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.quick-guide__preview-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.375rem;
  vertical-align: middle;
  background-color: var(--surface-secondary);
  color: var(--text-primary) !important;
  text-decoration: none !important;
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.125rem 0.625rem 0.125rem 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25;
  user-select: none;
  pointer-events: none;
}
.quick-guide__preview-link-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--text-primary);
  stroke-width: 1.5;
}
.quick-guide__preview-link-text {
  font-weight: 500;
  font-size: 0.875rem;
}
.quick-guide__preview-mention {
  display: inline-flex !important;
  align-items: center;
  gap: 0.375rem;
  vertical-align: middle;
  background-color: var(--primary-subtle);
  color: var(--primary) !important;
  text-decoration: none !important;
  border: 1px solid var(--primary);
  border-radius: 9999px;
  padding: 0.125rem 0.625rem 0.125rem 0.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  user-select: none;
  pointer-events: none;
}
.quick-guide__preview-mention-avatar {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-fg);
  font-size: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.quick-guide__preview-mention-text {
  font-size: 0.875rem;
}
#flash-container {
  position: fixed;
  right: calc(var(--spacing) * 4);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 3);
  top: var(--notification-top, 1rem);
  width: min(22rem, calc(100vw - 2rem));
  max-height: calc(100dvh - var(--notification-top, 1rem) - 1rem);
  overflow-y: auto;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 10%));
  z-index: 10000;
  pointer-events: none;
}
body:has(.app-navbar) #flash-container {
  --notification-top: calc(4rem + 1px + 1rem);
}
#flash-container > * {
  pointer-events: auto;
}
.flash-notification {
  border-radius: var(--radius-lg);
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
  animation: flashAppear 0.3s ease-out;
}
.flash-notification__content {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 3);
}
.flash-notification__icon-badge {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: calc(infinity * 1px);
  width: 1.65rem;
  height: 1.65rem;
  background-color: var(--primary-subtle);
  color: var(--primary);
}
.flash-notification__body {
  min-width: calc(var(--spacing) * 0);
  flex: 1;
}
.flash-notification__icon-badge--notice {
  color: var(--success);
  background-color: var(--success);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in srgb, var(--success) 12%, var(--surface));
  }
}
.flash-notification__message {
  overflow-wrap: anywhere;
  font-size: var(--text-sm);
  line-height: var(--tw-leading, var(--text-sm--line-height));
  color: var(--text-secondary);
}
.flash-notification__action {
  --tw-font-weight: var(--font-weight-medium);
  font-weight: var(--font-weight-medium);
  text-decoration-line: underline;
  &:hover {
    @media (hover: hover) {
      text-decoration-line: none;
    }
  }
  margin-top: .5rem;
  margin-right: .75rem;
  cursor: pointer;
  color: var(--text-link);
}
.flash-notification__dismiss {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  width: 1.75rem;
  height: 1.75rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
  &:hover {
    color: var(--text-primary);
    background-color: var(--surface-hover);
  }
  &:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
}
.flash-notification--removing {
  animation: flashDisappear 0.3s ease-out forwards;
}
@keyframes flashAppear {
  from {
    opacity: 0;
    transform: translateY(.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes flashDisappear {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(.5rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .flash-notification, .flash-notification--removing {
    animation: none;
  }
}
:root[data-theme="paper"] {
  color-scheme: light;
  --ink: #171717;
  --ink-secondary: #505050;
  --ink-muted: #686868;
  --ink-line: #d5d5d5;
  --ink-soft: #ececec;
  --ink-paper: #f7f7f7;
  --ink-white: #ffffff;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --favorite-fg: #000;
  --editor-highlight: #dedede;
  --editor-highlight-fg: var(--ink);
  --syntax-keyword: var(--ink);
  --syntax-string: var(--ink-secondary);
  --syntax-number: var(--ink-secondary);
  --syntax-title: var(--ink);
  --app-bg: var(--ink-paper);
  --app-fg: var(--ink);
  --surface: var(--ink-white);
  --surface-secondary: var(--ink-paper);
  --surface-hover: var(--ink-soft);
  --surface-active: var(--ink-soft);
  --surface-overlay: var(--ink-white);
  --surface-elevated: var(--ink-white);
  --border: var(--ink-line);
  --border-subtle: var(--ink-line);
  --border-active: var(--ink);
  --primary: var(--ink);
  --primary-hover: var(--ink-secondary);
  --primary-subtle: var(--ink-soft);
  --primary-fg: var(--ink-white);
  --secondary: var(--ink);
  --secondary-hover: var(--ink-secondary);
  --secondary-fg: var(--ink-white);
  --success: var(--ink);
  --success-hover: var(--ink-secondary);
  --success-fg: var(--ink-white);
  --success-border: var(--ink);
  --danger: var(--ink);
  --danger-hover: var(--ink-secondary);
  --danger-fg: var(--ink-white);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-secondary);
  --text-muted: var(--ink-muted);
  --text-placeholder: var(--ink-muted);
  --text-disabled: var(--ink-muted);
  --text-link: var(--ink);
  --text-link-hover: var(--ink-secondary);
  --shadow-color: transparent;
  --input-bg: var(--ink-white);
  --input-border: var(--ink);
  --input-focus-ring: var(--ink);
  --input-disabled-bg: var(--ink-soft);
  --input-disabled-fg: var(--ink-muted);
  --scrollbar-thumb: var(--ink-muted);
  --scrollbar-track: var(--ink-paper);
  --chat-bg: var(--ink-paper);
  --chat-bot-bg: var(--ink);
  --chat-bot-fg: var(--ink-white);
  --chat-user-bg: var(--ink-white);
  --chat-user-fg: var(--ink);
  --chat-input-bg: var(--ink-white);
  --overlay-bg: rgb(23 23 23 / 40%);
  --auth-gradient-from: var(--ink);
  --auth-gradient-to: var(--ink-secondary);
  --note-bg: var(--ink-paper);
  --note-fg: var(--ink);
  --note-toolbar-fg: var(--ink);
  --note-scrollbar-thumb: var(--ink-muted);
  --color-amber-50: var(--ink-paper);
  --color-amber-100: var(--ink-soft);
  --color-amber-200: var(--ink-line);
  --color-amber-700: var(--ink-secondary);
  --color-amber-800: var(--ink);
  --color-yellow-100: var(--ink-soft);
  --color-yellow-800: var(--ink);
  --color-green-100: var(--ink-soft);
  --color-green-800: var(--ink);
  .button {
    border: 1px solid var(--ink);
    border-radius: 999px;
    box-shadow: none;
  }
  .input {
    border-width: 1px;
    border-radius: 8px;
    box-shadow: none;
  }
  .zettel, .settings-pane, dialog.dialog {
    border: 1px solid var(--ink);
    box-shadow: none;
  }
  .pane-stack > .pane:not(.pane--focused) > .zettel {
    border-color: var(--ink-line);
  }
  .pane-stack > .pane > article.zettel {
    box-shadow: none;
    transition: none;
  }
  .pane-stack > .pane--focused > article.zettel {
    border-color: var(--ink-secondary);
    box-shadow: none;
  }
  :focus-visible {
    outline: 1px solid var(--ink) !important;
    outline-offset: 3px;
  }
  .pane:focus-visible, .native-editor-content:focus-visible {
    outline: none !important;
  }
  :is(input:not([type="hidden"]), textarea, select):not(:disabled) {
    border-color: #858585;
  }
  .spread-switcher__tab[aria-selected="true"] {
    border-color: var(--ink-secondary);
    font-weight: 650;
    box-shadow: none;
  }
  .sidebar .zettel-list__item--sidebar.active .zettel-list__item__title {
    font-weight: 600;
  }
  .zettel-header > .zettel-header__type {
    --clip-color: var(--ink-secondary);
    color: var(--ink-secondary);
    background: var(--ink-white);
    border-color: var(--ink-line);
  }
  .zettel--base .zettel-header > .zettel-header__type {
    background: transparent;
    border-color: transparent;
  }
  .zettel--structure .zettel-header > .zettel-header__type {
    --clip-color: var(--ink);
    color: var(--ink);
    font-weight: 650;
  }
  .zettel-prose :is(.hljs-keyword, .hljs-title) {
    font-weight: 600;
  }
  .zettel-connections:not(.workbench) .zettel-connections__viewport {
    background-image: none;
  }
  .pane-stack, .zettel-body, .zettel-edit-scrollable {
    scroll-behavior: auto;
  }
  turbo-frame.pane:has(.zettel), .flash-notification, .flash-notification--removing, .loading-status::before, .search-preview[aria-busy="true"]::before {
    animation: none;
  }
  .zettel-header__perma-menu, .zettel-floating-actions, .zettel-floating-action-btn, .spread-switcher__tab {
    transition: none;
    box-shadow: none;
  }
  .native-editor-picker, .zettel-session__lock {
    backdrop-filter: none;
  }
}
:root[data-theme="paper"] {
  --ink-secondary: #3f3f3f;
  --ink-muted: #505050;
  --ink-line: #858585;
  --ink-soft: #dedede;
  --avatar-border-width: 1px;
  .zettel-connections.workbench, .workbench .zettel-connections__viewport {
    background-image: linear-gradient(to right, var(--ink-line) 1px, transparent 1px), linear-gradient(to bottom, var(--ink-line) 1px, transparent 1px);
    @supports (color: color-mix(in lab, red, red)) {
      background-image: linear-gradient(to right, color-mix(in srgb, var(--ink-line) 35%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--ink-line) 35%, transparent) 1px, transparent 1px);
    }
    background-size: 24px 24px;
  }
  .pane-stack > .pane--focused > article.zettel {
    border-color: var(--ink);
  }
  .navbar-theme-menu [aria-checked="true"], .spread-switcher__tab[aria-selected="true"] {
    border-color: var(--ink);
  }
  .node-people__card[open] {
    border-color: var(--ink-secondary);
  }
  .node-people__card[open] > summary {
    font-weight: 600;
  }
  .settings-workspace__navigation [role="tab"][aria-selected="true"] {
    border: 1px solid var(--ink-secondary);
    box-shadow: none;
    font-weight: 600;
  }
  .settings-workspace__card, .node-people__secondary, .hub__new {
    transition: none;
  }
}
.fading-scrollbars * {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
:where(.fading-scrollbars *) {
  transition: scrollbar-color 250ms ease;
}
.fading-scrollbars .scrollbar-active, .fading-scrollbars :focus-visible, .fading-scrollbars :has(> :focus-visible) {
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
@media (prefers-reduced-motion: reduce) {
  :where(.fading-scrollbars *) {
    transition: none;
  }
}
@media (forced-colors: active) {
  .fading-scrollbars * {
    scrollbar-color: auto;
  }
}
.zettel-prose {
  color: var(--text-primary);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.zettel-prose > div > * + *, .zettel-prose.native-editor-content > * + * {
  margin-top: 1em;
}
.zettel-prose :is(h1,h2,h3,h4,h5,h6) {
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.025em;
  margin: 1.6em 0 .65em;
}
.zettel-prose h1 {
  font-size: 1.85em;
}
.zettel-prose h2 {
  font-size: 1.5em;
}
.zettel-prose h3 {
  font-size: 1.25em;
}
.zettel-prose h4 {
  font-size: 1.1em;
}
.zettel-prose :is(h5,h6) {
  font-size: 1em;
}
.zettel-prose :is(ul,ol) {
  padding-left: 1.6em;
  margin: 1em 0;
}
.zettel-prose ul {
  list-style: disc;
}
.zettel-prose ol {
  list-style: decimal;
}
.zettel-prose li {
  padding-left: .2em;
  margin: .15em 0;
  line-height: 1.6;
}
.zettel-prose li :is(ul,ol) {
  margin: .25em 0 0;
}
.zettel-prose li > p {
  margin: 0;
}
.zettel-prose blockquote {
  margin: 1.3em 0;
  padding: .2em 0 .2em 1.15em;
  border-left: 3px solid var(--primary);
  color: var(--text-secondary);
}
.zettel-prose pre {
  background: var(--surface-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: .55rem;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  white-space: pre;
  font-size: .85em;
}
.zettel-prose :is(code,kbd) {
  font-family: 'Roboto Mono', monospace;
}
.zettel-prose :not(pre) > code {
  background: var(--surface-secondary);
  color: var(--text-primary);
  border-radius: .2rem;
  padding: .1em .3em;
  font-size: .88em;
}
.zettel-prose a {
  color: var(--text-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.zettel-prose a:hover {
  color: var(--text-link-hover);
  text-decoration-thickness: 2px;
}
.zettel-prose hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 2em 0;
}
.zettel-prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2em 0;
  table-layout: auto;
}
.zettel-prose :is(th,td) {
  border: 1px solid var(--border-subtle);
  padding: .6em .8em;
  vertical-align: top;
  position: relative;
  min-width: 50px;
}
.zettel-prose th {
  font-weight: 600;
  text-align: left;
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.zettel-prose .selectedCell {
  background: var(--primary-subtle);
}
.zettel-prose .tableWrapper {
  overflow-x: auto;
  margin: 1em 0;
}
.zettel-prose .column-resize-handle {
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  pointer-events: none;
}
.zettel-prose.resize-cursor {
  cursor: col-resize;
}
.zettel-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: .4rem;
  margin: 1em 0;
}
.zettel-prose :is(iframe,[data-youtube-video]) {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: .5rem;
}
.zettel-prose :is(ul[data-type="taskList"], ul:has(> li.zettel-task)) {
  list-style: none;
  padding-left: 0;
}
.zettel-prose :is(li[data-type="taskItem"],li.zettel-task) {
  display: flex;
  gap: .65em;
  padding-left: 0;
  align-items: flex-start;
  list-style: none;
  font-size: .875rem;
  line-height: 1.6;
}
.zettel-prose :is(li[data-type="taskItem"],li.zettel-task) > div {
  flex: 1;
  min-width: 0;
}
.zettel-prose :is(li[data-type="taskItem"],li.zettel-task) > div > p {
  margin: 0;
}
.zettel-prose li[data-type="taskItem"] > label {
  display: flex;
  flex: none;
  user-select: none;
}
.zettel-prose :is(li[data-type="taskItem"] input[type="checkbox"], li.zettel-task > [role="checkbox"]) {
  appearance: none;
  display: inline-block;
  flex: none;
  box-sizing: border-box;
  width: 1em;
  height: 1em;
  margin: .3em 0 0;
  padding: 0;
  border: 1px solid var(--text-muted);
  border-radius: .2em;
  background: var(--surface);
  color: transparent;
  font-size: inherit;
}
.zettel-prose :is(li[data-type="taskItem"] input:checked, li.zettel-task > [aria-checked="true"]) {
  border-color: var(--primary);
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.zettel-prose li[data-type="taskItem"] input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.zettel-prose mark {
  border-radius: .15em;
  padding: .05em .1em;
  background: var(--editor-highlight);
  color: var(--editor-highlight-fg) !important;
}
.zettel-mention {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  vertical-align: middle;
  max-width: 100%;
  padding: .125rem .55rem .125rem .2rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-secondary);
  color: var(--text-primary);
  font-size: .875rem;
  line-height: 1.25;
  text-decoration: none;
  font-weight: 500;
}
.zettel-mention__avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--text-primary);
  font-size: .55rem;
}
.zettel-mention .zettel-mention__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
}
.zettel-mention__name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.note__title .zettel-mention {
  text-decoration: none;
}
.native-editor {
  border: 0;
  border-radius: 0;
  background: var(--surface);
  position: relative;
}
.native-editor-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  padding: .45rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface);
  border-radius: 0;
  position: sticky;
  top: var(--zettel-header-height, 80px);
  z-index: 25;
}
.native-editor-toolbar[data-reserved="true"] {
  visibility: hidden;
  pointer-events: none;
}
.native-editor [hidden] {
  display: none !important;
}
.native-editor-toolbar :is(button,summary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: .35rem;
  color: var(--text-primary);
  cursor: pointer;
}
.native-editor-toolbar :is(button,summary):hover {
  background: var(--surface);
  border-color: var(--border-subtle);
}
.native-editor-toolbar button[aria-pressed="true"] {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary);
}
.native-editor-toolbar :is(button,summary):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.native-editor-toolbar button:disabled {
  opacity: .3;
  cursor: default;
}
.native-editor-toolbar svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}
.native-editor-toolbar select {
  width: 100px;
  padding: 5px 20px 5px 8px;
  border: 0;
  background-color: transparent;
  color: var(--text-primary);
  font-size: .75rem;
}
.native-editor-more {
  position: relative;
}
.native-editor-more summary {
  list-style: none;
}
.native-editor-more summary::-webkit-details-marker {
  display: none;
}
.native-editor-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  padding: .75rem;
  border: 1px solid var(--border-subtle);
  border-radius: .6rem;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.native-editor-popover__label {
  display: block;
  margin: .3rem 0 .5rem;
  font-size: .7rem;
  color: var(--text-muted);
}
.native-editor-swatches {
  display: grid;
  grid-template-columns: repeat(9,1fr);
  gap: 4px;
  margin-bottom: .65rem;
}
.native-editor-swatches button {
  width: 18px;
  height: 18px;
  background: var(--swatch);
  border: 1px solid var(--border);
  border-radius: 50%;
}
.native-editor-table-tools {
  width: 190px;
}
.native-editor-table-tools button, .native-editor-popover > button {
  width: 100%;
  justify-content: flex-start;
  gap: .5rem;
  font-size: .75rem;
}
.native-editor-content {
  min-height: 22rem;
  padding: 1.25rem 0;
  outline: none;
  font-size: inherit;
}
.native-editor-content.zettel-editor-reading {
  min-height: 0;
  padding: 0;
}
.zettel-session .native-editor-content {
  padding: 1.25rem 0;
}
.native-editor-content.zettel-editor-reading .ProseMirror-selectednode {
  outline: none;
}
.zettel-session {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.zettel-body:has(.zettel-session) {
  overflow: hidden;
}
.native-editor-content > :first-child {
  margin-top: 0;
}
.native-editor-content:focus-visible {
  box-shadow: none;
}
.native-editor-content p.is-editor-empty:first-child::before {
  color: var(--text-muted);
  content: 'Start writing…';
  float: left;
  height: 0;
  pointer-events: none;
}
.native-editor-source {
  width: 100%;
  min-height: 22rem;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Roboto Mono', monospace;
  font-size: .82rem;
  line-height: 1.8;
  padding: 1rem 0;
  resize: vertical;
}
.native-editor-toolbar .native-editor-mode-toggle {
  margin-left: auto;
  color: var(--text-muted);
}
.zettel-body--edit .native-editor-toolbar:not([data-reserved="true"]) {
  background: var(--secondary);
  color: var(--secondary-fg);
  border-color: var(--secondary);
  margin-inline: -1.5rem;
  padding-inline: 1.9rem;
}
.zettel-body--edit .native-editor-toolbar > button, .zettel-body--edit .native-editor-toolbar > details > summary, .zettel-body--edit .native-editor-toolbar > select {
  color: var(--secondary-fg);
}
.zettel-body--edit .native-editor-toolbar > button:hover, .zettel-body--edit .native-editor-toolbar > details > summary:hover {
  background: var(--secondary-fg);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--secondary-fg) 15%, transparent);
  }
  border-color: var(--secondary-fg);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--secondary-fg) 45%, transparent);
  }
}
.zettel-body--edit .native-editor-toolbar > button[aria-pressed="true"] {
  background: var(--secondary-fg);
  color: var(--secondary);
  border-color: var(--secondary-fg);
}
.zettel-body--edit .native-editor-toolbar > button:focus-visible, .zettel-body--edit .native-editor-toolbar > details > summary:focus-visible {
  outline-color: var(--secondary-fg);
}
.zettel-body--edit .native-editor-toolbar > .native-editor-separator {
  background: var(--secondary-fg);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--secondary-fg) 40%, transparent);
  }
}
.zettel-body--edit .native-editor-popover {
  color: var(--text-primary);
}
.native-editor-source-hint {
  flex: 1;
  min-width: 0;
  font-size: .7rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.zettel-edit-scrollable:has(.native-editor[data-editor-scope="zettel"] > [data-mode="source"]) {
  overflow: hidden;
}
.zettel-body--edit:has(.native-editor[data-editor-scope="zettel"] > [data-mode="source"]), .zettel-body--edit > div:has(> .zettel-content .native-editor[data-editor-scope="zettel"] > [data-mode="source"]), .zettel-content:has(.native-editor[data-editor-scope="zettel"] > [data-mode="source"]), .zettel-content > div:has(> .native-editor[data-editor-scope="zettel"] > [data-mode="source"]), .native-editor[data-editor-scope="zettel"]:has(> [data-mode="source"]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.zettel-body--edit:has(.native-editor[data-editor-scope="zettel"] > [data-mode="source"]) {
  height: 100%;
}
.native-editor[data-editor-scope="zettel"]:has(> [data-mode="source"]) > .native-editor-source {
  flex: 1;
  min-height: 0;
  resize: none;
  overflow-y: auto;
}
.native-editor-toolbar {
  flex-shrink: 0;
}
.zettel-body--edit:has(.native-editor[data-editor-scope="zettel"] > [data-mode="source"]) .zettel-header {
  flex-shrink: 0;
}
.native-editor-notice {
  padding: 0 1rem .65rem;
  font-size: .7rem;
  color: var(--text-muted);
  padding-left: 0;
  padding-right: 0;
}
.native-editor-notice:empty {
  display: none;
}
.native-editor-dialog {
  padding: 1.5rem;
  width: min(460px,90vw);
  border: 1px solid var(--border-subtle);
  border-radius: .85rem;
  color: var(--text-primary);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
}
.native-editor-dialog::backdrop {
  background: var(--overlay-bg);
}
.native-editor-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.native-editor-dialog__header h2 {
  font-size: 1rem;
  font-weight: 600;
}
.native-editor-dialog__header svg {
  width: 18px;
  height: 18px;
}
.native-editor-dialog label {
  display: grid;
  gap: .4rem;
  font-size: .75rem;
}
.native-editor-dialog input {
  font-size: .85rem;
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: .4rem;
  background: var(--input-bg);
  color: var(--text-primary);
}
.native-editor-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: .8rem;
  margin-top: 1rem;
  font-size: .75rem;
}
.native-editor-dialog__actions button:last-child {
  color: var(--primary);
}
.zettel-prose .hljs-keyword, .zettel-prose .hljs-selector-tag {
  color: var(--syntax-keyword);
}
.zettel-prose .hljs-string, .zettel-prose .hljs-attr {
  color: var(--syntax-string);
}
.zettel-prose .hljs-number, .zettel-prose .hljs-literal {
  color: var(--syntax-number);
}
.zettel-prose .hljs-comment {
  color: var(--text-muted);
  font-style: italic;
}
.zettel-prose .hljs-title, .zettel-prose .hljs-built_in {
  color: var(--syntax-title);
}
.zettel-metadata--panel {
  position: static;
}
.zettel-metadata--panel fieldset:disabled .metadata-add-btn, .zettel-metadata--panel fieldset:disabled .metadata-remove-btn {
  display: none;
}
.native-editor-toolbar > :is(button,details) {
  flex-shrink: 0;
}
.native-editor-toolbar > details > summary svg {
  stroke-width: 2;
}
.native-editor-separator {
  display: block;
  height: 18px;
  width: 1px;
  background: var(--border-subtle);
  margin: 0 5px;
  flex-shrink: 0;
}
.native-editor-popover label {
  display: grid;
  gap: .35rem;
  margin: .25rem 0;
  font-size: .75rem;
}
.native-editor-popover select {
  width: 100%;
  border: 1px solid var(--border-subtle);
}
.native-editor-picker {
  background-color: var(--surface);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklch, var(--surface) 92%, transparent);
  }
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 360px;
  padding: 0.375rem;
}
.native-editor-picker__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: calc(var(--radius) - 2px);
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.native-editor-picker__item:hover, .native-editor-picker__item[aria-selected="true"] {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}
.prompt-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  overflow: hidden;
}
.prompt-item__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--text-muted);
}
.prompt-item__text {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.native-editor-picker {
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: .875rem;
  list-style: none;
  margin: 0;
  inset-block-start: 0;
  inset-inline-start: 0;
}
.native-editor-picker__item + .native-editor-picker__item {
  margin-top: 2px;
}
.native-editor-picker {
  position: absolute;
  z-index: 45;
  min-width: 0;
  overflow-y: auto;
  visibility: visible;
  max-inline-size: 360px;
  min-inline-size: 0;
  max-block-size: none;
}
.native-editor-picker__search {
  display: block;
  padding: .2rem .3rem .5rem;
}
.native-editor-picker__search input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  font-size: .8rem;
  background: transparent;
}
.native-editor-picker__status {
  padding: .5rem;
  font-size: .75rem;
  color: var(--text-muted);
}
.native-editor-picker__status:empty {
  display: none;
}
.native-editor-picker .prompt-item__text {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.native-editor-picker .native-editor-picker__item[aria-selected="false"] {
  background: transparent;
}
.native-editor-picker .native-editor-picker__item[aria-selected="false"]:hover {
  background: var(--surface-hover);
}
.native-editor-toolbar > button, .native-editor-toolbar > details > summary {
  width: 34px;
  height: 34px;
}
.zettel-prose li.zettel-task > button[role="checkbox"] {
  cursor: pointer;
}
.zettel-prose li.zettel-task > button[role="checkbox"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.zettel-prose li.zettel-task > button[role="checkbox"]:disabled {
  cursor: wait;
  opacity: .6;
}
[data-native-tasks-target="status"]:empty {
  display: none;
}
.native-editor-toolbar[data-reserved="true"] {
  height: .35rem;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}
.zettel-session .native-editor-content.zettel-editor-reading {
  padding-top: .5rem;
}
.zettel-session__lock {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  background: var(--overlay-bg);
  backdrop-filter: blur(5px);
}
.zettel-session__lock .zettel-lease {
  margin: 0 auto;
  width: 100%;
}
.zettel-session > [data-vue-zettel-session-target="status"]:not(:empty):not(.zettel-session__lock) {
  position: absolute;
  top: 5.5rem;
  left: 1rem;
  right: 1rem;
  z-index: 50;
  padding: .75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: .5rem;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: .875rem;
}
.zettel-session form[data-zettel-form="true"] {
  --zettel-edit-accent: var(--primary);
  @supports (color: color-mix(in lab, red, red)) {
    --zettel-edit-accent: color-mix(in srgb, var(--primary) 45%, transparent);
  }
  box-shadow: inset 3px 0 0 var(--zettel-edit-accent);
}
.zettel-session .zettel-header--editing {
  background: var(--primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--primary) 4%, var(--surface));
  }
  box-shadow: inset 3px 0 0 var(--zettel-edit-accent);
}
.zettel-overlay__body--metadata {
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.metadata-form__group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.metadata-form__field {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  align-items: start;
  gap: .5rem;
  margin-bottom: .5rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.metadata-form__group:last-child .metadata-form__field:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.metadata-form__label {
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-primary);
  padding-top: .35rem;
}
.metadata-form__field--wide {
  grid-column: 1 / -1;
}
.metadata-form__value {
  min-width: 0;
}
.metadata-form textarea {
  resize: vertical;
  min-height: 2rem;
}
.zettel-overlay__body--metadata {
  padding: .65rem .75rem;
}
.metadata-form :is(input:not([type="checkbox"]):not([type="file"]),textarea,select) {
  width: 100%;
  min-width: 0;
  padding: .3rem .5rem;
  border: 1px solid var(--border);
  border-radius: .4rem;
  background: var(--surface);
  color: var(--text-primary);
  font-size: .8rem;
}
.metadata-form fieldset:disabled :is(input,textarea,select) {
  opacity: .8;
}
.metadata-form__help, .metadata-form__additional {
  font-size: .75rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.metadata-form__type {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.metadata-form__type svg {
  flex: none;
}
.metadata-form button {
  border: 1px solid var(--border);
  border-radius: .4rem;
  padding: .35rem .6rem;
  color: var(--primary);
  font-size: .75rem;
  cursor: pointer;
  justify-self: start;
}
.metadata-form button:disabled {
  opacity: .5;
  cursor: wait;
}
.metadata-custom-data__row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: .4rem;
  margin: 0 0 .35rem;
}
.metadata-image-field {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  min-height: 1.875rem;
}
.metadata-image-field img {
  width: 4.5rem;
  height: 1.875rem;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: .35rem;
}
.metadata-image-field input[type="file"] {
  flex: 1 1 10rem;
  width: auto;
  min-width: 0;
  max-width: 100%;
  font-size: .7rem;
}
.metadata-image-field input[type="file"]::file-selector-button {
  margin-right: 1rem;
  padding: .3rem .5rem;
  border: 1px solid var(--border);
  border-radius: .3rem;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}
.metadata-image-field button {
  padding: .25rem .4rem;
  font-size: .65rem;
}
.metadata-form pre {
  max-height: 15rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.metadata-form__additional summary {
  cursor: pointer;
}
.metadata-header-edit {
  margin-left: auto;
  margin-right: .75rem;
  padding: .25rem .5rem;
  color: var(--primary-fg);
  font-size: .75rem;
  cursor: pointer;
}
.metadata-header-edit:hover {
  text-decoration: underline;
}
.metadata-header-edit:focus-visible {
  outline: 2px solid var(--primary-fg);
  outline-offset: 2px;
  border-radius: .25rem;
}
.zettel-header--unified .zettel-header__content {
  display: flex;
  align-items: center;
  gap: .75rem;
  position: relative;
}
.zettel-header--unified .zettel-header__avatar {
  flex: none;
  object-fit: cover;
}
.zettel-header--unified .zettel-header__perma-menu {
  position: relative;
  z-index: 20;
}
.zettel-header--unified .zbackdrop__wrapper {
  overflow: hidden;
  pointer-events: none;
}
.zettel-header--unified .has-backdrop input[name="zettel[title]"] {
  color: var(--primary-fg);
}
.metadata-form .metadata-custom-select-trigger {
  width: 100%;
  justify-content: flex-start;
  gap: .5rem;
  min-height: 2rem;
  color: var(--text-primary);
}
.metadata-form .metadata-custom-select-trigger svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}
.metadata-form .metadata-custom-select-trigger svg:last-child {
  margin-left: auto;
}
.metadata-form .metadata-custom-select-options {
  position: fixed;
  top: auto;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: var(--surface-elevated);
}
.metadata-form .metadata-custom-select-option {
  display: flex;
  width: 100%;
  border: 0;
  border-radius: 0;
  color: var(--text-primary);
  text-align: left;
}
.metadata-form .metadata-custom-select-option:is(:focus-visible, [aria-selected="true"]) {
  background: var(--primary-subtle);
  outline: none;
}
.zettel-prose .zettel-admonition {
  --admonition-accent: var(--text-muted);
  margin: 1.25em 0;
  border: 1px solid var(--admonition-accent);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--admonition-accent) 35%, var(--border));
  }
  border-left: 3px solid var(--admonition-accent);
  border-radius: .625rem;
  background: var(--admonition-accent);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--admonition-accent) 5%, var(--surface));
  }
  overflow: hidden;
}
.zettel-prose .zettel-admonition[data-admonition-tone="note"] {
  --admonition-accent: var(--primary);
}
.zettel-prose .zettel-admonition[data-admonition-tone="tip"] {
  --admonition-accent: var(--success);
}
.zettel-prose .zettel-admonition[data-admonition-tone="info"] {
  --admonition-accent: var(--text-link);
}
.zettel-prose .zettel-admonition[data-admonition-tone="warning"] {
  --admonition-accent: light-dark(#a16207, #facc15);
}
.zettel-prose .zettel-admonition[data-admonition-tone="danger"] {
  --admonition-accent: var(--danger);
}
.zettel-admonition__header {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .7rem 1rem;
  font-weight: 650;
  color: var(--admonition-accent);
  line-height: 1.5;
}
.zettel-admonition__header :is(svg,i) {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  stroke-width: 1.75;
}
.zettel-admonition__body {
  padding: 0 1rem .875rem;
}
.zettel-admonition__body > * {
  margin-top: .6em;
}
.zettel-admonition__body > :first-child {
  margin-top: 0;
}
.native-editor-admonition-tools {
  left: 0;
  right: auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: min(21rem, calc(100vw - 3rem));
  padding: .625rem;
}
.native-editor-admonition-tools__heading {
  display: flex;
  align-items: center;
  gap: .375rem;
}
.native-editor-admonition-tools__type {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: .375rem;
}
.native-editor-admonition-tools__type:hover {
  background: var(--background);
}
.native-editor-admonition-tools__type select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.native-editor-admonition-tools__type:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.native-editor-admonition-tools :is(input,textarea) {
  min-width: 0;
  width: 100%;
  padding: .375rem .5rem;
  border: 1px solid var(--border);
  border-radius: .375rem;
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
}
.native-editor-admonition-tools textarea {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.45;
  font-size: .875rem;
}
.native-editor-admonition-tools__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .5rem;
  color: var(--text-secondary);
}
.native-editor-toolbar .native-editor-admonition-tools__footer button {
  width: auto;
  height: auto;
  padding: .375rem .75rem;
  font-size: .75rem;
  white-space: nowrap;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: .375rem;
}
:root[data-theme="paper"] .zettel-prose .zettel-admonition {
  --admonition-accent: var(--text-primary);
}
.zettel:has(.zettel-overlay--head.visible) .native-editor[data-editor-scope="zettel"]:has(> [data-mode="source"]) > .native-editor-source {
  min-height: 8rem;
}
.zettel-edit-scrollable:has(.zettel-overlay--head.visible):has(.native-editor[data-editor-scope="zettel"] > [data-mode="source"]), .zettel-body--edit:has(.zettel-overlay--head.visible):has(.native-editor[data-editor-scope="zettel"] > [data-mode="source"]) {
  overflow-y: auto;
}
.zettel-overlay.zettel-overlay--head.visible {
  width: 100%;
  margin: 0;
  border-inline: 0;
  border-radius: 0;
  transform: none;
  max-height: min(60dvh, 40rem);
  background: linear-gradient(125deg, var(--surface-secondary), var(--surface));
  border-bottom: 1px solid var(--border-subtle);
}
.zettel-overlay--head > .zettel-overlay__header {
  background: transparent;
  padding: 1rem 1.5rem .5rem;
  border: 0;
  border-radius: 0;
}
.zettel-overlay--head .zettel-overlay__title {
  color: var(--text-primary);
  text-transform: none;
  font-size: .9375rem;
}
.zettel-overlay--head > .zettel-overlay__body {
  padding: 1rem 1.5rem 1.5rem;
}
.zettel-overlay--head .metadata-header-edit {
  background: transparent;
  border: 0;
  color: var(--primary);
  margin: 0;
}
.zettel-overlay--head .metadata-header-edit:disabled {
  color: var(--text-secondary);
  cursor: default;
  opacity: 1;
}
.metadata-form__group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.metadata-form__field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.metadata-form__value {
  width: 100%;
  overflow-wrap: anywhere;
}
.metadata-form__label {
  font-family: inherit;
  font-weight: 400;
  font-size: .8125rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-secondary);
  padding: 0;
}
.metadata-form :is(input:not([type="checkbox"]):not([type="file"]),textarea,select) {
  padding: .65rem .75rem;
  font-size: .9375rem;
}
.metadata-form textarea {
  min-height: 5rem;
}
.metadata-form .metadata-custom-select-trigger {
  min-height: 2.75rem;
}
.zettel-body--edit .native-editor-toolbar:not([data-reserved="true"]) {
  background: var(--surface-secondary);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.zettel-body--edit .native-editor-toolbar > :is(button,select), .zettel-body--edit .native-editor-toolbar > details > summary {
  color: var(--text-primary);
}
.zettel-body--edit .native-editor-toolbar > button[aria-pressed="true"] {
  background: var(--primary-subtle);
  color: var(--text-primary);
  border-color: var(--primary);
}
.zettel-body--edit .native-editor-toolbar > button:focus-visible, .zettel-body--edit .native-editor-toolbar > details > summary:focus-visible {
  outline-color: var(--primary);
}
@container (max-width: 450px) {
  .metadata-form__group {
    grid-template-columns: minmax(0, 1fr);
  }
}
.zettel-header__title-line {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
}
.zettel-header__title-line > .zettel-header__title {
  min-width: 0;
}
.pane, [data-window-document] {
  container-type: inline-size;
}
.zettel-header.zettel-header--unified {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: auto;
  min-height: 0 !important;
  padding: 0;
  z-index: 35;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-subtle);
}
.zettel-header--unified:has(> .zettel-header__clips) {
  height: auto;
  min-height: 0 !important;
  padding-top: 0;
}
.zettel-header--unified > .zettel-header__clips, .zettel-header--unified:not(.zettel-header--editing) > .zettel-header__clips {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: none;
  min-height: 42px;
  padding-inline: 14px;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface);
  max-height: 48px;
  opacity: 1;
  overflow: hidden;
  transition: opacity 120ms ease, max-height 160ms ease, min-height 160ms ease, border-top-width 160ms ease;
}
.zettel-header--unified.zettel-header--editing > .zettel-header__clips {
  min-height: 0;
  max-height: 0;
  border-top-width: 0;
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .zettel-header--unified > .zettel-header__clips {
    transition: none;
  }
}
.zettel-header--unified .zettel-header__type-row > .zettel-header__type {
  position: static;
  flex: none;
  margin: 0;
  padding: .3rem .6rem;
  height: auto;
  max-width: 25%;
  border: 1px solid var(--border-subtle);
  border-radius: 0 0 .4rem .4rem;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: .8125rem;
  line-height: 1.5;
  text-transform: capitalize;
  box-shadow: none;
}
.zettel-header--unified .zettel-header__type-icon {
  width: 18px;
  height: 18px;
}
.zettel-header--unified .zettel-header__clip-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  width: auto;
  min-width: 2.25rem;
  height: 42px;
  margin: 0;
  padding: 0 .8rem;
  gap: .5rem;
  border: 0;
  line-height: 1;
  white-space: nowrap;
  border-top: 2px solid transparent;
  border-radius: 0;
  color: var(--text-secondary);
  background: transparent;
  font-size: .8125rem;
}
.zettel-header--unified .zettel-header__clip-action + .zettel-header__clip-action::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85rem;
  bottom: .85rem;
  border-left: 1px solid var(--border-subtle);
  @supports (color: color-mix(in lab, red, red)) {
    border-left: 1px solid color-mix(in srgb, var(--border-subtle) 55%, transparent);
  }
}
.zettel-header--unified .zettel-header__clip-action-icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
}
.zettel-header--unified .zettel-header__clip-action[aria-expanded="true"] {
  border-top-color: var(--text-primary);
  background: var(--text-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--text-primary) 6%, var(--surface));
  }
  color: var(--text-primary);
  font-weight: 600;
}
.zettel-header--unified .zettel-header__clip-action:hover {
  background: var(--surface-hover);
}
.zettel-header--unified .zettel-header__panel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  position: static;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .3rem;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.zettel-header--unified .zettel-header__clip-action[aria-expanded="true"] .zettel-header__panel-count {
  border-color: currentColor;
  color: var(--text-primary);
}
.zettel-header--unified .zettel-header__wrapper {
  gap: 1rem;
  padding: .85rem 1rem 1.1rem 1.5rem;
}
.zettel-header--unified .zettel-header__content {
  flex: 1;
  min-width: 0;
  padding: 0;
}
.zettel-header--unified .zettel-header__title-wrapper {
  width: 100%;
  min-width: 0;
}
.zettel-header--unified .zettel-header__description {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.zettel-header--unified .zettel-header__perma-menu {
  flex: none;
  margin-right: 0 !important;
}
.zettel-header--unified .zettel-header__type {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  overflow: hidden;
}
.zettel-header--unified .zettel-header__type > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zettel-header--unified .zettel-header__clip-action {
  flex-shrink: 0;
  cursor: pointer;
}
.zettel-header--unified .zettel-header__clip-action:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.zettel-header--unified .zettel-header__title, .zettel-header.zettel-header--unified input[name="zettel[title]"] {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  height: 2.5rem;
  font-size: 30px;
  line-height: 2.5rem;
  font-weight: 700;
}
.zettel-header--unified .perma-menu__button--primary, .zettel-header--unified .perma-menu__button--save, .zettel-header--unified .perma-menu__button--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  height: 36px;
  min-width: 36px;
  padding: 0 .5rem;
  border-radius: 7px;
  box-shadow: none;
  font-size: .875rem;
  font-weight: 600;
}
.zettel-header--unified .perma-menu__button--primary, .zettel-header--unified .perma-menu__button--save {
  padding-inline: .8rem;
}
.zettel-header--unified .perma-menu__button--primary {
  border-color: var(--primary);
}
.zettel-header--unified .perma-menu__button--save {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.zettel-header--unified .perma-menu__button--save:hover {
  background: var(--primary-hover);
}
.zettel-header--unified .perma-menu__dropdown a, .zettel-header--unified .perma-menu__dropdown button {
  padding: .4rem .75rem;
}
.zettel-header--unified .perma-menu__group {
  padding: .25rem 0;
}
.zettel-header--unified .perma-menu__shortcut {
  margin-left: auto;
}
.zettel-header--unified [data-controller="zettel-delete"] {
  color: var(--danger, #b42318);
}
.zettel-header__lock {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 36px;
  padding: .25rem .6rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  font-size: .8125rem;
  white-space: nowrap;
}
.zettel-header__lock-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lock-color, #58758c);
  color: white;
}
.zettel-header.zettel-header--locked {
  border-top: 3px solid var(--lock-color, #58758c);
  background: var(--lock-color, #58758c);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--lock-color, #58758c) 6%, var(--surface));
  }
}
@container (max-width: 650px) {
  .zettel-header--unified .zettel-header__clip-action {
    padding-inline: .65rem;
  }
  .zettel-header--unified .zettel-header__wrapper {
    flex-wrap: wrap;
    gap: .65rem;
  }
  .zettel-header--locked .zettel-header__wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px 36px;
  }
  .zettel-header--locked .zettel-header__content {
    grid-column: 1;
    grid-row: 1;
  }
  .zettel-header--locked .zettel-header__perma-menu, .zettel-header--locked .zettel-header__perma-menu > div {
    display: contents;
  }
  .zettel-header--locked .zettel-header__lock {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }
  .zettel-header--locked .perma-menu__button--outline {
    grid-row: 1;
  }
  .zettel-header--locked .zettel-header__perma-menu > div > div {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
  }
}
@container (max-width: 400px) {
  .zettel-header.zettel-header--unified {
    padding-inline: .75rem;
  }
  .zettel-header--unified .zettel-header__clip-action {
    padding-inline: .5rem;
    min-width: 1.75rem;
  }
  .zettel-header--unified .zettel-header__title, .zettel-header.zettel-header--unified input[name="zettel[title]"] {
    font-size: 28px;
  }
}
.zettel-overlay--head .zettel-overlay__count {
  color: var(--text-secondary);
  background: transparent;
  font-size: .875rem;
}
.zettel-overlay--head .zettel-versions__create {
  margin-left: auto;
}
.zettel-overlay--head .zettel-versions__create button {
  width: auto;
  margin: 0;
}
.zettel-overlay--head :is(.zettel-panel-action, .metadata-header-edit), .zettel-overlay--head .zettel-overlay__header > .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 36px;
  width: auto;
  margin: 0;
  padding: .35rem .65rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: .8125rem;
  cursor: pointer;
}
.zettel-overlay--head :is(.zettel-panel-action, .metadata-header-edit):hover, .zettel-overlay--head .zettel-overlay__header > .button:hover {
  background: var(--surface-hover);
}
.zettel-overlay--head :is(.zettel-panel-action, .metadata-header-edit):focus-visible, .zettel-overlay--head .zettel-overlay__header > .button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.zettel-overlay--head:not(.visible) * {
  pointer-events: none;
}
.zettel:has(.zettel-overlay--head.visible) .native-editor[data-editor-scope="zettel"] {
  min-height: 12rem;
}
.zettel-header__lock-avatar {
  position: relative;
  overflow: hidden;
}
.zettel-header__lock-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zettel:has(.zettel-overlay--head.visible) .zettel-header--locked {
  border-top: 3px solid var(--lock-color, #58758c);
}
.zettel-header--unified .zettel-header__clips {
  justify-content: flex-start;
}
.zettel-header--unified .zettel-header__clip-action-icon, .zettel-header--unified .perma-menu__button--primary svg, .zettel-header--unified .perma-menu__button--outline svg {
  stroke-width: 1.7;
}
.zettel {
  overflow: clip;
}
.zettel .native-editor-popover {
  max-height: max(6rem, min(24rem, calc(100dvh - var(--zettel-header-height, 80px) - 9rem)));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.zettel-overlay--head .note.note--compact[data-note-color] {
  border: 1px solid var(--note-border);
  border-left: 5px solid var(--note-accent);
  box-shadow: none;
}
.zettel-overlay--head .note--compact[data-note-color] .note__title {
  background: transparent;
  border: 0;
  padding-inline: 0;
}
.zettel-edit-scrollable .zettel-body.zettel-body--edit:not(:has(.native-editor[data-editor-scope="zettel"] > [data-mode="source"])) {
  height: auto;
  min-height: 100%;
  overflow: visible;
}
.zettel-header--unified {
  isolation: isolate;
}
.zettel-header--unified .zbackdrop__wrapper {
  z-index: 0;
  bottom: 43px;
}
.zettel-header__type-row {
  position: relative;
  z-index: 1;
  min-height: 32px;
  padding-inline: 1.5rem;
}
.zettel-header--unified:has(.zbackdrop__wrapper) .zettel-header__type {
  background: rgb(12 15 18 / .68);
  color: #fff;
  border-color: transparent;
}
.zettel-header--unified > .zettel-header__clips {
  z-index: 1;
}
.zettel-header--unified :is(.zettel-header__utility-label, .zettel-header__metadata-label) {
  display: none;
}
.zettel-header--unified .zettel-header__clip-action[aria-expanded="true"] :is(.zettel-header__utility-label, .zettel-header__metadata-label) {
  display: inline;
}
.zettel-header--unified .zettel-header__content.has-backdrop :is(.zettel-header__title, .zettel-header__description, input[name="zettel[title]"]) {
  color: #fff !important;
}
.zettel-header--unified .zettel-header__notes.has-notes .zettel-header__panel-count {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-fg);
}
.zettel-header--unified {
  position: relative;
}
.zettel-header__type-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-right: 7rem;
}
.zettel-physical-actions {
  position: absolute;
  top: .75rem;
  right: 1rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.zettel-physical-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.zettel-physical-action svg {
  display: block;
  flex: none;
  width: 13px;
  height: 13px;
  stroke-width: 2;
}
@media (hover: hover) {
  .zettel-physical-action:hover {
    border-width: 2px;
  }
  .zettel-physical-action:hover svg {
    stroke-width: 2.5;
  }
}
.zettel-physical-action:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.zettel-header--unified:has(.zbackdrop__wrapper) .zettel-physical-action {
  color: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .65);
}
.zettel-header--unified:has(.zbackdrop__wrapper) .zettel-physical-action svg {
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / .85));
}
@media (hover: hover) {
  .zettel .zettel-header--unified .zettel-header__perma-menu, .zettel .zettel-floating-actions, .zettel .zettel-header__type-row .zettel-identifier, .zettel .zettel-physical-actions {
    opacity: 0;
    pointer-events: none;
  }
  .zettel:is(:hover, :focus-within) .zettel-physical-actions, .zettel:is(:hover, :focus-within) .zettel-header__type-row .zettel-identifier, .zettel:is(:hover, :focus-within) .zettel-header--unified .zettel-header__perma-menu, .zettel:is(:hover, :focus-within) .zettel-floating-actions, .zettel .zettel-header--unified .zettel-header__perma-menu:has([aria-expanded="true"]), .zettel .zettel-header--unified .zettel-header__perma-menu:has(.perma-menu__button--save), .zettel:has(.zettel-overlay[data-overlay-name="quick-guide"].visible) .zettel-floating-actions {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zettel .zettel-header__perma-menu, .zettel .zettel-floating-actions {
    transition: none;
  }
}
.zettel-header__clip-spacer {
  flex: 1;
  min-width: .75rem;
}
.zettel-identifier {
  position: relative;
  display: inline-flex;
}
.zettel-identifier__overlay {
  position: absolute;
  top: calc(100% + .5rem);
  right: -.5rem;
  z-index: 30;
  display: grid;
  gap: .5rem;
  width: min(20rem, 75vw);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 .5rem 1.5rem #0003;
}
.zettel-identifier__overlay::before {
  content: "";
  position: absolute;
  inset: -.6rem 0 auto;
  height: .6rem;
}
.zettel-identifier__overlay strong {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
}
.zettel-identifier__overlay strong svg {
  width: 1.1rem;
  height: 1.1rem;
}
.zettel-identifier__overlay code {
  font-size: .9rem;
  overflow-wrap: anywhere;
  padding: .5rem;
  border: 1px dashed var(--border);
  border-radius: .3rem;
}
.zettel-identifier__overlay :is(small, span) {
  font-size: .7rem;
  color: var(--text-secondary);
}
.zettel-header__type-row:has(.zettel-identifier__overlay) {
  z-index: 60;
}
.zettel-header__type-row .zettel-identifier__overlay {
  left: -.5rem;
  right: auto;
}
.sidebar__notes {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  flex: none;
  margin-left: auto;
  align-self: center;
  color: var(--text-muted);
}
.sidebar__notes-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}
.sidebar__note-count {
  flex: none;
  color: inherit;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.zettel-list__item--sidebar.has-backdrop .sidebar__notes {
  color: #fff;
  text-shadow: 0 1px 3px rgb(0 0 0 / .75);
}
.zettel-list__item--sidebar.has-backdrop .sidebar__notes-icon {
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / .75));
}
.zettel-header--archived {
  --zettel-state-color: var(--text-secondary);
}
.zettel-header--deleted {
  --zettel-state-color: var(--danger, #b54238);
}
.zettel-header.zettel-header--archived, .zettel-header.zettel-header--deleted {
  position: relative;
  isolation: isolate;
  border-top: 3px solid var(--zettel-state-color);
  background: linear-gradient(120deg, var(--zettel-state-color), var(--surface));
  @supports (color: color-mix(in lab, red, red)) {
    background: linear-gradient(120deg, color-mix(in srgb, var(--zettel-state-color) 9%, var(--surface)), var(--surface));
  }
}
.zettel-header__state-backdrop {
  position: absolute;
  inset: 1rem 4rem auto auto;
  opacity: .055;
  color: var(--zettel-state-color);
  pointer-events: none;
  z-index: -1;
}
.zettel-header__state-backdrop svg {
  width: 8rem;
  height: 8rem;
  stroke-width: 1;
}
.zettel-header__state-latch {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  padding: .3rem .6rem;
  border: 1px solid var(--zettel-state-color);
  border-top: 0;
  border-radius: 0 0 .4rem .4rem;
  background: var(--zettel-state-color);
  color: var(--surface);
  font-size: .8125rem;
  font-weight: 650;
  white-space: nowrap;
}
.zettel-header__state-latch svg {
  width: 1rem;
  height: 1rem;
}
.zettel-header--unified .archive-action .perma-menu__button--primary {
  opacity: 1;
}
.zettel-header--unified .zettel-header__type-row > .zettel-header__type {
  align-self: flex-start;
}
.zettel-header--unified {
  border-top: 2px solid transparent;
}
.zettel-header.zettel-header--editing {
  border-top: 2px solid var(--primary);
  background: var(--surface);
  box-shadow: none;
}
.zettel-header--unified .zettel-header__type-row {
  grid-column: 1;
  grid-row: 1;
  min-height: 36px;
  min-width: 0;
  padding: 0 0 0 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.zettel-header--unified .zettel-header__type-row > .zettel-header__type {
  align-self: center;
  border: 0;
  background: transparent;
  padding: 0;
  max-width: none;
  border-radius: 0;
}
.zettel-header--unified .zettel-header__state-latch {
  align-self: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--zettel-state-color);
  padding: 0;
  font-weight: 500;
}
.zettel-header__editing-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--primary);
  font-size: .8125rem;
}
.zettel-header__editing-label svg {
  width: 18px;
  height: 18px;
}
.zettel .zettel-header--unified .zettel-physical-actions {
  position: static;
  grid-column: 2;
  grid-row: 1;
  opacity: 1;
  pointer-events: auto;
  margin: 0 1rem 0 .75rem;
}
.zettel-header--unified .zettel-physical-action {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: .45rem;
}
.zettel-header--unified .zettel-physical-action svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
}
.zettel-header__metadata-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 36px;
  padding: .45rem .65rem;
  border: 0;
  border-radius: .45rem;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  font-size: .875rem;
}
.zettel-header__metadata-toggle svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
}
.zettel-header__metadata-toggle .zettel-header__metadata-chevron {
  width: 14px;
  margin-left: .6rem;
}
.zettel-header__metadata-toggle[aria-expanded="true"] {
  background: var(--surface-hover);
  color: var(--text-primary);
}
.zettel-header__metadata-toggle[aria-expanded="true"] .zettel-header__metadata-chevron {
  transform: rotate(180deg);
}
.zettel-header__metadata-toggle:hover, .zettel-header--unified .zettel-physical-action:hover {
  background: var(--surface-hover);
}
.zettel-header__metadata-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.zettel-header__metadata-dirty {
  display: none;
}
.has-metadata-changes .zettel-header__metadata-dirty {
  display: inline;
}
.zettel-header__cancel {
  color: var(--text-secondary);
  padding: .5rem;
  cursor: pointer;
}
.zettel-header--unified .zettel-header__wrapper {
  padding-block: .75rem 1.5rem;
}
.zettel-header--unified input[name="zettel[title]"] {
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.zettel-header--unified :is(.zettel-header__utility-label, .zettel-header__metadata-label) {
  display: inline;
}
.zettel-header--unified .zettel-header__clip-action + .zettel-header__clip-action::before {
  display: none;
}
.zettel-header--unified .zettel-header__panel-count {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
  font-weight: 400;
}
.zettel-header--unified .zettel-header__notes.has-notes .zettel-header__panel-count {
  background: transparent;
  color: inherit;
}
.zettel-header--unified .zbackdrop__wrapper {
  bottom: auto;
  top: 0;
  height: 100%;
  z-index: -1;
}
@container (max-width: 650px) {
  .zettel-header--unified .zettel-header__clips {
    flex-wrap: wrap;
    max-height: none;
  }
  .zettel-header--unified.zettel-header--editing > .zettel-header__clips {
    max-height: 0;
  }
  .zettel-header--unified .zettel-header__clip-action {
    padding-inline: .5rem;
  }
}
.zettel-header--unified {
  position: relative;
}
.zettel-body--edit .native-editor-toolbar {
  top: 0;
}
.metadata-image-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: .45rem;
  cursor: pointer;
}
.metadata-image-upload svg {
  width: 20px;
  height: 20px;
}
.metadata-image-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.metadata-image-upload:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.zettel-header__identity-region {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding-top: .8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.zettel-header__identity-region > .zettel-header__wrapper {
  grid-column: 1 / -1;
  grid-row: 2;
}
@container (max-width: 400px) {
  .zettel-header__metadata-toggle > span:not(.zettel-header__metadata-dirty) {
    display: none;
  }
  .zettel-header__metadata-toggle .zettel-header__metadata-chevron {
    margin-left: 0;
  }
}
.zettel-header--unified:has(.zbackdrop__wrapper) :is(.zettel-header__metadata-toggle, .zettel-physical-action) {
  color: #fff;
  background: rgb(20 18 24 / .7);
  border: 0;
  box-shadow: none;
}
.zettel-header--unified:has(.zbackdrop__wrapper) .zettel-physical-action svg {
  filter: none;
}
.zettel-header--unified:has(.zbackdrop__wrapper) :is(.zettel-header__metadata-toggle, .zettel-physical-action):hover {
  background: rgb(20 18 24 / .9);
}
.zettel-header--unified:has(.zbackdrop__wrapper) .zettel-header__metadata-toggle[aria-expanded="true"] {
  background: rgb(62 48 70 / .95);
}
.zettel-header:is(.zettel-header--archived, .zettel-header--deleted) {
  --zettel-state-pattern-ink: var(--zettel-state-color);
  @supports (color: color-mix(in lab, red, red)) {
    --zettel-state-pattern-ink: color-mix(in srgb, var(--zettel-state-color) 18%, transparent);
  }
}
.zettel-header--archived {
  --zettel-state-pattern: repeating-linear-gradient(0deg, transparent 0 15px, var(--zettel-state-pattern-ink) 15px 16px), repeating-linear-gradient(90deg, transparent 0 15px, var(--zettel-state-pattern-ink) 15px 16px);
}
.zettel-header--deleted {
  --zettel-state-pattern: repeating-linear-gradient(135deg, transparent 0 10px, var(--zettel-state-pattern-ink) 10px 12px);
}
.zettel-header:is(.zettel-header--archived, .zettel-header--deleted) .zettel-header__identity-region::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--zettel-state-pattern);
}
.zettel-header:is(.zettel-header--archived, .zettel-header--deleted):has(.zbackdrop__wrapper) {
  --zettel-state-pattern-ink: rgb(255 255 255 / .12);
}
.zettel-header--unified :is(.zettel-header__editing-label, .zettel-header__state-latch) {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: .4rem;
  padding: .35rem .6rem;
  border: 1px solid currentColor;
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  }
  border-radius: .6rem;
  background: var(--surface);
  line-height: 1.3;
  font-size: .8125rem;
  font-weight: 600;
}
.zettel-header--unified .zettel-header__editing-label {
  color: var(--primary);
  background: var(--primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--primary) 9%, var(--surface));
  }
}
.zettel-header--unified .zettel-header__state-latch {
  color: var(--zettel-state-color);
}
.zettel-header--unified:has(.zbackdrop__wrapper) :is(.zettel-header__editing-label, .zettel-header__state-latch) {
  color: #fff;
  border-color: rgb(255 255 255 / .45);
  background: rgb(20 18 24 / .85);
}
.zettel-header--unified:has(.zbackdrop__wrapper) .zettel-header__cancel {
  color: #fff;
  border: 1px solid rgb(255 255 255 / .35);
  border-radius: .6rem;
  background: rgb(20 18 24 / .8);
}
.zettel-session .zettel-header--unified {
  animation: zettel-show-chrome 160ms ease-out;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.zettel-session .zettel-header--editing {
  animation-name: zettel-edit-chrome;
}
@keyframes zettel-show-chrome {
  from {
    opacity: .75;
  }
  to {
    opacity: 1;
  }
}
@keyframes zettel-edit-chrome {
  from {
    opacity: .75;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zettel-session .zettel-header--unified {
    animation: none;
    transition: none;
  }
}
.pane-stack > .pane > .zettel .zettel-header--unified :is(.zettel-physical-actions, .zettel-header__perma-menu) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pane-stack > .pane:not(.pane--focused) > .zettel .zettel-header--unified :is(.zettel-physical-actions, .zettel-header__perma-menu) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.zettel:has(.zettel-document), .pane-stack > .pane > article.zettel:has(.zettel-document) {
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.zettel:has(.zettel-document) > .zettel-body {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.zettel-session:has(.zettel-document) {
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.zettel-card-stack {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.zettel-card-stack > .zettel-card-stack {
  flex: 1;
}
.zettel-card-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.zettel-session .zettel-document > form.zettel-card-form {
  display: contents;
}
.zettel-document.zettel-edit-scrollable {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  align-content: start;
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  height: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  box-shadow: 0 6px 16px var(--shadow-color);
}
.pane--focused .zettel-document {
  border-color: var(--primary);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--primary) 65%, var(--surface));
  }
}
.zettel-document .zettel-header {
  grid-column: 1;
  grid-row: 1;
}
.zettel-document .zettel-content, .zettel-document [data-version-preview-target="diffPanel"] {
  grid-column: 1;
  grid-row: 3;
}
.zettel-document .zettel-overlay.zettel-overlay--head {
  grid-column: 1;
  grid-row: 2;
  z-index: 1;
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  max-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: opacity 160ms ease;
  background: linear-gradient(125deg, var(--surface-secondary), var(--surface));
}
.zettel-document .zettel-overlay.zettel-overlay--head.visible {
  max-height: none;
  visibility: visible;
  opacity: 1;
  border-bottom: 1px solid var(--border-subtle);
}
.zettel-document .zettel-overlay.zettel-overlay--head.visible::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.zettel-document .zettel-overlay--head > .zettel-overlay__body {
  flex: none;
  overflow: visible;
  padding: .5rem 1.5rem 1rem;
}
.zettel-document .zettel-overlay--head > .zettel-overlay__header {
  flex-shrink: 0;
  justify-content: space-between;
  padding: .65rem 1rem .25rem 1.5rem;
}
.zettel-overlay--metadata-head .zettel-overlay__title {
  display: flex;
}
.zettel-overlay--metadata-head .metadata-form__field {
  align-items: flex-start;
  margin: 0;
  padding: 0;
}
.zettel-overlay--metadata-head .metadata-form__label {
  font-family: inherit;
  font-weight: 400;
  font-size: .875rem;
  text-transform: none;
  letter-spacing: normal;
  padding: 0;
}
.zettel-overlay--metadata-head .metadata-form__value {
  font-size: .875rem;
}
.metadata-reading__type {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-transform: capitalize;
}
.metadata-reading__type svg {
  width: 18px;
  height: 18px;
}
.metadata-reading__image {
  max-width: 6rem;
  max-height: 2.5rem;
  border-radius: .35rem;
  object-fit: cover;
}
.metadata-reading__text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.metadata-reading__custom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .3rem .75rem;
}
.metadata-reading__custom dd {
  overflow-wrap: anywhere;
}
@container (max-width: 420px) {
  .zettel-overlay--metadata-head .metadata-form__field {
    grid-template-columns: 7rem minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .zettel-document .zettel-overlay.zettel-overlay--head {
    transition: none;
  }
}
.zettel-document > .zettel-document-heading {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.zettel-document > .zettel-document-heading, .zettel-document > form.zettel-card-form > .zettel-header {
  position: relative;
  z-index: 35;
  background: var(--surface);
}
.zettel-document.zettel-edit-scrollable:has(.native-editor[data-editor-scope="zettel"] > [data-mode="source"]) {
  overflow-y: auto;
}
.zettel-document .zettel-content:has(.native-editor[data-editor-scope="zettel"] > [data-mode="source"]) {
  min-height: 16rem;
}
.zettel-document .native-editor[data-editor-scope="zettel"] > .native-editor-source {
  min-height: 10rem;
}
.zettel-document .zettel-overlay--notes .notes-related__grid {
  flex: none;
  max-height: min(45dvh, 24rem);
}
.zettel-document .native-editor-toolbar {
  position: sticky;
  top: 0;
}
.zettel[data-zettel-height-mode="compact"] .zettel-document.zettel-edit-scrollable {
  flex: 0 1 auto;
  max-height: 100%;
}
.zettel[data-zettel-height-mode="compact"] .native-editor-content.zettel-editor-reading {
  min-height: 0;
}
.zettel[data-zettel-height-mode="compact"] .native-editor-content:not(.zettel-editor-reading) {
  min-height: 8rem;
}
.zettel[data-zettel-height-mode="compact"] .native-editor[data-editor-scope="zettel"] {
  min-height: 0;
}
.zettel[data-zettel-height-mode="compact"] .perma-menu__dropdown {
  position: fixed;
  inset: var(--height-menu-top, 5rem) auto auto var(--height-menu-left, 1rem);
  width: min(256px, calc(100vw - 16px));
  max-height: calc(100dvh - var(--height-menu-top, 5rem) - 8px);
  overflow-y: auto;
}
.zettel[data-zettel-height-mode="compact"] .zettel-content {
  padding-bottom: 3.5rem;
}
.zettel[data-zettel-height-mode="compact"] .zettel-floating-actions {
  bottom: calc(var(--zettel-card-bottom-gap, 0px) + 1rem);
}
.zettel[data-zettel-height-mode="compact"] .zettel-overlay[data-overlay-name="quick-guide"] {
  bottom: calc(var(--zettel-card-bottom-gap, 0px) + 1px);
}
.zettel .zettel-overlay[data-overlay-name="quick-guide"] {
  height: 24rem;
  max-height: max(0px, calc(var(--zettel-card-height, 100%) - 1rem));
  transform: none;
  visibility: hidden;
  transition: opacity 120ms ease;
}
.zettel .zettel-overlay[data-overlay-name="quick-guide"].visible {
  transform: none;
  visibility: visible;
}
.zettel .zettel-overlay[data-overlay-name="quick-guide"] > .zettel-overlay__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
@media (prefers-reduced-motion: reduce) {
  .zettel .zettel-overlay[data-overlay-name="quick-guide"] {
    transition: none;
  }
}
.zettel[data-zettel-height-mode="compact"] .zettel__spine {
  bottom: var(--zettel-card-bottom-gap, 0px);
  border-radius: 12px 0 0 12px;
  box-sizing: border-box;
  overflow: hidden;
}
.pane-stack > .pane > .zettel[data-zettel-height-mode="compact"].zettel--more-below::after {
  bottom: var(--zettel-card-bottom-gap, 0px);
  border-radius: 0 0 12px 12px;
}
.pane-stack > .pane--focused .zettel-document {
  box-shadow: 0 0 0 1px var(--shadow-color), 0 6px 16px var(--shadow-color);
}
.pane--base:has(> .zettel[data-zettel-height-mode="compact"]) {
  border-right: 0;
}
.metadata-form--editing .metadata-form__group {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-bottom: .5rem;
}
.zettel-overlay--metadata-head .metadata-form--editing .metadata-form__field {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  padding: .45rem 0;
}
.metadata-form--editing :is(input:not([type="checkbox"]):not([type="file"]), textarea, select) {
  padding: .3rem .5rem;
  font-size: .8rem;
}
.metadata-form--editing textarea {
  min-height: 2rem;
}
.metadata-form--editing .metadata-custom-select-trigger {
  min-height: 2rem;
}
.metadata-form--editing .metadata-image-upload {
  padding: .3rem .5rem;
  font-size: .8rem;
}
@container (max-width: 420px) {
  .zettel-overlay--metadata-head .metadata-form--editing .metadata-form__field {
    grid-template-columns: 7rem minmax(0, 1fr);
  }
}
.zettel-document .zettel-footer {
  grid-column: 1;
  grid-row: 4;
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .1rem;
  min-height: 42px;
  padding: 0 .75rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-secondary);
}
.zettel-footer .zettel-header__clip-action {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 42px;
  padding: .35rem .55rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: .8125rem;
  cursor: pointer;
}
.zettel-footer .zettel-header__clip-action:hover, .zettel-footer .zettel-header__clip-action[aria-expanded="true"] {
  background: var(--surface-hover);
  color: var(--text-primary);
}
.zettel-footer .zettel-header__clip-action:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.zettel-footer .zettel-header__clip-action-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}
.zettel-footer .zettel-header__panel-count {
  font-size: inherit;
  color: inherit;
}
.zettel-footer .zettel-header__utility-label {
  display: inline;
}
.zettel[data-zettel-height-mode="compact"] .zettel-content {
  padding-bottom: 1.5rem;
}
.zettel-document > .zettel-document-heading, .zettel-document > form.zettel-card-form > .zettel-header {
  position: sticky;
  top: 0;
}
.zettel-document :is(.zettel-document-heading, .zettel-header):has(.zettel-overlay--metadata-head.visible) {
  position: relative;
}
.zettel-document .native-editor-toolbar {
  top: var(--zettel-header-height, 80px);
}
.zettel-document:has(.zettel-overlay--metadata-head.visible) .native-editor-toolbar {
  top: 0;
}
@container (max-width: 600px) {
  .zettel-footer .zettel-header__utility-label {
    display: none;
  }
  .zettel-footer .zettel-header__clip-action[aria-expanded="true"] .zettel-header__utility-label {
    display: inline;
  }
}
.zettel-document .zettel-overlay.zettel-overlay--metadata-head {
  --surface: #242229;
  --surface-secondary: #302c35;
  --surface-hover: #3b3542;
  --surface-elevated: #302c35;
  --input-bg: #302c35;
  --input-border: #625969;
  --primary-subtle: #49384f;
  --text-placeholder: #b7afbf;
  --text-primary: #f3eff6;
  --text-secondary: #ccc5d3;
  --text-muted: #ccc5d3;
  --border: #625969;
  --border-subtle: #443d4a;
  background-color: #242229;
  background-image: none;
  color: var(--text-primary);
}
.zettel-document .zettel-overlay--metadata-head .metadata-header-edit {
  color: #e4b8ef;
  background: transparent;
}
:root[data-theme="paper"] .zettel-document .zettel-overlay--metadata-head {
  --surface: #fff;
  --surface-secondary: #f7f7f7;
  --surface-hover: #dedede;
  --surface-elevated: #fff;
  --input-bg: #fff;
  --input-border: #555;
  --primary-subtle: #dedede;
  --text-primary: #161616;
  --text-secondary: #333;
  --text-muted: #505050;
  --text-placeholder: #505050;
  --border: #555;
  background-color: var(--surface);
}
.zettel-document.zettel-edit-scrollable {
  grid-template-rows: max-content max-content minmax(min-content, 1fr) max-content;
}
.zettel-document .zettel-footer {
  z-index: 30;
}
.zettel-footer .zettel-header__clip-action {
  border-top: 2px solid transparent;
}
.zettel-footer .zettel-header__clip-action[aria-expanded="true"] {
  border-top-color: var(--primary);
}
.zettel-document .zettel-footer {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  padding: 0;
  gap: 0;
}
.zettel-footer__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .1rem;
  min-height: 42px;
  padding: 0 .75rem;
  background: var(--surface);
}
.zettel-document .zettel-footer .zettel-overlay.zettel-overlay--head.visible {
  max-height: min(45dvh, 28rem);
  border-bottom: 1px solid var(--border-subtle);
}
.zettel-document .zettel-footer .zettel-overlay--head > .zettel-overlay__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.zettel .zettel-overlay[data-overlay-name="quick-guide"] {
  bottom: calc(var(--zettel-card-bottom-gap, 0px) + 43px);
}
.zettel-footer .zettel-footer__guide .zettel-header__utility-label {
  display: none;
}
.zettel-document .zettel-footer .zettel-overlay[data-overlay-name="quick-guide"] {
  position: relative;
  inset: auto;
  height: auto;
  max-height: 0;
  transform: none;
}
.zettel-document .zettel-footer .zettel-overlay[data-overlay-name="quick-guide"].visible {
  max-height: min(45dvh, 28rem);
}
.zettel-document .zettel-overlay--metadata-head > .zettel-overlay__body {
  background: transparent;
}
.metadata-backdrop {
  position: absolute;
  top: 3.5rem;
  right: 3rem;
  opacity: .055;
  color: var(--text-primary);
  pointer-events: none;
}
.metadata-backdrop svg {
  width: 12rem;
  height: 12rem;
  stroke-width: 1;
}
.zettel-overlay--metadata-head .metadata-form {
  position: relative;
  z-index: 2;
}
.zettel-document.zettel-edit-scrollable {
  scroll-padding-top: calc(var(--zettel-header-height, 130px) + 3rem);
  scroll-padding-bottom: calc(var(--zettel-footer-height, 43px) + .5rem);
}
.zettel-document.zettel-edit-scrollable:has(.zettel-overlay--metadata-head.visible) {
  scroll-padding-top: 3rem;
}
.hub-navigation {
  display: block;
  min-height: 100%;
}
.hub {
  min-height: calc(100dvh - 3.5rem);
  background: var(--app-bg);
  color: var(--text-primary);
}
.hub__content {
  max-width: 70rem;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}
.hub__heading, .hub__activity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hub__heading {
  margin-bottom: 2rem;
}
.hub h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.035em;
}
.hub__new {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface);
  white-space: nowrap;
}
.hub svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.hub__search {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .5rem;
  color: var(--text-muted);
}
.hub__search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  padding: .25rem 0;
}
.hub__search:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.hub__search-submit {
  font-size: .75rem;
  cursor: pointer;
  padding: .25rem .5rem;
  color: var(--text-secondary);
}
.hub__count {
  margin: 1.5rem 0 .75rem;
  color: var(--text-muted);
  font-size: .875rem;
}
.hub__boxes {
  overflow: hidden;
  border-radius: .75rem;
}
.hub__box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
}
.hub__box + .hub__box {
  border-top: 0;
}
.hub__box:first-child {
  border-radius: .75rem .75rem 0 0;
}
.hub__box:last-child {
  border-radius: 0 0 .75rem .75rem;
}
.hub__box:only-child {
  border-radius: .75rem;
}
.hub__box-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  padding: 1.5rem;
  font-weight: 500;
}
.hub__box-title {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.hub__participants {
  display: inline-flex;
  flex-shrink: 0;
  padding-left: .4rem;
}
.hub__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin-left: -.4rem;
  border: var(--avatar-border-width, 2px) solid var(--surface);
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--text-link);
  font-size: .65rem;
  font-weight: 600;
  overflow: hidden;
}
.hub__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hub__avatar--more {
  background: var(--surface-secondary);
  color: var(--text-secondary);
}
.hub__box-link small {
  display: block;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 400;
  margin-top: .25rem;
}
.hub__box-icon {
  color: var(--primary);
}
.hub__arrow {
  margin-left: auto;
  color: var(--text-muted);
}
.hub__star {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 1rem;
  border-radius: .5rem;
  color: var(--text-muted);
  cursor: pointer;
}
.hub__star[aria-pressed="true"] {
  color: var(--favorite-fg, var(--primary));
}
.hub__star svg {
  stroke-width: 1.25;
}
.hub__star[aria-pressed="true"] svg {
  fill: currentColor;
}
.hub__star:hover, .hub__new:hover, .hub__box-link:hover {
  background: var(--surface-secondary);
}
.hub__empty {
  padding: 2rem 0;
  color: var(--text-muted);
}
.hub__empty a {
  text-decoration: underline;
}
.hub__activity {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--surface);
  overflow: hidden;
}
.hub__activity-heading {
  padding: 1.5rem;
}
.hub h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.025em;
}
.hub__activity-heading span {
  font-size: .875rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.hub__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
}
.hub__tabs a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem .75rem;
  border-bottom: 3px solid transparent;
  border-radius: .5rem .5rem 0 0;
  color: var(--text-secondary);
}
.hub__tabs a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-subtle);
  border-color: var(--primary);
}
.hub__activity-body {
  padding: 1.5rem;
  color: var(--text-secondary);
  font-size: .875rem;
}
.hub__preview {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: .75rem;
}
@media (max-width: 600px) {
  .hub__content {
    padding: 2rem 1rem;
  }
  .hub h1 {
    font-size: 1.625rem;
  }
  .hub__box-link {
    padding: 1.25rem 1rem;
    gap: .75rem;
  }
  .hub__star {
    margin-right: .5rem;
  }
  .hub__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 .5rem;
  }
  .hub__activity-heading {
    flex-wrap: wrap;
  }
}
:root {
  --note-paper: #fff9d9;
  --note-ink: #49432b;
  --note-muted: #776c48;
  --note-border: #ded5ab;
  --note-link: #663c70;
  --note-title-edge: #8d733f;
  --note-title-ink: #3c3320;
  --note-title-paper: radial-gradient(circle, #8d733f18 .6px, transparent .8px) 0 0 / 5px 5px, linear-gradient(110deg, #f4e9b4, #faf1ca);
}
:root:is([data-theme="dark"], [data-theme="paper"]) {
  --note-paper: #f5db78;
  @supports (color: color-mix(in lab, red, red)) {
    --note-paper: color-mix(in srgb, #f5db78 7%, var(--surface));
  }
  --note-ink: var(--text-primary);
  --note-muted: var(--text-secondary);
  --note-border: var(--border);
  --note-link: var(--text-link);
  --note-title-edge: var(--text-muted);
  --note-title-ink: var(--text-primary);
  --note-title-paper: radial-gradient(circle, var(--note-ink) .6px, transparent .8px) 0 0 / 5px 5px, linear-gradient(var(--note-ink), var(--note-ink));
  @supports (color: color-mix(in lab, red, red)) {
    --note-title-paper: radial-gradient(circle, color-mix(in srgb, var(--note-ink) 8%, transparent) .6px, transparent .8px) 0 0 / 5px 5px, linear-gradient(color-mix(in srgb, var(--note-ink) 4%, var(--note-paper)), color-mix(in srgb, var(--note-ink) 4%, var(--note-paper)));
  }
}
.notes-host {
  height: 100%;
  overflow: auto;
  background: var(--background);
}
.notes-host > div {
  min-height: 100%;
}
.note {
  display: flex;
  flex-direction: column;
  background: var(--note-paper);
  color: var(--note-ink);
  border: 1px solid var(--note-border);
  border-radius: 1.25rem;
  box-shadow: 0 .25rem 1rem #4239140d;
}
.notes-host > div > .note:not(.note--preview) {
  min-height: 100dvh;
  border-radius: 0;
  border: 0;
  padding: 1rem 1.25rem;
}
.note__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border-bottom: 1px solid color-mix(in srgb, var(--note-ink) 15%, transparent);
  }
}
.note__header h1 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0;
}
.note__header > div {
  display: flex;
  gap: .25rem;
}
.note button, .note summary {
  cursor: pointer;
}
.note button {
  background: transparent;
  color: inherit;
  border: 0;
}
.note__header button {
  display: inline-grid;
  place-items: center;
  padding: .375rem;
  border-radius: .375rem;
}
.note button:hover, .note summary:hover {
  background: var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--note-ink) 7%, transparent);
  }
}
.note button:disabled {
  opacity: .45;
  cursor: default;
}
.note__text {
  flex: 1;
  width: 100%;
  min-height: 16rem;
  resize: none;
  padding: 1.25rem 0;
  border: 0 !important;
  background: transparent !important;
  color: var(--note-ink);
  font: 1.0625rem/1.65 var(--font-mono);
  box-shadow: none !important;
  outline: none;
}
.note__text::placeholder {
  color: var(--note-muted);
}
.note__footer, .note__context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.note__footer {
  padding-top: .625rem;
  border-top: 1px solid var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border-top: 1px solid color-mix(in srgb, var(--note-ink) 15%, transparent);
  }
  font-size: .8125rem;
}
.note__status {
  margin-left: auto;
  font-size: .75rem;
  white-space: nowrap;
}
.note__context {
  margin-top: .75rem;
  color: var(--note-muted);
  font-size: .6875rem;
}
.note__context a {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.note-picker {
  position: relative;
  min-width: 0;
}
.note-picker summary {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem;
  border-radius: .375rem;
  list-style: none;
  font-size: .8125rem;
}
.note-picker summary::-webkit-details-marker {
  display: none;
}
.note-picker__menu {
  position: absolute;
  bottom: calc(100% + .5rem);
  left: 0;
  z-index: 30;
  width: min(18rem, calc(100vw - 3rem));
  padding: .5rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 .5rem 1.5rem #0002;
}
.note-picker__menu input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: .375rem;
  padding: .5rem;
  background: var(--surface);
  color: var(--text-primary);
  font-size: .8125rem;
}
.note-picker__results {
  max-height: 12rem;
  overflow: auto;
  margin-top: .375rem;
}
.note-picker__results button {
  width: 100%;
  display: block;
  text-align: left;
  padding: .5rem;
  border-radius: .375rem;
  overflow-wrap: anywhere;
  font-size: .8125rem;
}
.note-picker__results p {
  text-align: center;
  padding: 1rem .5rem;
  font-size: .8125rem;
}
.notes-inbox {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem;
}
.notes-inbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.notes-inbox__header a {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}
.notes-inbox__header h1 {
  font-size: 1.75rem;
  font-weight: 650;
  margin: .75rem 0 .375rem;
}
.notes-inbox__header p {
  color: var(--text-secondary);
}
.notes-inbox__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.note--preview {
  padding: 1.25rem;
  min-height: 16rem;
}
.note__title {
  font-weight: 650;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}
.note__preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: .875rem/1.6 var(--font-mono);
  margin: 1rem 0;
  flex: 1;
}
.notes-inbox__empty {
  grid-column: 1 / -1;
  padding: 5rem 1rem;
  text-align: center;
  color: var(--text-secondary);
}
.notes-inbox__empty > svg {
  margin: 0 auto 1rem;
}
.notes-inbox__empty h2 {
  font-size: 1.25rem;
  margin-bottom: .5rem;
}
.notes-inbox__loading {
  text-align: center;
  padding: 1rem;
}
@media (max-width: 550px) {
  .notes-inbox {
    padding: 1rem;
  }
  .notes-inbox__header {
    align-items: flex-start;
  }
}
.notes-inbox .note-picker__menu {
  bottom: auto;
  top: calc(100% + .5rem);
}
.note-picker__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 10rem;
}
.note-picker summary > svg {
  flex: none;
}
.note__footer {
  position: relative;
  flex-wrap: wrap;
}
.note__footer > .note-picker {
  position: static;
}
.note__footer .note-picker__menu {
  left: 0;
  right: 0;
  width: auto;
}
.note-dialog {
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--note-border);
  border-radius: 1.25rem;
  background: var(--note-paper);
  color: var(--note-ink);
  box-shadow: 0 1rem 4rem #0003;
  overflow: auto;
}
.note-dialog::backdrop {
  background: #0005;
}
.note-dialog .note {
  min-height: min(32rem, calc(100dvh - 2rem));
  padding: 1rem 1.25rem;
  border: 0;
  box-shadow: none;
}
.note-dialog__loading {
  position: relative;
  min-height: 18rem;
  padding: 3rem 1rem;
  display: grid;
  place-items: center;
}
.note-dialog__loading > button {
  position: absolute;
  top: .75rem;
  right: .75rem;
  padding: .375rem;
}
.notes-inbox__columns {
  display: grid;
  grid-template-columns: minmax(15rem, 2fr) minmax(20rem, 3fr);
  gap: 1.5rem;
  align-items: start;
}
.notes-inbox__columns .notes-inbox__grid {
  grid-template-columns: 1fr;
}
.notes-inbox__columns .note--preview {
  min-height: 0;
}
.notes-inbox__columns .note__preview {
  max-height: 6rem;
  overflow: hidden;
}
.note--selected {
  outline: 2px solid var(--text-secondary);
  outline-offset: 2px;
}
.note__title {
  text-align: left;
}
.notes-inbox__detail {
  position: sticky;
  top: 1rem;
  min-height: 20rem;
}
.notes-inbox__detail > .note {
  padding: 1.25rem;
  min-height: 28rem;
}
.note__editor {
  flex: 1;
  min-width: 0;
  padding: .5rem 0;
}
.note__editor .native-editor {
  background: transparent;
}
.note__editor .native-editor-surface, .note__editor .tiptap {
  min-height: 14rem;
}
.note__editor .native-editor-source {
  width: 100%;
  min-height: 14rem;
  background: transparent;
}
.note__editor .native-editor-toolbar {
  flex-wrap: wrap;
}
.note__recipient {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.note__recipient select {
  max-width: 10rem;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: .8125rem;
}
.notes-inbox__recipient {
  display: grid;
  gap: .25rem;
  font-size: .8125rem;
}
.notes-inbox__recipient select {
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .5rem;
  background: var(--surface);
}
@media (max-width: 720px) {
  .notes-inbox__columns {
    grid-template-columns: 1fr;
  }
  .notes-inbox__detail {
    position: static;
  }
  .notes-inbox__header {
    flex-wrap: wrap;
  }
}
.notes-related {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  font-size: .875rem;
}
.notes-related h3 {
  font-weight: 650;
  margin-bottom: .5rem;
}
.notes-related a {
  display: flex;
  gap: .5rem;
  padding: .5rem 0;
  align-items: center;
}
.note__editor .native-editor-toolbar {
  position: relative;
  top: 0;
  background: transparent;
}
.note__identity {
  display: grid;
  gap: .5rem;
}
.note__eyebrow {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .7;
}
.note__to {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.125rem;
}
.note__to select {
  background: transparent;
  border: 0;
  padding: .25rem;
  font-weight: 650;
  max-width: 15rem;
  color: inherit;
}
.note__relations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: .75rem 0;
  font-size: .8rem;
}
.note__relations > button {
  display: flex;
  align-items: center;
  gap: .3rem;
  text-decoration: underline;
}
.note__send {
  padding: .5rem .75rem;
  border: 1px solid currentColor !important;
  border-radius: .4rem;
  font-weight: 650;
}
.note__reading {
  padding: 1rem 0;
  min-height: 8rem;
  overflow-wrap: anywhere;
}
.note__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .5rem 0;
}
.note__attachments a {
  display: inline-flex;
  gap: .3rem;
  align-items: center;
  font-size: .8rem;
  text-decoration: underline;
}
.note-conversation {
  border-top: 1px solid var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border-top: 1px solid color-mix(in srgb, var(--note-ink) 15%, transparent);
  }
  padding-top: 1rem;
}
.note-conversation h2 {
  font-weight: 650;
  margin-bottom: .75rem;
}
.note-conversation article {
  padding: .75rem 0;
  border-bottom: 1px solid var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border-bottom: 1px solid color-mix(in srgb, var(--note-ink) 15%, transparent);
  }
}
.note-conversation article header {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .75rem;
}
.note-conversation article time {
  margin-left: auto;
  color: var(--note-muted);
}
.note-conversation__body {
  padding-top: .625rem;
}
.note-conversation__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
}
.note-conversation__actions button {
  border: 1px solid var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--note-ink) 33%, transparent);
  }
  border-radius: .4rem;
  padding: .5rem;
}
.note-conversation .native-editor-content {
  min-height: 5rem;
}
.notes-related__row {
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.notes-related__row small {
  display: block;
  margin-top: .3rem;
}
.note__preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.note__preview-heading .note__title {
  flex: 1;
  min-width: 0;
}
.note__bookmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 32px;
  min-height: 32px;
  color: inherit;
  border-radius: .35rem;
}
.note__bookmark:hover, .note__bookmark[aria-pressed="true"] {
  background: var(--surface-hover);
}
.note__bookmark:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.note-actions {
  position: relative;
}
.note-actions__menu {
  min-width: 11rem;
  right: 0;
  left: auto;
  background: var(--surface);
  color: var(--text-primary);
}
.note-actions__menu > button {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .6rem .8rem;
  text-align: left;
}
.note-actions__menu > button:disabled {
  opacity: .45;
}
.note-actions__menu > .note-actions__delete {
  border-top: 1px solid var(--border-subtle);
  color: var(--danger, #b42318);
}
.note__unread {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--note-ink);
  color: #fff7d5;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.5;
}
.note__unread::before {
  content: "";
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: currentColor;
}
.note--unread {
  box-shadow: inset 3px 0 0 var(--note-ink), 0 .25rem 1rem #4239140d;
}
.notes-inbox__unselected {
  height: 100%;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
}
.notes-inbox__unselected > svg {
  width: 2rem;
  height: 2rem;
  opacity: .6;
}
.note__avatar {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.note__related-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border: 1px solid var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--note-ink) 20%, transparent);
  }
  border-radius: .4rem;
  padding: .25rem;
}
.note__related-chip > button {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.note-person {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  font-size: .8rem;
}
.note-person > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.note-person small {
  opacity: .75;
}
.note-person__fallback {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  border: 1px solid var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--note-ink) 33%, transparent);
  }
  border-radius: 50%;
  background: var(--surface-secondary);
}
.note-person .note__avatar {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}
.note__people {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: .75rem 0 .25rem;
}
.note-recipient {
  position: relative;
  min-width: 0;
}
.note-recipient .pane-navigation__trigger {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .5rem;
  border-radius: .5rem;
  color: inherit;
}
.note-recipient__menu {
  z-index: 50;
  max-height: 18rem;
  overflow: auto;
  min-width: min(16rem, 75vw);
}
.note-recipient__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
}
.note-recipient__menu .note-person {
  color: var(--text-primary);
}
.note__header .note__identity {
  display: grid;
  gap: .4rem;
}
.note__to {
  flex-wrap: wrap;
}
.note__title-hint {
  font-size: .7rem;
  color: var(--note-muted);
  margin: .25rem 0 0;
}
.note__editor .tiptap > :first-child {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.note__editor .tiptap > :first-child:empty::before {
  content: "Give your thought a title…";
  color: var(--note-muted);
  pointer-events: none;
  float: left;
  height: 0;
}
.notes-inbox__header {
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}
.notes-inbox__header > div:first-child {
  flex: 1 1 18rem;
}
.note--preview .note__title {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
}
.note--preview .note__preview {
  font-family: var(--font-sans, sans-serif);
}
.notes-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.notes-related .note--preview {
  min-height: 10rem;
  padding: 1rem;
}
.notes-related .note__preview {
  max-height: 6rem;
  overflow: hidden;
}
.notes-related > a.button {
  display: inline-flex;
  width: auto;
  padding: .4rem .65rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: transparent;
  color: var(--text-primary);
  font-size: .8rem;
}
.note__state {
  text-transform: capitalize;
  opacity: .75;
  font-size: .7rem;
}
.note-recipient__menu span.note-person {
  display: inline-flex;
  margin: 0;
  font-size: .85rem;
}
.note-recipient__menu .note-person > span {
  margin: 0;
  color: var(--text-primary);
  font-size: inherit;
}
.note__editor .native-editor-content > :first-child {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.note-recipient__menu button {
  color: var(--text-primary);
}
.note-recipient__menu .note-person__fallback {
  display: inline-grid;
}
.note__to .note-recipient__menu {
  left: 0;
  right: auto;
  width: min(18rem, calc(100vw - 5rem));
  min-width: 0;
}
.notes-inbox {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.notes-host:has(.notes-inbox) {
  overflow: hidden;
}
.notes-host > div:has(.notes-inbox) {
  height: 100%;
  min-height: 0;
}
.notes-inbox__header {
  padding-right: 1.5rem;
}
.notes-inbox__columns {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.notes-inbox__columns > .notes-inbox__grid {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
  margin: 0;
  padding: .25rem;
  overscroll-behavior: contain;
}
.notes-inbox__columns .note--preview {
  flex-shrink: 0;
}
.notes-inbox__detail {
  position: static;
  min-height: 0;
  overflow: hidden;
}
.notes-inbox__detail > .note {
  height: 100%;
  min-height: 0;
}
.note__header {
  flex-shrink: 0;
  gap: .75rem;
}
.note__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.notes-host > div > .note:not(.note--preview) {
  height: 100dvh;
  min-height: 0;
}
.note-dialog .note {
  height: min(40rem, calc(100dvh - 2rem));
  min-height: 0;
}
.note-conversation article {
  padding: 1rem 0;
}
.note-conversation article header {
  align-items: center;
  gap: .5rem .75rem;
  line-height: 1.4;
}
.note-conversation article .note-person {
  font-weight: 650;
}
.note-conversation__kind {
  text-transform: capitalize;
  opacity: .75;
}
.note-conversation article time {
  font-size: .6875rem;
}
.note-conversation__body {
  line-height: 1.65;
}
.note-conversation__body p + p {
  margin-top: .65em;
}
.note-conversation__actions {
  padding: .75rem 0;
}
@media (max-width: 720px) {
  .notes-inbox__columns {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .notes-inbox__columns > .notes-inbox__grid {
    overflow: visible;
    flex: none;
  }
  .notes-inbox__detail {
    flex: none;
    height: min(36rem, 75dvh);
  }
  .note-conversation article time {
    flex-basis: 100%;
    margin-left: 2.15rem;
  }
}
.note__header {
  background: var(--note-title-paper);
  margin: -1.25rem -1.25rem 0;
  padding: 1rem 1.25rem;
  border-radius: 1.2rem 1.2rem 0 0;
  border-bottom-color: var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border-bottom-color: color-mix(in srgb, var(--note-ink) 26%, transparent);
  }
}
.notes-host > div > .note > .note__header, .note-dialog .note__header {
  margin-top: -1rem;
}
.note--preview .note__title {
  background: var(--note-title-paper);
  padding: .6rem .75rem;
  border-left: 3px solid var(--note-title-edge);
  border-radius: .2rem .5rem .5rem .2rem;
  color: var(--note-title-ink);
}
.note--preview .note__title:hover {
  background: var(--note-title-paper);
  filter: brightness(.97);
}
.note--preview .note__title:focus-visible {
  outline: 2px solid var(--note-ink);
  outline-offset: 3px;
}
.note__scroll > .note__editor .native-editor-content > :first-child {
  background: var(--note-title-paper);
  padding: .65rem .85rem;
  border-left: 3px solid var(--note-title-edge);
  border-radius: .25rem;
}
.note-conversation {
  margin-top: .75rem;
  padding-top: 1rem;
}
.note-conversation article {
  padding: .875rem 1rem;
  border: 1px solid var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--note-ink) 7%, transparent);
  }
  border-radius: .5rem;
}
.note-conversation article header {
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border-bottom: 1px solid color-mix(in srgb, var(--note-ink) 12%, transparent);
  }
}
.note-conversation__kind {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.note-conversation__kind > svg {
  width: .9rem;
  height: .9rem;
}
.note-conversation__composer {
  background: var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--note-ink) 1.6%, transparent);
  }
  border: 1px solid var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--note-ink) 21%, transparent);
  }
  border-radius: .65rem;
  padding: .5rem .75rem;
  margin-top: 1rem;
}
.note-conversation__composer .native-editor-content > :first-child {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0;
}
.note-conversation__actions {
  gap: .375rem;
  border-top: 1px solid var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border-top: 1px solid color-mix(in srgb, var(--note-ink) 15%, transparent);
  }
  padding: .625rem 0 .125rem;
}
.note-conversation__actions button, .note__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  font-size: .75rem;
  line-height: 1.4;
  padding: .35rem .55rem;
  border-radius: .375rem;
  white-space: nowrap;
}
.note-conversation__actions button {
  background: #f2eee3;
  border-color: #c9c1ac;
  color: #514a3b;
}
.note-conversation__actions button > svg, .note__send > svg {
  width: .95rem;
  height: .95rem;
  flex: none;
}
.note-conversation__actions .note-action--reply {
  background: #e0edf9;
  border-color: #9fbdd9;
  color: #244c70;
}
.note-conversation__actions .note-action--question {
  background: #fff0cb;
  border-color: #d8ba76;
  color: #705018;
}
.note-conversation__actions .note-action--done, .note .note__send {
  background: #e0eddf;
  border-color: #a0b99a;
  color: #355b30;
}
.note-conversation__actions button:hover:not(:disabled), .note .note__send:hover:not(:disabled) {
  filter: brightness(.95);
}
.note-conversation__actions button:focus-visible, .note__send:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.note .zettel-prose, .note .native-editor-source {
  color: var(--note-ink);
}
.note .zettel-prose a {
  color: var(--note-link);
}
.note .zettel-prose pre, .note .zettel-prose :not(pre) > code {
  background: var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--note-ink) 3%, transparent);
  }
  color: var(--note-ink);
  border-color: var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--note-ink) 15%, transparent);
  }
}
.note .native-editor-toolbar :is(button, summary, select) {
  color: var(--note-ink);
}
.note-conversation__timeline {
  --note-branch: var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    --note-branch: color-mix(in srgb, var(--note-ink) 25%, transparent);
  }
  padding-left: 1.75rem;
  background: linear-gradient(var(--note-branch), var(--note-branch)) .5rem .5rem / 1px calc(100% - 1rem) no-repeat;
}
.note-conversation article.note-conversation__entry {
  position: relative;
  margin: .75rem 0;
  box-shadow: none;
}
.note-conversation__entry::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 1.35rem;
  width: 1.25rem;
  height: .65rem;
  border-left: 1px solid var(--note-branch);
  border-bottom: 1px solid var(--note-branch);
  border-bottom-left-radius: .45rem;
  transform: translateY(-100%);
}
.note-conversation__entry::after {
  content: "";
  position: absolute;
  left: -1.45rem;
  top: .45rem;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--note-paper);
  border: 1px solid var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--note-ink) 50%, transparent);
  }
}
.note-conversation article.note-conversation__entry--comment {
  background: var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--note-ink) 2.4%, transparent);
  }
}
.note-conversation article.note-conversation__entry--update {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: .35rem 0;
}
.note-conversation .note-conversation__entry--update header {
  border: 0;
  padding: 0;
  color: var(--note-muted);
  font-size: .7rem;
}
.note-conversation__actor {
  font-weight: 500;
}
.note-conversation__entry--update .note-conversation__kind {
  opacity: 1;
}
.note-conversation__entry--update header::after {
  content: "";
  flex: 1;
  min-width: 1rem;
  height: 1px;
  background: var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--note-ink) 15%, transparent);
  }
  order: 2;
}
.note-conversation__entry--update time {
  order: 3;
  margin-left: 0;
}
@media (max-width: 720px) {
  .note-conversation__entry--update header::after {
    display: none;
  }
  .note-conversation__entry--update time {
    margin-left: 0;
  }
}
.note__context-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 .75rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note__header > button {
  flex-shrink: 0;
}
@media (max-width: 550px) {
  .note__header {
    flex-wrap: wrap;
  }
  .note__context-title {
    order: -1;
    flex-basis: 100%;
    padding: 0;
  }
}
:root:is([data-theme="dark"], [data-theme="paper"]) .note-conversation__actions button, :root:is([data-theme="dark"], [data-theme="paper"]) .note .note__send {
  background: var(--surface-hover);
  color: var(--note-ink);
  border-color: var(--note-border);
}
:root:is([data-theme="dark"], [data-theme="paper"]) .note-conversation__actions .note-action--reply, :root:is([data-theme="dark"], [data-theme="paper"]) .note .note__send {
  border-color: var(--note-ink);
  font-weight: 650;
}
:root:is([data-theme="dark"], [data-theme="paper"]) .note__unread {
  background: var(--note-ink);
  color: var(--note-paper);
}
.notes-inbox__tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  padding: .05rem .35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-secondary);
  color: var(--text-primary);
  font-size: .7rem;
  font-weight: 650;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.note__header > .note__context {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: .5rem;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 .75rem;
  color: var(--note-ink);
  font-size: inherit;
}
.note__context .note__context-title {
  flex: none;
  padding: 0;
}
.note__context .note__relations {
  margin: 0;
}
.note__reading:empty {
  display: none;
}
@media (max-width: 550px) {
  .note__header > .note__context {
    order: -1;
    flex-basis: 100%;
    padding: 0;
  }
}
.note__context .note__relations:empty {
  display: none;
}
.note__context .note-picker {
  position: static;
}
.note__context .note-picker__menu {
  bottom: auto;
  top: calc(100% + .5rem);
  left: 0;
  right: auto;
  width: min(18rem, 100%);
}
.note.note--compact {
  min-height: 0;
  padding: .75rem;
  gap: .5rem;
  border-radius: .875rem;
}
.notes-inbox__grid {
  gap: .625rem;
}
.note--compact .note__title {
  font-size: .9375rem;
  padding: .4rem .55rem;
}
.note__summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem .5rem;
}
.note__summary-footer .note-person {
  min-width: 0;
  font-size: .75rem;
  gap: .35rem;
}
.note__summary-footer .note__avatar, .note__summary-footer .note-person__fallback {
  width: 1.375rem;
  height: 1.375rem;
}
.notes-related__grid {
  grid-template-columns: 1fr;
  gap: .625rem;
}
.notes-related .note--compact {
  min-height: 0;
  padding: .75rem;
}
.rabbit-hole {
  background: var(--surface);
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.rabbit-hole > .notes-inbox {
  max-width: none;
  padding: 1rem 1.5rem;
}
.rabbit-hole .notes-inbox__header {
  padding-right: 0;
}
.rabbit-hole .notes-inbox__header h1 {
  margin-top: 0;
}
.rabbit-hole__loading {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .75rem;
}
.rabbit-hole-icon {
  display: inline-block;
  flex-shrink: 0;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
@media (max-width: 550px) {
  .rabbit-hole > .notes-inbox {
    padding: .75rem;
  }
}
.notes-inbox__controls, .rabbit-hole-navbar-controls {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.rabbit-hole-navbar-controls[hidden] {
  display: none;
}
.rabbit-hole-navbar-controls .note-person {
  font-size: .8rem;
}
.rabbit-hole-navbar-controls .note__avatar, .rabbit-hole-navbar-controls .note-person__fallback {
  width: 1.5rem;
  height: 1.5rem;
}
[data-note-color] {
  --note-paper: #fffdf5;
  --note-accent: #92917d;
  --note-ink: #35362c;
  --note-muted: #686956;
  --note-border: var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    --note-border: color-mix(in srgb, var(--note-ink) 24%, transparent);
  }
  --note-title-edge: var(--note-accent);
  --note-title-ink: var(--note-ink);
  --note-title-paper: var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    --note-title-paper: color-mix(in srgb, var(--note-ink) 3%, transparent);
  }
}
[data-note-color="butter"] {
  --note-paper: #fff8cf;
  --note-accent: #b6a568;
}
[data-note-color="sage"] {
  --note-paper: #e7eee1;
  --note-accent: #839779;
}
[data-note-color="rose"] {
  --note-paper: #f5e6e7;
  --note-accent: #b58c92;
}
[data-note-color="lilac"] {
  --note-paper: #ece7f4;
  --note-accent: #a093b5;
}
:root[data-theme="dark"] [data-note-color] {
  --note-paper: #292a26;
  --note-ink: #e8e8dd;
  --note-muted: #b8b8a8;
}
:root[data-theme="dark"] [data-note-color="butter"] {
  --note-paper: #343226;
}
:root[data-theme="dark"] [data-note-color="sage"] {
  --note-paper: #28352c;
}
:root[data-theme="dark"] [data-note-color="rose"] {
  --note-paper: #382d30;
}
:root[data-theme="dark"] [data-note-color="lilac"] {
  --note-paper: #343042;
}
:root[data-theme="paper"] [data-note-color] {
  --note-paper: var(--surface);
  --note-ink: var(--text-primary);
  --note-muted: var(--text-secondary);
  --note-accent: var(--text-secondary);
  --note-border: var(--border);
}
[data-note-paper] {
  --note-pattern: none;
  --note-pattern-size: auto;
}
[data-note-paper="ruled"] {
  --note-pattern: repeating-linear-gradient(transparent 0 1.65rem, var(--note-ink) 1.65rem calc(1.65rem + 1px));
  @supports (color: color-mix(in lab, red, red)) {
    --note-pattern: repeating-linear-gradient(transparent 0 1.65rem, color-mix(in srgb, var(--note-ink) 10%, transparent) 1.65rem calc(1.65rem + 1px));
  }
}
[data-note-paper="dotted"] {
  --note-pattern: radial-gradient(circle, var(--note-ink) .7px, transparent 1px);
  @supports (color: color-mix(in lab, red, red)) {
    --note-pattern: radial-gradient(circle, color-mix(in srgb, var(--note-ink) 18%, transparent) .7px, transparent 1px);
  }
  --note-pattern-size: 12px 12px;
}
.note[data-note-color] {
  background-color: var(--note-paper);
  background-image: var(--note-pattern);
  background-size: var(--note-pattern-size);
  border-top: 4px solid var(--note-accent);
}
.note--compact[data-note-color] .note__title {
  background: var(--note-ink);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--note-ink) 3%, transparent);
  }
}
.note.note--capture {
  padding: 1rem 1.25rem;
  gap: .75rem;
  min-height: 0;
}
.note-capture__header, .note-capture__tools, .note-capture__recipient, .note-capture__footer, .note-capture__writing-tools, .note-capture__delivery {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.note-capture__header {
  justify-content: space-between;
}
.note-capture__header h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: .95rem;
  font-weight: 650;
}
.note-capture__header button, .note-capture__writing-tools button {
  display: inline-grid;
  place-items: center;
  padding: .4rem;
  border-radius: .4rem;
}
.note-capture__recipient {
  flex-wrap: wrap;
  justify-content: space-between;
}
.note-capture__recipient .note-person {
  font-size: .8rem;
}
.note-capture__recipient .note__avatar, .note-capture__recipient .note-person__fallback {
  width: 1.6rem;
  height: 1.6rem;
}
.note--capture .note__scroll {
  flex: 1 1 auto;
  overflow-x: hidden;
}
.note--capture .note__scroll > .note__editor {
  margin: .5rem 0;
  padding: 0;
  min-height: 6rem;
}
.note--capture .note__scroll > .note__editor .native-editor {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.note--capture .note__scroll > .note__editor .native-editor-content, .note--capture .note__scroll > .note__editor .native-editor-source {
  min-height: 6rem;
  max-height: none;
  padding: .5rem 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1.65;
}
.note--capture .note__scroll > .note__editor .native-editor-source {
  resize: none;
  overflow: hidden;
}
.note--capture .note__scroll > .note__editor .native-editor-content > :first-child {
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  font-weight: inherit;
  margin-bottom: .65em;
}
.note--capture .note__scroll > .note__editor .native-editor-content > :is(h1,h2,h3):first-child {
  font-size: 1.3rem;
  font-weight: 700;
}
.note--capture .note__scroll > .note__editor .native-editor-toolbar {
  order: -1;
  margin: 0 0 .75rem;
  border: 1px solid var(--note-border);
  border-radius: .5rem;
  padding: .3rem;
}
.note--capture[data-formatting="false"] .note__scroll > .note__editor .native-editor-toolbar {
  display: none;
}
.note-capture__footer {
  border-top: 1px solid var(--note-border);
  padding-top: .65rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.note-capture__delivery {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.note-capture__writing-tools button {
  font-size: 1.1rem;
}
.note-capture__writing-tools button[aria-expanded="true"] {
  outline: 1px solid var(--note-ink);
}
.note .note__done, .note--capture .note__send {
  border: 1px solid var(--note-ink);
  background: var(--note-ink);
  color: var(--note-paper);
  border-radius: .5rem;
  padding: .55rem .85rem;
  font-size: .8rem;
}
.note-style, .note-location {
  position: relative;
}
.note-style summary, .note-location summary {
  display: flex;
  align-items: center;
  gap: .4rem;
  list-style: none;
  padding: .35rem;
  border-radius: .4rem;
  font-size: .8rem;
}
.note-style summary::-webkit-details-marker, .note-location summary::-webkit-details-marker {
  display: none;
}
.note-style__swatch {
  display: inline-block;
  width: 1rem;
  height: 1.2rem;
  border: 1px solid var(--note-accent);
  border-top-width: 4px;
  border-radius: .2rem;
  background: var(--note-paper);
}
.note-style__menu, .note-location__menu {
  position: absolute;
  right: 0;
  z-index: 35;
  width: min(22rem, calc(100vw - 3rem));
  padding: 1rem;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: .75rem;
  box-shadow: 0 .5rem 2rem #0003;
}
.note-style__menu {
  top: calc(100% + .4rem);
}
.note-style__menu fieldset {
  border: 0;
  padding: 0;
  margin: 1rem 0 0;
  min-width: 0;
}
.note-style__menu legend {
  font-size: .8rem;
  margin-bottom: .6rem;
  color: var(--text-secondary);
}
.note-style__choices {
  display: grid;
  gap: .4rem;
  grid-template-columns: repeat(5, minmax(0,1fr));
}
.note-style__choices--paper {
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.note-style__choices button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .2rem;
  border-radius: .4rem;
  color: var(--text-primary);
  font-size: .75rem;
}
.note-style__sample {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--note-accent);
  background-color: var(--note-paper);
  color: var(--note-ink);
  background-image: var(--note-pattern);
  background-size: var(--note-pattern-size);
}
.note-style__sample--color {
  border-radius: 50%;
}
.note-style__sample--paper {
  width: 100%;
  height: 2.5rem;
  border-radius: .3rem;
}
.note-style__choices [aria-pressed="true"] .note-style__sample {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}
.note-location__menu {
  bottom: calc(100% + .5rem);
  width: 15rem;
  font-size: .8rem;
}
.note-location__menu p {
  margin: 0 0 .5rem;
  color: var(--text-secondary);
}
.note-location__menu button {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem;
  width: 100%;
  text-align: left;
}
.note__references {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 0;
}
.note-reference {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  padding: .25rem .4rem;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: .4rem;
}
.note-reference__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .25rem;
  min-width: 0;
  font-size: .75rem;
}
.note-reference__actions > .note-picker {
  min-width: 0;
}
.note-reference__actions .note-picker summary {
  width: fit-content;
}
.note-reference__actions .note-picker__menu {
  position: static;
  width: min(18rem, 100%);
  margin-top: .35rem;
}
.note-reference__actions > button {
  padding: .3rem;
}
.note-reference__document {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex: 1;
  min-width: 0;
  padding: .2rem;
  text-align: left;
  font-size: .8125rem;
}
.note-reference__document > svg {
  flex: none;
}
.note-reference__document > span {
  display: flex;
  align-items: baseline;
  flex: 1;
  gap: .5rem;
  min-width: 0;
}
.note-reference__document strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-reference__document small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-reference__document small {
  color: var(--text-secondary);
  font-size: .75rem;
}
.note__references > .note-picker > .note-picker__menu {
  position: static;
  width: min(18rem, 100%);
  margin-top: .35rem;
}
.note-picker__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .65rem;
}
.note-picker__results button {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.note-picker__results button > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.note-picker__results small {
  color: var(--text-secondary);
}
.note--capture .note-picker__menu {
  top: calc(100% + .4rem);
  bottom: auto;
}
.note-dialog:has(.note--capture) {
  width: min(620px, calc(100vw - 2rem));
  margin: 3dvh auto auto;
  max-height: 85dvh;
  overflow: visible;
}
.note-dialog .note--capture {
  height: auto;
  min-height: 0;
  max-height: 85dvh;
  overflow: visible;
}
.notes-host > div > .note--capture {
  height: auto;
  min-height: 0;
  max-height: 100dvh;
  border-radius: .75rem;
}
.note--capture:has(.note-style[open]) {
  min-height: min(24rem,85dvh);
}
.note-capture__recipient:has(.note-picker[open]) {
  margin-bottom: 17rem;
}
@media (max-width: 550px) {
  .note.note--capture {
    padding: .75rem;
  }
  .note-capture__delivery {
    gap: .25rem;
  }
  .note-capture__delivery .note__status {
    font-size: .65rem;
  }
  .note-style__menu {
    right: -2rem;
  }
}
.note-capture__recipient .note-recipient__menu {
  left: 0;
  right: auto;
  min-width: 0;
  width: min(18rem, calc(100vw - 3rem));
}
.note-capture__recipient:has(.note-recipient__menu:not([hidden])) {
  margin-bottom: 12rem;
}
.note-capture__recipient > .note-picker .note-picker__menu {
  left: auto;
  right: 0;
}
.note--capture[data-note-color], .note--compact[data-note-color] {
  background-image: none;
}
.note--capture > .note__scroll, .note--compact[data-note-color] .note__title {
  background-image: var(--note-pattern);
  background-size: var(--note-pattern-size);
}
:root .note.note--capture .note__send {
  background: var(--note-ink);
  color: var(--note-paper);
  border-color: var(--note-ink);
}
.notes-host > div > .note.note--capture {
  height: auto;
  min-height: 0;
  max-height: 100dvh;
}
.zettel > dialog.note-dialog--contained[open] {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  border-radius: inherit;
  background: #0002;
  box-shadow: none;
  overflow: hidden;
}
.zettel > dialog.note-dialog--contained .note--capture {
  width: min(620px, 100%);
  max-height: 100%;
  min-width: 0;
  flex-shrink: 1;
  border: 1px solid var(--note-border);
  border-top: 4px solid var(--note-accent);
  box-shadow: 0 .5rem 2rem #0002;
}
.zettel > dialog.note-dialog--contained .note-dialog__loading {
  width: min(620px, 100%);
  max-height: 100%;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: .75rem;
}
@media (max-width: 550px) {
  .zettel > dialog.note-dialog--contained[open] {
    padding: .5rem;
  }
}
.notes-inbox__workspace {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.notes-inbox__workspace--tabbed > .notes-inbox__columns {
  gap: 0;
  margin-top: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .65rem;
  overflow: hidden;
  box-shadow: 0 4px 14px var(--shadow-color);
}
.notes-inbox__workspace--tabbed .notes-inbox__columns > .notes-inbox__grid {
  padding: 1rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.notes-inbox__workspace--tabbed .notes-inbox__detail {
  padding: 1rem;
  background: var(--surface);
}
.notes-inbox__workspace--tabbed .notes-inbox__detail > .note {
  box-shadow: none;
}
@media (max-width: 720px) {
  .notes-inbox__workspace--tabbed .notes-inbox__columns > .notes-inbox__grid {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
.rabbit-hole .notes-inbox__detail {
  display: flex;
  flex-direction: column;
}
:root:not([data-zettel-height-default="full"]) .rabbit-hole .notes-inbox__detail > .note {
  height: auto;
  max-height: 100%;
  flex: 0 1 auto;
}
:root:not([data-zettel-height-default="full"]) .rabbit-hole .note--capture > .note__scroll {
  flex: 0 1 auto;
}
.rabbit-hole .note-conversation__composer :is(.native-editor-content, .native-editor-source) {
  min-height: 4rem;
}
.rabbit-hole .note-conversation__composer .native-editor-surface {
  min-height: 0;
}
.rabbit-hole .notes-inbox__grid[data-controller="scroll-edges"] {
  --list-fade-top: 0px;
  --list-fade-bottom: 0px;
  mask-image: linear-gradient(to bottom, transparent, #000 var(--list-fade-top), #000 calc(100% - var(--list-fade-bottom)), transparent);
}
.rabbit-hole .notes-inbox__grid.can-scroll-up {
  --list-fade-top: 2rem;
}
.rabbit-hole .notes-inbox__grid.can-scroll-down {
  --list-fade-bottom: 2rem;
}
.note.note--compact {
  padding: 1rem;
  gap: .65rem;
  border-width: 1px;
  box-shadow: none;
}
.note--compact .note__preview-heading {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2rem;
  align-items: start;
  gap: .6rem;
}
.note--compact .note__preview-heading--readonly {
  grid-template-columns: minmax(0, 1fr);
}
.note--compact .note__title, .note--compact[data-note-color] .note__title {
  padding: .1rem 0;
  border: 0;
  border-radius: 0;
  background: none;
  background-image: none;
  color: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.note--compact .note__title:hover {
  background: none;
  filter: none;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.note--compact .note-actions .pane-navigation__trigger {
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: .35rem;
  border: 0;
  background: transparent;
}
.note--compact:has(.note__bookmark) .note__summary-footer {
  padding-left: 2.6rem;
}
.note__summary-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .6rem;
  min-width: 0;
}
.note--compact .note__summary-identity .note-person {
  font-size: .8125rem;
  font-weight: 600;
}
.note--compact .note__summary-identity .note__avatar, .note--compact .note__summary-identity .note-person__fallback {
  width: 1.75rem;
  height: 1.75rem;
}
.note__summary-context {
  color: var(--note-muted);
  font-size: .8125rem;
  line-height: 1.4;
}
.note__summary-context::before {
  content: "·";
  margin-right: .6rem;
}
.note--compact.note--selected {
  outline: 2px solid var(--note-ink);
  outline-offset: -1px;
}
.note-actions__menu[role="menu"] button[role="menuitem"] {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .6rem;
  width: 100%;
  padding: .55rem .65rem;
  text-align: left;
  font-size: .8rem;
  line-height: 1.4;
}
.note-actions__menu[role="menu"] button[role="menuitem"] svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}
.note__assignment-action {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .6rem;
  border: 1px solid var(--note-border);
  border-radius: .4rem;
  font-size: .8rem;
}
.note__assignment-action svg {
  width: 1rem;
  height: 1rem;
}
.note-conversation__question-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  flex-basis: 100%;
}
.note-conversation__question-recipient {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .75rem;
  min-width: 0;
}
.note-conversation__question-recipient select {
  width: auto;
  max-width: 100%;
  min-height: 2rem;
  padding: .35rem 1.8rem .35rem .5rem;
  border: 1px solid var(--note-border);
  border-radius: .375rem;
  background-color: var(--note-paper);
  color: var(--note-ink);
  font: inherit;
}
.note-title-label {
  display: grid;
  gap: .35rem;
  padding: .75rem 1rem;
  font-size: .8rem;
}
.note-title-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  padding: .5rem 0;
}
.note-visibility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  font-size: .85rem;
}
.note-visibility small {
  flex-basis: 100%;
}
.rabbit-hole-views {
  flex: none;
  padding: .5rem .75rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
}
.rabbit-hole-views__navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem;
  font-size: .8rem;
}
.rabbit-hole-views button, .rabbit-hole-views summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.75rem;
  padding: .5rem .4rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.rabbit-hole-views button[aria-current="page"] {
  border-bottom-color: currentColor;
  font-weight: 650;
}
.rabbit-hole-views button:hover, .rabbit-hole-views summary:hover {
  background: var(--surface-hover);
}
.rabbit-hole-views :is(button, summary, input):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
.rabbit-hole-views button:disabled {
  opacity: .5;
  cursor: default;
}
.rabbit-hole-views__item--pinned {
  margin-left: .4rem;
  border-left: 1px solid var(--border) !important;
}
.rabbit-hole-views__count {
  font-size: .75rem;
  min-width: 1.25rem;
  text-align: center;
}
.rabbit-hole-views__more {
  position: relative;
  margin-left: auto;
}
.rabbit-hole-views summary {
  list-style: none;
}
.rabbit-hole-views summary::-webkit-details-marker {
  display: none;
}
.rabbit-hole-views__secondary {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 3;
  display: grid;
  min-width: 9rem;
  padding: .35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .4rem;
}
.rabbit-hole-views__secondary button {
  justify-content: flex-start;
}
.rabbit-hole-views__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  padding: .2rem 0 .45rem;
  font-size: .8rem;
}
.rabbit-hole-views__filters button {
  min-height: 2rem;
  padding: .3rem .55rem;
  border: 1px solid transparent;
  border-radius: .35rem;
}
.rabbit-hole-views__filters button[aria-pressed="true"] {
  border-color: currentColor;
}
.rabbit-hole-views__filters label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem;
}
.rabbit-hole-views__location {
  margin: .4rem .55rem .7rem;
  font-weight: 650;
}
.notes-inbox__list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.notes-inbox__list > .notes-inbox__grid {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  margin: 0;
  background: var(--surface);
  overscroll-behavior: contain;
}
.note__task-status {
  font-size: .8rem;
  color: var(--text-secondary);
}
@media (max-width: 720px) {
  .notes-inbox__list {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
.rabbit-hole {
  background: transparent;
}
.rabbit-hole > .rabbit-workspace, .rabbit-workspace {
  max-width: none;
  padding: 1.5rem 2rem;
  gap: 1rem;
  color: var(--text-primary);
}
.rabbit-workspace__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}
.rabbit-workspace__heading h1 {
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -.04em;
  margin: 0 0 .35rem;
}
.rabbit-workspace__heading p {
  font-size: .8rem;
  color: var(--text-secondary);
}
.rabbit-workspace > .rabbit-hole-views {
  padding: 0;
  background: transparent;
}
.rabbit-workspace .rabbit-hole-views__navigation {
  gap: 1rem;
}
.rabbit-workspace__body {
  display: grid;
  grid-template-columns: minmax(22rem, min(38rem, 45%)) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  gap: 1.5rem;
}
.rabbit-workspace__main {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.rabbit-workspace__reader-slot {
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.rabbit-workspace__reader-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 2rem;
  border: 2px dashed var(--border);
  border-radius: .65rem;
  color: var(--text-secondary);
  text-align: center;
  font-size: .9rem;
}
.rabbit-workspace__reader {
  position: relative;
  inset: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  width: auto;
  max-width: none;
  max-height: none;
  min-height: 0;
  min-width: 0;
  overflow: auto;
}
.rabbit-workspace__reader[open] {
  display: flex;
  flex-direction: column;
}
.rabbit-workspace__reader::backdrop {
  background: #0004;
}
.rabbit-workspace__reader > .note {
  max-height: 100%;
}
.rabbit-workspace__reader .note--capture {
  height: auto;
  min-height: 0;
}
:root[data-zettel-height-default="full"] .rabbit-workspace__reader > .note {
  height: 100%;
}
.rabbit-workspace__pending {
  position: absolute;
  right: 2rem;
  bottom: .5rem;
  font-size: .75rem;
}
.rabbit-collection {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.rabbit-collection .notes-inbox__grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  align-items: start;
  margin: 0;
  padding: .25rem;
}
.rabbit-overview__tools {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-bottom: 1rem;
}
.rabbit-overview__tools :is(button, summary), .rabbit-overview__arrange button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.25rem;
  padding: .35rem .6rem;
  font-size: .75rem;
  border: 1px solid var(--border);
  border-radius: .4rem;
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
}
.rabbit-overview__tools svg {
  width: .9rem;
  height: .9rem;
}
.rabbit-overview__add {
  position: relative;
}
.rabbit-overview__add summary {
  list-style: none;
}
.rabbit-overview__add summary::-webkit-details-marker {
  display: none;
}
.rabbit-overview__add > div {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 5;
  display: grid;
  width: 15rem;
  padding: .6rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface);
  box-shadow: 0 .5rem 1.5rem #0002;
}
.rabbit-overview__add label {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem;
  font-size: .8rem;
}
.rabbit-overview {
  container: rabbit-widgets / inline-size;
}
.rabbit-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 1.25rem;
}
.rabbit-overview__placement {
  min-width: 0;
}
.rabbit-overview__placement[data-span="2"] {
  grid-column: auto;
}
.rabbit-widget {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: .85rem;
  background: var(--surface-secondary);
}
.rabbit-widget__header, .rabbit-widget__footer, .rabbit-widget__header h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.rabbit-widget__header h2 {
  justify-content: flex-start;
  margin: 0;
  font-size: .85rem;
  font-weight: 650;
}
.rabbit-widget__header svg {
  width: .9rem;
  height: .9rem;
}
.rabbit-widget__header button, .rabbit-widget__footer button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.rabbit-widget__count {
  font-size: .7rem;
  line-height: 1.4;
  padding: 0 .3rem;
  border: 1px solid var(--border);
  border-radius: .3rem;
}
.rabbit-widget__content {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;
  flex: 1;
}
.rabbit-widget__content > .button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  min-height: 2.5rem;
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: .4rem;
  font-size: .75rem;
  padding: .4rem .7rem;
}
.rabbit-widget__footer {
  margin-top: 1.5rem;
  font-size: .65rem;
  color: var(--text-secondary);
}
.rabbit-widget__footer svg {
  width: .8rem;
  height: .8rem;
}
.rabbit-widget__empty {
  padding: 1.25rem .5rem;
  font-size: .8rem;
  color: var(--text-secondary);
}
.rabbit-overview__arrange {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.rabbit-overview__footnote {
  padding: 1.25rem 0;
  font-size: .7rem;
  color: var(--text-secondary);
}
.rabbit-pulse__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 .5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.rabbit-pulse__stats > div {
  display: flex;
  flex-direction: column-reverse;
  padding: 0 .6rem;
  border-right: 1px solid var(--border);
}
.rabbit-pulse__stats > div:first-child {
  padding-left: 0;
}
.rabbit-pulse__stats > div:last-child {
  border: 0;
}
.rabbit-pulse__stats dt {
  font-size: .65rem;
  color: var(--text-secondary);
}
.rabbit-pulse__stats dd {
  margin: 0 0 .25rem;
  font-size: 1.5rem;
  font-weight: 600;
}
.rabbit-pulse__entry {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  text-align: left;
  padding: .35rem 0;
  cursor: pointer;
}
.rabbit-pulse__entry > span:last-child {
  display: grid;
  gap: .2rem;
  min-width: 0;
}
.rabbit-pulse__entry strong {
  font-size: .75rem;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.rabbit-pulse__entry small {
  font-size: .7rem;
  color: var(--text-secondary);
}
.note-paper {
  border-radius: .65rem;
  border-top: 3px solid var(--note-ink);
  box-shadow: none;
}
.note-paper__title {
  font-size: 1.25rem;
  font-weight: 650;
  margin: 0 0 1rem;
}
.note-paper.note--capture .note-capture__header h2 {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .06em;
  font-weight: 550;
}
.note-state {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .65rem;
  font-weight: 500;
  color: inherit;
}
.note-state svg {
  width: .8rem;
  height: .8rem;
  flex-shrink: 0;
}
.note-card {
  padding: .8rem .9rem;
  gap: .55rem;
  min-height: 0;
}
.note-card__identity, .note-card__identity > :is(span, div) {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.note-card__identity {
  justify-content: space-between;
  font-size: .6rem;
  color: var(--note-muted);
}
.note-card__identity > span {
  text-transform: uppercase;
  letter-spacing: .04em;
}
.note-card__identity svg {
  width: .8rem;
  height: .8rem;
}
.note-card__pin {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .3rem;
}
.note-card__pin[aria-pressed="true"] {
  outline: 1px solid currentColor;
  outline-offset: -3px;
}
.note-card__heading {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  min-width: 0;
}
.note-card .note__title {
  text-align: left;
  font-size: .9rem;
  line-height: 1.45;
  padding: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-width: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.note-card--medium .note__title {
  font-size: 1rem;
}
.note-card .note-actions {
  flex-shrink: 0;
}
.note-card .pane-navigation__trigger {
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding: .1rem;
}
.note-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: .8rem;
  line-height: 1.6;
  margin: 0;
}
.note-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-top: .35rem;
  color: var(--note-muted);
  font-size: .65rem;
}
.note-card--medium .note-card__footer {
  border-top: 1px solid var(--note-border);
  padding-top: .6rem;
}
.note-card .note__summary-identity {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
  font-size: .65rem;
}
.note-card .note__summary-context {
  font-size: inherit;
}
.note-card .note-person {
  font-size: inherit;
}
.note-card .note-person__fallback, .note-card .note__avatar {
  width: 1.1rem;
  height: 1.1rem;
}
.note-card__context {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  margin-left: auto;
}
.note-card__context span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  max-width: 12rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.note-card__context svg {
  width: .75rem;
  height: .75rem;
  flex-shrink: 0;
}
.note-card__checklist {
  display: grid;
  gap: .4rem;
  padding: 0;
  margin: .25rem 0;
  list-style: none;
  font-size: .75rem;
}
.note-card__checklist li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.note-card__checklist svg {
  width: .9rem;
  height: .9rem;
  margin-top: .15rem;
  flex-shrink: 0;
}
.note-card__checklist .is-complete {
  text-decoration: line-through;
  color: var(--note-muted);
}
.rabbit-workspace :is(button, summary, a):focus-visible, .note-card :is(button, a):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (max-width: 1050px) {
  .rabbit-workspace__reader-slot {
    display: contents;
  }
  .rabbit-workspace__reader-placeholder {
    display: none;
  }
  .rabbit-workspace__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .rabbit-workspace__reader {
    position: fixed;
    z-index: 35;
    inset: 6rem 1rem 1rem auto;
    width: min(38rem, calc(100vw - 2rem));
    padding: .5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .8rem;
    box-shadow: 0 .5rem 3rem #0003;
  }
}
@media (max-width: 650px) {
  .rabbit-hole > .rabbit-workspace, .rabbit-workspace {
    padding: 1rem;
  }
  .rabbit-workspace__heading h1 {
    font-size: 1.5rem;
  }
  .rabbit-workspace__heading p {
    font-size: .7rem;
  }
  .rabbit-workspace .rabbit-hole-views__navigation {
    gap: .1rem;
  }
  .rabbit-workspace__reader {
    inset: 4.5rem .5rem .5rem;
    width: auto;
  }
}
.note-reference:has(.zettel-summary) {
  display: grid;
  border: 0;
  padding: 0;
  background: transparent;
}
.rabbit-workspace__body {
  grid-template-rows: minmax(0, 1fr);
}
.rabbit-workspace__reader {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.rabbit-workspace__reader > .note {
  flex: 0 1 auto;
  max-height: 100%;
}
.rabbit-workspace__reader .note__scroll {
  overflow-y: auto;
  flex-shrink: 1;
}
@media (max-width: 1050px) {
  .rabbit-workspace__reader {
    height: auto;
    max-height: calc(100dvh - 7rem);
  }
}
.note-card--small {
  padding: .65rem .75rem;
  gap: .35rem;
}
.note-card--small .note-card__pin {
  width: 1.25rem;
  height: 1.25rem;
}
.rabbit-widget__content > .button {
  background: transparent;
  color: var(--text-secondary);
  font-weight: 400;
  box-shadow: none;
}
.rabbit-collection {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.rabbit-collection .notes-inbox__grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
}
.note-paper .note__reading {
  min-height: 0;
  padding: .5rem 0;
}
.note__reading .note-paper__title {
  margin: 0 0 .8rem;
  font-size: 1.25rem;
  line-height: 1.35;
}
.rabbit-workspace__heading > div > a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  margin-bottom: .5rem;
}
.note-card__markdown {
  max-height: 10rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: .8rem;
  line-height: 1.6;
}
.note-card__markdown > :first-child {
  margin-top: 0;
}
.note-card__markdown > :last-child {
  margin-bottom: 0;
}
.note-card__markdown :is(ul, ol) {
  padding-left: 1.25rem;
}
.note-card__markdown .zettel-task {
  display: flex;
  gap: .45rem;
  list-style: none;
}
.note-card__markdown .zettel-task > div {
  min-width: 0;
}
.note-card__markdown .zettel-task p {
  margin: 0;
}
.note-card__markdown :is(img, video) {
  max-width: 100%;
  max-height: 8rem;
  object-fit: contain;
}
.note-card__markdown pre {
  overflow: hidden;
  white-space: pre-wrap;
}
.note-card__markdown table {
  font-size: inherit;
  width: 100%;
}
.rabbit-overview__widths {
  display: inline-flex;
  gap: .25rem;
}
.rabbit-overview__widths button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--primary-fg);
}
@container rabbit-widgets (min-width: 38rem) {
  .rabbit-overview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rabbit-overview__placement[data-span="2"] {
    grid-column: span 2;
  }
}
@container rabbit-widgets (min-width: 76rem) {
  .rabbit-overview__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.rabbit-widget__header h2 {
  min-width: 0;
  flex-wrap: wrap;
}
.rabbit-widget__header svg {
  flex-shrink: 0;
}
.rabbit-widget__footer {
  flex-wrap: wrap;
}
.rabbit-pulse__stats {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 5rem), 1fr));
  gap: .5rem 0;
}
.rabbit-pulse__stats dt {
  overflow-wrap: anywhere;
}
.spread-switcher[data-spread="overview"] .rabbit-hole, .spread-switcher[data-spread="overview"] .rabbit-workspace {
  display: contents;
}
.spread-switcher[data-spread="overview"] .rabbit-workspace__body {
  grid-area: 2 / 1 / 3 / -1;
  margin: 0 1rem 1rem;
}
.rabbit-workspace__toolbar {
  flex: none;
}
.rabbit-workspace__toolbar .rabbit-hole-views {
  padding: 0;
  border: 0;
  background: transparent;
}
.rabbit-workspace__toolbar .rabbit-hole-views__navigation {
  gap: .2rem;
}
.rabbit-workspace__toolbar .rabbit-hole-views :is(button, summary) {
  min-height: 2rem;
  padding: .3rem .5rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  font-size: .75rem;
}
.rabbit-workspace__toolbar .rabbit-hole-views button[aria-current="page"] {
  border-color: var(--border);
  background: var(--surface-secondary);
  font-weight: 650;
}
.rabbit-workspace__toolbar .rabbit-hole-views__item--pinned {
  margin-left: .2rem;
}
.rabbit-hole-views__actions, .rabbit-workspace__overview-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}
.rabbit-hole-views__actions {
  padding-left: .5rem;
  border-left: 1px solid var(--border);
}
.rabbit-workspace__overview-tools:empty {
  display: none;
}
.rabbit-workspace__toolbar .rabbit-overview__tools {
  margin: 0;
}
.rabbit-workspace__toolbar .rabbit-hole-views__actions .button {
  background: var(--primary);
  color: var(--primary-fg);
}
.rabbit-workspace__toolbar .rabbit-hole-views__secondary {
  z-index: 40;
}
.rabbit-workspace__toolbar .rabbit-hole-views__location {
  margin: .35rem .5rem;
  font-size: .75rem;
}
.rabbit-workspace:not(.rabbit-workspace--spread) > .rabbit-workspace__toolbar {
  width: auto;
  max-width: 100%;
  margin: 0;
}
@media (max-width: 1100px) {
  .spread-switcher[data-spread="overview"] .rabbit-workspace__body {
    grid-area: 3 / 1 / 4 / -1;
  }
  .rabbit-workspace__toolbar .rabbit-hole-views__actions {
    flex-wrap: wrap;
  }
}
.rabbit-workspace__toolbar .rabbit-hole-views__actions > .button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2rem;
  padding: .3rem .6rem;
  font-size: .75rem;
}
.spread-switcher[data-spread="overview"] .rabbit-hole__loading {
  grid-area: 2 / 1 / 3 / -1;
  min-height: 0;
}
@media (max-width: 1100px) {
  .spread-switcher[data-spread="overview"] .rabbit-hole__loading {
    grid-area: 3 / 1 / 4 / -1;
  }
}
.zettel-summary {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-width: 0;
  padding: 0 .7rem .65rem;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: .65rem;
  box-shadow: 0 3px 0 -1px var(--surface), 0 3px 0 0 var(--border);
}
.zettel-summary__identity {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  font-size: .6rem;
  color: var(--text-secondary);
}
.zettel-summary__identity small {
  font-size: inherit;
  padding-top: .3rem;
}
.zettel-summary__type {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .4rem;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 .3rem .3rem;
}
.zettel-summary__type svg {
  width: .7rem;
  height: .7rem;
}
.zettel-summary__title {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.zettel-summary__title img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
}
.zettel-summary__context {
  display: flex;
  align-items: center;
  gap: .3rem;
  color: var(--text-secondary);
  font-size: .65rem;
}
.zettel-summary__context svg {
  width: .75rem;
  height: .75rem;
}
.zettel-identity-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: 100%;
  padding: .3rem .65rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 550;
}
.zettel-identity-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.zettel-identity-link img {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
}
.zettel-summary--medium {
  padding-bottom: 1rem;
}
.zettel-summary--medium .zettel-summary__title {
  font-size: 1rem;
}
.zettel-summary__body {
  max-height: 7rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: .8rem;
  line-height: 1.6;
}
.zettel-summary__body > :first-child {
  margin-top: 0;
}
.zettel-summary__body :is(img, video) {
  max-width: 100%;
  max-height: 6rem;
  object-fit: contain;
}
.zettel-summary__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  color: var(--text-secondary);
  font-size: .7rem;
}
.zettel-summary__facts span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.zettel-summary__facts svg {
  width: .85rem;
  height: .85rem;
}
.zettel-summary__header {
  display: grid;
  gap: .55rem;
  min-width: 0;
}
.zettel-summary__header--cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-inline: -.7rem;
  padding: 0 .7rem;
  border-radius: .6rem .6rem .45rem .45rem;
  background: #202522;
  color: #fff;
}
.zettel-summary__cover {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.zettel-summary__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zettel-summary__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0008, #000b);
}
.zettel-summary__header--cover :is(.zettel-summary__identity, .zettel-summary__context, .feature-status, .zettel-summary__title) {
  color: #fff;
}
.zettel-summary__header--cover .zettel-summary__identity small {
  text-shadow: 0 1px 3px #000;
}
.zettel-summary__header--cover .zettel-summary__type {
  border-color: #ffffff70;
  background: #0006;
}
.zettel-summary__header--cover .zettel-summary__title {
  text-shadow: 0 1px 3px #000;
}
.zettel-summary__updated {
  font-size: .7rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  padding-top: .3rem;
}
.zettel-summary__updater {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}
.zettel-summary__updater > span:last-child {
  overflow-wrap: anywhere;
}
.zettel-summary__updater strong {
  font-weight: 550;
  color: var(--text-primary);
}
.zettel-summary__updater img, .zettel-summary__updater-fallback {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border-radius: 50%;
}
.zettel-summary__updater-fallback {
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}
.zettel-summary__updater-fallback svg {
  width: .9rem;
  height: .9rem;
}
.zettel-summary__updated time {
  font-size: .65rem;
  color: var(--text-secondary);
}
.zettel-summary--row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem 1rem;
  box-shadow: 0 2px 0 var(--surface-secondary);
}
.zettel-summary--row .zettel-summary__header {
  display: block;
  flex: 1;
  min-width: 0;
}
.zettel-summary--row .zettel-summary__header--cover {
  position: static;
  isolation: auto;
  overflow: visible;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
}
.zettel-summary--row .zettel-summary__cover::after {
  background: linear-gradient(90deg, var(--surface), var(--surface));
  @supports (color: color-mix(in lab, red, red)) {
    background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface) 75%, transparent));
  }
}
.zettel-summary--row .zettel-summary__identity {
  color: var(--text-secondary);
}
.zettel-summary--row .zettel-summary__type {
  gap: .35rem;
  padding: .2rem .45rem;
  border-radius: 0 0 .25rem .25rem;
  font-size: .7rem;
  margin-bottom: .5rem;
  border-color: var(--border);
  background: transparent;
}
.zettel-summary--row svg {
  width: .95rem;
  height: .95rem;
  flex-shrink: 0;
}
.zettel-summary--row .zettel-summary__title {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-primary);
  text-shadow: none;
}
.zettel-summary--row .zettel-summary__title:hover {
  text-decoration: underline;
}
.zettel-summary__description {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: .3rem;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.zettel-summary--row .zettel-summary__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
  font-size: .75rem;
}
@media (max-width: 1100px) {
  .zettel-summary--row {
    align-items: start;
    flex-direction: column;
    gap: .75rem;
  }
  .zettel-summary--row .zettel-summary__actions {
    align-self: flex-end;
  }
}
.zettel-read-only {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 3px 0 -1px var(--surface), 0 3px 0 var(--border);
}
.zettel-read-only__header {
  position: relative;
  isolation: isolate;
  flex: none;
  padding: 0 1.5rem 1rem;
  overflow: hidden;
}
.zettel-read-only__header > .zettel-summary__type {
  font-size: .7rem;
}
.zettel-read-only__identity {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  min-width: 0;
}
.zettel-read-only__identity > div {
  min-width: 0;
}
.zettel-read-only__title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.zettel-read-only__description {
  margin-top: .5rem;
  color: var(--text-secondary);
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.zettel-read-only__header--cover {
  background: #202522;
  color: #fff;
}
.zettel-read-only__header--cover .zettel-summary__type {
  background: #0006;
  border-color: #ffffff70;
}
.zettel-read-only__header--cover .zettel-read-only__description {
  color: #fff;
}
.zettel-read-only__content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.5rem 1.5rem;
  overflow-wrap: anywhere;
}
.zettel-read-only__actions {
  flex: none;
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.search-preview > .zettel-read-only {
  flex: 1;
}
#spread-panel-notes {
  overflow: hidden;
}
.notes-spread {
  height: 100%;
  min-height: 0;
}
.notes-workspace.notes-inbox {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 88rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  gap: 1rem;
}
.notes-workspace__ownership {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: .75rem;
}
.notes-workspace__ownership svg {
  width: 1rem;
  height: 1rem;
}
.notes-workspace .rabbit-workspace__heading {
  flex-wrap: wrap;
}
.notes-workspace .rabbit-workspace__heading h1 {
  font-size: 1.5rem;
  letter-spacing: -.02em;
}
.notes-workspace .rabbit-workspace__body {
  grid-template-columns: minmax(13rem, 25%) minmax(0, 1fr);
  gap: 1.5rem;
}
.notes-workspace .rabbit-workspace__main {
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
}
.notes-workspace .rabbit-workspace__reader-slot {
  grid-column: 2;
  grid-row: 1;
}
.notes-workspace .rabbit-workspace__reader {
  width: 100%;
}
.notes-workspace__list-heading {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: 0 .1rem .6rem;
  color: var(--text-muted);
  font-size: .7rem;
}
.notes-workspace .notes-inbox__grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .6rem;
  padding: 0 .15rem .75rem;
  scrollbar-gutter: stable;
}
.note.note-list-item {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  border-radius: .5rem;
  padding: 0;
  box-shadow: none;
}
.note-list-item.note--selected {
  border-left: 3px solid var(--primary);
}
.note-list-item > .note__title {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: 100%;
  min-height: 7.5rem;
  padding: .75rem;
  text-align: left;
  border-radius: inherit;
  font-size: .8rem;
  font-weight: 400;
}
.note-list-item__title {
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.35;
  padding-right: 2.5rem;
}
.note-list-item__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--note-muted);
  overflow-wrap: anywhere;
}
.note-list-item__parent {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  color: var(--note-muted);
  font-size: .7rem;
  overflow-wrap: anywhere;
}
.note-list-item__parent svg {
  width: .9rem;
  height: .9rem;
  flex-shrink: 0;
}
.note-list-item__tools {
  display: flex;
  position: absolute;
  top: .2rem;
  right: .2rem;
  padding: .1rem;
  border-radius: .35rem;
  background: var(--note-paper);
}
.note-list-item__tools > button {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
}
.note-list-item__tools svg {
  width: .85rem;
  height: .85rem;
}
.note-list-item__tools .pane-navigation__trigger {
  width: 1.5rem;
  height: 1.5rem;
  min-height: 0;
  padding: .2rem;
  background: transparent;
  border: 0;
}
.note-list-item__tools {
  opacity: .65;
}
.note-list-item:is(:hover, :focus-within) .note-list-item__tools {
  opacity: 1;
}
@media (hover: none) {
  .note-list-item__tools {
    opacity: 1;
  }
}
.note-list-item :is(button, summary):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.note.note--full {
  border-radius: .65rem;
  padding: 1.25rem 1.4rem;
  gap: 1rem;
  box-shadow: none;
}
.note--full .note-capture__header h2 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.note--full .note-capture__header h2 svg {
  width: 1rem;
  height: 1rem;
}
.note-field-label {
  color: var(--note-muted);
  font-size: .75rem;
  margin: .5rem 0;
}
.note--full .note__references {
  margin-top: 1rem;
}
.note--full .note__references > .note-field-label {
  flex-basis: 100%;
}
.note--full .note__references > .note-reference {
  width: 100%;
}
.note--full .note-capture__footer {
  margin-top: .5rem;
  padding-top: 1rem;
}
.note--full .note-trash {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .6rem;
  color: var(--text-danger, #b53d32);
  font-size: .8rem;
}
.note-trash svg {
  width: 1rem;
  height: 1rem;
}
.note-capture__metadata {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  color: var(--note-muted);
  font-size: .7rem;
}
.note-capture__metadata .note__status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: inherit;
}
.note-capture__metadata svg {
  width: .9rem;
  height: .9rem;
}
@media (max-width: 1050px) {
  .notes-workspace .rabbit-workspace__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .notes-workspace .rabbit-workspace__reader-slot {
    display: contents;
  }
  .notes-workspace .rabbit-workspace__reader {
    width: min(42rem, calc(100vw - 2rem));
  }
  .notes-workspace .notes-inbox__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  }
}
@media (max-width: 650px) {
  .notes-workspace.notes-inbox {
    padding: 1rem;
  }
  .notes-workspace__ownership {
    display: none;
  }
  .notes-workspace .rabbit-workspace__reader {
    width: auto;
  }
  .note.note--full {
    padding: .9rem;
  }
  .note-capture__tools {
    gap: .15rem;
  }
}
.spread-switcher__count:not([hidden]) {
  min-width: 1.2rem;
  padding: 0 .25rem;
  border: 1px solid currentColor;
  border-radius: .3rem;
  font-size: .65rem;
}
.note--full .note__editor .native-editor-surface {
  min-height: 6rem;
}
.spread-switcher > .spread-switcher__bar {
  min-width: 0;
  max-width: calc(100% - 2rem);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
@media (max-width: 650px) {
  .note--full .note-capture__header {
    flex-wrap: wrap;
  }
  .note--full .note-capture__tools {
    margin-left: auto;
    flex-wrap: wrap;
  }
}
.note.note-paper[data-note-visibility="private"] {
  --note-paper: var(--primary);
  @supports (color: color-mix(in lab, red, red)) {
    --note-paper: color-mix(in srgb, var(--primary) 9%, var(--surface));
  }
  --note-ink: var(--text-primary);
  --note-muted: var(--text-muted);
  --note-border: var(--primary);
  @supports (color: color-mix(in lab, red, red)) {
    --note-border: color-mix(in srgb, var(--primary) 35%, var(--border));
  }
  --note-accent: var(--primary);
  background: linear-gradient(135deg, var(--primary), transparent 65%), var(--note-paper);
  @supports (color: color-mix(in lab, red, red)) {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent 65%), var(--note-paper);
  }
}
.note.note-paper[data-note-state="trashed"] {
  background: var(--surface);
  border-color: var(--border);
}
.note--full {
  position: relative;
  isolation: isolate;
}
.note-private-backdrop {
  position: absolute;
  right: 2rem;
  top: 5rem;
  width: 8rem;
  height: 8rem;
  opacity: .035;
  pointer-events: none;
  z-index: -1;
}
.note--full .note-privacy-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  padding: .4rem .65rem;
  font-size: .75rem;
}
.note-privacy-toggle[aria-checked="true"] {
  color: var(--text-link);
  border-color: var(--note-border);
  background: var(--primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
  }
}
.note-privacy-toggle svg {
  width: 1rem;
  height: 1rem;
}
.note-privacy-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.note--full .note__scroll > .note__editor .native-editor-content > :first-child {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
  font-size: 1.6rem;
  font-weight: 650;
  line-height: 1.3;
}
.note--full .note-reading-title, .note--full .note-reading--leading-title > div > :first-child {
  font-size: 1.6rem;
  font-weight: 650;
  line-height: 1.3;
}
.note--full .note-reference__actions {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: .5rem;
}
.note--full .note-reference__actions > button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem;
  white-space: nowrap;
}
.note--full .note__editor .native-editor-content > p:first-child:has(> br.ProseMirror-trailingBreak:only-child)::before {
  content: "Note title";
  color: var(--note-muted);
  pointer-events: none;
  float: left;
  height: 0;
}
:root {
  --box-pattern-ink: var(--text-muted);
  @supports (color: color-mix(in lab, red, red)) {
    --box-pattern-ink: color-mix(in srgb, var(--text-muted) 5%, transparent);
  }
  --box-pattern-image: radial-gradient(var(--box-pattern-ink) 1px, transparent 1px);
  --box-pattern-size: 24px 24px;
}
[data-box-pattern="dots"] {
  --box-pattern-image: radial-gradient(var(--box-pattern-ink) 1px, transparent 1px);
  --box-pattern-size: 24px 24px;
}
[data-box-pattern="grid"] {
  --box-pattern-image: linear-gradient(var(--box-pattern-ink) 1px, transparent 1px), linear-gradient(90deg, var(--box-pattern-ink) 1px, transparent 1px);
  --box-pattern-size: 28px 28px;
}
[data-box-pattern="ruled"] {
  --box-pattern-image: linear-gradient(var(--box-pattern-ink) 1px, transparent 1px);
  --box-pattern-size: 28px 28px;
}
[data-box-pattern="diagonal"] {
  --box-pattern-image: repeating-linear-gradient(135deg, transparent 0 15px, var(--box-pattern-ink) 15px 16px);
  --box-pattern-size: 24px 24px;
}
[data-box-pattern="woven"] {
  --box-pattern-image: repeating-linear-gradient(0deg, transparent 0 3px, var(--box-pattern-ink) 3px 4px), repeating-linear-gradient(90deg, transparent 0 19px, var(--box-pattern-ink) 19px 20px);
  --box-pattern-size: 20px 20px;
}
[data-box-pattern="cats"] {
  --box-pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='96' viewBox='0 0 112 96'%3E%3Cg fill='none' stroke='%23888888' stroke-opacity='.14' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 30V13l9 7a18 18 0 0 1 14 0l9-7v17c0 11-7 17-16 17S16 41 16 30Z M25 30h.1 M39 30h.1 M30 35l2 2 2-2 M32 37v4 M18 35l-7-2 M18 39l-7 1 M46 35l7-2 M46 39l7 1'/%3E%3Cpath d='M77 69V58l6 5a12 12 0 0 1 10 0l6-5v11c0 8-5 12-11 12S77 77 77 69Z M83 70h.1 M93 70h.1 M87 74h2'/%3E%3C/g%3E%3C/svg%3E");
  --box-pattern-size: 112px 96px;
}
.app-layout__main, .box-pattern-preview {
  background-color: var(--surface-secondary);
  background-image: var(--box-pattern-image);
  background-size: var(--box-pattern-size);
}
:root .app-layout__main .pane-stack, :root .app-layout__main .pane-stack :is(.spread-switcher, .spread-switcher__panel, .rabbit-hole, .zettel-connections, .zettel-connections__viewport) {
  background: transparent;
}
.box-pattern-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.box-pattern-option {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .65rem;
  cursor: pointer;
}
.box-pattern-option:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.box-pattern-option:has(input:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.box-pattern-preview {
  display: block;
  height: 5rem;
}
.box-pattern-option__label {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem;
  background: var(--surface);
  font-size: .875rem;
}
@media (max-width: 480px) {
  .box-pattern-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#spread-panel-overview {
  min-height: 0;
}
.spread-switcher[data-spread="overview"] > #spread-panel-overview:not([hidden]) {
  display: block;
  grid-area: 2 / 1 / 3 / -1;
  overflow: hidden;
}
.overview-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  color: var(--text-primary);
}
.overview-spread > turbo-frame {
  min-width: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.overview-spread--inspecting {
  grid-template-columns: minmax(0, 1fr) minmax(23rem, 40%);
}
.overview-collection {
  max-width: 85rem;
  width: 100%;
  margin: 0 auto;
}
.overview-collection__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 1rem;
  margin: .25rem 0 1.5rem;
}
.overview-collection h1 {
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -.025em;
}
.overview-collection__header p {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-top: .4rem;
}
.overview-collection form {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.overview-collection form label {
  color: var(--text-muted);
  font-size: .75rem;
}
.overview-collection select {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background-color: var(--surface);
  color: var(--text-primary);
  font-size: .8rem;
  padding: .5rem 2rem .5rem .75rem;
}
.overview-group {
  margin-bottom: 1.5rem;
}
.overview-group > h2 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 650;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.overview-zettel {
  margin-bottom: .65rem;
}
.overview-zettel__attribution {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: .75rem;
}
.overview-zettel__attribution strong {
  color: var(--text-primary);
  font-weight: 650;
}
.overview-zettel__attribution img {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  object-fit: cover;
}
.overview-zettel .zettel-summary__actions a, .overview-collection__older {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.overview-zettel__notes, .overview-zettel .zettel-summary__actions small {
  color: var(--text-secondary);
}
.overview-zettel__changes, .overview-collection__older {
  border: 1px solid var(--border);
  border-radius: .45rem;
  padding: .45rem .65rem;
  background: var(--surface);
  color: var(--text-primary);
  white-space: nowrap;
}
.overview-collection__older {
  font-size: .75rem;
}
.overview-collection footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .7rem;
  color: var(--text-muted);
  margin: 1.5rem 0 .5rem;
}
.overview-collection__empty {
  padding: 2rem 0;
  font-size: .85rem;
  color: var(--text-secondary);
}
.overview-inspection {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: var(--surface);
}
.overview-inspection[hidden], .overview-error[hidden] {
  display: none;
}
.overview-inspection__content > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.overview-inspection__content > header p {
  color: var(--text-muted);
  font-size: .7rem;
}
.overview-inspection__content h2 {
  font-weight: 650;
  margin-top: .35rem;
  overflow-wrap: anywhere;
}
.overview-inspection__close {
  padding: .4rem;
  cursor: pointer;
}
.overview-inspection__versions {
  font-size: .75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.overview-error {
  grid-column: 1 / -1;
  font-size: .85rem;
}
.overview-error button {
  text-decoration: underline;
  cursor: pointer;
}
.overview-spread :is(a, button, select):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (max-width: 1100px) {
  .spread-switcher[data-spread="overview"] > #spread-panel-overview:not([hidden]) {
    grid-area: 3 / 1 / 4 / -1;
  }
  .overview-spread--inspecting {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(12rem, 1fr) minmax(12rem, 1fr);
  }
  .overview-inspection {
    grid-row: 1;
  }
}
@media (max-width: 650px) {
  .overview-spread {
    padding: 1rem;
  }
  .overview-collection h1 {
    font-size: 1.35rem;
  }
}
.overview-collection__loading {
  display: none;
  min-height: 6rem;
}
turbo-frame[busy] .overview-collection__loading {
  display: flex;
}
.overview-collection form {
  max-width: 100%;
  flex-wrap: wrap;
}
@layer base {
  [type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select {
    appearance: none;
    background-color: #fff;
    border-color: oklch(55.1% 0.027 264.364);
    border-width: 1px;
    border-radius: 0px;
    padding-top: 0.5rem;
    padding-right: 0.75rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    font-size: 1rem;
    line-height: 1.5rem;
    --tw-shadow: 0 0 #0000;
    &:focus {
      outline: 2px solid transparent;
      outline-offset: 2px;
      --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-color: oklch(54.6% 0.245 262.881);
      --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
      --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
      box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
      border-color: oklch(54.6% 0.245 262.881);
    }
  }
  input::placeholder,textarea::placeholder {
    color: oklch(55.1% 0.027 264.364);
    opacity: 1;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-date-and-time-value {
    min-height: 1.5em;
  }
  ::-webkit-date-and-time-value {
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field {
    padding-top: 0;
    padding-bottom: 0;
  }
  select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    print-color-adjust: exact;
  }
  [multiple],[size]:where(select:not([size="1"])) {
    background-image: initial;
    background-position: initial;
    background-repeat: unset;
    background-size: initial;
    padding-right: 0.75rem;
    print-color-adjust: unset;
  }
  [type='checkbox'],[type='radio'] {
    appearance: none;
    padding: 0;
    print-color-adjust: exact;
    display: inline-block;
    vertical-align: middle;
    background-origin: border-box;
    user-select: none;
    flex-shrink: 0;
    height: 1rem;
    width: 1rem;
    color: oklch(54.6% 0.245 262.881);
    background-color: #fff;
    border-color: oklch(55.1% 0.027 264.364);
    border-width: 1px;
    --tw-shadow: 0 0 #0000;
  }
  [type='checkbox'] {
    border-radius: 0px;
  }
  [type='radio'] {
    border-radius: 100%;
  }
  [type='checkbox']:focus,[type='radio']:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
    --tw-ring-offset-width: 2px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: oklch(54.6% 0.245 262.881);
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  [type='checkbox']:checked,[type='radio']:checked {
    border-color: transparent;
    background-color: currentColor;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
  }
  [type='checkbox']:checked {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    @media (forced-colors: active) {
      appearance: auto;
    }
  }
  [type='radio']:checked {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
    @media (forced-colors: active) {
      appearance: auto;
    }
  }
  [type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus {
    border-color: transparent;
    background-color: currentColor;
  }
  [type='checkbox']:indeterminate {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
    border-color: transparent;
    background-color: currentColor;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    @media (forced-colors: active) {
      appearance: auto;
    }
  }
  [type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus {
    border-color: transparent;
    background-color: currentColor;
  }
  [type='file'] {
    background: unset;
    border-color: inherit;
    border-width: 0;
    border-radius: 0;
    padding: 0;
    font-size: unset;
    line-height: inherit;
  }
  [type='file']:focus {
    outline: 1px solid ButtonText;
    outline: 1px auto -webkit-focus-ring-color;
  }
}
@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-space-x-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: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-duration {
  syntax: "*";
  inherits: false;
}
@property --tw-ease {
  syntax: "*";
  inherits: false;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@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-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-space-x-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-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-duration: initial;
      --tw-ease: initial;
    }
  }
}
