@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --canvas: #f7f8f3;
  --white: #fff;
  --ink: #1b2c24;
  --muted: #657167;
  --line: #e5e9e0;
  --forest: #1e493a;
  --forest-hover: #153a2d;
  --sage: #edf2e9;
  --sand: #f7efe2;
  --lavender: #f0eef7;
  --radius: 17px;
  --sidebar-width: 232px;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #4b856b; outline-offset: 3px; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.muted { color: var(--muted); }
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.boot-mark { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; background: var(--forest); color: #fbf0d6; font-size: 26px; font-weight: 700; }
.shell { min-height: 100dvh; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 28px 17px 17px; overflow-y: auto; background: #fcfdf9; border-right: 1px solid var(--line); }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-size: 25px; font-weight: 760; letter-spacing: -.065em; }
.sidebar .brand { margin: 0 0 38px 10px; }
.brand-icon { display: block; flex: 0 0 auto; width: 37px; height: 37px; border-radius: 10px; background: #173c33; }
.nav-label { margin: 26px 0 9px 12px; font-size: 10.5px; font-weight: 750; letter-spacing: .115em; text-transform: uppercase; color: #657167; }
.nav-link { position: relative; display: flex; min-height: 43px; align-items: center; gap: 11px; margin: 2px 0; padding: 8px 12px; border-radius: 9px; color: #526157; text-decoration: none; font-size: 14px; font-weight: 590; }
.nav-link svg { flex: 0 0 auto; }
.nav-link:hover { background: #f0f3ed; color: var(--ink); }
.nav-link[aria-current="page"] { background: #e8efe5; color: #254c37; font-weight: 760; }
.nav-private { width: 6px; height: 6px; border-radius: 50%; margin-left: auto; background: #82a18a; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; }
.profile { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: 15px; padding: 15px 0 1px 4px; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #305441; background: #e7eee4; font-size: 11px; font-weight: 790; }
.profile strong, .profile div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile strong { font-size: 13px; font-weight: 750; }
.profile div span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.sign-out { width: 29px !important; height: 34px !important; }
.workspace { margin-left: var(--sidebar-width); }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; border-bottom: 1px solid var(--line); background: #fcfdf9; }
.topbar-location, .topbar-actions { display: flex; align-items: center; gap: 13px; }
.topbar-location { font-size: 14px; font-weight: 740; }
.search-trigger { display: inline-flex; align-items: center; min-height: 39px; gap: 9px; padding: 0 8px 0 11px; background: var(--white); color: #627067; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.search-trigger:hover { border-color: #a6b9a8; }
.search-trigger kbd { margin-left: 18px; padding: 2px 5px; border-radius: 4px; border: 1px solid #e8ebe4; background: #f7f8f4; color: #59665d; font: inherit; font-size: 10px; font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; white-space: nowrap; font-size: 13px; line-height: 1.3; font-weight: 760; }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: var(--forest-hover); }
.button-secondary { background: white; color: #335844; border-color: #dce5da; }
.button-secondary:hover { background: #f3f6f1; border-color: #a8bead; }
.button-danger { background: #9c3d35; color: white; }
.button-danger:hover { background: #823029; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #53685b; text-decoration: none; cursor: pointer; }
.icon-button:hover { background: #edf2eb; color: #254c37; }
.delete-button:hover { background: #f9eeeb; color: #9c3d35; }
.mobile-menu, .mobile-overlay { display: none; }
.content { width: min(100%, 1420px); margin-inline: auto; padding: 33px 36px 52px; outline: none; }
.hero { position: relative; display: flex; align-items: center; isolation: isolate; overflow: hidden; min-height: 227px; padding: 34px 37px; border-radius: 19px; color: #fff7e3; background: radial-gradient(ellipse at 90% 20%, #32604c 0, #224b3c 40%, #193c32 80%); }
.contour-art { position: absolute; pointer-events: none; right: 0; top: 50%; width: min(63%, 690px); height: auto; transform: translateY(-50%); mask-image: linear-gradient(90deg, transparent, #000 27%); }
.hero-content { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #e0e7ca; font-size: 11px; font-weight: 760; letter-spacing: .105em; text-transform: uppercase; }
.hero h1 { margin: 11px 0 7px; font: 400 clamp(46px, 5vw, 73px)/.98 "Instrument Serif", Georgia, serif; letter-spacing: -.024em; }
.hero-content > p:last-child { color: #e0eadc; font-size: 15px; line-height: 1.5; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; margin-top: 22px; align-items: stretch; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 2px 6px #243d2405; }
.dashboard-card { min-height: 179px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 17px 20px 13px; }
.card-heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
.card-heading h2 { font-size: 17px; font-weight: 770; letter-spacing: -.026em; }
.section-icon, .item-symbol { display: inline-grid; place-items: center; flex: 0 0 auto; width: 37px; height: 37px; border-radius: 10px; color: #3d6851; }
.sage { background: var(--sage); color: #3e6a52; }
.sand { background: var(--sand); color: #8a5d2c; }
.lavender { background: var(--lavender); color: #675685; }
.view-link { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; color: #3c634f; text-decoration: none; font-size: 12px; font-weight: 760; }
.view-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-body { padding: 0 20px 13px; }
.card-placeholder { color: var(--muted); font-size: 14px; padding: 14px 1px; }
.card-empty { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 12px 13px 15px; border: 1px dashed #e5ebe1; border-radius: 10px; background: #fbfcf9; }
.card-empty strong { font-size: 13px; font-weight: 740; }
.card-empty p { margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.subtle-add { flex: 0 0 auto; width: 32px; height: 32px; background: white; border: 1px solid #e2e9df; }
.dashboard-list, .item-list { list-style: none; margin: 0; padding: 0; }
.dashboard-list .item-row { min-height: 45px; padding: 6px 0; gap: 10px; }
.dashboard-list .item-row + .item-row { border-top: 1px solid #eff1ec; }
.dashboard-list .item-symbol { width: 28px; height: 28px; border-radius: 7px; }
.dashboard-list .item-title { font-size: 13px; }
.compact-meta { color: var(--muted); font-size: 11.5px; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: 3px 0 24px; }
.page-heading h1 { margin-bottom: 5px; font-size: clamp(30px, 3.1vw, 41px); font-weight: 770; letter-spacing: -.06em; line-height: 1.06; }
.page-heading p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.list-card { overflow: hidden; }
.list-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 19px; border-bottom: 1px solid var(--line); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-chip { padding: 6px 10px; min-height: 33px; border: 1px solid transparent; border-radius: 7px; color: #53655b; background: transparent; font-size: 12px; font-weight: 680; }
.filter-chip:hover { background: #f2f4ef; }
.filter-chip[aria-pressed="true"] { background: #e8efe5; color: #244f37; border-color: #e2ebdf; font-weight: 780; }
.status-filter select { min-height: 34px; max-width: 100%; padding: 4px 6px; border: 1px solid #dfe7db; border-radius: 7px; background: white; color: #456151; font-size: 12px; font-weight: 670; }
.list-empty, .vault-empty { display: grid; justify-items: center; gap: 8px; min-height: 268px; padding: 50px 20px; text-align: center; }
.list-empty .section-icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 5px; }
.list-empty h2, .vault-empty h2 { font-size: 18px; letter-spacing: -.025em; }
.list-empty p, .vault-empty p { color: var(--muted); font-size: 14px; }
.list-empty .button { margin-top: 7px; }
.list-group-label { padding: 15px 21px 7px; border-top: 1px solid var(--line); color: #53675a; font-size: 11px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.list-controls + .list-group-label { border-top: 0; }
.item-row { display: flex; align-items: center; gap: 13px; min-width: 0; }
.item-list .item-row { min-height: 76px; padding: 12px 18px 12px 21px; }
.item-list .item-row + .item-row { border-top: 1px solid #eff1ec; }
.item-copy { flex: 1; min-width: 0; }
.item-title { display: block; max-width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; overflow-wrap: anywhere; font-size: 15px; font-weight: 760; }
.item-title:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.item-note { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; color: var(--muted); font-size: 11.5px; }
.item-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.tag { padding: 3px 6px; border-radius: 5px; background: #f0f3ed; color: #52655a; font-weight: 670; }
.plan-in-progress { background: #f7efe0; color: #825724; }
.plan-done { background: #e8f1e7; color: #3b684a; }
.overdue { color: #a3483d; }
.row-actions { display: flex; align-items: center; gap: 3px; }
.check-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; padding: 0; border: 1px solid #adbeaf; border-radius: 6px; background: white; color: white; }
.check-button:hover { border-color: #3a7355; background: #eff5ed; }
.check-button[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); }
.is-complete .item-title { color: var(--muted); text-decoration: line-through; }
.settings-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 83px; padding: 16px 20px; }
.settings-row + .settings-row { border-top: 1px solid var(--line); }
.settings-row h2 { font-size: 15px; font-weight: 770; }
.settings-row p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.error-banner { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 12px 15px; border: 1px solid #eacdc7; border-radius: 10px; background: #fff6f2; color: #883a32; font-size: 13px; }
.error-banner span { flex: 1; }
.dialog-card { width: min(500px, calc(100vw - 30px)); max-height: calc(100dvh - 28px); overflow: auto; padding: 22px; border: 1px solid #e2e8df; border-radius: 16px; color: var(--ink); background: white; box-shadow: 0 22px 90px #162c2652; }
.dialog-card::backdrop { background: #142c245e; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.dialog-header h2 { font-size: 22px; letter-spacing: -.045em; font-weight: 760; }
.dialog-header .icon-button { margin: -5px -5px -5px 0; }
.dialog-copy { color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.form-stack, .vault-form { display: grid; gap: 13px; }
.field { display: grid; min-width: 0; gap: 6px; color: #41594b; font-size: 13px; font-weight: 720; }
.field input, .field select, .field textarea, .search-field input { display: block; width: 100%; min-width: 0; min-height: 41px; padding: 8px 10px; border: 1px solid #d9e3d8; border-radius: 8px; background: white; color: var(--ink); font-size: 14px; font-weight: 500; }
.field input::placeholder, .field textarea::placeholder, .search-field input::placeholder { color: #748278; }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-error, .vault-form-error { margin: 0; color: #a23c32; font-size: 13px; line-height: 1.45; }
.form-error:empty { display: none; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-option, .search-result { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); text-align: left; font-size: 13px; font-weight: 730; }
.quick-option:hover, .search-result:hover { background: #f4f7f2; border-color: #d4e2d4; }
.quick-option > svg, .search-result > svg { margin-left: auto; flex: 0 0 auto; color: #597060; }
.search-field { display: flex; align-items: center; gap: 6px; color: #5b7564; }
.search-field > svg { flex: 0 0 auto; }
.search-results > p { padding: 16px 0 0; color: var(--muted); font-size: 13px; }
.search-results ul { display: grid; gap: 5px; max-height: 45dvh; overflow: auto; list-style: none; margin: 12px 0 0; padding: 3px; }
.search-result strong, .search-result small { display: block; overflow-wrap: anywhere; }
.search-result small { margin-top: 1px; color: var(--muted); font-weight: 520; }
.toasts { position: fixed; z-index: 40; display: grid; gap: 8px; right: 18px; bottom: 18px; width: min(370px, calc(100vw - 36px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border: 1px solid #d5e4d6; border-radius: 10px; color: #234c36; background: #f5faf4; box-shadow: 0 8px 25px #213a2920; font-size: 13px; font-weight: 680; }
.toast > svg { flex: 0 0 auto; }
.toast-error { border-color: #ebcfc7; color: #963d33; background: #fff6f3; }
.login-page { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; padding: 14px; }
.login-visual { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; min-height: 580px; padding: 36px 39px; border-radius: 23px; background: radial-gradient(ellipse at 85% 25%, #35634f, #193c32 74%); color: #fff4da; }
.login-visual .brand { z-index: 1; color: #fff4da; }
.login-visual .brand-icon { outline: 1px solid #adc1a560; }
.login-story { position: relative; z-index: 1; max-width: 470px; margin-bottom: 35px; }
.login-story h1 { margin: 12px 0; font: 400 clamp(57px, 7vw, 99px)/.87 "Instrument Serif", Georgia, serif; letter-spacing: -.035em; }
.login-story > p { max-width: 34ch; color: #e0eadc; font-size: 16px; line-height: 1.6; }
.login-art .contour-art { top: 39%; width: min(100%, 760px); opacity: .8; }
.login-content { display: grid; place-items: center; padding: 25px; }
.login-panel { width: min(100%, 362px); }
.login-lock, .vault-lock-icon { display: inline-grid; place-items: center; width: 49px; height: 49px; margin-bottom: 16px; border-radius: 13px; color: #365f49; background: #eaf0e7; }
.login-panel h2 { margin-bottom: 5px; font-size: 32px; font-weight: 770; letter-spacing: -.06em; }
.login-panel > p { font-size: 14px; }
.login-panel form { margin-top: 23px; }
.login-submit { justify-content: space-between; margin-top: 3px; }
.vault-lock-card, .vault-empty { padding: 31px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.vault-lock-card { width: min(100%, 514px); }
.vault-lock-card h2 { margin-bottom: 5px; font-size: 23px; letter-spacing: -.04em; }
.vault-lock-card p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.vault-lock-card p + p { margin-top: 4px; }
.vault-lock-card .vault-form { margin-top: 20px; }
.vault-lock-card .vault-form .button { justify-self: start; }
.vault-lock-card > .button { margin-top: 15px; }
.vault-toolbar, .vault-toolbar-actions, .vault-status { display: flex; align-items: center; gap: 8px; }
.vault-toolbar { justify-content: space-between; margin-bottom: 13px; }
.vault-status { color: #315f46; font-size: 13px; font-weight: 770; }
.vault-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #5e9a72; }
.vault-status-count { color: var(--muted); font-weight: 560; }
.vault-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.vault-entry { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.vault-entry-head, .vault-entry-actions { display: flex; align-items: center; gap: 6px; }
.vault-entry-head h3 { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 16px; letter-spacing: -.03em; }
.vault-entry-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; margin-right: 3px; border-radius: 8px; background: var(--sage); color: #365f49; }
.vault-entry-actions .icon-button, .vault-password .icon-button { flex: 0 0 31px; width: 31px; height: 31px; }
.vault-url { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 8px; color: #365f49; overflow-wrap: anywhere; font-size: 12px; }
.vault-credentials { display: grid; gap: 8px; margin: 13px 0 0; }
.vault-credentials dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.vault-credentials dd { min-width: 0; margin: 2px 0 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.vault-credentials .vault-password { display: flex; align-items: center; gap: 4px; min-height: 32px; padding-left: 6px; border-radius: 6px; background: #f7f8f3; }
.vault-password span { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.vault-note { color: var(--muted); margin-top: 9px; font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
.vault-edit-password { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px; }
.vault-edit-password .icon-button { height: 41px; }
.vault-delete-copy { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.vault-dialog .dialog-header { margin-bottom: 0; }
.vault-empty .vault-lock-icon { margin-bottom: 0; }
@media (max-width: 1080px) {
  :root { --sidebar-width: 209px; }
  .topbar { padding-inline: 23px; }
  .content { padding-inline: 23px; }
}
@media (max-width: 800px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; visibility: hidden; }
  .workspace { margin-left: 0; }
  .menu-open .sidebar { transform: none; visibility: visible; }
  .mobile-menu { display: inline-grid; }
  .menu-open .mobile-overlay { display: block; position: fixed; z-index: 9; inset: 0; width: 100%; border: 0; padding: 0; background: #122a215d; }
  .topbar { height: 60px; padding-inline: 14px; }
  .topbar-location, .topbar-actions { gap: 6px; }
  .content { padding: 20px 15px 36px; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: 255px; padding: 22px; }
  .login-story { margin-top: 32px; margin-bottom: 0; }
  .login-story h1 { font-size: clamp(49px, 11vw, 80px); }
  .login-content { padding: 33px 12px; }
}
@media (max-width: 545px) {
  .search-trigger { padding: 0 8px; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .topbar-location { min-width: 0; }
  .topbar-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-menu { flex: 0 0 32px; }
  .hero { min-height: 196px; padding: 23px 19px; }
  .hero h1 { font-size: clamp(40px, 10vw, 57px); }
  .hero-content > p:last-child { font-size: 13px; }
  .contour-art { width: 85%; opacity: .75; }
  .dashboard-grid, .vault-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
  .dashboard-card { min-height: 153px; }
  .card-header { padding-inline: 14px; }
  .card-body { padding-inline: 14px; }
  .page-heading { align-items: flex-start; }
  .page-heading > .button { min-height: 38px; padding-inline: 8px; }
  .page-heading p { font-size: 13px; }
  .list-controls { align-items: flex-start; flex-wrap: wrap; padding: 10px; }
  .item-list .item-row { gap: 8px; padding-inline: 10px; }
  .row-actions { gap: 0; }
  .row-actions .icon-button { width: 30px; }
  .settings-row { grid-template-columns: auto minmax(0, 1fr); padding: 12px; }
  .settings-row > .button, .settings-actions { grid-column: 2; justify-self: start; }
  .vault-toolbar { align-items: flex-start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
