:root {
  color-scheme:light;
  --ink:#182e2c;
  --muted:#556963;
  --green:#246459;
  --line:#d9e0d9;
  --paper:#f7f8f2;
  --white:#fff;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-size:16px;
}
* {
  box-sizing:border-box;
}
[hidden] {
  display:none !important;
}
body {
  margin:0;
}
.skip-link {
  position:fixed;
  z-index:1000;
  top:12px;
  left:12px;
  padding:12px 16px;
  background:var(--white);
  border:2px solid var(--green);
  border-radius:6px;
  opacity:0;
  pointer-events:none;
}
.skip-link:focus {opacity:1;pointer-events:auto}
header {
  display:flex;
  align-items:center;
  gap:24px;
  padding:22px 5vw;
  border-bottom:1px solid var(--line);
  background:var(--white);
}
.brand {
  font-family:Georgia,serif;
  font-size:30px;
  font-weight:700;
  color:var(--ink);
  text-decoration:none;
}
.account {
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}
.account-identity {max-width:min(320px,70vw)}
.account-identity summary {color:var(--green);cursor:pointer;font-size:13px}
.account-identity p {margin:8px 0;font-size:13px}
.account-identity code {display:block;overflow-wrap:anywhere}
.account-identity input {width:100%;margin-top:8px}
.beta {
  font-size:12px;
  padding:6px 10px;
  background:#e8eee4;
  border-radius:20px;
  color:var(--green);
}
main {
  max-width:1400px;
  margin:auto;
  padding:36px 5vw;
  min-height:70vh;
}
h1,h2,h3 {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:500;
  overflow-wrap:anywhere;
}
h1 {
  font-size:clamp(30px,4vw,48px);
  line-height:1.15;
  margin:8px 0 16px;
}
h2 {
  font-size:26px;
}
p {
  line-height:1.6;
  overflow-wrap:anywhere;
}
a {
  color:var(--green);
  text-underline-offset:3px;
}
button {
  font:inherit;
  font-size:14px;
  padding:11px 17px;
  border:1px solid var(--green);
  border-radius:6px;
  background:var(--green);
  color:white;
  cursor:pointer;
  max-width:100%;
}
button:hover {
  filter:brightness(.94);
}
button:disabled {
  opacity:.5;
  cursor:wait;
}
button.secondary {
  background:transparent;
  color:var(--green);
  border-color:var(--line);
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #c3953b;
  outline-offset:3px;
}
.welcome {
  max-width:680px;
  margin:8vh auto;
}
.welcome p {
  font-size:19px;
  color:var(--muted);
  margin-bottom:28px;
}
.welcome button {
  margin:8px 10px 8px 0;
}
.eyebrow {
  font:12px system-ui,sans-serif;
  color:var(--muted);
  letter-spacing:.07em;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin:25px 0;
}
.page-heading p {
  max-width:700px;
  color:var(--muted);
}
.actions {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  align-items:center;
}
.study-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));
  gap:20px;
  margin:26px 0;
}
.study-card {
  display:block;
  text-decoration:none;
  border:1px solid var(--line);
  background:white;
  border-radius:10px;
  padding:24px;
  min-height:200px;
}
.study-card h2 {
  color:var(--ink);
  margin:18px 0 10px;
}
.study-card p {
  color:var(--muted);
  white-space:pre-wrap;
}
.study-card time {
  font-size:12px;
}
.tabs {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:28px 0 20px;
  border-bottom:1px solid var(--line);
  padding-bottom:12px;
}
.workspace {
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:32px;
}
aside {
  border-right:1px solid var(--line);
  padding-right:20px;
}
.entry-card {
  display:block;
  padding:16px 4px;
  border-bottom:1px solid var(--line);
  text-decoration:none;
}
.entry-card small {
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:7px;
}
.entry-card strong {
  display:block;
  font-weight:500;
  overflow-wrap:anywhere;
}
label {
  display:block;
  font-size:13px;
  font-weight:600;
  margin-bottom:20px;
}
input,textarea,select {
  font:inherit;
  font-weight:400;
  color:var(--ink);
  display:block;
  width:100%;
  margin-top:8px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:5px;
  background:white;
}
input[type=search] {
  max-width:420px;
}
textarea {
  resize:vertical;
  min-height:90px;
  line-height:1.65;
}
textarea[name=content] {
  min-height:320px;
  font-size:17px;
}
textarea[name=links] {
  min-height:75px;
  font-size:13px;
}
.hint,#save-status {
  font-size:12px;
  color:var(--muted);
}
.empty {
  padding:32px 0;
  color:var(--muted);
}
.notice {
  margin:0 5vw;
  color:var(--green);
}
.notice:not(:empty) {
  padding:14px 0;
}
.error,.form-error {
  color:#963a2b;
}
.revision {
  display:flex;
  flex-direction:column;
  gap:14px;
  border-top:1px solid var(--line);
  padding:20px 0;
}
.revision time {
  font-size:13px;
}
.activity-actor {overflow-wrap:anywhere}
code {
  display:block;
  font-size:11px;
  overflow-wrap:anywhere;
  color:var(--muted);
}
dialog {
  max-width:850px;
  width:90%;
  max-height:90vh;
  border:1px solid var(--line);
  border-radius:12px;
  padding:28px;
  color:var(--ink);
  background:var(--paper);
}
dialog::backdrop {
  background:#182e2c66;
}
.comparison {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.comparison section {
  min-width:0;
}
pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-family:inherit;
  line-height:1.7;
}
.warning {
  background:#f4ead1;
  padding:14px;
  border-radius:5px;
}
footer {
  border-top:1px solid var(--line);
  padding:24px 5vw;
  font-size:13px;
}
.public {
  max-width:850px;
}
.public pre {
  font-size:18px;
}
@media(max-width:768px) {
  header {
    padding:16px 5vw;
    gap:10px;
    flex-wrap:wrap;
  }
  .brand {
    font-size:26px;
  }
  .beta {
    font-size:10px;
  }
  .account button {
    padding:8px;
  }
  .page-heading {
    align-items:flex-start;
    flex-direction:column;
  }
  .workspace {
    grid-template-columns:1fr;
    gap:24px;
  }
  aside {
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:0 0 15px;
    display:flex;
    gap:10px;
    overflow:auto;
    align-items:flex-start;
  }
  aside>button {
    flex-shrink:0;
  }
  .entry-card {
    min-width:160px;
    max-width:240px;
    flex-shrink:0;
    border:1px solid var(--line);
    padding:12px;
  }
  .comparison {
    grid-template-columns:1fr;
  }
  .welcome {
    margin:5vh auto;
  }
  main {
    padding-top:24px;
  }
}
@media(max-width:375px) {
  header .beta {
    order:3;
  }
  .actions button {
    padding:9px 12px;
  }
  .tabs button {
    font-size:12px;
  }
  .account button {
    font-size:12px;
  }
  dialog {
    padding:18px;
  }
}

