:root {font: 16px/1.5 system-ui,sans-serif;color:#eef3ee;background:#121a17;color-scheme:dark;--panel:#1a2420;--edge:#34463c;--muted:#b1c2b8;--mint:#a2dcba;--ink:#193126}
* {box-sizing:border-box}
body {margin:0}
[hidden] {display:none!important}
h1,h2,p {margin:0 0 .65rem}
h1 {font-size:clamp(1.5rem,3vw,2.2rem);letter-spacing:-.025em;line-height:1.2}
h2 {font-size:1.1rem}
small {display:block;color:var(--muted);font-size:.78rem}
button,input,select,textarea {font:inherit}
button,input,select,textarea {border:1px solid var(--edge);border-radius:.45rem;padding:.55rem .75rem;color:inherit;background:#1c2b24}
button {cursor:pointer;min-height:2.45rem}
button:hover:enabled {border-color:var(--mint)}
button:disabled {opacity:.45;cursor:not-allowed}
:focus-visible {outline:2px solid var(--mint);outline-offset:2px}
label {display:grid;gap:.3rem;font-size:.93rem}
input,textarea {min-width:0;width:100%}
form {display:grid;gap:.85rem}
.primary {background:var(--mint);color:var(--ink);border-color:var(--mint);font-weight:700}
.light {background:transparent}
.muted {color:var(--muted)}
.error {color:#ffc9b5}
.top {height:4.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0 clamp(1rem,4vw,3rem);border-bottom:1px solid var(--edge)}
.brand,.profile {display:flex;align-items:center;gap:.75rem}
.brand {font-weight:700}
.brand-icon {display:grid;place-items:center;width:2.3rem;height:2.3rem;color:var(--ink);background:var(--mint);border-radius:.5rem;font-size:1.4rem;line-height:1}
.profile>div {text-align:right}
.entry {max-width:56rem;margin:clamp(2rem,10vh,8rem) auto 2rem;display:grid;grid-template-columns:1fr 1fr;background:var(--panel);border:1px solid var(--edge);border-radius:1rem;overflow:hidden}
.entry.single {grid-template-columns:1fr;max-width:32rem}
.entry-form {padding:clamp(1.4rem,4vw,3rem);min-width:0}
.entry-brand {min-height:24rem;position:relative;display:flex;align-items:end;color:white;font-size:2rem;font-weight:750;padding:2rem;isolation:isolate;overflow:hidden;background:#344735}
.field-texture {position:absolute;z-index:-1;inset:-30%;transform:rotate(-24deg);background:repeating-linear-gradient(90deg,#1d3024 0 10px,#43583a 10px 11px,#506742 11px 61px,#314932 61px 74px,#688053 74px 75px,#687448 75px 140px),linear-gradient(#637456,#1d3024);mask-image:linear-gradient(#000 25%,#0005)}
#loginStatus:empty,#changeStatus:empty {display:none}
#loginStatus,#changeStatus {margin:.8rem 0 0}
#nav {display:flex;flex-wrap:wrap;gap:.45rem;padding:.7rem clamp(.8rem,4vw,3rem);background:#161f1b;border-bottom:1px solid var(--edge)}
#nav button {background:transparent;border-color:transparent;font-size:.9rem}
#nav button[aria-current="page"] {border-color:#547864;background:#2c4237}
#main {width:min(74rem,100%);margin:auto;padding:1.65rem clamp(.85rem,3vw,2rem)}
#main.tool {width:100%;padding:.55rem clamp(.45rem,1.5vw,1rem)}
.tool IFRAME {width:100%;height:max(42rem,calc(100dvh - 11.6rem));border:1px solid var(--edge);border-radius:.65rem;background:#15191f;display:block}
.tool-bar {display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;margin:0 0 .55rem}
.tool-bar h1 {font-size:1.1rem;margin:0 auto 0 0}
.tool-bar textarea {margin-left:auto;width:min(26rem,100%);height:2.6rem}
.table {display:grid;gap:.45rem;margin:1rem 0}
.tile {display:flex;align-items:center;gap:1rem;justify-content:space-between;padding:.7rem 1rem;background:var(--panel);border:1px solid var(--edge);border-radius:.55rem;min-height:3.35rem}
.tile p,.tile h2 {margin:0}
.tile .actions {display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.tag {border:1px solid #4d6f5e;border-radius:100px;padding:.17rem .6rem;color:var(--mint);font-size:.83rem;white-space:nowrap}
.tag.returned {border-color:#b68a61;background:#513522;color:#ffd8aa}
.tag.submitted {border-color:#6081a0;color:#c3dcff;background:#263c50}
.beta {background:#804315;color:#fff0dc;font-size:.72rem;font-weight:800;padding:.18rem .35rem;border-radius:.25rem;white-space:nowrap}
#unread {border-radius:20px;color:#182821;background:var(--mint);padding:.05rem .35rem;font-size:.75rem}
.feedback {position:fixed;z-index:2;bottom:1rem;right:1rem;max-width:min(32rem,90vw);padding:.7rem 1rem;border:1px solid #698674;background:#22382e;border-radius:.55rem;box-shadow:0 8px 24px #0008}
.feedback.error {border-color:#bc826f;background:#402a26}
.new-account {padding:1rem;background:var(--panel);border:1px solid var(--edge);border-radius:.65rem}
#newAccount,.account-edit {display:flex;flex-wrap:wrap;gap:.6rem;align-items:end}
.account-edit input[type="checkbox"] {width:auto;justify-self:start}
dialog {background:var(--panel);color:inherit;border:1px solid var(--edge);border-radius:.65rem;max-width:28rem}
dialog::backdrop {background:#000b}
output {font-family:monospace;overflow-wrap:anywhere;background:#101813;border-radius:.35rem;padding:.5rem}
@media(max-width:650px) {.entry {grid-template-columns:1fr;margin:1rem}.entry-brand {display:none}.tile {align-items:flex-start;gap:.55rem}.profile small {display:none}}
