*{box-sizing:border-box}
:root{font-family:Arial,Helvetica,sans-serif;color:#222733;background:#f7f8fa;font-size:100%;--red:#b52240;--muted:#566070;--line:#d8dde4}
body{margin:0;min-width:280px}
[hidden]{display:none!important}
.wrap{width:min(100% - 40px,960px);margin:auto}
.bar{background:white;border-bottom:1px solid var(--line)}
.bar .wrap{min-height:70px;display:flex;align-items:center;justify-content:space-between}
.home{display:inline-flex;align-items:center;gap:18px;color:var(--muted);text-decoration:none;font-size:.92rem}
.brand{width:96px;height:38px;overflow:hidden;display:block}
.brand img{display:block;width:96px;height:96px;margin-top:-30px}
.home>span+span{border-left:1px solid var(--line);padding-left:18px}
.gate,.searchpanel,.record,dialog,.empty{background:white;border:1px solid var(--line);border-radius:16px}
.gate{max-width:450px;margin:clamp(40px,9vh,105px) auto;padding:clamp(22px,4vw,40px);box-shadow:0 12px 46px #252a3910}
.mark{display:grid;place-items:center;background:#fceaf0;color:var(--red);width:54px;height:54px;border-radius:14px;margin-bottom:22px}
svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3,p,dl,dd{margin:0}
h1{font-size:clamp(1.65rem,4vw,2.2rem);letter-spacing:-.04em;line-height:1.16}
h2{font-size:1.35rem;letter-spacing:-.025em}
h3{font-size:1.1rem;overflow-wrap:anywhere}
p{color:var(--muted);line-height:1.55}
.gate>p,.heading p{margin-top:10px}
.gate form{margin-top:26px}.gate button{width:100%;margin-top:14px}
label{display:block;font-size:.9rem;font-weight:650}
label input,form>input,.searchbox{margin-top:7px}
input,textarea,button{font:inherit}
input,textarea{width:100%;min-height:44px;border:1px solid #adb5c2;border-radius:8px;background:white;padding:10px 12px;color:#222733;font-size:1rem}
button{cursor:pointer;min-height:42px;border:1px solid transparent;border-radius:8px;padding:9px 15px;font-size:.92rem;font-weight:650;background:white;color:inherit}
button:disabled{cursor:wait;opacity:.65}
.primary{background:var(--red);color:white}.primary:hover{background:#941d35}
.quiet{border-color:#cbd1d9}.quiet:hover,.close:hover{background:#f6f7fa}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #b23b58;outline-offset:2px}
.error{color:#9d1934}.error:not(:empty){margin:12px 0 0}
.heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:42px 0 22px}
.searchpanel,.record,.empty{padding:20px 24px}
.searchbox{position:relative}.searchbox svg{position:absolute;color:var(--muted);width:19px;height:19px;top:13px;left:12px}
.searchbox input{padding-left:40px}
#notice{font-size:.93rem;margin:14px 0;min-height:1.5em}
#results{display:grid;gap:12px}
.recordhead,.actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.recordhead>div{display:flex;gap:6px}.recordhead button{min-height:38px;padding:7px 12px}
dl{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px;border-top:1px solid #e7e9ef;margin-top:15px;padding-top:14px}
dt{font-size:.875rem;color:var(--muted);margin-bottom:5px}dd{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.empty{text-align:center;padding:30px}.empty p{margin-top:6px}
#directory{padding-bottom:35px}#more{margin:14px 0}
dialog{width:min(530px,calc(100% - 28px));max-height:90dvh;padding:24px;color:inherit;box-shadow:0 18px 64px #1018282a}
dialog::backdrop{background:#20273970}.dialoghead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.close{min-width:42px;padding:0;font-size:1.55rem}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.wide{grid-column:1 / -1}.actions{justify-content:flex-end;margin-top:22px}.danger{margin-right:auto;color:#a51b36}
textarea{resize:vertical;margin-top:12px;line-height:1.5}
@media(max-width:620px){.heading{align-items:flex-start;flex-direction:column;margin-top:28px}.searchpanel,.record{padding:16px}.recordhead{align-items:flex-start;flex-direction:column}.recordhead>div{width:100%}dl{grid-template-columns:repeat(2,minmax(0,1fr))}.wrap{width:calc(100% - 28px)}.home{gap:8px}.home>span+span{padding-left:8px}}
@media(max-width:420px){.fields{grid-template-columns:1fr}.bar .wrap{min-height:62px}dialog{padding:18px}.actions{gap:6px}.actions button{padding:8px 10px}}
