
*{box-sizing:border-box}body{margin:0;background:#0d1014;color:#f3f5f7;font:16px/1.5 system-ui,sans-serif}header{padding:22px 4%;border-bottom:1px solid #30353e;display:flex;align-items:center;justify-content:space-between;gap:20px}.logo{font-size:26px;font-weight:850;letter-spacing:3px}.logo span{color:#ff831f}small,.muted{color:#aeb7c4;font-size:14px}.badge{border:1px solid #a35a25;color:#ffc08d;padding:6px 12px;border-radius:30px;font-size:14px}main{max-width:1240px;margin:auto;padding:28px 24px}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}h1{font-size:28px;margin:0}h2{font-size:19px;margin:0 0 18px}p{margin:6px 0 16px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.card{background:#171c23;border:1px solid #303741;border-radius:16px;padding:22px}.value{font-size:32px;font-weight:750;margin-top:5px}.layout{display:grid;grid-template-columns:1.1fr .9fr;gap:22px}.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:block;font-size:14px;margin:12px 0 6px;color:#d4dbe4}input,select,textarea{width:100%;font:inherit;background:#0e1319;color:white;border:1px solid #46505e;border-radius:8px;padding:11px}textarea{min-height:95px;resize:vertical}button{font:600 15px system-ui;cursor:pointer;border:1px solid #49525d;border-radius:8px;padding:12px 16px;background:#262e39;color:white}button.primary{background:#ff831f;color:#15100c;border-color:#ff831f}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #ffba7d;outline-offset:3px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.notice{padding:12px 16px;background:#2a2119;border-left:3px solid #ff831f;color:#ffd5b6;font-size:14px}.preview{border:1px solid #46505e;border-radius:12px;overflow:hidden;background:#fff;color:#15191f}.account{padding:14px;font-weight:700}.art{background:#101010;padding:24px;border-top:3px solid #f47b20;color:#fff}.art strong{display:block;font-size:31px;line-height:1.15}.art strong span{color:#ff831f}.art p{margin:14px 0 0;color:#e5e5e5}.caption{padding:16px;white-space:pre-wrap}.cta{padding:13px 16px;background:#e9edf0;font-weight:700}.summary{margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:14px}.summary b{display:block;font-size:17px}progress{width:100%;height:14px;accent-color:#ff831f;margin:14px 0}ul{padding-left:20px;color:#c6cfdb;font-size:14px}li{margin:8px 0}footer{margin-top:22px;font-size:14px;color:#aeb7c4}#photo{width:100%;max-height:350px;object-fit:contain;background:#101010;display:none}#status{font-weight:700;color:#ffc08d}#message{margin-top:16px;min-height:24px;color:#ffd0a9}@media(max-width:760px){.layout{grid-template-columns:1fr}.stats{gap:8px}.stats .card{padding:13px}.value{font-size:23px}main{padding:20px 14px}.intro{align-items:flex-start;flex-direction:column}.row{grid-template-columns:1fr}header{padding:16px}.logo{font-size:21px}.summary{grid-template-columns:1fr 1fr}}

[hidden]{display:none!important}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.toolbar select{width:auto;max-width:440px}.login{max-width:450px;margin:50px auto}.wide{width:100%}.saved{margin:22px 0}.error{color:#ffb8a8}#reference{width:100%;max-height:390px;object-fit:contain;background:#101010}.pill{padding:4px 8px;background:#303945;border-radius:5px;font-size:14px}.help{padding:12px 0}.actions button{flex-grow:1}#toast{position:sticky;top:0;z-index:10;padding:12px 4%;background:#3b2a1d;color:#ffe0c6}#alertList:empty{display:none}.version{font-size:14px;color:#aeb7c4}.history-entry{padding:12px 0;border-bottom:1px solid #303741}.history-entry summary{cursor:pointer;font-size:14px}.history-entry pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;color:#bdc8d4}input:disabled,textarea:disabled,select:disabled{opacity:.6}#signout{padding:8px 12px}h3{font-size:16px}button.danger{border-color:#ad654e}#who{margin-right:10px}

/* TELTRA light theme */
:root { color-scheme:light; }
body { background:#f4f6f9; color:#17212f; }
header { background:#fff; border-bottom:1px solid #d9e0e8; }
.card { background:#fff; border-color:#d9e0e8; }
small, .muted, .version, footer { color:#566477; }
label, ul { color:#354356; }
input, select, textarea {
  background:#fff; color:#17212f; border-color:#aebbc9;
}
input:disabled, select:disabled, textarea:disabled {
  opacity:1; background:#f4f6f8; color:#566477;
}
button { background:#eef2f6; color:#223145; border-color:#b8c3d0; }
button.primary { background:#ff831f; color:#15100c; border-color:#ff831f; }
.badge, .notice {
  background:#fff3e7; color:#804008; border-color:#e5b78f;
}
#status, #message { color:#8a3c08; }
.pill { background:#e8edf3; color:#354356; }
#toast { background:#fff0df; color:#713707; }
.preview { border-color:#d1d9e3; }
#reference { background:#eef1f5; }
.history-entry { border-color:#d9e0e8; }
.history-entry pre { color:#46566b; }
.error { color:#b42318; }