/* The record stays primary; supporting research tools open when needed. */
.study-breadcrumb {display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}
.study-heading {margin:26px 0 22px;max-width:850px}
.study-heading h1 {font-size:clamp(28px,3.2vw,40px);margin-bottom:10px}
.study-heading p {color:var(--muted);margin:0;white-space:pre-wrap}
.study-workspace-purpose {margin-top:8px}
.study-workspace-purpose>summary {color:var(--green);font-size:13px}
.study-workspace-purpose>p {margin-top:8px}
.archive-status {margin:10px 0;padding:10px 14px;border-left:3px solid var(--green);background:#f2eddf;color:var(--ink);font-size:13px}
.archive-status[hidden] {display:none}
.workspace-toolbar {display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:0 0 18px;margin-bottom:26px}
.study-copy-link-action {display:contents}
.depth-switch {display:flex;padding:3px;background:#e9eee7;border-radius:8px;gap:3px}
.depth-switch button {background:transparent;color:var(--muted);border:0;padding:9px 14px}
.depth-switch button[aria-pressed=true] {background:white;color:var(--ink);box-shadow:0 1px 4px #182e2c14}
.depth-switch-help {flex-basis:100%;margin-top:-8px}
.depth-switch-help>summary {font-size:12px;color:var(--green)}
.depth-switch-help>p {margin:6px 0 0;font-size:12px}
.study-tools {margin-left:auto;max-width:100%}
summary {cursor:pointer;font-size:14px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
summary:focus-visible {outline:3px solid #c3953b;outline-offset:4px}
.study-tools>summary {padding:11px 0;color:var(--green)}
.study-tools>.actions {padding:12px 0;max-width:460px}
.workspace {grid-template-columns:260px minmax(0,1fr);gap:30px;align-items:start}
.workspace aside {position:sticky;top:20px;min-width:0;max-height:85vh;overflow:auto;padding-right:20px}
.entry-list-heading {display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:18px}
.entry-list-heading h2 {font:600 14px system-ui,sans-serif;margin:0}
.count {display:inline-flex;border-radius:16px;min-width:24px;padding:2px 7px;background:#e9eee7;font:12px system-ui,sans-serif;color:var(--muted);margin-left:8px;justify-content:center}
.workspace aside>button {width:100%;margin-bottom:14px}
.workspace aside>input {font-size:13px;margin:0 0 12px}
.entry-records {display:flex;flex-direction:column;gap:6px}
.entry-card {border:1px solid transparent;border-radius:7px;padding:13px 14px}
.entry-card[aria-current=page] {border-color:#b9cec0;background:#eaf0e5}
.entry-card:hover {background:#edf1e9}
.entry-card-event-date,.entry-card-updated,.entry-card-added {display:block;margin-top:8px;color:var(--muted);font-size:11px}
.entry-card-author {display:block;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.3;overflow-wrap:anywhere}
.entry-card-preview {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.entry-publication-status {display:inline-block;margin-top:7px;border-radius:12px;background:#f4ead1;color:#624500;padding:3px 7px;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.entry-archived-label {display:inline-block;margin-top:7px;color:var(--muted);font-size:11px}
.entry-version-state {display:block;margin-top:7px;color:#815d13;font-size:11px;line-height:1.4}
.search-excerpt-context {display:block;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.revision-excerpt {margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.entry-card-event-date time,.entry-card-updated time,.entry-card-added time {font:inherit}
#entry-panel {min-width:0;background:white;border:1px solid var(--line);border-radius:12px;padding:30px;box-shadow:0 5px 22px #182e2c05}
.entry-empty {text-align:center;padding:55px 20px;max-width:620px;margin:auto}
.entry-empty h2 {font-size:30px}
.entry-empty p {color:var(--muted)}
.empty-mark {display:inline-flex;width:46px;height:46px;background:#eaf0e5;border-radius:50%;align-items:center;justify-content:center;font-size:24px;color:var(--green)}
.entry-form-heading input {font:500 26px Georgia,serif;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:10px 0 15px;margin-top:0;background:transparent}
.entry-form-heading label {font-size:12px;color:var(--muted)}
.entry-form-heading + .entry-copy-link-action {display:flex;justify-content:flex-end;margin:-8px 0 14px}
.entry-copy-link-action .private-entry-link {width:100%;min-width:0}
#entry-panel>.entry-copy-link-action {margin-bottom:14px}
.entry-kind-row {display:flex;align-items:center;gap:16px;margin-top:8px}
.entry-kind-row label {margin:0;color:var(--muted);font-weight:400}
.entry-kind-row select {width:auto;max-width:70%;margin:0;font-size:13px;padding:8px 32px 8px 10px}
.type-description {font-size:13px;line-height:1.6;color:var(--muted);margin:12px 0 24px}
#editor textarea[name=content] {border:1px solid #e2e7df;background:#fcfdf9;min-height:340px;font-size:17px;padding:18px;line-height:1.8}
#editor textarea[name=content]::placeholder {color:var(--muted);font-size:15px}
.editor-disclosure {border-top:1px solid var(--line);padding:17px 0;margin-top:12px}
.editor-disclosure>summary {color:var(--green)}
.disclosure-body {padding-top:18px}
#editor>.actions {padding:16px 0 4px;border-top:1px solid var(--line);margin-top:20px}
#save-status {font-size:12px;margin:0 0 8px;padding:0}
.integrity-details>summary {font-size:12px;color:var(--muted)}
#history .revision:first-child {border-top:0}
#history .revision {padding:16px 0}
@media(max-width:900px) {
  .workspace {grid-template-columns:210px minmax(0,1fr);gap:18px}
  #entry-panel {padding:22px}
  .workspace aside {padding-right:12px}
}
@media(max-width:768px) {
  .workspace {grid-template-columns:minmax(0,1fr)}
  .workspace aside {position:static;display:block;max-height:none;overflow:visible;border:0;padding:0}
  .entry-records {flex-direction:row;overflow:auto;padding-bottom:8px;max-height:170px}
  .entry-card {min-width:170px;max-width:230px;flex-shrink:0}
  .workspace aside>button {width:auto}
  .workspace aside>input {max-width:none}
  .entry-list-heading {margin-bottom:12px}
  .study-tools {margin-left:0;flex-basis:100%}
  .study-heading {margin-top:22px}
  .workspace-toolbar {gap:10px;margin-bottom:18px}
  #entry-panel {padding:20px 16px}
  .entry-form-heading input {font-size:23px}
  #editor textarea[name=content] {min-height:300px;padding:13px}
  .entry-empty {padding:28px 4px}
  .entry-empty h2 {font-size:26px}
}
@media(max-width:375px) {
  .depth-switch {width:100%}
  .depth-switch button {flex:1;font-size:13px}
  .entry-kind-row {align-items:flex-start;flex-direction:column;gap:8px}
  .entry-kind-row select {max-width:100%;width:100%}
}
.entry-navigator>summary {font-size:13px;font-weight:600;margin:2px 0 16px}
.entry-navigator>input {font-size:13px;margin:0 0 12px;max-width:none}
main:has(.workspace) .return-entries {display:none}
@media(max-width:768px) {
  .workspace aside {display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
  .workspace aside>button {margin:0;font-size:13px}
  .entry-navigator {flex:1;min-width:150px}
  .entry-navigator[open] {flex-basis:100%}
  .entry-navigator>summary {padding:10px 0;margin:0 0 6px}
  .study-heading {margin:18px 0}
  .workspace-toolbar {padding-bottom:10px;gap:5px}
  .study-tools>summary {padding:8px 0}
}

.collection-toolbar {display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.collection-toolbar input[type=search] {flex:1;min-width:180px;max-width:none;margin:0}
.collection-toolbar select {width:auto;max-width:100%;margin:0;font-size:14px}
.collection-filters {display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 26px}
.study-filter-disclosure {margin:14px 0 22px}
.study-filter-disclosure>summary {color:var(--green);font-size:13px;padding:8px 0}
.study-filter-disclosure>summary .count {margin-left:6px}
.collection-filters button {border-radius:22px;padding:8px 15px;font-size:13px}
.collection-filters button[aria-pressed=true] {background:var(--green);border-color:var(--green);color:white}
.study-card {display:flex;flex-direction:column;padding:22px;min-width:0}
.study-card-link {display:block;text-decoration:none;flex:1}
.study-role {display:inline-flex;font-size:11px;color:var(--green);border-radius:16px;background:#eaf0e5;padding:4px 9px}
.study-publication-status {display:inline-flex;width:max-content;margin:8px 0;font-size:11px;color:#624500;border-radius:16px;background:#f4ead1;padding:4px 9px}
.study-card>button.study-publication-status {font-family:inherit;cursor:pointer}
.study-card>button.study-publication-status:hover {text-decoration:underline}
.study-card h2 {font-size:25px;line-height:1.3}
.study-card-link p {display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px}
.study-card-meta {display:flex;gap:14px;flex-wrap:wrap;justify-content:space-between;border-top:1px solid var(--line);padding-top:16px;margin-top:16px;color:var(--muted);font-size:11px}
.study-card-meta time {margin-left:6px;font-size:11px}
.activity-filter-row {display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}
.activity-filter-row label {flex:1;min-width:190px;font-size:12px;color:var(--muted)}
.activity-filter-row select,.activity-filter-row input {max-width:none;margin-top:6px}
.study-purpose-full {margin-top:8px}
.study-purpose-full summary {cursor:pointer;font-size:12px;color:var(--muted)}
.study-purpose-full p {font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.study-card>button {align-self:flex-start;margin-top:18px;font-size:12px;padding:8px 11px}
.study-card>button.study-pin-toggle {margin-top:10px}
.collection-empty {grid-column:1/-1;max-width:760px;padding:32px;background:white;border:1px solid var(--line);border-radius:12px}
.collection-empty h2 {font-size:30px;margin-top:0}
.collection-empty p {color:var(--muted)}
.collection-empty li {padding:8px 0;line-height:1.5}
.muted {color:var(--muted)}
@media(max-width:600px) {
  .collection-toolbar select {flex:1}
  .collection-toolbar input[type=search] {flex-basis:100%}
  .collection-empty {padding:24px 18px}
  .collection-empty h2 {font-size:26px}
}
.revision-heading {display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}
.revision-heading span {color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.snapshot-content {max-width:760px;margin:20px auto;line-height:1.8}
.snapshot-content h3 {font-size:28px}.snapshot-content a {overflow-wrap:anywhere}
.comparison-modal {max-width:1100px}.comparison-controls {display:grid;grid-template-columns:1fr 1fr;gap:20px}
.comparison-summary {padding:12px 16px;background:#edf2e9;border-radius:6px;font-size:13px}
.compare-changes {display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.comparison-field-focus {outline:2px solid var(--green);outline-offset:5px;border-radius:4px;scroll-margin:24px}
.comparison .snapshot-content {margin:12px 0;padding:16px;border:1px solid var(--line);border-radius:7px}
@media(max-width:768px){.comparison-controls{grid-template-columns:1fr}}
.reference-list {padding:0;list-style:none}.reference-list li {display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:10px 0}
.reference-list a {flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px}.reference-list button {font-size:12px;padding:6px 9px}
.reference-add {display:flex;gap:10px;align-items:center}.reference-add input {margin:0;min-width:0;flex:1}.reference-add button{flex-shrink:0}
.reference-bulk {font-size:12px;margin-top:20px;color:var(--muted)}
@media(max-width:600px){.reference-add{flex-wrap:wrap}.reference-add input{flex-basis:100%}}
.reading-toolbar {display:flex;justify-content:flex-end;margin:4px 0 12px}.reading-toolbar button{font-size:12px;padding:7px 12px}
.entry-actions>summary {cursor:pointer;color:var(--green);font-size:12px;padding:8px 0}
.reading-modal {max-width:900px}.reading-modal .snapshot-content pre{font-size:18px;line-height:1.9}
.reading-modal.large-text .snapshot-content pre{font-size:22px}.reading-modal .actions{position:sticky;top:0;background:var(--paper);padding:10px 0;z-index:1}
.publication-card {border:1px solid var(--line);border-radius:10px;background:white;padding:22px;margin:18px 0}
.publication-card h3{margin:0;font-size:24px}.publication-card>button,.publication-card>a{margin:8px 12px 8px 0;display:inline-block}.publication-card p{font-size:14px}
.draft-recovery {border:1px solid #d4b76e;background:#fff8e3;border-radius:7px;padding:16px;margin-bottom:22px}
.draft-recovery p{font-size:13px;margin:0 0 12px}.draft-recovery[hidden]{display:none}
.entry-filters{margin:12px 0 16px}.entry-filters>summary{font-size:12px;color:var(--muted)}
.entry-filters select{font-size:12px;padding:8px}.entry-filters button{font-size:12px;padding:7px 10px;margin-top:10px}
dl dt{font-weight:600;margin-top:18px}dl dd{margin:6px 0 0;color:var(--muted)}
.readable-text {font-size:17px;line-height:1.85;overflow-wrap:anywhere}
.markdown-paragraph{white-space:pre-wrap}
.readable-text p{white-space:pre-wrap}.readable-text h4{font:500 23px Georgia,serif;margin:28px 0 14px}
.readable-text h5{font-size:18px;margin:24px 0 10px}.readable-text h6{font-size:16px;margin:20px 0 8px}
.readable-text li{margin:7px 0}.code-block{background:#edf1eb;border-radius:6px;padding:16px;overflow:auto}
.code-block code{font:13px ui-monospace,monospace;color:var(--ink);white-space:pre-wrap}
.reading-modal.large-text .readable-text{font-size:22px}.reading-modal .raw-source{font:14px ui-monospace,monospace;line-height:1.7}
.snapshot-text{margin-top:18px}.snapshot-content>.secondary{font-size:12px;padding:6px 10px}
.scientific-table{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:7px;margin:20px 0}
.scientific-table table{border-collapse:collapse;width:100%;font-size:14px;line-height:1.5}
.scientific-table th,.scientific-table td{padding:10px 14px;border:1px solid var(--line);vertical-align:top;white-space:pre-wrap;min-width:110px}
.scientific-table th{background:#edf2e9;text-align:left;font-weight:600}.scientific-table:focus-visible{outline:3px solid #c3953b;outline-offset:3px}
.reading-toolbar{gap:8px;flex-wrap:wrap}
.reading-outline{margin:18px 0;border:1px solid var(--line);border-radius:6px;padding:12px}
.reading-outline[hidden]{display:none}.reading-outline nav{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin-top:12px}
.reading-outline button{text-align:left;font-size:12px;padding:6px 10px}.readable-text [tabindex="-1"]{scroll-margin-top:30px}
.reader-search{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:16px 0}.reader-search input{flex:1;min-width:160px;margin:0}
.reader-search button{font-size:12px;padding:8px}.reader-match{background:#fff0ab;color:inherit}.reader-match.current-match{background:#ffc96e;outline:2px solid #9e742a}
@media(max-width:600px){.reader-search input{flex-basis:100%}}
.writing-tools{margin:12px 0 20px;padding:12px;border:1px solid var(--line);border-radius:6px}
.writing-tools summary{font-size:12px;color:var(--muted)}.writing-tools button{font-size:12px;padding:7px 10px}
#logbook-print-sheet{display:none}
@media print{
  body:has(#logbook-print-sheet)>:not(#logbook-print-sheet){display:none!important}
  #logbook-print-sheet{display:block!important;font:12pt Georgia,serif;color:#000;background:#fff}
  #logbook-print-sheet .snapshot-content{margin:0;max-width:none}
  #logbook-print-sheet .readable-text{font-size:12pt;line-height:1.55}
  #logbook-print-sheet h3{font-size:20pt}#logbook-print-sheet h4{break-after:avoid}
  #logbook-print-sheet table{break-inside:auto}#logbook-print-sheet tr{break-inside:avoid}
  #logbook-print-sheet a{color:#000;overflow-wrap:anywhere}
}
.history-search{display:flex;gap:12px;align-items:center;margin:14px 0 8px}.history-search input{margin:0;flex:1;min-width:0}
.study-organize {margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.study-organize summary {font-size:12px;color:var(--muted);cursor:pointer}
.study-organize .actions {margin-top:12px;flex-wrap:wrap}
.study-organize button {font-size:12px;padding:8px 11px}
.study-pin {display:inline-block;margin-left:10px;font-size:11px;color:var(--accent)}
.overview-types {display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.overview-type-filters {margin:10px 0}
.overview-type-filters>summary {color:var(--green);font-size:13px}
.overview-type-filters>summary .count {margin-left:6px}
.overview-types button {font-size:12px;padding:8px 12px}
.overview-types [aria-pressed=true] {border-color:var(--accent);color:var(--accent)}
.overview-entry {padding:18px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.overview-entry h3 {margin:8px 0}
.overview-entry p {white-space:pre-wrap}
.overview-entry small,.overview-entry time {font-size:12px;color:var(--muted)}
.study-reading>.snapshot-content {border-top:1px solid var(--line);margin-top:24px;padding-top:20px}
.global-search-result {padding:18px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.global-search-result h3 {margin:8px 0}
.search-matching-links {display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:10px 0;font-size:13px;overflow-wrap:anywhere}
.search-matching-links a {overflow-wrap:anywhere}
.search-revision-choice {display:flex;align-items:flex-start;gap:9px;margin:12px 0;font-size:13px}
.search-revision-choice input {width:auto;margin:3px 0 0}
.global-search-result time {color:var(--muted);font-size:12px}
.export-type-selection {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px 16px;margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:7px}
.export-type-selection legend {padding:0 6px;color:var(--muted);font-size:13px}
.export-type-selection label {display:flex;align-items:center;gap:8px;margin:0;font-size:14px}
.export-type-selection input {width:auto;margin:0}
.search-excerpt {white-space:pre-wrap;font-size:14px}
.global-search-result mark {background:#f4e6aa;color:inherit;border-radius:2px;padding:0 1px}
.search-result-dates {display:flex;flex-wrap:wrap;gap:6px 16px;color:var(--muted);font-size:12px}
.directory-item {padding:18px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.directory-item ul {padding-left:20px;margin-bottom:0}
.directory-item li {margin:8px 0}

.public {margin:40px auto;padding:0 24px;overflow-wrap:anywhere}
.landing {max-width:760px;padding-top:clamp(48px,12vh,120px)}
.landing .eyebrow {margin-top:44px;color:var(--muted);font-size:14px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.landing>p:not(.eyebrow) {font-size:18px;line-height:1.7}
.landing-action {display:inline-block;margin-top:18px;padding:12px 18px;border-radius:6px;background:var(--green);color:white;text-decoration:none;font-weight:600}
.landing-action:hover {filter:brightness(.92)}
.public-brand {font:600 27px Georgia,serif;text-decoration:none}
.public h1 {font-size:clamp(30px,5vw,48px);line-height:1.2;margin:20px 0}
.public .readable-text {font-size:18px;line-height:1.8;margin:30px 0}
.public-actions {margin:24px 0;gap:16px;flex-wrap:wrap;align-items:center}
.public-source,.public-integrity {border-top:1px solid var(--line);padding:18px 0}
.public-source summary,.public-integrity summary {cursor:pointer;color:var(--muted);font-size:13px}
.public-integrity code {overflow-wrap:anywhere;font-size:12px}
@media print {
 body:has(.public) {background:white;color:black}
 .public {max-width:none;margin:0;padding:0}
 .public-actions,.public-source,.public-integrity,body:has(.public)>footer {display:none!important}
 .public .readable-text {font-size:12pt;line-height:1.55}
 .public tr {break-inside:avoid}
 .public h1,.public h2,.public h3,.public h4 {break-after:avoid}
}
.entry-list-item {display:flex;align-items:stretch;gap:4px}
.entry-list-item .entry-card {flex:1;min-width:0}
.entry-pin-control {flex:0 0 auto;align-self:center;font-size:11px;padding:7px 9px;max-width:95px;white-space:normal}
.entry-pin-control[aria-pressed=true] {border-color:var(--accent);color:var(--accent)}
@media(max-width:768px){.entry-list-item{min-width:245px;max-width:325px}.entry-list-item .entry-card{min-width:150px;max-width:none}}
