*{box-sizing:border-box}body{margin:0;background:#f5f6f8;color:#152339;font:16px/1.65 Tahoma,Arial,sans-serif}header{background:#122339;color:#f4ca76;padding:18px 6vw;font-size:24px;font-weight:bold}header span{font-size:12px;letter-spacing:2px;margin-inline-start:12px}main{max-width:1150px;margin:36px auto;padding:0 18px}section,.tile,.filters{background:white;border:1px solid #dce1e6;border-radius:14px;padding:20px;margin:16px 0}h1,h2,p{margin:0 0 12px}h2{font-size:20px}.tiles,.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.tile{margin:0;color:#152339;text-decoration:none}.tile b{margin-inline-start:18px;color:#89601a}a{color:#175c80}button,input,select,textarea{font:inherit;padding:8px 12px;border:1px solid #acb8c5;border-radius:7px}button{background:#f2c66d;color:#16233a;cursor:pointer;font-weight:bold}button:disabled{opacity:.65}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:start}td,th{text-align:start;padding:12px;border-bottom:1px solid #dde3e9;white-space:nowrap}th{background:#f3f4f6}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.grid>div{padding:12px;background:#f7f8fa;border-radius:8px}.grid p{margin:5px 0 0}label{display:block;margin-block:10px}label>input:not([type=checkbox]),label>select,textarea{display:block;width:100%;max-width:440px}fieldset{border:1px solid #ddd}small{color:#146138;background:#ddf4e6;padding:2px 6px;border-radius:5px}li{margin-block:10px}li p:empty{display:none}[role=status]{color:#91451a}

#tracking { max-width: 540px; margin: auto; }
#tracking input { max-width: none; }
#result { --accent: #89550a; --tint: #fff0ca; text-align: center; padding: clamp(20px,5vw,40px); border-radius: 22px; box-shadow: 0 12px 40px #1523390e; }
#result[data-state=accepted] { --accent: #19743c; --tint: #dcf5de; }
#result[data-state=rejected] { --accent: #ac292b; --tint: #ffe2df; }
#result .state-mark { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; margin: 24px auto 12px; background: var(--tint); color: var(--accent); font: bold 50px/1 system-ui,sans-serif; }
#result h3 { color: var(--accent); font-size: clamp(26px,6vw,36px); margin: 0 0 12px; }
#result .reason { background: #f6f6f7; border-radius: 12px; padding: 14px; margin: 14px 0; text-align: start; overflow-wrap: anywhere; }
#result .reason p { margin: 5px 0; white-space: pre-line; }
#result details { text-align: start; }
#result summary, #tracking button { cursor: pointer; background: #14243c; color: white; border-radius: 9px; padding: 9px 14px; }
#result summary { text-align: center; font-weight: bold; }
#result h4 { text-align: start; border-top: 1px solid #e4e2dd; padding-top: 16px; margin: 22px 0 8px; font-size: 18px; }
#result ol { list-style: none; padding: 0; text-align: start; }
#result li { position: relative; display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 12px; padding: 5px 16px; margin:0; border-inline-start: 2px solid #e4dfd3; }
#result li::before { content:""; position:absolute; inset-inline-start:-5px; top:15px; width:8px; height:8px; border-radius:50%; background:#b77b19; }
#result li[data-state=accepted]::before { background:#19743c; }
#result li[data-state=rejected]::before { background:#ac292b; }
#result bdi { color:#5b6673; font-size:14px; }

.admin {background:#fbfaf7;color:#152746;font:15px/1.55 Tahoma,Arial,sans-serif}
.admin main {max-width:1480px;margin:28px auto;padding:0 clamp(12px,2.6vw,42px)}
.top,.identity,.top>div,.listhead,.photo-head {display:flex;align-items:center;gap:16px}
.top,.photo-head,.listhead {justify-content:space-between}
.admin .top {background:#142644;color:#fff;padding:15px clamp(16px,3vw,48px);font-size:18px}
.identity b {font-size:26px;color:#f0c55e}.identity img {width:38px;height:38px}
.top form {margin:0}.top form button {background:transparent;color:white;padding:3px 10px;border-color:#768399;font-size:13px}
.admin h1 {font-size:clamp(24px,2.6vw,37px);line-height:1.3}
.admin .tile {min-width:112px;text-align:center;font-weight:bold;padding:9px 18px}
.admin .tile b {display:block;margin:0;color:#967018;font-size:24px}
.admin .tiles {gap:8px}.admin .filters {padding:14px;gap:9px}
.admin .filters input {flex:2;min-width:180px}.admin .filters select {flex:1;min-width:120px}
.admin .filters button,.login-card button {background:#997010;color:white;border-color:#997010}
.admin .scroll {padding:0}.admin th {background:#152746;color:white}
.admin td,.admin th {padding:12px 15px}.admin td a {color:inherit;text-decoration:none;font-weight:bold}
.admin .open,.admin button[data-photo] {border:1px solid #9c792a;color:#765409;background:white;border-radius:7px;padding:5px 11px}
.pill {display:inline-block;border-radius:15px;padding:2px 10px;background:#f4ede0}
.state-new {background:#deebff;color:#214e87}.state-accepted {background:#daefdc;color:#245b2c}
.state-revised,.state-changes {background:#fff0cd;color:#775114}.state-rejected {background:#fbe1df;color:#852c26}
#photo-view {width:min(900px,94vw);max-height:90vh;border:0;border-radius:15px;padding:18px;background:#fff;color:#152746}
#photo-view::backdrop {background:#071427d9}.photo-head h2 {margin:0}
#photo-view img {display:block;max-width:100%;max-height:73vh;object-fit:contain;margin:12px auto 0}
.admin:has(.login-card) {min-height:100vh;background:radial-gradient(ellipse at top right,#263f5b,#0b192b 76%)}
.admin .login-card {width:min(420px,100%);margin:clamp(36px,10vh,110px) auto;padding:clamp(24px,4vw,40px);border-top:4px solid #cba54d;box-shadow:0 20px 60px #060f1b42}
.login-card .brandmark {letter-spacing:.2em;color:#89661e;font-weight:bold;margin-bottom:16px}.login-card h1 {font-size:27px}
.login-card label {font-weight:bold;margin:16px 0}.login-card input {margin-top:5px}.login-card button {width:100%}
.login-card [role=alert] {color:#9a2935}.admin :focus-visible {outline:3px solid #4689c6;outline-offset:2px}
@media(max-width:720px){.listhead{align-items:flex-start;flex-direction:column}.admin .tiles{width:100%}.admin .tile{flex:1;min-width:0}.admin .filters input{flex-basis:100%}.top,.identity,.top>div{gap:8px}.admin .top{font-size:15px}.identity b{font-size:20px}.identity img{width:26px;height:26px}}
