:root {
  --ink: #2b2b26;
  --muted: #6f6e68;
  --line: #e2e0d6;
  --paper: #f4f3ee;
  --white: #fbfbf7;
  --green: #216634;
  --green-2: #7e998a;
  --lime: #7e998a;
  --shadow: 0 12px 36px rgba(60,76,66,.12);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button, input, textarea, select { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(79,160,109,.28); outline-offset: 2px; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.calendar-brand { color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 27px; font-style: italic; font-weight: 400; line-height: 1; }
.calendar-brand > span { color: var(--green-2); }
.calendar-brand small { display: block; margin-top: 8px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-style: normal; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f9f9f9; }
.auth-art { display: none; }
.auth-art::after { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; }
.auth-art p { position: relative; z-index: 2; margin: 34px 0 0; font-size: clamp(29px, 4vw, 58px); line-height: 1.02; letter-spacing: -.06em; font-weight: 450; }
.auth-art p strong { color: var(--lime); font-weight: 900; }
.auth-mark { position: relative; z-index: 2; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 28px 28px 28px 8px; color: var(--ink); background: var(--lime); box-shadow: 0 22px 60px rgba(201,242,103,.20); transform: rotate(-5deg); }
.auth-mark svg { width: 45px; height: 45px; stroke-width: 1.6; }
.orbit { position: absolute; border: 1px solid rgba(201,242,103,.20); border-radius: 50%; }
.orbit-one { width: 600px; height: 600px; left: -130px; top: -170px; }
.orbit-two { width: 440px; height: 440px; right: -100px; bottom: -120px; }
.auth-card { width: min(470px, 100%); margin: auto; padding: 48px 32px; border: 1px solid #ddd; border-radius: 8px; background: white; text-align: center; }
.auth-brand { margin-bottom: 22px; color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-style: normal; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.auth-brand small { display: none; }
.auth-copy { margin: 0 0 24px; }
.auth-copy h1 { margin: 8px 0 10px; font-size: clamp(32px, 8vw, 44px); line-height: 1.1; letter-spacing: -.035em; }
.auth-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.eyebrow { display: block; color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.auth-card form { display: grid; gap: 18px; }
.auth-card label, .dialog-body label { display: grid; gap: 8px; font-size: 13px; font-weight: 800; }
.auth-card label { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .14em; text-align: left; text-transform: uppercase; }
.auth-card input { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid #ccd3cd; border-radius: 13px; background: white; }
.auth-submit { width: 100%; min-height: 46px; margin-top: 4px; justify-content: center; border-color: #0d3819; border-radius: 8px; background: #0d3819; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.auth-foot { margin: 26px 0 0; color: #879088; font-size: 12px; text-align: center; }
.form-error { min-height: 20px; margin: -4px 0 0; color: #a23d39; font-size: 13px; font-weight: 700; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 258px; display: flex; flex-direction: column; padding: 25px 20px 20px; color: var(--ink); border-right: 1px solid var(--line); background: var(--white); }
.sidebar .calendar-brand { padding: 0 8px 24px; }
.new-note { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 999px; color: white; background: var(--green-2); font-weight: 850; transition: transform .18s, box-shadow .18s; }
.new-note:hover, .primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(70,118,82,.18); }
.sidebar-new { width: 100%; min-height: 48px; padding: 0 13px; margin-bottom: 27px; }
.sidebar-new kbd { margin-left: auto; padding: 2px 6px; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; color: white; background: rgba(255,255,255,.12); font-size: 10px; }
.nav-label { margin: 0 10px 8px; color: #7f9086; font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.nav-item { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; text-align: left; font-size: 14px; font-weight: 700; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item b { min-width: 22px; margin-left: auto; padding: 2px 6px; border-radius: 999px; color: #778079; background: #ecebe3; font-size: 10px; text-align: center; }
.nav-item:hover { color: var(--ink); background: #f0eee4; }
.nav-item.is-active { color: white; background: var(--green); }
.nav-item.is-active svg { color: white; }
.tag-nav { min-height: 0; margin-top: 26px; }
.nav-label-row { display: flex; align-items: center; justify-content: space-between; padding-right: 10px; }
.nav-label-row span { color: #728178; font-size: 10px; }
.tag-nav-list { max-height: 160px; overflow: auto; scrollbar-width: thin; }
.tag-button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 7px 11px; border: 0; color: var(--muted); background: transparent; font-size: 13px; text-align: left; }
.tag-button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6b8e77; }
.tag-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-button b { margin-left: auto; font-size: 10px; }
.tag-button:hover, .tag-button.is-active { color: var(--green); }
.sidebar-foot { display: grid; grid-template-columns: 36px minmax(0, 1fr) 34px; align-items: center; gap: 10px; margin-top: auto; padding: 17px 7px 0; border-top: 1px solid var(--line); }
.owner-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--ink); background: #dde9d9; font-weight: 900; }
.sidebar-foot strong, .sidebar-foot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot strong { font-size: 12px; }.sidebar-foot small { margin-top: 2px; color: #7f9086; font-size: 10px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 10px; color: inherit; background: transparent; }
.icon-button:hover { background: rgba(127,144,134,.12); }
.sidebar-foot .icon-button { color: var(--muted); }

.workspace { min-width: 0; grid-column: 2; }
.topbar { position: sticky; z-index: 10; top: 0; min-height: 76px; display: flex; align-items: center; gap: 16px; padding: 13px clamp(22px, 4vw, 52px); border-bottom: 1px solid var(--line); background: rgba(247,248,245,.92); backdrop-filter: blur(16px); }
.search-wrap { width: min(560px, 60vw); min-height: 45px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #d9dfda; border-radius: 12px; background: white; }
.search-wrap svg { flex: 0 0 auto; width: 18px; color: #839087; }
.search-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; }
kbd { font-family: inherit; }
.search-wrap kbd { padding: 2px 7px; border: 1px solid #d9dfda; border-radius: 5px; color: #8a938c; background: #f5f7f4; font-size: 11px; }
.top-new { min-height: 44px; padding: 0 17px; margin-left: auto; }
.menu-button { display: none; }
.workspace-scroll { padding: 47px clamp(22px, 4vw, 52px) 70px; }
.workspace-scroll > * { max-width: 1420px; margin-left: auto; margin-right: auto; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 31px; }
.hero-row h1 { margin: 7px 0 4px; font-size: clamp(38px, 5vw, 62px); line-height: .97; letter-spacing: -.065em; }
.hero-row p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: 15px; }
.today-pill { display: flex; align-items: center; gap: 11px; min-width: 160px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.today-pill > span { width: 10px; height: 10px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 5px rgba(79,160,109,.12); }
.today-pill small, .today-pill strong { display: block; }.today-pill small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }.today-pill strong { margin-top: 2px; font-size: 12px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 43px; }
.stat-card { min-height: 128px; display: grid; grid-template-columns: 42px 1fr; align-content: center; gap: 5px 13px; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.stat-card.stat-accent { color: white; border-color: var(--green); background: var(--green); }
.stat-icon { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: #edf4ed; }
.stat-accent .stat-icon { color: var(--ink); background: var(--lime); }
.stat-card strong { display: block; font-size: 29px; line-height: 1; letter-spacing: -.05em; }
.stat-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.stat-accent small { color: rgba(255,255,255,.68); }
.stat-card em { grid-column: 2; align-self: end; color: #8a928c; font-size: 10px; font-style: normal; }
.stat-accent em { color: rgba(255,255,255,.6); }
.content-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.content-head > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.content-head h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.content-head span { color: #8a928d; font-size: 12px; }
.view-controls { display: flex; align-items: center; gap: 6px; }
.view-controls select { height: 38px; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 12px; font-weight: 700; }
.display-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: #7d8881; background: white; }
.display-button svg { width: 17px; }.display-button.is-active { color: white; border-color: var(--green); background: var(--green); }

.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.notes-grid.list-view { grid-template-columns: 1fr; }
.note-card { --card: #e8f3e9; position: relative; min-height: 232px; display: flex; flex-direction: column; padding: 21px; overflow: hidden; border: 1px solid rgba(24,44,33,.09); border-radius: var(--radius); background: var(--card); transition: transform .18s, box-shadow .18s; cursor: pointer; }
.note-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(23,35,29,.10); }
.note-card[data-color="sage"] { --card: #dfe9df; }
.note-card[data-color="lime"] { --card: #ecf5c9; }
.note-card[data-color="sun"] { --card: #fbefbd; }
.note-card[data-color="lemon"] { --card: #fff7cf; }
.note-card[data-color="peach"] { --card: #fbe5cd; }
.note-card[data-color="coral"] { --card: #f8e2dc; }
.note-card[data-color="rose"] { --card: #f5dce4; }
.note-card[data-color="blush"] { --card: #f9e9ea; }
.note-card[data-color="lilac"] { --card: #eee8fa; }
.note-card[data-color="lavender"] { --card: #e6e0f5; }
.note-card[data-color="sky"] { --card: #e3f1f6; }
.note-card[data-color="aqua"] { --card: #dff3f0; }
.note-card[data-color="ocean"] { --card: #dceaf5; }
.note-card[data-color="sand"] { --card: #efe6d5; }
.note-card[data-color="stone"] { --card: #e8e7e2; }
.note-card[data-color="ice"] { --card: #edf5f4; }
.note-card[data-color="paper"] { --card: #fff; }
.card-top { display: flex; align-items: center; gap: 8px; }
.priority-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 99px; background: rgba(255,255,255,.58); font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.priority-pill.urgent { color: #8c2d2a; background: rgba(255,255,255,.72); }.priority-pill.high { color: #96551e; }
.card-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: var(--green); background: rgba(255,255,255,.64); }
.card-icon svg { width: 18px; height: 18px; }
.card-pin { margin-left: auto; color: var(--green); }.card-pin svg { width: 17px; height: 17px; fill: currentColor; }
.note-copy { display: -webkit-box; margin: 14px 0 0; overflow: hidden; color: #3f4841; font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 7; }
.card-bottom { display: flex; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 22px; }
.tag-row { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag { max-width: 130px; overflow: hidden; padding: 5px 8px; border: 0; border-radius: 7px; color: #526159; background: rgba(255,255,255,.58); font: inherit; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.tag:hover, .tag:focus-visible { color: white; background: var(--green); outline: none; }
.card-date { margin-left: auto; color: #6f7971; font-size: 10px; white-space: nowrap; }
.list-view .note-card { min-height: 122px; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.list-view .card-top { grid-column: 1; grid-row: 1 / span 2; }.list-view .tag-row { grid-column: 2; margin: 0; }.list-view .note-copy { grid-column: 2; margin: 0; -webkit-line-clamp: 2; }.list-view .card-bottom { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 0; }
.empty-state { min-height: 380px; display: grid; place-items: center; align-content: center; padding: 45px; border: 1px dashed #cbd3cc; border-radius: var(--radius); text-align: center; background: rgba(255,255,255,.5); }
.empty-orbit { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #e5efe5; box-shadow: 0 0 0 11px #f0f4ef; }.empty-orbit svg { width: 31px; height: 31px; }
.empty-state h2 { margin: 24px 0 5px; font-size: 27px; letter-spacing: -.04em; }.empty-state p { margin: 0 0 22px; color: var(--muted); }.empty-state .primary { min-height: 44px; }

.activity-section { margin-top: 54px; padding-top: 36px; border-top: 1px solid var(--line); }
.section-icon { color: #849087; }
.activity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.activity-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 61px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.7); }
.activity-dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: #eaf2e9; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.activity-item strong, .activity-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.activity-item strong { font-size: 12px; }.activity-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }.activity-item time { color: #8a928d; font-size: 10px; }

.primary, .secondary, .danger { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 17px; border-radius: 11px; font-weight: 850; }
.primary { border: 1px solid var(--green); color: white; background: var(--green); }.secondary { border: 1px solid #d7ddd8; background: white; }.danger { border: 1px solid #a43d38; color: white; background: #a43d38; }
dialog { padding: 0; border: 0; color: var(--ink); background: transparent; }
dialog::backdrop { background: rgba(13,24,18,.58); backdrop-filter: blur(6px); }
.note-dialog { width: min(780px, calc(100vw - 28px)); max-height: calc(100vh - 28px); border-radius: 23px; box-shadow: var(--shadow); }
.dialog-shell { max-height: calc(100vh - 28px); display: flex; flex-direction: column; background: var(--paper); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 19px; border-bottom: 1px solid var(--line); background: white; }
.dialog-top h2 { margin: 5px 0 0; font-size: 27px; letter-spacing: -.045em; }
.dialog-body { min-height: 0; flex: 1; display: grid; gap: 19px; padding: 24px 28px; overflow: auto; }
.dialog-body input, .dialog-body textarea, .dialog-body select { width: 100%; border: 1px solid #d3dad4; border-radius: 11px; background: white; }
.dialog-body input, .dialog-body select { min-height: 43px; padding: 0 12px; }.dialog-body textarea { min-height: 170px; resize: vertical; padding: 13px; line-height: 1.55; }
.body-field { position: relative; }.body-field small { justify-self: end; color: #929992; font-size: 10px; font-weight: 500; }
.dialog-body .body-field textarea { min-height: 90px; }
.quick-notes { display: grid; gap: 18px; }
.quick-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.quick-field legend { font-size: 13px; font-weight: 800; margin-bottom: 9px; }
.quick-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 13px; }
.quick-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 12px; border: 1px solid #c7d3ca; border-radius: 12px; background: white; color: #344c3c; font: inherit; font-size: 13px; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.quick-pick svg { width: 17px; height: 17px; flex: 0 0 auto; }
.quick-pick:hover { border-color: #2f6b4a; background: #edf4ed; }
.quick-pick[aria-pressed="true"] { background: #2f6b4a; color: white; border-color: #2f6b4a; }
.quick-pick:focus-visible { outline: 3px solid #839f70; outline-offset: 3px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field-grid .wide-field { grid-column: 1 / -1; }
.color-field { padding: 0; border: 0; }.color-field legend { margin-bottom: 10px; font-size: 13px; font-weight: 800; }.color-options { display: flex; flex-wrap: wrap; gap: 9px; }.color-options label { display: block; }.color-options input { position: absolute; opacity: 0; pointer-events: none; }.swatch { width: 31px; height: 31px; display: block; border: 2px solid white; border-radius: 50%; background: #e8f3e9; box-shadow: 0 0 0 1px #cdd5ce; }.swatch.sage { background:#dfe9df }.swatch.lime { background:#ecf5c9 }.swatch.sun { background:#fbefbd }.swatch.lemon { background:#fff7cf }.swatch.peach { background:#fbe5cd }.swatch.coral { background:#f8e2dc }.swatch.rose { background:#f5dce4 }.swatch.blush { background:#f9e9ea }.swatch.lilac { background:#eee8fa }.swatch.lavender { background:#e6e0f5 }.swatch.sky { background:#e3f1f6 }.swatch.aqua { background:#dff3f0 }.swatch.ocean { background:#dceaf5 }.swatch.sand { background:#efe6d5 }.swatch.stone { background:#e8e7e2 }.swatch.ice { background:#edf5f4 }.swatch.paper { background:#fff }.color-options input:checked + .swatch { box-shadow: 0 0 0 3px var(--green); }
.icon-field { padding-top: 2px; }
.icon-options { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-options label { display: block; }
.icon-options input { position: absolute; opacity: 0; pointer-events: none; }
.icon-options span { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #d3dad4; border-radius: 11px; color: #657169; background: white; cursor: pointer; }
.icon-options span:hover { color: var(--green); border-color: #9eb3a4; }
.icon-options input:checked + span { color: white; border-color: var(--green); background: var(--green); box-shadow: 0 0 0 3px rgba(47,107,74,.13); }
.icon-options svg { width: 18px; height: 18px; }
.dialog-actions { display: flex; align-items: center; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--line); background: white; }
.dialog-actions .primary { margin-left: 0; }.dialog-actions .secondary { margin-left: auto; }.danger-text { display: inline-flex; align-items: center; gap: 6px; padding: 8px; border: 0; color: #a33e39; background: transparent; font-size: 12px; font-weight: 800; }.danger-text svg { width: 16px; }
.pin-toggle input { position: absolute; opacity: 0; }.pin-toggle span { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 11px; border-radius: 10px; color: #6e7870; font-size: 12px; cursor: pointer; }.pin-toggle input:checked + span { color: var(--green); background: #eaf2e9; }.pin-toggle svg { width: 16px; }
.confirm-dialog { width: min(430px, calc(100vw - 28px)); border-radius: 21px; box-shadow: var(--shadow); }.confirm-dialog form { padding: 30px; text-align: center; background: white; }.confirm-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto; border-radius: 17px; color: #a43d38; background: #f7e7e5; }.confirm-dialog h2 { margin: 18px 0 7px; font-size: 25px; }.confirm-dialog p { margin: 0 auto 24px; color: var(--muted); line-height: 1.5; }.confirm-dialog form > div:last-child { display: flex; justify-content: center; gap: 9px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 340px; padding: 13px 17px; border-radius: 12px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: 13px; font-weight: 750; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s; }.toast.is-showing { opacity: 1; transform: translateY(0); }.toast.is-error { background: #8e3733; }
.mobile-shade { display: none; }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .notes-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .auth-screen { display: block; min-height: 100vh; padding: 24px 0; }.auth-art { display: none; }.auth-card { width: min(500px, calc(100% - 28px)); padding: 22px; }.auth-copy { margin: 65px 0 28px; }
  .app-shell { display: block; }.workspace { grid-column: auto; }.sidebar { width: min(290px, 86vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 18px 0 50px rgba(0,0,0,.22); }.sidebar.is-open { transform: translateX(0); }.mobile-shade { position: fixed; z-index: 15; inset: 0; display: block; visibility: hidden; opacity: 0; background: rgba(10,18,13,.48); transition: .2s; }.mobile-shade.is-open { visibility: visible; opacity: 1; }
  .topbar { min-height: 67px; padding: 10px 14px; }.menu-button { display: grid; }.search-wrap { flex: 1; width: auto; }.search-wrap kbd { display: none; }.top-new span { display: none; }.top-new { width: 44px; padding: 0; justify-content: center; }
  .workspace-scroll { padding: 31px 15px 50px; }.hero-row { align-items: flex-start; }.today-pill { display: none; }.hero-row h1 { font-size: 43px; }
  .stats-grid { gap: 9px; margin-bottom: 34px; }.stat-card { min-height: 112px; padding: 14px; grid-template-columns: 35px 1fr; }.stat-icon { width: 34px; height: 34px; }.stat-card strong { font-size: 24px; }.stat-card em { display: none; }
  .content-head { align-items: flex-start; }.content-head > div:first-child { display: block; }.content-head span { display: block; margin-top: 3px; }.view-controls select { max-width: 140px; }.display-button { display: none; }
  .notes-grid, .notes-grid.list-view { grid-template-columns: 1fr; }.note-card, .list-view .note-card { min-height: 210px; display: flex; }.list-view .note-card h3, .list-view .note-card p, .list-view .card-top, .list-view .card-bottom { grid-column: auto; grid-row: auto; }.list-view .note-card h3 { margin: 22px 0 8px; }.list-view .card-bottom { margin-top: auto; padding-top: 22px; }
  .activity-list { grid-template-columns: 1fr; }.activity-item:nth-child(n+7) { display: none; }
  .dialog-top, .dialog-body, .dialog-actions { padding-left: 18px; padding-right: 18px; }.field-grid { grid-template-columns: 1fr; }.dialog-actions { flex-wrap: wrap; }.dialog-actions .secondary { margin-left: auto; }.pin-toggle { order: -1; width: 100%; }.danger-text { margin-right: auto; }
}
@media (max-width: 430px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }.stat-card { display: block; min-height: 108px; }.stat-icon { margin-bottom: 12px; }
  .view-controls select { width: 160px; max-width: 160px; font-size: 11px; }.note-card { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
