/* fonts/fonts.css */
/* Latin subsets, self-hosted (SIL Open Font License). Generated by tools/fonts.js */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/caveat-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/caveat-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/libre-caslon-text-6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/libre-caslon-text-7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/libre-caslon-text-8.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/source-serif-4-9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/source-serif-4-10.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/source-serif-4-10.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/source-serif-4-10.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/special-elite-11.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'UnifrakturMaguntia';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/unifrakturmaguntia-12.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* css/os.css */
/* LANTERN OS — a dark investigative workstation lit by one amber lamp.
   Layout: full-bleed desktop, floating windows, bottom taskbar; windows go full-screen on phones. */
:root {
  color-scheme: dark;
  --desk: #121416;
  --surface: #1c1f22;
  --surface-2: #24282c;
  --surface-3: #2d3237;
  --line: #363c42;
  --text: #dcded8;
  --muted: #9097a0;
  --accent: #e3ab4f;
  --accent-ink: #1b1306;
  --accent-soft: rgba(227, 171, 79, .14);
  --ok: #86bd92;
  --warn: #e3ab4f;
  --bad: #e07a6a;
  --focus: #f3c97a;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
  --ui: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --type: 'Special Elite', 'Courier New', monospace;
  --scale: 1;
  --task-h: 46px;
}
body.hc {
  --desk: #000; --surface: #050505; --surface-2: #111; --surface-3: #1b1b1b; --line: #8a8a8a;
  --text: #fff; --muted: #d6d6d6; --accent: #ffc94d; --accent-soft: rgba(255, 201, 77, .25); --bad: #ff8b7a; --ok: #8fff9f;
}
html, body { height: 100%; }
html { font-size: calc(15px * var(--scale)); }
body { margin: 0; background: var(--desk); color: var(--text); font-family: var(--ui); overflow: hidden; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: var(--mono); }
.mark { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; }

#root { position: fixed; inset: 0; }

