:root {
  --paper:#f5f4ed;
  --ink:#183b2e;
  --muted:#68736b;
  --line:#dedfd5;
  --green:#173b2f;
  --lime:#d6e7ae;
  --white:#fffef9
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
button,input,textarea,select {
  font:inherit
}
button,a,input,select,textarea {
  touch-action:manipulation
}
a {
  color:inherit;
  text-decoration:none
}
button {
  cursor:pointer
}
button:disabled {
  cursor:not-allowed;
  opacity:.55
}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #a65c2b;
  outline-offset:3px
}
button,input,select,textarea {
  border-radius:5px
}
input,textarea,select {
  color:var(--ink);
  background:var(--white);
  border:1px solid var(--line)
}
.app-shell {
  display:grid;
  grid-template-columns:244px 1fr;
  min-height:100vh
}
.sidebar {
  position:sticky;
  top:0;
  height:100vh;
  background:var(--green);
  color:#e9ecdf;
  padding:28px 20px 20px;
  display:flex;
  flex-direction:column
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:22px;
  font-weight:550;
  letter-spacing:-.7px
}
.brand small {
  display:block;
  font:12px ui-monospace,monospace;
  letter-spacing:1.5px;
  color:#b3c5ac;
  margin-top:3px
}
.mark {
  width:33px;
  height:40px;
  --mark-surface:#d6e7ae;
  color:#173b2f
}
.workspace-badge {
  display:flex;
  align-items:center;
  gap:9px;
  padding:14px 0 20px;
  margin-top:29px;
  border-bottom:1px solid #3a5546;
  font-size:14px
}
.workspace-avatar {
  width:28px;
  height:28px;
  background:#385540;
  border:1px solid #607759;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:4px;
  font:16px Georgia;
  color:var(--lime)
}
.workspace-badge small {
  display:block;
  font-size:12px;
  color:#b1c1ad
}
.preview-chip {
  font:12px ui-monospace,monospace;
  letter-spacing:.8px;
  padding:3px 5px;
  border-radius:3px;
  border:1px solid #6a805d;
  margin-left:auto;
  color:#d6e7ae
}
.sidebar nav {
  margin-top:23px;
  display:flex;
  flex-direction:column;
  gap:5px
}
.sidebar nav a {
  padding:11px 12px;
  border-radius:5px;
  display:flex;
  align-items:center;
  gap:12px;
  color:#b8c9b9;
  font-size:14px
}
.sidebar nav a:hover {
  background:#264936
}
.sidebar nav a.active {
  color:#f2f5e8;
  background:#33503c
}
.sidebar nav a>span:first-child {
  font-size:17px;
  line-height:18px;
  width:17px
}
.nav-count {
  margin-left:auto;
  font-size:12px;
  color:#c3d5b9
}
.sidebar-bottom {
  margin-top:auto;
  padding-top:35px
}
.connection-note {
  border:1px solid #44614b;
  padding:13px 12px;
  border-radius:5px;
  font-size:12px;
  color:#d8e2cf
}
.connection-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#b6c6a0;
  margin-right:6px
}
.connection-note p {
  font-size:12px;
  line-height:1.7;
  color:#aabfa7;
  margin:8px 0 0
}
.website-link {
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:#d6e0ce;
  margin:20px 0 17px
}
.authorship {
  font:12px ui-monospace,monospace;
  letter-spacing:1.8px;
  color:#9db197
}
.workspace {
  min-width:0;
  display:flex;
  flex-direction:column
}
.topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  min-height:68px;
  padding:0 35px;
  border-bottom:1px solid var(--line);
  background:#fbfaf4
}
.breadcrumb {
  font-size:14px;
  color:var(--muted)
}
.breadcrumb span {
  margin:0 12px;
  color:#a6ada0
}
.breadcrumb strong {
  font-weight:550;
  color:var(--ink)
}
.local-label {
  font:12px ui-monospace,monospace;
  letter-spacing:.7px;
  color:var(--muted)
}
.local-label .connection-dot {
  background:#a78843
}
.preview-banner {
  background:#e9eddd;
  border-bottom:1px solid #d5ddc8;
  padding:13px 35px;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:#5a6952
}
.preview-banner strong {
  font-weight:600;
  color:#344b34
}
.preview-banner a {
  white-space:nowrap;
  text-decoration:none;
  text-underline-offset:3px;
  font-size:12px
}
#main {
  flex:1;
  outline:none
}
.page-heading {
  padding:29px 35px 23px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}
