:root{--bg:#080e0c;--panel:#101a16;--panel2:#182720;--line:#294036;--text:#e3f1e9;--muted:#9aafa3;--green:#77efa9;--radius:10px}
#matrix{position:fixed;inset:0;width:100%;height:100%;opacity:.2;pointer-events:none;z-index:0}
#app{position:relative;z-index:1}
h1,h2,.brand,.breadcrumb,.nav,.stat-value,.eyebrow,.btn,.page-footer{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace}
h1{letter-spacing:-1px}h1::before{content:'> ';color:var(--green);font-weight:400}
.sidebar{background:#0b1410f5;border-right-color:#294036}.nav .active{background:#173625;box-shadow:inset 2px 0 var(--green)}.nav .count{background:#274b35}.nav button:hover{background:#1a2b21}
.brand{font-size:1.15rem}.topbar{border-bottom-style:dashed}.page-footer{border-top-style:dashed}
.panel,.stat,.card,.auth-card{background:#101a16f5;box-shadow:inset 0 1px #8cffab06}
.panel-head{border-bottom:1px solid #29403670;padding-bottom:15px}.panel-head h2{font-size:.95rem}
.btn{border-radius:5px}.btn:not(.secondary):not(.ghost):not(.danger){color:#062515;box-shadow:0 0 18px #77efa910}
.btn.secondary,.btn.ghost{border-color:var(--line)}.stat-top .icon{color:#6e9a7e}
.capacity{background:#142b1e;border-color:#2d533b;border-radius:6px}.task-symbol,.tag{background:#1d3525;color:var(--green)}.task-symbol.video,.tag.video{background:#302a3d;color:var(--purple)}.task-symbol.fitness,.tag.fitness{background:#263743;color:var(--blue)}
.htb-metric.primary-metric{background:#132e1f;border-color:#376d48}.htb-metric{border-radius:7px}
.segmented,.data-table th{background:#15231b}.segmented button.active{background:#2b4935}.progress{background:#223c2a}.stage{background:#14231b}.stage.done{background:#1a3523;border-color:#386b46}
input,select,textarea{background:#0a130e;border-color:#365040;border-radius:5px}textarea{min-height:110px;line-height:1.6}
dialog{border-radius:10px;border-color:#3f654c;max-height:92dvh}.auth{background:radial-gradient(ellipse at top,#12302265,transparent 70%)}.auth-card{border-radius:10px}
.log-description{white-space:pre-wrap;overflow-wrap:anywhere;max-width:620px}.log-table{table-layout:fixed}.log-table th:nth-child(1){width:110px}.log-table th:nth-child(3){width:100px}.log-table th:nth-child(4){width:90px}.log-table th:nth-child(5){width:65px}
.attachments{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.attachment{position:relative;min-width:0;max-width:190px;flex:0 1 180px;background:#0b140f;border:1px solid var(--line);border-radius:6px;overflow:hidden}.attachment a{display:flex;gap:9px;align-items:center;padding:10px;font-size:.78rem;overflow-wrap:anywhere}.attachment a:hover{color:var(--green)}.attachment a span{min-width:0}.attachment small{display:block;color:var(--muted);margin-top:4px;font-size:.7rem}.attachment img{width:100%;height:110px;object-fit:contain;background:#080e0c;display:block}.attachment details summary{cursor:pointer;padding:7px 10px;color:var(--muted);font-size:.75rem}.attachment details img{height:auto;max-height:400px;object-fit:contain}.attachment:has(details[open]){max-width:100%;flex-basis:100%}.attachment .remove-file{width:100%;min-height:36px;color:var(--red);background:#221b17;border-top:1px solid var(--line);font-size:.75rem}.attachment.pending{border-style:dashed}.file-picker{display:flex;flex-wrap:wrap;gap:8px}.file-picker .btn{font-size:.8rem;min-height:44px}.file-picker input{position:absolute;width:1px;height:1px;opacity:0;min-height:0;padding:0;border:0;clip-path:inset(50%)}.file-picker label:focus-within{outline:2px solid var(--green);outline-offset:3px}.file-picker label.btn{color:var(--text)}#file-status{min-height:1em}.upload-busy{pointer-events:none}.upload-busy #file-status{color:var(--green)}.storage-note{margin-top:12px}
@media(max-width:680px){.log-table,.log-table tbody,.log-table tr,.log-table td{display:block;width:100%}.log-table thead{display:none}.log-table tr{position:relative;padding:16px;border-bottom:1px solid var(--line)}.log-table tr:last-child{border:0}.log-table td{border:0;padding:0;margin-bottom:8px}.log-table td:first-child{font-size:.75rem;color:var(--muted);padding-right:40px}.log-table td:first-child p{display:inline;margin-left:6px}.log-table td:nth-child(3),.log-table td:nth-child(4){display:inline-block;width:auto;margin:2px 15px 0 0}.log-table td:last-child{position:absolute;right:10px;top:9px;width:auto;margin:0}.log-table td:nth-child(2){padding-right:4px}.attachment{flex-basis:calc(50% - 5px);max-width:calc(50% - 5px)}.attachment a{min-height:44px}.attachments{width:100%}.log-description{margin:8px 0!important}.page-head>.btn{font-size:.72rem}.field small{line-height:1.4}}
@media(prefers-reduced-motion:reduce){#matrix{display:none}}
.pending-file{display:block;padding:12px;overflow-wrap:anywhere;font-size:.8rem}
