:root {
  color-scheme: light;
  font-family: Montserrat, Arial, sans-serif;
  color: #23343f;
  background: #f5faf9;
  --teal: #087c70;
  --line: #c8dcd8;
}
* { box-sizing: border-box; }
body { margin: 0; }
.page { max-width: 860px; padding: 28px clamp(16px, 4vw, 40px) 48px; margin: auto; }
.mast { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-bottom: 2px solid #0ab99d; padding-bottom: 16px; }
a { color: #08695e; text-underline-offset: .18em; }
.mast a { font-size: .88rem; font-weight: 600; }
.mast > a:first-child { color: #253b42; text-decoration: none; font-size: 1.05rem; }
h1 { margin: 28px 0 22px; font-size: clamp(1.6rem, 3.6vw, 2.45rem); line-height: 1.18; letter-spacing: -.025em; }
h2 { font-size: 1.12rem; margin: 0 0 18px; }
.panel { padding: clamp(16px, 3vw, 26px); margin: 16px 0; background: white; border: 1px solid var(--line); border-radius: 5px; }
form, label { display: grid; gap: 7px; }
form { gap: 15px; }
label { font-size: .88rem; font-weight: 600; }
.fields { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr); }
input, select, button { font: inherit; }
input:not([type=hidden]), select { width: 100%; min-width: 0; padding: 11px; border: 1px solid #9db4b1; border-radius: 5px; color: inherit; background: white; }
input[type=file] { font-size: .85rem; }
button, .actions summary { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid var(--teal); border-radius: 5px; padding: 8px 13px; color: #08695e; background: white; cursor: pointer; font-size: .85rem; font-weight: 600; }
button:hover, .actions summary:hover, .doc-link:hover { background: #e2f7f2; }
button.primary { justify-self: start; color: white; background: #08786d; border-color: #08786d; }
button.primary:hover { background: #075d56; }
button.quiet { color: #5e4445; border-color: #d3c4c4; }
.entry { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid #e0e9e7; }
.entry:last-child { padding-bottom: 0; }
.doc-title { font-weight: 600; overflow-wrap: anywhere; }
.meta, small { color: #506168; font-size: .79rem; }
.meta { margin: 6px 0 0; }
.actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.actions details[open] form { margin-top: 10px; }
summary { cursor: pointer; }
.trash > summary { font-weight: 600; }
.trash[open] > summary { margin-bottom: 12px; }
.notice, .error { padding: 12px 16px; border-left: 3px solid var(--teal); background: #e2f7f2; }
.error { border-color: #ad4136; background: #fff0ed; }
.public-page { max-width: 720px; }
nav { display: flex; gap: 12px; }
nav [aria-current=page] { color: #263d42; text-decoration: none; }
.public-docs { display: grid; gap: 10px; list-style: none; padding: 0; }
.doc-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 16px; text-decoration: none; border: 1px solid var(--teal); background: white; border-radius: 5px; font-weight: 600; overflow-wrap: anywhere; }
.doc-link svg { width: 20px; height: 20px; flex: none; }
.doc-link small { margin-left: auto; white-space: nowrap; }
footer { margin-top: 38px; font-size: .85rem; }
:focus-visible { outline: 3px solid #065e55; outline-offset: 3px; }
@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  .entry { flex-direction: column; }
  .actions { width: 100%; }
  .doc-link { flex-wrap: wrap; }
}