/* ---------- boot ---------- */
.boot { position: absolute; inset: 0; background: #000; color: #c9c9c2; display: grid; place-items: center; font-family: var(--mono); z-index: 100; }
.boot .power { background: none; border: 1px solid #333; color: #aaa; border-radius: 50%; width: 84px; height: 84px; cursor: pointer; display: grid; place-items: center; transition: border-color .3s, color .3s; }
.boot .power:hover, .boot .power:focus-visible { border-color: var(--accent); color: var(--accent); }
.boot .hint { margin-top: 18px; font-size: .8rem; color: #666; text-align: center; letter-spacing: .08em; text-transform: uppercase; }
.boot::after { content: "Created by: Vodacko"; position: absolute; left: 0; right: 0; bottom: max(24px, env(safe-area-inset-bottom, 0px)); text-align: center; font-family: var(--ui); font-size: .78rem; letter-spacing: .14em; color: #8a8579; pointer-events: none; }
.boot .logo { text-align: center; animation: fadein 1.2s ease both; }
.boot .logo .name { font-family: var(--ui); font-weight: 600; letter-spacing: .5em; font-size: 1.1rem; color: #e8e6df; padding-left: .5em; }
.boot .logo .sub { color: #777; font-size: .75rem; letter-spacing: .3em; margin-top: 6px; }
.boot .lines { width: min(560px, 90vw); font-size: .82rem; line-height: 1.7; color: #9a9a92; min-height: 12em; }
.boot .lines .ok { color: var(--ok); }
.boot .login { width: min(380px, 90vw); background: #0d0f10; border: 1px solid #2a2e32; border-radius: 10px; padding: 28px; font-family: var(--ui); animation: fadein .6s ease both; }
.boot .login h1 { margin: 0 0 4px; font-size: 1rem; letter-spacing: .3em; font-weight: 600; }
.boot .login p { color: #888; font-size: .85rem; margin: 0 0 18px; }
.boot .login input { width: 100%; background: #16191b; border: 1px solid #333a40; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; }
.boot .login .row { display: flex; gap: 8px; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- desktop ---------- */
.desktop { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 70% 30%, rgba(227, 171, 79, .07), transparent 55%),
  radial-gradient(ellipse at 20% 90%, rgba(90, 120, 140, .08), transparent 60%), var(--desk); }
.desktop::after { content: 'CASEFILE'; position: absolute; right: 4vw; bottom: calc(var(--task-h) + 3vh); font-weight: 600; letter-spacing: .6em; font-size: clamp(1.2rem, 4vw, 3rem); color: rgba(255, 255, 255, .03); pointer-events: none; }

/* ---------- windows ---------- */
.windows { position: absolute; inset: 0 0 var(--task-h) 0; pointer-events: none; z-index: 10; }
.win { position: absolute; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); min-width: 300px; min-height: 200px; pointer-events: auto; overflow: hidden; }
.win.min { display: none; }
.win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; }
.win .bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); cursor: grab; user-select: none; touch-action: none; flex: none; }
.win.focus .bar { background: var(--surface-3); }
.win .bar svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.win .bar .t { flex: 1; font-size: .85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.win.focus .bar .t { color: var(--text); }
.win .bar button { width: 30px; height: 26px; border: 0; background: none; border-radius: 5px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.win .bar button:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.win .bar button.x:hover { background: #8b3a30; color: #fff; }
.win .body { flex: 1; min-height: 0; overflow: auto; position: relative; }
.win.max .grip { display: none; }

/* ---------- taskbar ---------- */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--task-h) + env(safe-area-inset-bottom, 0px)); padding: 0 8px env(safe-area-inset-bottom, 0px); display: flex; align-items: center; gap: 6px; background: rgba(14, 16, 18, .96); border-top: 1px solid var(--line); z-index: 50; }
.taskbar .start { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; letter-spacing: .12em; font-size: .78rem; }
.taskbar .start svg { width: 16px; height: 16px; color: var(--accent); }
.taskbar .tasks { flex: 1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.taskbar .task { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 7px; border: 1px solid transparent; background: none; cursor: pointer; font-size: .8rem; color: var(--muted); white-space: nowrap; max-width: 180px; }
.taskbar .task svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.taskbar .task span { overflow: hidden; text-overflow: ellipsis; }
.taskbar .task.on { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.taskbar .tray { display: flex; align-items: center; gap: 4px; }
.taskbar .tray button { height: 34px; min-width: 34px; padding: 0 8px; border-radius: 7px; border: 0; background: none; cursor: pointer; color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: .8rem; }
.taskbar .tray button:hover { background: var(--surface-2); color: var(--text); }
.taskbar .tray svg { width: 17px; height: 17px; }
.taskbar .clock { font-family: var(--mono); font-size: .78rem; text-align: right; line-height: 1.15; }
.taskbar .bell { position: relative; }
.taskbar .bell .dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }


.center { position: absolute; right: 8px; bottom: calc(var(--task-h) + 8px); width: min(360px, calc(100vw - 16px)); max-height: 60vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 60; }
.center h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.center .item { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .85rem; cursor: pointer; }
.center .item:hover { background: var(--surface-2); }
.center .item b { display: block; font-weight: 500; }
.center .item time { font-family: var(--mono); font-size: .72rem; color: var(--muted); }

.toasts { position: absolute; right: 12px; bottom: calc(var(--task-h) + 12px); display: flex; flex-direction: column; gap: 8px; z-index: 70; pointer-events: none; }
.toast { pointer-events: auto; width: min(330px, calc(100vw - 24px)); background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 12px; box-shadow: var(--shadow); font-size: .85rem; cursor: pointer; animation: slidein .25s ease both; }
.toast.warn { border-left-color: var(--bad); }
.toast b { display: block; font-weight: 600; margin-bottom: 2px; }
.toast .from { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@keyframes slidein { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.scanlines { position: absolute; inset: 0; pointer-events: none; display: none; z-index: 90; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); }
body.scan .scanlines { display: block; }
body.reduce *, body.reduce *::before, body.reduce *::after { animation: none !important; transition: none !important; }

/* ---------- shared app chrome ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: .85rem; white-space: nowrap; }
.btn:hover { background: var(--surface-3); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.pri:hover { filter: brightness(1.08); }
.btn.ghost { background: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 15px; height: 15px; }
.inp { height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--desk); min-width: 0; }
textarea.inp { height: auto; padding: 10px; line-height: 1.5; resize: vertical; }
.toolbar { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.split { display: flex; height: 100%; min-height: 0; }
.split > .side { width: 190px; flex: none; border-right: 1px solid var(--line); overflow: auto; background: var(--surface); }
.split > .main { flex: 1; min-width: 0; overflow: auto; }
.side .nav { display: flex; flex-direction: column; padding: 6px; gap: 2px; }
.side .nav button { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; padding: 7px 10px; border: 0; border-radius: 6px; background: none; cursor: pointer; font-size: .86rem; color: var(--muted); }
.side .nav button.on { background: var(--surface-2); color: var(--text); }
.side .nav button:hover { color: var(--text); }
.side .nav .n { font-family: var(--mono); font-size: .72rem; background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 8px; }
.side h4 { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 12px 14px 4px; font-weight: 500; }
.pad { padding: 16px 18px; }
.tag { display: inline-block; font-size: .7rem; letter-spacing: .06em; padding: 2px 7px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.tag.ok { color: var(--ok); border-color: rgba(134, 189, 146, .5); }
.tag.acc { color: var(--accent); border-color: rgba(227, 171, 79, .5); }
.tag.bad { color: var(--bad); border-color: rgba(224, 122, 106, .5); }
table.grid { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.grid th { text-align: left; font-weight: 500; color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: pointer; position: sticky; top: 0; background: var(--surface); }
table.grid td { padding: 7px 10px; border-bottom: 1px solid rgba(255, 255, 255, .04); white-space: nowrap; }
table.grid tr.sel td { background: var(--accent-soft); }
table.grid tr:hover td { background: rgba(255, 255, 255, .03); cursor: default; }
table.grid td.num { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
dl.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: .82rem; margin: 0; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; font-family: var(--mono); font-size: .78rem; word-break: break-word; }
.empty { color: var(--muted); padding: 30px; text-align: center; font-size: .9rem; }

/* ---------- browser ---------- */
.browser { display: flex; flex-direction: column; height: 100%; }
.tabs { display: flex; gap: 2px; padding: 6px 6px 0; background: var(--surface-2); overflow-x: auto; scrollbar-width: none; flex: none; }
.tabs .tb { display: flex; align-items: center; gap: 6px; max-width: 200px; padding: 6px 8px 6px 12px; border-radius: 7px 7px 0 0; background: none; border: 0; cursor: pointer; font-size: .8rem; color: var(--muted); }
.tabs .tb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs .tb.on { background: var(--surface); color: var(--text); }
.tabs .tb i { font-style: normal; opacity: .6; padding: 0 3px; border-radius: 4px; }
.tabs .tb i:hover { background: var(--surface-3); opacity: 1; }
.tabs .add { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 10px; font-size: 1.1rem; }
.addr { display: flex; gap: 4px; padding: 6px 8px; align-items: center; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.addr .ib { width: 32px; height: 32px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--muted); display: grid; place-items: center; flex: none; }
.addr .ib:hover { background: var(--surface-2); color: var(--text); }
.addr .ib.on { color: var(--accent); }
.addr .ib svg { width: 17px; height: 17px; }
.addr form { flex: 1; display: flex; min-width: 0; }
.addr input { flex: 1; min-width: 0; height: 32px; border-radius: 16px; border: 1px solid var(--line); background: var(--desk); padding: 0 14px; font-family: var(--mono); font-size: .82rem; }
.marks { display: flex; gap: 2px; padding: 4px 8px; border-bottom: 1px solid var(--line); background: var(--surface); overflow-x: auto; scrollbar-width: none; flex: none; }
.marks button { border: 0; background: none; padding: 3px 8px; border-radius: 5px; cursor: pointer; font-size: .76rem; color: var(--muted); white-space: nowrap; }
.marks button:hover { background: var(--surface-2); color: var(--text); }
.viewport { flex: 1; min-height: 0; overflow: auto; background: #fff; position: relative; }
.viewport.loading::before { content: ''; position: absolute; top: 0; left: 0; height: 2px; width: 40%; background: var(--accent); animation: load .5s ease-out forwards; z-index: 5; }
@keyframes load { from { width: 0; } to { width: 100%; opacity: 0; } }
.shelf { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-top: 1px solid var(--line); background: var(--surface); font-size: .8rem; overflow-x: auto; flex: none; }
.shelf .dl { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; cursor: pointer; background: var(--surface-2); }
.popover { position: absolute; z-index: 20; right: 8px; top: 92px; width: min(380px, calc(100% - 16px)); max-height: 60%; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.popover h3 { margin: 0; padding: 10px 12px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.popover button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 12px; cursor: pointer; font-size: .82rem; border-bottom: 1px solid rgba(255, 255, 255, .03); }
.popover button:hover { background: var(--surface-2); }
.popover button small { display: block; font-family: var(--mono); color: var(--muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- mail ---------- */
.mail .list { width: 300px; flex: none; border-right: 1px solid var(--line); overflow: auto; }
.mail .msg { padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mail .msg:hover { background: var(--surface-2); }
.mail .msg.on { background: var(--accent-soft); }
.mail .msg .f { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; }
.mail .msg .f time { font-family: var(--mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.mail .msg .s { font-size: .82rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail .msg.unread .f b::before { content: '● '; color: var(--accent); font-size: .7rem; }
.mail .read h2 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 600; }
.mail .read .hdr { font-size: .82rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.mail .read .hdr b { color: var(--text); font-weight: 500; }
.mail .read .txt { white-space: pre-wrap; line-height: 1.65; font-size: .95rem; max-width: 64ch; }
.att-chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-top: 18px; background: var(--surface-2); font-size: .85rem; flex-wrap: wrap; }
.att-chip svg { width: 22px; height: 22px; color: var(--accent); }

/* ---------- files / viewers ---------- */
.details { width: 260px; flex: none; border-left: 1px solid var(--line); padding: 14px; overflow: auto; background: var(--surface); }
.details h3 { margin: 0 0 10px; font-size: .95rem; word-break: break-all; }
.textview { font-family: var(--mono); font-size: .86rem; line-height: 1.65; white-space: pre-wrap; padding: 18px 22px; margin: 0; color: var(--text); }
.imgview { display: flex; height: 100%; min-height: 0; }
.imgview .stage { flex: 1; overflow: auto; background: #0b0c0d; display: grid; place-items: center; padding: 20px; min-width: 0; }
.imgview .stage svg { max-width: none; transform-origin: center; box-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.imgview .info { width: 250px; flex: none; border-left: 1px solid var(--line); padding: 14px; overflow: auto; }
.imgview label { display: block; font-size: .75rem; color: var(--muted); margin: 12px 0 4px; }
.imgview input[type=range] { width: 100%; accent-color: var(--accent); }
.wizard { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; height: 100%; overflow: auto; }
.wizard > * { flex-shrink: 0; }
.wizard h2 { margin: 0; font-size: 1.1rem; }
.wizard .box { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--desk); font-size: .85rem; line-height: 1.6; max-height: 160px; overflow: auto; }
.wizard .grow { flex: 1; }
.wizard .row { display: flex; gap: 8px; justify-content: flex-end; }
.progress { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }

/* ---------- terminal ---------- */
.term { background: #0c0e0f; color: #cfd6cc; font-family: var(--mono); font-size: .86rem; line-height: 1.55; padding: 12px 14px; height: 100%; overflow: auto; cursor: text; }
.term .ln { white-space: pre-wrap; word-break: break-word; }
.term .ln.c { color: var(--accent); }
.term .ln.e { color: var(--bad); }
.term .ln.o { color: var(--ok); }
.term form { display: flex; gap: 8px; }
.term form span { color: var(--accent); }
.term input { flex: 1; background: none; border: 0; outline: none; color: inherit; font: inherit; padding: 0; }

/* ---------- casefile ---------- */
.qcard { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.qcard.solved { border-color: rgba(134, 189, 146, .45); }
.qcard h3 { margin: 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: flex; gap: 8px; align-items: center; }
.qcard p.q { margin: 0; font-size: 1rem; line-height: 1.45; }
.qcard .opts { display: flex; flex-direction: column; gap: 4px; }
.qcard .opts label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: .9rem; border: 1px solid transparent; }
.qcard .opts label:hover { background: var(--surface-3); }
.qcard .opts input { margin-top: 3px; accent-color: var(--accent); }
.qcard .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qcard .fb { font-size: .85rem; color: var(--muted); }
.qcard .fb.bad { color: var(--bad); }
.qcard .reward { border-left: 3px solid var(--ok); padding: 6px 12px; font-size: .9rem; line-height: 1.55; }
.qcard .reward b { display: block; margin-bottom: 4px; }
.qcard .hint { font-size: .85rem; line-height: 1.5; padding: 8px 12px; border-radius: 6px; background: var(--desk); border: 1px dashed var(--line); }
.qcard .hint em { font-style: normal; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: block; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.statuslog li { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.statuslog time { font-family: var(--mono); font-size: .75rem; color: var(--muted); white-space: nowrap; }
.statuslog { list-style: none; padding: 0; margin: 0; }
.ev { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ev .k { font-family: var(--mono); font-size: .7rem; color: var(--accent); width: 46px; flex: none; padding-top: 2px; text-transform: uppercase; }
.ev .b { flex: 1; min-width: 0; }
.ev .b b { font-weight: 500; cursor: pointer; }
.ev .b b:hover { text-decoration: underline; }
.ev .b small { display: block; font-family: var(--mono); color: var(--muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev input { width: 100%; margin-top: 6px; }
.epilogue { font-family: var(--serif); font-size: 1.02rem; line-height: 1.7; max-width: 64ch; }
.epilogue p { margin: 0 0 1em; }

/* ---------- evidence board ---------- */
.board { position: relative; width: 1800px; height: 1200px; background:
  radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 1.5px) 0 0 / 24px 24px, #191b1d; }
.board svg.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.board svg.links text { fill: var(--text); font-family: var(--mono); font-size: 11px; pointer-events: auto; cursor: pointer; paint-order: stroke; stroke: #191b1d; stroke-width: 4px; }
.board svg.links line { stroke: var(--accent); stroke-width: 1.5; opacity: .75; }
.bcard { position: absolute; width: 190px; padding: 10px 12px; border-radius: 4px; background: #e9e4d6; color: #26231c; font-size: .8rem; line-height: 1.35; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); cursor: grab; touch-action: none; user-select: none; }
.bcard.note { background: #f0d98a; font-family: var(--type); }
.bcard .src { font-family: var(--mono); font-size: .66rem; color: #6c6556; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard.pick { outline: 3px solid var(--accent); }
.bcard .pin { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #b5452f; box-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.bcard textarea { width: 100%; background: transparent; border: 0; font: inherit; color: inherit; resize: none; outline: none; }
.bcard .x { position: absolute; top: 2px; right: 4px; border: 0; background: none; cursor: pointer; color: #6c6556; font-size: .9rem; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .win { border-radius: 0; }
  .win .bar { cursor: default; }
  .split > .side { width: 132px; }
  .mail .list { width: auto; flex: 1; min-width: 0; }
  .mail.reading .list, .mail.reading > .side { display: none; }
  .mail:not(.reading) .readpane { display: none; }
  .imgview { flex-direction: column; }
  .imgview .info { width: auto; border-left: 0; border-top: 1px solid var(--line); max-height: 40%; }
  .taskbar .start span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.lockmsg b { font-family: var(--mono); }

/* css/sites.css */
/* The fictional web. Each site has its own identity; all of them stay readable. */
.site { min-height: 100%; font-family: Georgia, serif; color: #222; background: #fff; line-height: 1.6; font-size: 1rem; }
.site .sh { padding: 16px max(16px, 4%) 12px; border-bottom: 1px solid #ddd; }
.site .sh .nm { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.site .sh .tg { font-size: .8rem; color: #777; }
.site .sh nav { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: .85rem; }
.site .sb { padding: 18px max(16px, 4%) 40px; max-width: 900px; }
.site .sf { padding: 14px max(16px, 4%); border-top: 1px solid #ddd; font-size: .75rem; color: #888; }
.site h1 { font-size: 1.7rem; line-height: 1.2; margin: .2em 0 .5em; text-wrap: balance; }
.site h2 { font-size: 1.25rem; margin: 1.2em 0 .4em; }
.site h3 { font-size: 1.05rem; margin: 1.1em 0 .3em; }
.site p { margin: 0 0 .9em; max-width: 70ch; }
.site a, .site .lnk { color: #1b4f9c; text-decoration: underline; cursor: pointer; text-underline-offset: 2px; }
.site .lnk.dl { font-weight: 600; }
.site table.t { border-collapse: collapse; width: 100%; font-size: .9rem; margin: .6em 0 1em; }
.site table.t th, .site table.t td { border: 1px solid #ccc; padding: 5px 8px; text-align: left; vertical-align: top; }
.site table.t th { background: #f2f2f2; }
.site table.hist td:first-child { font-family: var(--mono); font-size: .8rem; white-space: nowrap; }
.site .wrap { overflow-x: auto; }
.site .banner { background: #fff4d6; border: 1px solid #e8c56a; padding: 8px 12px; font-size: .88rem; margin-bottom: 1em; }
.site .banner.old { background: #eef3fb; border-color: #a8bde0; }
.site .update { background: #f5f5f0; border-left: 3px solid #999; padding: 8px 12px; font-size: .9rem; margin: 1em 0; }
.site .kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: #8a1c1c; margin: 0; }
.site .muted { color: #777; }
.site .small { font-size: .8rem; }
.site code { font-family: var(--mono); background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 3px; font-size: .85em; }
.site blockquote { margin: .4em 0 .8em; padding: 6px 12px; border-left: 3px solid #bbb; background: rgba(0, 0, 0, .04); font-style: italic; }
.site figure.ph { display: inline-block; margin: 8px 0; cursor: zoom-in; }
.site figure.ph svg { display: block; width: 260px; max-width: 100%; height: auto; border: 1px solid rgba(0, 0, 0, .2); }
.site figure.ph figcaption { font-size: .78rem; color: #666; max-width: 260px; }
.site .pill { font-size: .7rem; border: 1px solid #b33; color: #b33; padding: 0 6px; border-radius: 8px; }
.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.site ul.cards { padding-left: 1.1em; }
.site ul.cards li { margin-bottom: .4em; }
.site .err { padding: 60px 24px; font-family: var(--ui); color: #444; }
.site .err h1 { font-family: var(--ui); font-weight: 500; }

/* forums (shared) */
.site .th-title { margin-bottom: .2em; }
.site .locked { font-size: .82rem; background: #eee; padding: 6px 10px; border-radius: 4px; margin-bottom: 12px; display: inline-block; }
.site .post { display: grid; grid-template-columns: 150px 1fr; border: 1px solid #ddd; margin: 10px 0; background: #fff; }
.site .post .pu { padding: 10px; border-right: 1px solid #e6e6e6; font-size: .8rem; background: #fafafa; display: flex; flex-direction: column; gap: 2px; word-break: break-word; }
.site .post .pu .un { font-weight: 700; font-size: .9rem; }
.site .post .pb { padding: 10px 14px; min-width: 0; }
.site .post .pt { font-family: var(--mono); font-size: .72rem; color: #888; margin-bottom: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.site .post .pc { font-size: .95rem; line-height: 1.55; word-break: break-word; }
.site .post .sig { margin-top: 10px; padding-top: 6px; border-top: 1px dashed #ddd; font-size: .75rem; color: #888; }
.site .post .edit { font-style: italic; color: #9a6a00; }
.site .post .att { margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: .82rem; cursor: pointer; background: #f6f6f6; }
.site .removed, .site .modlog { margin: 10px 0; padding: 8px 12px; font-size: .82rem; font-family: var(--mono); }
.site .removed { background: #f4f4f4; color: #888; border: 1px dashed #ccc; }
.site .modlog { background: #fff7e0; border: 1px solid #e8c56a; color: #6d5310; }
.site table.ft { width: 100%; border-collapse: collapse; font-size: .9rem; }
.site table.ft td, .site table.ft th { padding: 8px; border-bottom: 1px solid #e3e3e3; text-align: left; }
.site table.ft td.n { font-family: var(--mono); font-size: .78rem; color: #888; white-space: nowrap; }
@media (max-width: 560px) {
  .site .post { grid-template-columns: 1fr; }
  .site .post .pu { border-right: 0; border-bottom: 1px solid #e6e6e6; flex-direction: row; flex-wrap: wrap; gap: 8px; }
}

/* social & gallery (shared) */
.site .prof { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.site .av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; color: #fff; flex: none; }
.site .feed .it { border: 1px solid #e3e3e3; border-radius: 10px; padding: 12px 14px; margin: 10px 0; background: #fff; }
.site .feed .it time { font-size: .75rem; color: #888; font-family: var(--mono); }
.site .feed .it .lk { font-size: .78rem; color: #888; margin-top: 4px; }
.site .gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.site .gal .ph2 { border: 1px solid #e3e3e3; border-radius: 8px; overflow: hidden; background: #fff; }
.site .gal .ph2 svg { display: block; width: 100%; height: auto; cursor: zoom-in; }
.site .gal .cap { padding: 10px 12px; font-size: .88rem; }
.site .gal .cm { font-size: .82rem; border-top: 1px solid #eee; padding: 6px 12px; }
.site .gal .cm b { font-weight: 600; }
.site .det { font-size: .75rem; }

/* audio */
.site .player { border: 1px solid #ccc; border-radius: 8px; padding: 12px; display: flex; gap: 12px; align-items: center; background: #f7f7f4; flex-wrap: wrap; }
.site .player button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #2b2b2b; color: #fff; cursor: pointer; }
.site .player svg.wave { flex: 1; min-width: 160px; height: 40px; }
.site .transcript { margin-top: 16px; padding: 14px 16px; background: #fbfbf8; border: 1px solid #e5e5df; }

/* search pages */
.site .sform { display: flex; gap: 8px; margin: 10px 0 18px; flex-wrap: wrap; }
.site .sform input { flex: 1; min-width: 180px; height: 40px; padding: 0 14px; border: 1px solid #bbb; border-radius: 20px; font-size: 1rem; font-family: var(--ui); background: #fff; color: #1d1d1d; color-scheme: light; }
.site .sform input::placeholder { color: #8a8a8a; }
.site .sform button { height: 40px; padding: 0 18px; border-radius: 20px; border: 0; background: #2d2d2d; color: #fff; cursor: pointer; font-family: var(--ui); }
.site .res { margin: 0 0 18px; max-width: 70ch; }
.site .res .u { font-family: var(--mono); font-size: .75rem; color: #3a7a3a; }
.site .res .ti { font-size: 1.05rem; }
.site .res .sn { font-size: .88rem; color: #444; }
.site .res mark { background: #ffe9a6; color: inherit; }

.site .rl { font-size: .7rem; font-family: var(--ui); padding: 1px 7px; border-radius: 9px; white-space: nowrap; }
.site .rl.doc { background: #dfeedd; color: #24502b; }
.site .rl.att { background: #e5ecf7; color: #23436e; }
.site .rl.spec { background: #f7e3dd; color: #7b2d18; }
.site table.legend td { padding: 4px 12px 4px 0; vertical-align: middle; }
.site table.legend .mark { width: 1.6em; height: 1.6em; }

/* ---------- identities ---------- */
.site-finder { font-family: var(--ui); }
.site-finder .sh { border: 0; text-align: center; padding-top: 40px; }
.site-finder .sh .nm { font-size: 2.2rem; letter-spacing: .3em; font-weight: 600; color: #2a2a2a; }
.site-finder .sb { margin: 0 auto; }

.site-commonplace { font-family: 'Libre Caslon Text', Georgia, serif; background: #f8f9fa; }
.site-commonplace .sh { background: #fff; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.site-commonplace .sh .nm { font-variant: small-caps; letter-spacing: .04em; }
.site-commonplace .sb { background: #fff; border: 1px solid #e2e3e5; margin: 14px max(10px, 3%); max-width: 920px; }
.site-commonplace .sh nav { margin: 0; font-family: var(--ui); }
.site-commonplace h1 { font-weight: 400; border-bottom: 1px solid #a2a9b1; padding-bottom: 4px; }
.site-commonplace h2 { font-weight: 400; border-bottom: 1px solid #c8ccd1; }
.site-commonplace sup { font-size: .7em; color: #1b4f9c; }
.site-commonplace sup.cn { color: #b33; font-style: italic; }
.site-commonplace .infobox { float: right; margin: 0 0 12px 18px; border: 1px solid #a2a9b1; background: #f8f9fa; font-size: .85rem; border-collapse: collapse; }
.site-commonplace .infobox td, .site-commonplace .infobox th { padding: 4px 8px; text-align: left; }
.site-commonplace .talk p { padding-left: 0; }
.site-commonplace .talk .i1 { padding-left: 2em; } .site-commonplace .talk .i2 { padding-left: 4em; } .site-commonplace .talk .i3 { padding-left: 6em; }
.site-commonplace ol.refs { font-size: .88rem; }
@media (max-width: 560px) { .site-commonplace .infobox { float: none; margin: 0 0 12px; } .site-commonplace .talk .i2, .site-commonplace .talk .i3 { padding-left: 3em; } }

.site-meridian { background: #f4efe3; font-family: 'Libre Caslon Text', Georgia, serif; }
.site-meridian .sh { background: #2f3b34; color: #efe7d2; border: 0; }
.site-meridian .sh .tg { color: #b8c2b1; }
.site-meridian .sh a, .site-meridian .sh .lnk { color: #f0d9a0; }
.site-meridian .docmeta { font-family: var(--mono); font-size: .75rem; color: #6a6250; border-bottom: 1px solid #d6ccb4; padding-bottom: 8px; margin-bottom: 14px; }
.site-meridian .scan { background: #fbf6ea; border: 1px solid #d9cdb0; padding: 20px 24px; box-shadow: inset 0 0 40px rgba(120, 90, 40, .12); font-family: 'Special Elite', 'Courier New', monospace; color: #2e2a20; }
.site-meridian .scan .pg { font-size: .75rem; color: #8a7f66; text-align: right; margin: 0; }
.site-meridian .scan .sig { text-align: right; font-style: italic; }

.site-gazette { background: #fbfaf6; font-family: 'Libre Caslon Text', Georgia, serif; }
.site-gazette .sh { text-align: center; border-bottom: 3px double #222; }
.site-gazette .sh .nm { font-size: 2rem; font-family: 'Libre Caslon Text', serif; letter-spacing: .02em; }
.site-gazette .sh nav { justify-content: center; }
.site-gazette h1 { font-size: 1.9rem; }
.site-gazette .gz-front h2 { font-size: 1.3rem; margin-bottom: 0; }

.site-atlas { background: #eef1ec; font-family: var(--ui); }
.site-atlas .sh { background: #fff; border-bottom: 4px solid #4d6b57; }
.site-atlas .sh .nm { font-family: 'Libre Caslon Text', serif; color: #2f4a3a; }

.site-northstar { font-family: var(--ui); }
.site-northstar .sh { background: #13294b; color: #fff; border: 0; }
.site-northstar .sh .tg { color: #9fb3d6; }
.site-northstar .sh a, .site-northstar .sh .lnk { color: #ffd88a; }
.site-northstar .banner { background: #fde8e6; border-color: #d17c70; font-weight: 600; }

.site-folklore { background: #f6f2fa; font-family: 'Libre Caslon Text', Georgia, serif; }
.site-folklore .sh { background: #3d2f52; color: #f2ecfa; border: 0; }
.site-folklore .sh .tg { color: #c7b9dc; }
.site-folklore .sh a, .site-folklore .sh .lnk { color: #f0d9a0; }

.site-registry { font-family: var(--mono); background: #f2f2ee; }
.site-registry .sh { background: #ddd8c8; }
.site-registry .sh .nm { font-family: var(--mono); letter-spacing: .05em; }

.site-weather { font-family: var(--ui); background: #eef4f8; }
.site-weather .sh { background: #1f4e6b; color: #fff; border: 0; }
.site-weather .sh .tg { color: #b8d3e3; }
.site-weather .sh a, .site-weather .sh .lnk { color: #fff; }

.site-notices { font-family: var(--ui); background: #fafafa; }
.site-notices .sh { border-top: 6px solid #7a1f1f; }
.site-notices .sh .nm { text-transform: uppercase; letter-spacing: .08em; font-size: 1.1rem; }

.site-wayback { font-family: var(--ui); background: #f3f0ea; }
.site-wayback .sh { background: #222; color: #eee; border: 0; }
.site-wayback .sh .nm { letter-spacing: .12em; }
.site-wayback .sh .tg { color: #aaa; }
.capbar { background: #222; color: #eee; font-family: var(--mono); font-size: .78rem; padding: 8px 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.capbar b { color: #ffd88a; }
.capbar .lnk { color: #9cc3ff; cursor: pointer; text-decoration: underline; }

.site-nightsignal { background: #0f1424; color: #d7dcef; font-family: var(--ui); }
.site-nightsignal .sh { background: #070a14; border-bottom: 1px solid #263055; }
.site-nightsignal .sh .nm { font-family: var(--mono); color: #8fb4ff; letter-spacing: .1em; }
.site-nightsignal .sh .tg, .site-nightsignal .sf { color: #7f88a8; }
.site-nightsignal a, .site-nightsignal .lnk { color: #9cc3ff; }
.site-nightsignal .post { background: #151b30; border-color: #263055; }
.site-nightsignal .post .pu { background: #11172a; border-color: #263055; }
.site-nightsignal .post .pt, .site-nightsignal .post .sig { color: #7f88a8; border-color: #263055; }
.site-nightsignal .post .edit { color: #e3c06a; }
.site-nightsignal .removed { background: #11172a; border-color: #34406b; color: #7f88a8; }
.site-nightsignal .locked { background: #2a1f1f; color: #f0b4a8; }
.site-nightsignal table.ft td { border-color: #263055; }
.site-nightsignal blockquote { border-color: #394670; background: rgba(255, 255, 255, .04); }

.site-cabinet { background: #efe6d5; font-family: 'Libre Caslon Text', Georgia, serif; }
.site-cabinet .sh { background: #4a2e1f; color: #f1e2c6; border: 0; }
.site-cabinet .sh .tg { color: #d4bb94; }
.site-cabinet .post { background: #fbf6ec; border-color: #d4c3a3; }
.site-cabinet .post .pu { background: #f1e8d6; border-color: #d4c3a3; }

.site-rats { background: #f4f6f4; font-family: var(--mono); font-size: .92rem; }
.site-rats .sh { background: #1d2a22; color: #b7f0c0; border: 0; }
.site-rats .sh .tg { color: #7fbf8a; }
.site-rats .post .pc { font-family: var(--ui); }

.site-bellwether { background: #f6f8fb; font-family: var(--ui); }
.site-bellwether .sh { background: #fff; border-bottom: 3px solid #5c8ac2; }
.site-bellwether .sh .nm { color: #2c5a92; }
.site-bellwether .post { border-radius: 8px; overflow: hidden; }

.site-pattern { background: #fff; font-family: var(--ui); }
.site-pattern .sh { background: repeating-linear-gradient(45deg, #222 0 10px, #2c2c2c 10px 20px); color: #fff; border: 0; }
.site-pattern .sh .tg { color: #bbb; }

.site-witness { background: #f7f5f0; font-family: 'Libre Caslon Text', Georgia, serif; }
.site-witness .sh { border-bottom: 2px solid #222; }
.site-witness .sh .nm { font-style: italic; }

.site-loopline { background: #f0f2f5; font-family: var(--ui); }
.site-loopline .sh { background: #fff; border-bottom: 1px solid #dde1e6; }
.site-loopline .sh .nm { color: #e2584a; font-weight: 700; letter-spacing: -.02em; }

.site-glasshouse { background: #fafafa; font-family: var(--ui); }
.site-glasshouse .sh { background: #fff; text-align: center; }
.site-glasshouse .sh .nm { font-weight: 300; letter-spacing: .25em; text-transform: lowercase; }

.site-threadmark { background: #15171a; color: #e8e8e8; font-family: var(--ui); }
.site-threadmark .sh { background: #0e0f11; border-color: #2a2d31; }
.site-threadmark .sh .nm { color: #7ad1c3; }
.site-threadmark .feed .it { background: #1c1f23; border-color: #2a2d31; }
.site-threadmark a, .site-threadmark .lnk { color: #7ad1c3; }

.site-oldhandle { background: #e9e9f2; font-family: Verdana, sans-serif; font-size: .92rem; }
.site-oldhandle .sh { background: linear-gradient(#8f8fbf, #6b6b9e); color: #fff; }

.site-marginalia { background: #f5f1e8; font-family: 'Libre Caslon Text', Georgia, serif; }
.site-marginalia .sh { background: #7c2d2d; color: #fbeee2; border: 0; }
.site-marginalia .sh .tg { color: #f0c9b8; }
.site-marginalia .sh a, .site-marginalia .sh .lnk { color: #ffe4a8; }

.site-orison { background: #f1f4f2; font-family: 'Libre Caslon Text', Georgia, serif; }
.site-orison .sh { text-align: center; border-bottom: 1px solid #b9c7be; }
.site-orison .sh .nm { color: #23463a; }
.site-orison .sh nav { justify-content: center; }

.site-quiet { background: #f3f3f0; font-family: var(--ui); }
.site-quiet .sh { background: #fff; border-bottom: 2px solid #333; }
.site-quiet .sh .nm { font-weight: 300; letter-spacing: .06em; }

.site-lantern { background: #fbf8f1; font-family: var(--ui); }
.site-lantern .sh { background: #3b3326; color: #f4dc9c; border: 0; }
.site-lantern .sh .tg { color: #cbb68a; }

.site-driftwood { background: #e8eef0; font-family: Verdana, sans-serif; font-size: .9rem; }
.site-driftwood .sh { background: #5b7681; color: #fff; }

.site-blackindex { background: #0b0b0b; color: #c8c8c8; font-family: var(--mono); font-size: .9rem; }
.site-blackindex .sh { border-color: #222; }
.site-blackindex .sh .nm { color: #fff; letter-spacing: .2em; }
.site-blackindex a, .site-blackindex .lnk { color: #e3ab4f; }
.site-blackindex table.t th { background: #161616; }
.site-blackindex table.t th, .site-blackindex table.t td { border-color: #2a2a2a; }

.site-oldweb { background: #ffffe8; font-family: 'Times New Roman', serif; }
.site-oldweb .sb { padding-top: 24px; }
.site-oldweb h1 { color: #003366; }

.site-dead { background: #fff; }

.site-umbra, .site-indexzero { background: #0a0a09; color: #b9c1a8; font-family: var(--mono); font-size: .9rem; }
.site-umbra .sh, .site-indexzero .sh { border-color: #22261c; }
.site-umbra .sh .nm, .site-indexzero .sh .nm { color: #d8e3b8; letter-spacing: .2em; font-weight: 400; }
.site-umbra .sh .tg, .site-indexzero .sh .tg, .site-umbra .sf, .site-indexzero .sf { color: #6f7663; }
.site-umbra a, .site-umbra .lnk, .site-indexzero a, .site-indexzero .lnk { color: #c9d98a; }
.site-umbra .ascii { color: #d8e3b8; margin: 0 0 12px; }
.site-umbra li.dead { color: #555; }
.site-umbra .banner, .site-indexzero .banner { background: #191c12; border-color: #3b4229; color: #c9d98a; }
.site-umbra .post, .site-indexzero .post { background: #10110d; border-color: #262a1d; }
.site-umbra .post .pu, .site-indexzero .post .pu { background: #0d0e0b; border-color: #262a1d; }
.site-umbra .post .pt, .site-indexzero .post .pt, .site-indexzero .post .sig { color: #6f7663; border-color: #262a1d; }
.site-indexzero .post .att { background: #191c12; border-color: #3b4229; color: #c9d98a; }
.site-indexzero .modlog { background: #1c1a0e; border-color: #4d4521; color: #d7c482; }
.site-indexzero blockquote, .site-umbra blockquote { border-color: #3b4229; background: rgba(201, 217, 138, .06); }
.site-indexzero .gate { max-width: 460px; margin: 40px auto; border: 1px solid #3b4229; padding: 24px; }
.site-indexzero .gate input { width: 100%; background: #0d0e0b; border: 1px solid #3b4229; color: #d8e3b8; padding: 8px 10px; font-family: var(--mono); margin: 10px 0; }
.site-indexzero .gate button { background: #3b4229; border: 0; color: #e7f0c8; padding: 8px 16px; cursor: pointer; font-family: var(--mono); }
.site-umbra table.ft td, .site-indexzero table.ft td { border-color: #262a1d; }

/* css/desk.css */
/* Lantern OS desktop behaviour: icons, wallpapers, menus, dialogs, drag & drop, window edges, Files, start menu. */

/* ---------- wallpapers ---------- */
.desktop[data-wall="harbor"] { background:
  linear-gradient(to bottom, transparent 62%, rgba(227, 171, 79, .05) 62.2%, transparent 62.6%),
  repeating-linear-gradient(to bottom, transparent 0 7px, rgba(120, 160, 190, .035) 7px 8px) 0 64% / 100% 36% no-repeat,
  radial-gradient(ellipse at 78% 58%, rgba(227, 171, 79, .16), transparent 18%),
  linear-gradient(#0d1520, #172334 60%, #0b121b); }
.desktop[data-wall="paper"] { background:
  repeating-linear-gradient(to bottom, transparent 0 31px, rgba(140, 170, 200, .07) 31px 32px),
  linear-gradient(90deg, transparent 0 9%, rgba(200, 90, 80, .1) 9% 9.15%, transparent 9.15%), #1a1915; }
.desktop[data-wall="plain"] { background: var(--desk); }
.desktop[data-wall="plain"]::after { display: none; }
.sw { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 6px; border: 1px solid var(--line); margin-bottom: 6px; }
.sw.wall-lantern { background: radial-gradient(ellipse at 70% 30%, rgba(227, 171, 79, .25), transparent 60%), #121416; }
.sw.wall-harbor { background: radial-gradient(ellipse at 78% 58%, rgba(227, 171, 79, .4), transparent 20%), linear-gradient(#0d1520, #172334 60%, #0b121b); }
.sw.wall-paper { background: repeating-linear-gradient(to bottom, transparent 0 7px, rgba(140, 170, 200, .2) 7px 8px), #1a1915; }
.sw.wall-plain { background: #121416; }
.walls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wall { border: 2px solid transparent; background: none; border-radius: 8px; padding: 6px; cursor: pointer; font-size: .8rem; color: var(--muted); }
.wall.on { border-color: var(--accent); color: var(--text); }
.settings h3 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 10px 0 0; font-weight: 500; }
.settings input[type=range] { width: 100%; accent-color: var(--accent); }
.tg { display: flex; gap: 10px; align-items: flex-start; }
.tg input { margin-top: 4px; accent-color: var(--accent); }

/* ---------- desktop icons ---------- */
.icons { position: absolute; inset: 0 0 var(--task-h) 0; overflow: hidden; user-select: none; -webkit-user-select: none; }
.dicon { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 3px 5px; border-radius: 6px; border: 1px solid transparent; color: #f1efe8; text-align: center; font-size: .76rem; line-height: 1.22; cursor: default; touch-action: none; }
.dicon:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .08); }
.dicon.sel { background: rgba(227, 171, 79, .2); border-color: rgba(227, 171, 79, .55); }
.dicon.cut { opacity: .5; }
.dicon .ic { position: relative; width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.dicon .ic > svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.dicon .lb { max-width: 100%; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .8); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.dicon.sel .lb { -webkit-line-clamp: 5; }
.dicon .dot { position: absolute; top: -2px; right: -6px; background: var(--accent); color: var(--accent-ink); font-size: .65rem; font-weight: 600; border-radius: 9px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; }
.icons.sz-s .dicon .ic, .icons.sz-s .dicon .ic > svg { width: 32px; height: 32px; }
.icons.sz-s .dicon { font-size: .72rem; }
.icons.sz-l .dicon .ic, .icons.sz-l .dicon .ic > svg { width: 64px; height: 64px; }
.appic { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(160deg, #2f353b, #1e2226); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 3px 8px rgba(0, 0, 0, .45); }
.appic svg { width: 58%; height: 58%; color: var(--accent); }
.thumb { width: 100%; height: 100%; display: grid; place-items: center; }
.thumb svg, .thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; border: 2px solid #f4f2ec; box-shadow: 0 2px 5px rgba(0, 0, 0, .5); background: #fff; }
.thumb svg { width: 100%; }
textarea.ren { width: 100%; font: inherit; font-size: .76rem; text-align: center; resize: none; border: 1px solid var(--accent); background: var(--desk); color: var(--text); border-radius: 3px; padding: 2px; outline: none; }
.marquee { position: absolute; border: 1px solid rgba(227, 171, 79, .8); background: rgba(227, 171, 79, .14); pointer-events: none; z-index: 2; }
.dropok { outline: 2px solid var(--accent) !important; outline-offset: -2px; background: rgba(227, 171, 79, .22) !important; }
body.dragging, body.dragging * { cursor: grabbing !important; }
.dragghost { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 7px; background: rgba(28, 31, 34, .94); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .8rem; max-width: 280px; }
.dragghost .gi { width: 28px; height: 28px; display: grid; place-items: center; flex: none; }
.dragghost .gi svg, .dragghost .gi img { max-width: 28px; max-height: 28px; }
.dragghost .gop { color: var(--accent); font-size: .72rem; white-space: nowrap; }
.dragghost .gop:empty { display: none; }
.dragghost .gl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini { width: 18px; height: 18px; display: inline-grid; place-items: center; flex: none; vertical-align: -4px; margin-right: 8px; }
.mini svg { width: 18px; height: 18px; }
.mini .appic { border-radius: 4px; box-shadow: none; }
.big-ic { width: 64px; height: 64px; display: grid; place-items: center; }
.big-ic svg { width: 64px; height: 64px; }
.big-ic .thumb svg, .big-ic .thumb img { max-width: 64px; max-height: 64px; }

/* ---------- context menu ---------- */
.ctx { position: fixed; z-index: 500; min-width: 210px; padding: 5px; background: rgba(30, 33, 37, .98); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 14px 40px rgba(0, 0, 0, .6); font-size: .84rem; animation: menuin .09s ease-out; }
.ctx button { width: 100%; display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 6px 10px 6px 6px; border: 0; background: none; border-radius: 5px; text-align: left; cursor: default; }
.ctx button:hover:not(:disabled), .ctx button:focus-visible { background: var(--accent-soft); outline: none; }
.ctx button:disabled { opacity: .4; }
.ctx .ck { color: var(--accent); font-size: .8rem; text-align: center; }
.ctx .kb { color: var(--muted); font-size: .72rem; font-family: var(--mono); }
.ctx .sep { height: 1px; background: var(--line); margin: 4px 6px; }
.ctx .hd { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 2px 30px; }
@keyframes menuin { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* ---------- dialog ---------- */
.modal { position: absolute; inset: 0; z-index: 300; background: rgba(0, 0, 0, .38); display: grid; place-items: center; padding: 16px; }
.dlg { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); animation: winin .14s ease-out; }
.dlg-t { padding: 14px 18px 0; font-weight: 600; }
.dlg-b { padding: 10px 18px 6px; font-size: .9rem; line-height: 1.5; color: var(--text); max-height: 60vh; overflow: auto; }
.dlg-b p { margin: 0 0 10px; color: var(--muted); }
.dlg-in { width: 100%; margin-top: 4px; }
.dlg-f { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px 16px; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: rgba(224, 122, 106, .12); }
.small-toast { padding: 9px 12px; border-left-color: var(--muted); }

/* ---------- windows: edges, snapping, animation ---------- */
.rz { position: absolute; z-index: 3; touch-action: none; }
.rz.n, .rz.s { left: 10px; right: 10px; height: 6px; cursor: ns-resize; }
.rz.e, .rz.w { top: 10px; bottom: 10px; width: 6px; cursor: ew-resize; }
.rz.n { top: 0; } .rz.s { bottom: 0; } .rz.e { right: 0; } .rz.w { left: 0; }
.rz.ne, .rz.nw, .rz.se, .rz.sw { width: 12px; height: 12px; }
.rz.ne { top: 0; right: 0; cursor: nesw-resize; } .rz.sw { bottom: 0; left: 0; cursor: nesw-resize; }
.rz.nw { top: 0; left: 0; cursor: nwse-resize; } .rz.se { bottom: 0; right: 0; cursor: nwse-resize; }
.win.max .rz { display: none; }
.win .bar { cursor: default; }
.win.moving { user-select: none; }
.win.moving .body { pointer-events: none; }
.win.opening { animation: winin .16s ease-out; }
.win.closing { animation: winout .11s ease-in forwards; pointer-events: none; }
@keyframes winin { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }
@keyframes winout { to { opacity: 0; transform: scale(.97); } }
#snapprev { position: absolute; z-index: 2147483000; border-radius: 10px; background: rgba(227, 171, 79, .12); border: 2px solid rgba(227, 171, 79, .55); pointer-events: none; transition: all .12s; }

/* ---------- taskbar ---------- */
.taskbar .task { position: relative; }
.taskbar .task.pin span { display: none; }
.taskbar .task.pin { padding: 0 9px; }
.taskbar .task.run::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 3px; margin-left: -3px; border-radius: 2px; background: var(--muted); }
.taskbar .task.on::after { width: 16px; margin-left: -8px; background: var(--accent); }
.taskbar .task:hover { background: var(--surface-2); color: var(--text); }
.taskbar .showdesk { width: 8px; height: 100%; margin-right: -8px; border: 0; border-left: 1px solid var(--line); background: none; cursor: pointer; }
.taskbar .showdesk:hover { background: var(--surface-3); }

/* ---------- start menu ---------- */
.startmenu { position: absolute; left: 8px; bottom: calc(var(--task-h) + 8px); width: min(420px, calc(100vw - 16px)); max-height: calc(100% - var(--task-h) - 20px); display: flex; flex-direction: column; background: rgba(28, 31, 34, .98); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 60; animation: menuin .12s ease-out; }
.startmenu .sm-q { margin: 14px 14px 4px; height: 38px; border-radius: 19px; padding: 0 16px; }
.startmenu .sm-body { padding: 4px 10px 10px; overflow: auto; min-height: 0; }
.startmenu h4 { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 12px 6px 6px; font-weight: 500; }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 4px; }
.sm-grid button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: .76rem; }
.sm-grid button:hover, .sm-grid button:focus-visible { background: var(--surface-2); }
.sm-grid svg { width: 26px; height: 26px; color: var(--accent); }
.sm-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; background: none; border-radius: 7px; cursor: pointer; text-align: left; font-size: .85rem; }
.sm-list button:hover, .sm-list button:focus-visible { background: var(--surface-2); }
.sm-list > button > svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.sm-list small { display: block; color: var(--muted); font-size: .72rem; }
.sm-list .mini { margin-right: 0; }
.sm-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .15); border-radius: 0 0 12px 12px; }
.sm-foot .av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; }
.sm-foot .who { flex: 1; font-size: .88rem; }
.sm-foot .pw { width: 34px; height: 34px; border: 0; border-radius: 7px; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.sm-foot .pw:hover { background: var(--surface-2); color: var(--text); }
.sm-foot .pw svg { width: 18px; height: 18px; }
.sleep { position: fixed; inset: 0; z-index: 900; background: #000; display: grid; place-items: center; color: #444; font-family: var(--mono); font-size: .8rem; cursor: pointer; }

/* ---------- Files ---------- */
.fx { display: flex; flex-direction: column; height: 100%; container-type: inline-size; }
.fx-main table.grid { table-layout: fixed; }
.fx-main table.grid th:nth-child(2), .fx-main table.grid th:nth-child(3) { width: 150px; }
.fx-main table.grid th:nth-child(4) { width: 76px; }
.fx-main table.grid td { overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 1000px) { .fx-body .details { display: none; } }
@container (max-width: 700px) { .fx-main table.grid th:nth-child(3), .fx-main table.grid td:nth-child(3) { display: none; } .fx-main table.grid th:nth-child(2) { width: 128px; } }
@container (max-width: 520px) { .fx-main table.grid th:nth-child(2), .fx-main table.grid td:nth-child(2) { display: none; } .fx-body .side { width: 120px; } }
.fx-top { display: flex; gap: 4px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--surface); flex: none; }
.fx-top .ib, .addr .ib { width: 32px; height: 32px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--muted); display: grid; place-items: center; flex: none; }
.fx-top .ib:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.fx-top .ib:disabled { opacity: .35; cursor: default; }
.fx-top .ib svg { width: 17px; height: 17px; }
.crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; height: 32px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--desk); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.crumbs button { border: 0; background: none; padding: 3px 6px; border-radius: 4px; cursor: pointer; font-size: .82rem; color: var(--text); }
.crumbs button:hover { background: var(--surface-2); }
.crumbs .sep { color: var(--muted); font-size: .8rem; }
.fx-q { width: 200px; }
.fx-cmd { display: flex; gap: 2px; align-items: center; padding: 5px 8px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; flex: none; }
.fx-cmd .btn { height: 30px; padding: 0 9px; font-size: .8rem; }
.fx-cmd .btn svg { width: 16px; height: 16px; color: var(--accent); }
.fx-cmd .div, .pad-app .div { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.fx-body { flex: 1; min-height: 0; display: flex; }
.fx-body .side { width: 188px; flex: none; border-right: 1px solid var(--line); overflow: auto; background: var(--surface); }
.fx-body .side .nav button { justify-content: flex-start; }
.fx-body .side .grow { flex: 1; }
.fx-main { flex: 1; min-width: 0; overflow: auto; outline: none; user-select: none; -webkit-user-select: none; }
.fx-main table.grid td { cursor: default; }
.fx-main table.grid td.ncell { white-space: nowrap; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.fx-main tr.cut, .fx-main .tile.cut { opacity: .5; }
.fx-main .ren-in { height: 26px; width: min(260px, 100%); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; padding: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 7px; border: 1px solid transparent; text-align: center; font-size: .78rem; touch-action: none; }
.tile:hover { background: var(--surface-2); }
.tile.sel { background: var(--accent-soft); border-color: rgba(227, 171, 79, .45); }
.tile .ic { width: 56px; height: 56px; display: grid; place-items: center; }
.tile .ic > svg { width: 56px; height: 56px; }
.tile .lb { word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-main tr[data-id] { touch-action: none; }
.details { width: 250px; flex: none; border-left: 1px solid var(--line); padding: 14px; overflow: auto; background: var(--surface); }
.details .row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.fx-status { padding: 4px 12px; border-top: 1px solid var(--line); background: var(--surface); font-size: .74rem; color: var(--muted); flex: none; }

/* ---------- LanternPad / viewers ---------- */
.pad-app { display: flex; flex-direction: column; height: 100%; }
.pad-app .textview { flex: 1; overflow: auto; }
.edit { flex: 1; min-height: 0; border: 0; outline: none; resize: none; padding: 16px 20px; background: var(--surface); color: var(--text); font-family: var(--mono); font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-x: hidden; }
.imgview .pair { display: flex; gap: 16px; align-items: center; }
.imgview .one { width: 480px; max-width: 70vw; }
.imgview .one svg, .imgview .one img { width: 100%; display: block; }
.imgview .two { width: 420px; max-width: 60vw; }
.imgview .mh { margin: 16px 0 8px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 760px) {
  .fx-body .side { width: 128px; }
  .fx-body .details { display: none; }
  .fx-q { width: 110px; }
  .fx-cmd .btn svg { display: none; }
  .taskbar .task:not(.pin) span { display: none; }
}

/* ---------- tutorial ---------- */
#tut { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
#tut.dim { background: rgba(0, 0, 0, .55); pointer-events: auto; }
.tut-hole { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); outline: 2px solid var(--accent); outline-offset: 2px; pointer-events: none; animation: tutpulse 1.6s ease-in-out infinite; }
@keyframes tutpulse { 50% { outline-color: rgba(227, 171, 79, .35); } }
.tut-card { position: fixed; pointer-events: auto; background: var(--surface); color: var(--text); border: 1px solid var(--accent); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .65); padding: 16px 18px 14px; font-size: .9rem; line-height: 1.5; max-height: calc(100vh - 24px); overflow: auto; }
.tut-step { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tut-card h3 { margin: 4px 0 8px; font-size: 1.08rem; }
.tut-text p { margin: 0 0 8px; }
.tut-text .tsmall { font-size: .8rem; color: var(--muted); }
.tut-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.tut-row .grow { flex: 1; }
.tut-wait { font-size: .78rem; color: var(--accent); font-style: italic; }
.tut-wait[hidden], .tut-next[hidden], .tut-back[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .tut-hole { animation: none; } }
.guide h2 { margin-top: 0; }
.guide li { margin-bottom: 6px; }
.guide code { font-family: var(--mono); font-size: .82em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.tut-skip { background: none; border-color: transparent; color: var(--muted); }

/* css/web2.css */
/* FERMATA web: real site layouts, pictures, documents, music. */
.viewport { container-type: inline-size; }
.site .sgrid { padding: 18px max(16px, 3%) 40px; }
.site .sgrid.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; max-width: 1180px; margin: 0 auto; }
.site .sgrid > .sb { padding: 0; max-width: none; min-width: 0; }
.site .sgrid:not(.has-side) > .sb { max-width: 920px; margin: 0 auto; }
.site aside.sx { display: flex; flex-direction: column; gap: 16px; font-size: .9rem; }
.site aside.sx .box { border: 1px solid rgba(0, 0, 0, .12); padding: 12px 14px; background: rgba(255, 255, 255, .6); }
.site aside.sx h4 { margin: 0 0 8px; font: 700 .72rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.site aside.sx ol.mr { margin: 0; padding-left: 1.2em; }
.site aside.sx ol.mr li { margin-bottom: 6px; }
.site .ad { border: 1px dashed rgba(0, 0, 0, .25); padding: 12px; background: rgba(0, 0, 0, .025); font-size: .85rem; line-height: 1.45; }
.site .ad .adl { display: block; font: .62rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: #999; margin-bottom: 4px; }
.site .ad a, .site .ad .lnk { color: inherit; text-decoration: none; }
.site .brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.site .brand .logo { font-size: 1.6rem; }
.site [data-go] { cursor: pointer; }
@container (max-width: 760px) {
  .site .sgrid.has-side { grid-template-columns: 1fr; }
  .site .cardrow { grid-template-columns: 1fr !important; }
  .site .classifieds { columns: 1 !important; }
}

/* ---------- pictures ---------- */
.pic { margin: 14px 0; }
.pic .pf { position: relative; overflow: hidden; background: #d9d5cc; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic .ph, .cpic .ph, .thumbpic .ph { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 12px; background: repeating-linear-gradient(45deg, #e6e1d6 0 12px, #eeeae1 12px 24px); color: #6b6455; font: 12px/1.35 var(--mono); }
.pic .ph b { font: 600 13px var(--ui); color: #4d473b; }
.pic .ph i { font: italic 12px Georgia, serif; max-width: 32ch; }
.pic.missing .ph, .cpic.missing .ph, .thumbpic.missing .ph { display: flex; }
.pic.missing img, .cpic.missing img, .thumbpic.missing img { visibility: hidden; }
.pic figcaption { font: .8rem/1.4 var(--ui); color: #6a6a6a; padding-top: 6px; }
.pic.lead { margin: 6px 0 18px; }
.pic.avatar { margin: 0; }
.pic.avatar .pf { border-radius: 50%; aspect-ratio: 1 / 1 !important; }
.pic.avatar .ph b, .pic.avatar .ph i { display: none; }
.pic.big { margin: 0; }
.pic.big .pf { max-height: 70vh; }
.pic.big img { object-fit: contain; background: #0b0c0d; }
.pic.thumbpic { margin: 0; }
.pic .ov { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; padding: 10px 26px; border-radius: 50% / 42%; background: radial-gradient(ellipse at 40% 30%, #f0d48a, #b8913d 70%, #8d6a24); color: #3a2806; font: 600 12px/1.25 Georgia, serif; letter-spacing: .12em; box-shadow: 0 2px 6px rgba(0, 0, 0, .55), inset 0 1px 2px rgba(255, 255, 255, .6); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.pic .ov b { font-size: 14px; letter-spacing: .22em; }
.pic .ov span { font-size: 9px; letter-spacing: .3em; }
.pic .ov em { font-style: normal; font-size: 13px; margin-top: 2px; }
.hero .pic { margin-top: 0; }
.thumb.thumbpic { position: relative; }
.thumb.thumbpic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- cards ---------- */
.site .card { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.site .card:hover h3 { text-decoration: underline; }
.site .card .cpic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #d9d5cc; }
.site .card .cpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site .card h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.site .card p { margin: 0; font-size: .92rem; color: #444; }
.site .card time { font: .75rem var(--ui); color: #888; }
.site .card .ck { font: 700 .68rem var(--ui); letter-spacing: .1em; text-transform: uppercase; color: #a3221b; }
.site .card.sm h3 { font-size: .98rem; }
.site .cardrow { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 18px; }
.site .cardrow.small3 { grid-template-columns: 1fr 1fr 1fr; }
.site .frontlead .card h3 { font-size: 1.9rem; }
.site .frontlead .card p { font-size: 1.05rem; }
.site h2.sec { font: 700 .78rem var(--ui); letter-spacing: .14em; text-transform: uppercase; border-top: 3px solid #111; padding-top: 6px; margin: 26px 0 12px; }
.site .promo { display: grid; grid-template-columns: 200px 1fr; gap: 18px; background: #111; color: #eee; padding: 14px; margin-top: 24px; align-items: center; }
.site .promo .pic { margin: 0; }
.site .promo .lnk { color: #f3c97a; }
.site .factbox { border: 2px solid #111; padding: 12px 16px; margin: 14px 0 20px; background: #fffef8; }
.site .factbox h4 { margin: 0 0 6px; font: 700 .8rem var(--ui); letter-spacing: .1em; text-transform: uppercase; }
.site .cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 16px 0; }
.site .tile { border: 1px solid rgba(0, 0, 0, .12); padding: 14px; background: rgba(255, 255, 255, .7); }
.site .tile h3 { margin-top: 0; }
.site .listings .lst { display: grid; grid-template-columns: 220px 1fr; gap: 16px; border-bottom: 1px solid #ddd; padding: 12px 0; align-items: center; }
.site .listings .lst .pic { margin: 0; }
.site .price { font: 600 1.1rem var(--ui); }
@container (max-width: 560px) { .site .listings .lst, .site .promo { grid-template-columns: 1fr; } }

/* ---------- articles ---------- */
.site .art .deck { font-size: 1.15rem; font-style: italic; color: #444; margin: -4px 0 10px; }
.site .art .byline { font: .85rem var(--ui); color: #666; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 6px 0; margin-bottom: 12px; }
.site .art .abody p { font-size: 1.04rem; line-height: 1.7; }
.site .art .abody > p:first-child::first-letter { float: left; font-size: 3.2rem; line-height: .9; padding: 4px 8px 0 0; font-weight: 700; }
.site .related { margin-top: 26px; border-top: 3px solid #111; padding-top: 8px; }
.site .related h4, .site .comments h4 { font: 700 .76rem var(--ui); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.site .related .card { border: 0; padding: 4px 0; }
.site .comments { margin-top: 28px; border-top: 1px solid #ccc; padding-top: 10px; font-family: var(--ui); }
.site .cmt { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee; font-size: .9rem; }
.site .cmt p { margin: 4px 0 0; }
.site .cav, .site .fav { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 600 .85rem var(--ui); flex: none; }
.site .fav { width: 40px; height: 40px; margin-bottom: 4px; }
.site .art .upd { color: #a3221b; }

/* ---------- classifieds ---------- */
.site .classifieds { columns: 3 200px; column-gap: 22px; column-rule: 1px solid #ccc; }
.site .clad { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid #ddd; font: .88rem/1.45 Georgia, serif; }
.site .clad.boxed { border: 2px solid #222; padding: 8px 10px; margin: 6px 0; font-family: 'Libre Caslon Text', Georgia, serif; text-align: center; line-height: 1.55; }

/* ---------- search ---------- */
.site .ftabs { display: flex; gap: 16px; border-bottom: 1px solid #ddd; padding-bottom: 6px; margin-bottom: 14px; font-family: var(--ui); }
.site .ftab { text-decoration: none !important; color: #555 !important; padding-bottom: 6px; }
.site .ftab.on { color: #111 !important; border-bottom: 3px solid #1b4f9c; font-weight: 600; }
.site .imgres { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.site .imgres .ir .pic .pf { aspect-ratio: 4 / 3 !important; }
.site .fintro { margin-bottom: 10px; color: #555; }

/* ---------- social & gallery ---------- */
.site .cover { height: 110px; background: linear-gradient(120deg, #2c3e50, #4c6b7f 60%, #a7895b); margin: -18px -3% 0; }
.site-loopline .prof { margin-top: -36px; }
.site .prof .av { border: 4px solid #fff; width: 84px; height: 84px; font-size: 2rem; }
.site .prof .pav { padding: 0; overflow: hidden; background: #ddd; }
.site .feed .it .ih { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.site .feed .it .ib { line-height: 1.5; }
.site .feed .rp { font-size: .85rem; color: #555; border-left: 2px solid #ddd; padding-left: 8px; margin-top: 6px; }
.site .feed .pic.inpost { margin: 10px 0 4px; }
.site .gh { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.site .gh h1 { margin: 0; }
.site .gav { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; color: #fff; font: 600 1.6rem var(--ui); }
.site .gal .ph2 .pic { margin: 0; }
.site .gal .ph2 .scorewrap { margin: 0; padding: 10px; background: #f6f1e4; overflow-x: auto; }

/* ---------- documents in the viewer ---------- */
.docview { padding: 22px; background: #2b2e32; min-height: 100%; }
.docpaper { background: #f4efe2; color: #222; max-width: 700px; margin: 0 auto; padding: 38px 46px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); font: 1rem/1.6 Georgia, serif; }
.docpaper .pic figcaption { color: #6a6455; }
.docpaper.typewritten { background: #f1ede1 radial-gradient(circle at 30% 20%, rgba(0, 0, 0, .03), transparent 60%); }
.docpaper .typed { font-family: 'Special Elite', 'Courier New', monospace; font-size: 1.02rem; line-height: 1.75; color: #1e2133; }
.docpaper .sigline { font-size: 2rem; margin-top: 18px; }
.docpaper .hand, .docpaper .handsmall { font-family: 'Caveat', 'Segoe Script', cursive; color: #1e2a5a; }
.docpaper .hand { font-size: 1.45rem; line-height: 1.3; margin: 0; }
.docpaper .handsmall { font-size: 1.3rem; line-height: 1.35; }
.docpaper .card-hand { position: relative; border: 1px solid #d8cfb6; background: #fffaf0; padding: 14px 18px 12px; margin: 14px 0; box-shadow: 1px 2px 0 rgba(0, 0, 0, .06); }
.docpaper .card-hand:nth-child(even) { transform: rotate(.4deg); }
.docpaper .card-hand:nth-child(odd) { transform: rotate(-.3deg); }
.docpaper .card-hand .cd { position: absolute; right: 10px; top: 6px; font: 12px 'Caveat', cursive; color: #a2452b; }
.docpaper .card-hand .sig { display: block; text-align: right; }

/* ---------- music on paper ---------- */
.mpaper { display: inline-block; max-width: 100%; overflow-x: auto; background: #f3ecd9; padding: 10px 14px; border: 1px solid #d9ccad; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); transform: rotate(-.4deg); clip-path: polygon(0 3%, 4% 0, 12% 2%, 30% 0, 55% 2%, 80% 0, 100% 3%, 99% 50%, 100% 97%, 85% 100%, 60% 98%, 35% 100%, 10% 98%, 0 100%, 1% 50%); }
.mpaper svg.stave { display: block; max-width: none; --ink: #1d2340; --line-ink: #8a8ba0; }
.scorewrap { cursor: pointer; margin: 10px 0; display: block; }
.scorewrap:hover .mpaper { box-shadow: 0 0 0 2px #e3ab4f, 0 3px 10px rgba(0, 0, 0, .18); }
.listing-scan { background: #6b5b48; padding: 18px; display: inline-block; max-width: 100%; }

/* ---------- Music Bench ---------- */
.mb { display: flex; flex-direction: column; height: 100%; }
.mb-bar { gap: 8px; }
.mb-bar select.inp { max-width: 300px; }
.mb-bar .ck { display: flex; gap: 6px; align-items: center; font-size: .85rem; }
.mb-bar .ck input { accent-color: var(--accent); }
.mb-main { flex: 1; min-height: 0; display: flex; }
.mb-score { flex: 1; min-width: 0; overflow: auto; padding: 14px 16px; }
.mb-staves { background: #f3ecd9; padding: 10px; border-radius: 4px; overflow-x: auto; margin: 8px 0; }
.mb-staves svg.stave { display: block; max-width: none; --ink: #1d2340; --line-ink: #8a8ba0; --hl: rgba(227, 171, 79, .35); }
.mb-staves svg .nl { font: 8.5px var(--mono); fill: #6b6455; }
.mb-out { margin-top: 10px; }
.mb-text { font: 600 1.25rem/1.5 var(--mono); letter-spacing: .14em; word-break: break-all; color: var(--accent); background: var(--desk); padding: 10px 12px; border-radius: 6px; min-height: 2.4em; margin-top: 4px; }
.mb-help { margin-top: 14px; }
.mb-table { width: 270px; flex: none; border-left: 1px solid var(--line); padding: 14px; overflow: auto; background: var(--surface); }
.mb-table h4 { margin: 0 0 4px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mb-table table { border-collapse: collapse; margin: 8px 0 12px; }
.mb-table th { font: 500 .72rem var(--mono); color: var(--muted); padding: 3px 6px; text-align: left; }
.mb-table td { padding: 2px; }
.mb-table .tcell { width: 44px; height: 30px; text-align: center; font: 600 .95rem var(--mono); padding: 0; text-transform: uppercase; }
.mb-table .row { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { .mb-main { flex-direction: column; } .mb-table { width: auto; border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- identities ---------- */
.site-gazette { background: #fbfaf6; font-family: 'Source Serif 4', 'Libre Caslon Text', Georgia, serif; color: #1a1a1a; }
.site-gazette .sh { text-align: center; border-bottom: 0; padding-bottom: 0; }
.site-gazette .mast-top { display: flex; justify-content: space-between; font: .72rem var(--ui); color: #555; border-bottom: 1px solid #ccc; padding-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.site-gazette .sh .nm { font-family: 'UnifrakturMaguntia', 'Old English Text MT', serif; font-weight: 400; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.1; padding: 10px 0 6px; cursor: pointer; }
.site-gazette .sh nav { justify-content: center; background: #111; margin: 6px -4% 0; padding: 8px 4%; gap: 18px; }
.site-gazette .sh nav a, .site-gazette .sh nav .lnk { color: #fff; text-decoration: none; font: 600 .74rem var(--ui); letter-spacing: .1em; text-transform: uppercase; }
.site-gazette .sf { background: #111; color: #bbb; text-align: center; padding: 20px; }
.site-gazette .sf .lnk { color: #ddd; }
.site-gazette h1 { font-weight: 700; font-size: 2.1rem; letter-spacing: -.01em; }
.site-gazette .kicker { color: #a3221b; font: 700 .72rem var(--ui); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }
.site-gazette .weather b { font-size: 1.5rem; }

.site-radio { background: #1b1030; color: #f1e8ff; font-family: var(--ui); }
.site-radio .sh { background: linear-gradient(90deg, #ff6a3d, #c2185b 60%, #5e1f8c); border: 0; color: #fff; }
.site-radio .sh .nm { font: 800 1.9rem var(--ui); letter-spacing: -.02em; font-style: italic; }
.site-radio .sh .tg { color: #ffe0f0; }
.site-radio .sh nav a, .site-radio .sh nav .lnk { color: #fff; font-weight: 600; text-decoration: none; }
.site-radio a, .site-radio .lnk { color: #ffb38a; }
.site-radio aside.sx .box { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); }
.site-radio .onair h4 { color: #ff6a3d; }
.site-radio .ad { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); }
.site-radio table.t th { background: #2c1b4a; color: #fff; }
.site-radio table.t th, .site-radio table.t td { border-color: #3e2a63; }
.site-radio .tile { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .15); }
.site-radio .sf { color: #b9a7d6; border-color: #3e2a63; }
.site-radio .pic figcaption { color: #c9b8e6; }

.site-church { background: #f4f2ec; font-family: 'Libre Caslon Text', Georgia, serif; }
.site-church .sh { background: #2f3d34; color: #f0eadb; border: 0; text-align: center; }
.site-church .sh .brand { justify-content: center; }
.site-church .sh .nm { font-weight: 400; letter-spacing: .06em; }
.site-church .sh .tg { color: #c9c1a8; }
.site-church .sh nav { justify-content: center; }
.site-church .sh nav a, .site-church .sh nav .lnk { color: #e9dcb0; text-decoration: none; }
.site-church ul.notices li { margin-bottom: 10px; }

.site-soundboard { background: #ece6da; font-family: var(--ui); }
.site-soundboard .sh { background: #4a3527; color: #f1e3cf; border: 0; }
.site-soundboard .sh .nm { font-family: 'Libre Caslon Text', serif; }
.site-soundboard .sh .tg { color: #d8c3a6; }
.site-soundboard .post { background: #fffdf8; border-color: #d5c7b0; }
.site-soundboard .post .pu { background: #f3ebde; border-color: #d5c7b0; }

.site-halversen { background: #fff; font-family: var(--ui); }
.site-halversen .sh { border-bottom: 4px solid #1f4e79; }
.site-halversen .sh .nm { color: #1f4e79; font-weight: 300; letter-spacing: .08em; }
.site-halversen table.t th { background: #e8f0f8; }

.site-shorehouse { background: #f7f6f2; font-family: var(--ui); }
.site-shorehouse .sh { background: #0f2238; color: #fff; border: 0; }
.site-shorehouse .sh .nm { font: 600 1.5rem 'Libre Caslon Text', serif; letter-spacing: .08em; color: #e6c779; }
.site-shorehouse .sh .tg { color: #a9b6c6; }
.site-shorehouse .sh nav a, .site-shorehouse .sh nav .lnk { color: #fff; text-decoration: none; }

.site-shop { background: #fff8ee; font-family: Georgia, serif; }
.site-shop .sh { background: #7a2e1d; color: #ffe9cf; border: 0; }
.site-shop .sh nav a, .site-shop .sh nav .lnk { color: #ffe9cf; }
.site-garland { background: #fafafa; font-family: Verdana, sans-serif; font-size: .92rem; }
.site-garland .sh { border-bottom: 3px double #333; }
.site-eats { background: #fffdf5; font-family: var(--ui); }
.site-eats .sh { background: #f4c542; border: 0; }
.site-eats .sh .nm { font-weight: 800; }
.site-eats .rev { border-bottom: 1px solid #eee; padding: 8px 0; }
.site-rowing { background: #f3f6fa; font-family: var(--ui); }
.site-rowing .sh { background: #12355b; color: #fff; border: 0; }
.site-blog { background: #fff; font-family: 'Source Serif 4', Georgia, serif; }
.site-blog .sh { text-align: center; border: 0; }
.site-blog .sh .brand { justify-content: center; }
.site-blog .sh .nm { font: italic 400 2rem 'Source Serif 4', serif; }
.site-ferry { background: #eef6fb; font-family: var(--ui); }
.site-ferry .sh { background: #0a5f8c; color: #fff; border: 0; }
.site-ferry .sh .tg { color: #cde6f4; }
.site-meridian .scan table.merrow td, .site-meridian .scan table.merrow th { border-color: #c9b98f; }
.site-meridian .scan table.merrow th { background: #ece2c6; }
.site table.log td { font-size: .88rem; }
.site ul.cols3 { columns: 3 120px; }
.site ul.testi li { margin-bottom: 8px; }

.pic .pf { container-type: inline-size; }
.pic .ov.engrave { background: none; box-shadow: none; border-radius: 0; padding: 0; gap: .3cqw; color: rgba(52, 36, 8, .8); font-size: 1.6cqw; text-shadow: 0 1px 0 rgba(255, 236, 180, .5), 0 -1px 0 rgba(0, 0, 0, .3); }
.pic .ov.engrave b { font-size: 2.3cqw; letter-spacing: .26em; }
.pic .ov.engrave span { font-size: 1.15cqw; letter-spacing: .4em; }
.pic .ov.engrave em { font-size: 1.9cqw; letter-spacing: .12em; margin-top: .2cqw; }