.eyebrow {
  font:12px ui-monospace,monospace;
  letter-spacing:1.7px;
  color:var(--muted);
  margin:0 0 8px
}
.page-heading h1,.content-page h1 {
  font:400 33px/1.15 Georgia,serif;
  letter-spacing:-1px;
  margin:0
}
.page-heading p:not(.eyebrow) {
  font-size:14px;
  color:var(--muted);
  margin:8px 0 0
}
.button {
  border:1px solid var(--green);
  background:var(--green);
  color:var(--paper);
  padding:9px 13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:5px;
  font-size:14px;
  font-weight:550;
  white-space:nowrap
}
.button:hover:not(:disabled) {
  background:#31523a
}
.button.secondary {
  background:transparent;
  color:var(--ink);
  border-color:#c6cdbd
}
.button.secondary:hover {
  background:#e9eddf
}
.button.danger {
  background:#8d4536;
  border-color:#8d4536
}
.button.danger:hover {
  background:#70352a
}
.toolbar {
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 35px 22px;
  border-bottom:1px solid var(--line)
}
.search-wrap {
  position:relative;
  flex:1;
  max-width:460px
}
.search-wrap>span {
  position:absolute;
  left:12px;
  top:8px;
  color:#819078;
  font-size:17px
}
.search-wrap input {
  width:100%;
  padding:10px 35px 10px 37px;
  font-size:14px
}
.search-wrap kbd {
  position:absolute;
  right:11px;
  top:10px;
  border:1px solid #d8ddcf;
  border-radius:3px;
  font:12px ui-monospace,monospace;
  padding:0 4px;
  color:#839078
}
.toolbar select {
  padding:9px 10px;
  font-size:12px;
  max-width:160px
}
.note-workbench {
  display:grid;
  grid-template-columns:300px 1fr;
  min-height:600px
}
.notes-pane {
  border-right:1px solid var(--line)
}
.list-caption {
  padding:15px 23px;
  font:12px ui-monospace,monospace;
  letter-spacing:1px;
  color:var(--muted);
  display:flex;
  justify-content:space-between
}
.notes-list {
  padding:0 11px 14px
}
.note-card {
  display:block;
  padding:16px 13px;
  border:1px solid transparent;
  border-bottom-color:var(--line);
  border-radius:5px;
  margin-bottom:5px
}
.note-card:hover {
  background:#ecefe3
}
.note-card.selected {
  border:1px solid #c8d3b6;
  background:#e8edde
}
.note-card-top {
  display:flex;
  justify-content:space-between;
  gap:8px;
  font:12px ui-monospace,monospace;
  letter-spacing:.9px;
  color:#728365;
  margin-bottom:8px
}
.note-card h2 {
  font-size:16px;
  line-height:1.5;
  font-weight:550;
  letter-spacing:-.1px;
  margin:0 0 7px
}
.note-card p {
  font-size:12px;
  color:#727d6d;
  line-height:1.65;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere
}
.card-tags {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-top:11px
}
.tag {
  font:12px ui-monospace,monospace;
  background:#e1e7d5;
  color:#627453;
  padding:3px 5px;
  border-radius:3px
}
.note-detail {
  min-width:0;
  padding:25px 33px 35px;
  background:#fbfaf4
}
.editor-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:25px
}
.note-kind {
  font:12px ui-monospace,monospace;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:#728164
}
.editor-tools {
  display:flex;
  gap:12px;
  align-items:center
}
.save-status {
  font-size:12px;
  color:#75816b
}
.icon-button {
  background:transparent;
  color:#7c6d5d;
  border:1px solid #d8d8c9;
  padding:5px 9px;
  font-size:12px
}
.icon-button:hover {
  background:#f1e6dc
}
.editor-title {
  display:block;
  font:400 32px/1.25 Georgia,serif;
  letter-spacing:-1px;
  background:transparent;
  border:0;
  border-radius:0;
  width:100%;
  padding:0 0 17px;
  resize:none;
  overflow:hidden;
  min-height:58px;
  overflow-wrap:anywhere
}
.editor-meta {
  display:flex;
  align-items:center;
  gap:16px;
  border-bottom:1px solid var(--line);
  padding:3px 0 21px;
  margin-bottom:22px;
  flex-wrap:wrap
}
.editor-meta label {
  font-size:12px;
  color:var(--muted)
}
.editor-meta select {
  font-size:12px;
  padding:4px 7px;
  margin-left:6px;
  background:#edf0e4
}
.editor-meta .date-label {
  font-size:12px;
  color:var(--muted)
}
.editor-body {
  display:block;
  width:100%;
  min-height:310px;
  background:transparent;
  border:0;
  padding:0;
  resize:vertical;
  font-size:16px;
  line-height:1.95;
  color:#495e4e
}
.editor-fields {
  display:grid;
  gap:12px;
  margin-top:27px;
  border-top:1px solid var(--line);
  padding-top:20px
}
.editor-fields label {
  display:grid;
  grid-template-columns:55px 1fr;
  align-items:center;
  font-size:12px;
  color:var(--muted);
  gap:10px
}
.editor-fields input {
  font-size:12px;
  padding:7px 9px;
  background:transparent
}
.detail-footer {
  font-size:12px;
  color:#7c8772;
  margin-top:23px;
  display:flex;
  justify-content:space-between;
  gap:20px
}
.list-empty {
  padding:25px 20px;
  color:var(--muted);
  font-size:14px
}
.empty-state {
  min-height:400px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:30px
}
.empty-state .empty-symbol {
  font:50px Georgia;
  color:#a6b790;
  margin:0 0 15px
}
.empty-state h2 {
  font:27px Georgia;
  margin:0 0 12px
}
.empty-state p {
  font-size:14px;
  color:var(--muted);
  max-width:340px;
  margin:0 0 23px
}
.app-footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:15px 35px;
  border-top:1px solid var(--line);
  font-size:12px;
  color:#7d8777
}
.content-page {
  max-width:1020px;
  padding:35px
}
.content-page .lede {
  font-size:16px;
  line-height:1.8;
  color:var(--muted);
  max-width:640px;
  margin:15px 0 30px
}
.connection-hero {
  display:flex;
  align-items:flex-start;
  gap:20px;
  background:#e8edde;
  border:1px solid #d4ddc5;
  border-radius:7px;
  padding:26px;
  margin:26px 0
}
.passport-symbol {
  font:36px Georgia;
  width:55px;
  height:62px;
  background:var(--green);
  color:var(--lime);
  border-radius:5px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0
}
.connection-hero h2 {
  font:27px Georgia;
  margin:0 0 10px
}
.connection-hero p {
  font-size:14px;
  color:var(--muted);
  margin:0 0 18px;
  max-width:580px
}
.unavailable {
  font:12px ui-monospace,monospace;
  letter-spacing:.9px;
  background:#e8e4d7;
  color:#7d6e51;
  padding:4px 6px;
  border-radius:3px;
  white-space:nowrap
}
.content-card {
  background:#fbfaf4;
  border:1px solid var(--line);
  border-radius:7px;
  padding:25px;
  margin-bottom:20px
}
.card-heading {
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center
}
.content-card h2 {
  font-size:17px;
  font-weight:550;
  margin:0 0 12px
}
.content-card p {
  font-size:14px;
  color:var(--muted);
  line-height:1.8;
  max-width:650px;
  margin:10px 0 18px
}
.content-card p:last-child {
  margin-bottom:0
}
.connection-steps {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
  margin-top:23px
}
.connection-steps span {
  font:12px ui-monospace,monospace;
  color:#859277
}
.connection-steps h3 {
  font-size:14px;
  font-weight:550;
  margin:8px 0
}
.connection-steps p {
  font-size:14px;
  margin:0
}
.fact-row {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  font-size:14px
}
.fact-row:last-child {
  border:0
}
.fact-row span {
  color:var(--muted)
}
.action-row {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap
}
.action-row input {
  max-width:100%
}
.file-label {
  cursor:pointer
}
.file-label input {
  position:absolute;
  opacity:0;
  width:1px;
  height:1px
}
.file-label:focus-within {
  outline:3px solid #a65c2b;
  outline-offset:3px
}
.notice {
  background:#f6e6d1;
  color:#7f4d23;
  padding:13px 35px;
  font-size:14px;
  border-bottom:1px solid #d9b78e
}
.toast {
  position:fixed;
  bottom:25px;
  left:calc(50% + 122px);
  transform:translateX(-50%);
  background:var(--green);
  color:var(--paper);
  box-shadow:0 5px 20px #173b2f25;
  padding:12px 20px;
  border-radius:6px;
  max-width:90vw;
  font-size:14px;
  z-index:20
}
.skip {
  position:fixed;
  top:-100px;
  left:15px;
  padding:10px;
  background:white;
  z-index:30
}
.skip:focus {
  top:10px
}
dialog {
  border:1px solid #bdc8b1;
  border-radius:9px;
  background:var(--paper);
  color:var(--ink);
  padding:28px;
  max-width:440px;
  width:calc(100% - 40px);
  box-shadow:0 15px 80px #183b2e30
}
dialog::backdrop {
  background:#12291ec0
}
dialog h2 {
  font:29px Georgia;
  margin:0 0 14px
}
dialog p:not(.eyebrow) {
  font-size:14px;
  color:var(--muted);
  line-height:1.8
}
.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:25px
}
[hidden] {
  display:none!important
}
@media(min-width:1550px) {
  .note-workbench {
    grid-template-columns:340px 1fr
  }
  .note-detail {
    padding:30px 60px
  }
  .editor-body {
    max-width:850px
  }
}
@media(max-width:1150px) {
  .app-shell {
    grid-template-columns:208px 1fr
  }
  .sidebar {
    padding:24px 15px 18px
  }
  .brand {
    font-size:20px;
    gap:9px
  }
  .brand small {
    font-size:12px
  }
  .preview-chip {
    display:none
  }
  .topbar {
    padding:0 25px
  }
  .preview-banner {
    padding:12px 25px
  }
  .page-heading {
    padding:25px
  }
  .toolbar {
    padding:0 25px 20px
  }
  .note-workbench {
    grid-template-columns:255px 1fr
  }
  .note-detail {
    padding:23px
  }
  .editor-title {
    font-size:29px
  }
  .toast {
    left:calc(50% + 104px)
  }
  .app-footer {
    padding:15px 25px
  }
  .connection-steps {
    gap:18px
  }
}
@media(max-width:900px) {
  .app-shell {
    grid-template-columns:175px 1fr
  }
  .sidebar {
    padding:22px 12px
  }
  .brand {
    font-size:18px
  }
  .brand small {
    font-size:12px;
    letter-spacing:1px
  }
  .brand .mark {
    width:28px;
    height:35px
  }
  .workspace-badge {
    gap:7px;
    font-size:12px
  }
  .sidebar nav a {
    font-size:14px;
    padding:10px 9px;
    gap:8px
  }
  .connection-note {
    font-size:12px;
    padding:10px
  }
  .note-workbench {
    grid-template-columns:220px 1fr
  }
  .note-detail {
    padding:20px
  }
  .editor-meta {
    gap:10px
  }
  .save-status {
    font-size:12px
  }
  .preview-banner {
    display:block
  }
  .preview-banner a {
    display:inline-block;
    margin-top:5px
  }
  .editor-top {
    gap:10px;
    flex-wrap:wrap
  }
  .editor-title {
    font-size:27px
  }
  .editor-body {
    font-size:14px
  }
  .toolbar {
    gap:7px
  }
  .toolbar select {
    max-width:115px;
    padding:9px 6px
  }
  .search-wrap {
    min-width:100px
  }
  .toolbar .sort-select {
    max-width:110px
  }
  .content-page {
    padding:27px
  }
  .connection-steps {
    grid-template-columns:1fr
  }
  .toast {
    left:calc(50% + 87px)
  }
  .app-footer>span:first-child {
    display:none
  }
}
@media(max-width:720px) {
  .app-shell {
    display:block
  }
  .sidebar {
    height:auto;
    position:static;
    padding:17px 20px 0;
    display:block
  }
  .brand {
    font-size:20px
  }
  .brand small {
    font-size:12px;
    letter-spacing:1.4px
  }
  .brand .mark {
    width:29px;
    height:36px
  }
  .workspace-badge,.sidebar-bottom {
    display:none
  }
  .sidebar nav {
    flex-direction:row;
    gap:6px;
    margin-top:17px;
    overflow-x:auto;
    padding-bottom:10px
  }
  .sidebar nav a {
    padding:8px 10px;
    white-space:nowrap;
    font-size:12px
  }
  .sidebar nav a>span:first-child {
    font-size:16px;
    width:auto
  }
  .nav-count {
    display:none
  }
  .topbar {
    min-height:45px;
    padding:0 20px
  }
  .preview-banner {
    padding:11px 20px;
    font-size:12px
  }
  .preview-banner a {
    font-size:12px
  }
  .page-heading {
    padding:23px 20px 20px;
    align-items:center
  }
  .page-heading h1 {
    font-size:31px
  }
  .page-heading p:not(.eyebrow) {
    font-size:12px
  }
  .toolbar {
    padding:0 20px 17px;
    flex-wrap:wrap
  }
  .search-wrap {
    flex-basis:100%;
    max-width:none
  }
  .toolbar select {
    flex:1;
    max-width:none!important
  }
  .note-workbench {
    display:block;
    min-height:0
  }
  .notes-pane {
    border:0
  }
  .notes-list {
    display:flex;
    overflow-x:auto;
    gap:8px;
    padding:0 20px 15px;
    scroll-snap-type:x proximity
  }
  .note-card {
    min-width:235px;
    max-width:235px;
    border:1px solid var(--line);
    margin:0;
    scroll-snap-align:start;
    padding:13px
  }
  .note-card.selected {
    border-color:#9cb181
  }
  .note-card p {
    -webkit-line-clamp:1
  }
  .card-tags {
    margin-top:7px
  }
  .list-caption {
    padding:12px 20px
  }
  .note-detail {
    border-top:1px solid var(--line);
    padding:25px 20px
  }
  .editor-top {
    margin-bottom:20px;
    flex-wrap:nowrap
  }
  .editor-title {
    font-size:31px
  }
  .editor-body {
    font-size:16px;
    min-height:260px
  }
  .editor-fields label {
    grid-template-columns:46px 1fr
  }
  .detail-footer {
    font-size:12px
  }
  .content-page {
    padding:28px 20px
  }
  .content-page h1 {
    font-size:32px
  }
  .content-page .lede {
    font-size:14px
  }
  .connection-hero {
    padding:20px;
    gap:15px
  }
  .passport-symbol {
    width:42px;
    height:50px;
    font-size:28px
  }
  .connection-hero h2 {
    font-size:23px
  }
  .connection-hero p {
    font-size:14px
  }
  .content-card {
    padding:21px
  }
  .card-heading {
    align-items:start
  }
  .content-card h2 {
    font-size:16px
  }
  .unavailable {
    font-size:12px;
    letter-spacing:.5px
  }
  .app-footer {
    padding:15px 20px;
    font-size:12px
  }
  .toast {
    left:50%;
    bottom:18px;
    width:max-content;
    max-width:calc(100% - 40px)
  }
  .notice {
    padding:12px 20px
  }
  .local-label {
    font-size:12px
  }
  .empty-state {
    min-height:300px
  }
}
@media(prefers-reduced-motion:no-preference) {
  .toast {
    animation:appear .15s ease-out
  }
  @keyframes appear {
    from {
      opacity:0;
      translate:0 8px
    }
    to {
      opacity:1;
      translate:0 0
    }
  }
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.storage-toggle {
  font-size:14px;
  display:flex;
  align-items:center;
  gap:9px
}
.storage-toggle input {
  accent-color:var(--green);
  width:16px;
  height:16px
}
@media(max-width:800px) {
  .app-shell {
    display:block
  }
  .sidebar {
    height:auto;
    position:static;
    padding:17px 20px 0;
    display:block
  }
  .brand {
    font-size:21px
  }
  .brand small {
    font-size:12px;
    letter-spacing:1.2px
  }
  .workspace-badge,.sidebar-bottom {
    display:none
  }
  .sidebar nav {
    flex-direction:row;
    gap:4px;
    margin-top:15px;
    overflow:visible;
    padding-bottom:10px
  }
  .sidebar nav a {
    flex:1;
    min-height:52px;
    padding:7px 3px;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    white-space:nowrap;
    font-size:12px
  }
  .sidebar nav a>span:first-child {
    font-size:17px;
    width:auto
  }
  .nav-count {
    display:none
  }
  .preview-banner {
    font-size:14px
  }
  .preview-banner a {
    font-size:12px
  }
  .button {
    min-height:44px;
    font-size:14px;
    padding:10px 13px
  }
  .toolbar input,.toolbar select {
    min-height:44px;
    font-size:18px
  }
  .toolbar {
    flex-wrap:wrap
  }
  .search-wrap {
    flex-basis:100%;
    max-width:none
  }
  .search-wrap>span {
    top:10px
  }
  .search-wrap kbd {
    top:14px
  }
  .toolbar select {
    flex:1;
    max-width:none!important
  }
  .note-workbench {
    display:block;
    min-height:0
  }
  .notes-pane {
    border:0
  }
  .notes-list {
    display:flex;
    overflow-x:auto;
    gap:8px;
    padding:0 20px 15px;
    scroll-snap-type:x proximity
  }
  .note-card {
    min-width:250px;
    max-width:250px;
    border:1px solid var(--line);
    margin:0;
    scroll-snap-align:start;
    padding:14px
  }
  .note-card h2 {
    font-size:16px
  }
  .note-card p {
    font-size:14px;
    -webkit-line-clamp:1
  }
  .note-card-top {
    font-size:12px
  }
  .card-tags .tag {
    font-size:12px
  }
  .note-detail {
    border-top:1px solid var(--line);
    padding:25px 20px
  }
  .editor-body {
    font-size:18px;
    line-height:1.85;
    min-height:300px
  }
  .editor-fields label {
    font-size:14px
  }
  .editor-fields input,.editor-meta select {
    font-size:18px;
    min-height:44px
  }
  .editor-meta label,.editor-meta .date-label {
    font-size:14px
  }
  .icon-button {
    min-height:44px;
    min-width:44px;
    font-size:14px
  }
  .save-status {
    font-size:12px
  }
  .content-page .lede,.content-card p,.connection-hero p {
    font-size:16px
  }
  .storage-toggle {
    font-size:16px;
    min-height:44px
  }
  .fact-row {
    font-size:14px
  }
  .notice {
    font-size:14px
  }
  .toast {
    font-size:14px;
    left:50%
  }
  .detail-footer {
    font-size:12px
  }
  .tag {
    font-size:12px
  }
  .list-caption {
    font-size:12px
  }
  .content-page {
    padding:28px 20px
  }
  .connection-steps {
    grid-template-columns:1fr
  }
  .connection-steps h3 {
    font-size:16px
  }
  .connection-steps p {
    font-size:16px
  }
}

/* Readable interface scale: body/controls 16–18px, secondary text 14px. */
:root {
  --text-body: 16px;
  --text-control: 16px;
  --text-secondary: 14px;
  --text-label: 14px;
}
body { font-size: var(--text-body); }
.app-shell { grid-template-columns: 280px 1fr; }
.sidebar { padding: 28px 22px 22px; }
.brand { font-size: 25px; }
.brand small { font-size: 11px; letter-spacing: 1px; line-height: 1.5; }
.workspace-badge { font-size: 15px; gap: 10px; }
.workspace-badge small { font-size: 13px; }
.workspace-avatar { width: 36px; height: 36px; font-size: 18px; }
.preview-chip { display: none; }
.sidebar nav a { font-size: 16px; min-height: 48px; padding: 11px 12px; }
.nav-count { font-size: 14px; }
.connection-note, .connection-note p, .website-link, .authorship { font-size: 14px; }
.authorship { letter-spacing: 1px; }
.breadcrumb, .local-label { font-size: 14px; }
.preview-banner { font-size: 14px; line-height: 1.65; align-items: flex-start; }
.preview-banner a { font-size: 14px; white-space: normal; flex-shrink: 0; max-width: 180px; }
.eyebrow, .note-kind, .list-caption { font-size: 13px; letter-spacing: 1.1px; }
.page-heading p:not(.eyebrow) { font-size: 16px; }
.button, .icon-button { font-size: var(--text-control); min-height: 44px; }
.search-wrap input, .toolbar select { font-size: var(--text-control); min-height: 46px; }
.search-wrap > span { top: 9px; }
.search-wrap kbd { font-size: 13px; top: 13px; }
.toolbar select { max-width: 190px; }
.note-workbench { grid-template-columns: 340px 1fr; }
.note-card { padding: 18px 14px; }
.note-card-top { font-size: 12px; letter-spacing: .4px; flex-wrap: wrap; }
.note-card h2 { font-size: 18px; line-height: 1.4; }
.note-card p { font-size: 15px; line-height: 1.65; }
.tag { font-size: 13px; line-height: 1.5; }
.editor-top { flex-wrap: wrap; }
.editor-tools { flex-wrap: wrap; }
.save-status { font-size: 14px; }
.editor-title { font-size: 36px; line-height: 1.25; }
.editor-meta label, .editor-meta .date-label { font-size: 14px; }
.editor-meta select { font-size: 16px; min-height: 44px; }
.editor-body { font-size: 18px; line-height: 1.85; min-height: 360px; }
.editor-fields label { font-size: 14px; grid-template-columns: 65px minmax(0, 1fr); }
.editor-fields input { font-size: 16px; min-height: 44px; min-width: 0; width: 100%; }
.detail-footer, .app-footer { font-size: 13px; line-height: 1.7; flex-wrap: wrap; }
.content-page .lede, .content-card p, .connection-hero p { font-size: 17px; line-height: 1.8; }
.content-card h2 { font-size: 20px; }
.connection-steps h3 { font-size: 18px; }
.connection-steps p { font-size: 16px; }
.connection-steps span, .unavailable { font-size: 12px; letter-spacing: .6px; }
.fact-row, .storage-toggle { font-size: 16px; }
.storage-toggle { min-height: 44px; }
.content-card { overflow-wrap: anywhere; }
.notice, .toast, dialog p:not(.eyebrow) { font-size: 16px; }
.toast { left: calc(50% + 140px); }
@media (min-width: 1550px) {
  .note-workbench { grid-template-columns: 370px 1fr; }
}
@media (max-width: 1150px) {
  .app-shell { grid-template-columns: 250px 1fr; }
  .sidebar { padding: 24px 18px; }
  .brand { font-size: 23px; }
  .brand small { font-size: 10px; }
  .workspace-badge { font-size: 14px; }
  .workspace-badge small { font-size: 12px; }
  .note-workbench { grid-template-columns: 290px 1fr; }
  .toolbar { flex-wrap: wrap; }
  .search-wrap { max-width: none; flex-basis: 100%; }
  .toolbar select { max-width: none; flex: 1; }
  .connection-steps { grid-template-columns: 1fr; }
  .toast { left: calc(50% + 125px); }
}
@media (min-width: 801px) and (max-width: 1000px) {
  .app-shell { grid-template-columns: 230px 1fr; }
  .brand small { font-size: 10px; letter-spacing: .5px; }
  .note-workbench { grid-template-columns: 1fr; }
  .notes-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .notes-list { display: flex; overflow-x: auto; gap: 10px; padding: 0 20px 20px; }
  .note-card { min-width: 280px; max-width: 280px; border: 1px solid var(--line); }
  .note-detail { padding: 28px; }
  .toast { left: calc(50% + 115px); }
}
@media (max-width: 800px) {
  .app-shell { display: block; }
  .sidebar { padding: 18px 20px 0; }
  .brand { font-size: 24px; }
  .brand small { font-size: 11px; letter-spacing: .8px; }
  .sidebar nav { gap: 4px; }
  .sidebar nav a { font-size: 14px; min-height: 72px; padding: 9px 4px; white-space: normal; text-align: center; line-height: 1.3; }
  .topbar { padding: 10px 20px; gap: 10px; min-height: 50px; flex-wrap: wrap; }
  .breadcrumb, .local-label { font-size: 13px; }
  .preview-banner { font-size: 14px; }
  .preview-banner a { font-size: 14px; display: inline-block; margin-top: 8px; max-width: none; }
  .page-heading { flex-wrap: wrap; gap: 18px; padding: 26px 20px 22px; }
  .page-heading > div { width: 100%; }
  .page-heading h1, .content-page h1 { font-size: 36px; }
  .page-heading p:not(.eyebrow) { font-size: 16px; }
  .page-heading > .button { width: 100%; }
  .toolbar select, .toolbar .sort-select { font-size: 16px; max-width: none; }
  .note-workbench { display: block; }
  .note-card { min-width: 280px; max-width: 280px; padding: 16px; }
  .note-card h2 { font-size: 18px; }
  .note-card p { font-size: 15px; }
  .note-card-top { font-size: 12px; }
  .card-tags .tag, .tag { font-size: 13px; }
  .list-caption { font-size: 12px; padding: 16px 20px; }
  .editor-top { flex-wrap: wrap; gap: 14px; }
  .editor-tools { flex-wrap: wrap; gap: 12px; }
  .save-status, .note-kind { font-size: 14px; }
  .editor-title { font-size: 34px; }
  .editor-body { font-size: 18px; }
  .editor-meta label, .editor-meta .date-label, .editor-fields label { font-size: 14px; }
  .editor-fields input, .editor-meta select { font-size: 16px; }
  .editor-fields label { grid-template-columns: 58px minmax(0, 1fr); }
  .detail-footer, .app-footer { font-size: 13px; }
  .fact-row { font-size: 15px; flex-wrap: wrap; gap: 5px 15px; }
  .connection-hero { flex-wrap: wrap; }
  .connection-hero h2 { font-size: 28px; }
  .content-page .lede, .content-card p, .connection-hero p, .connection-steps p { font-size: 16px; }
  .content-card h2 { font-size: 20px; }
  .card-heading { flex-wrap: wrap; gap: 8px; }
  .unavailable { font-size: 12px; white-space: normal; }
  .storage-toggle { font-size: 16px; align-items: flex-start; }
  .storage-toggle input { flex-shrink: 0; margin-top: 5px; }
  .toast { left: 50%; font-size: 16px; }
}
:root { --muted: #52634f; }
.note-card-top, .note-card p, .note-kind, .save-status,
.detail-footer, .app-footer, .list-caption,
.search-wrap > span, .search-wrap kbd { color: var(--muted); }
.tag { color: #49603c; }
input::placeholder, textarea::placeholder { color: #5c6c55; opacity: 1; }
@media (max-width: 800px) {
  .preview-banner a { display: block; width: fit-content; }
}

.preview-banner a { font-weight: 600; }

/* Shared interaction treatment. Keep the focus outlines in each interface. */
:root {
  --link-hover: #2f6b4f;
}
a:any-link {
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
a:any-link:hover {
  text-decoration: none;
  color: var(--link-hover);
}
.sidebar {
  --link-hover: #f0f7dc;
}
.sidebar nav a:hover,
.sidebar nav a.active:hover {
  color: var(--link-hover);
}
a.button {
  --link-hover: #e6f4c8;
}
a.button.light {
  --link-hover: #254c36;
}
@media (prefers-reduced-motion: reduce) {
  a:any-link {
    transition: none;
  }
}

/* Font-independent SVG outlines and containers. Keep the approved CSS sizes. */
.mark {
  display: block;
  flex-shrink: 0;
  overflow: visible;
  background: none;
  border-radius: 0;
  padding-right: 0;
  letter-spacing: normal;
}
.mark-container {
  fill: var(--mark-surface);
}
.mark use {
  fill: currentColor;
}
.mark-variant {
  display: none;
  overflow: visible;
}
.mark-website-desktop,
.mark-app-desktop {
  display: block;
}
.tiny-mark {
  display: block;
  flex-shrink: 0;
  width: 1.1666666667em;
  height: 1em;
  overflow: visible;
  font-size: 26px;
  line-height: 1;
  letter-spacing: normal;
}
@media (max-width: 900px) {
  .mark-app-desktop { display: none; }
  .mark-app-tablet { display: block; }
}
@media (max-width: 800px) {
  .mark-website-desktop { display: none; }
  .mark-website-mobile { display: block; }
}
@media (max-width: 720px) {
  .mark-app-tablet { display: none; }
  .mark-app-mobile { display: block; }
}

/* Brand links stay unadorned on hover; keyboard focus keeps its visible outline. */
.brand:hover {
  text-decoration: none;
}
