*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f5f6f3;color:#18211c}.hidden{display:none!important}.screen{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#071b13,#123b2a);padding:24px}.login-card{width:min(420px,100%);background:#fff;border-radius:22px;padding:30px;box-shadow:0 20px 50px rgba(0,0,0,.25)}.brand{color:#f58220;font-weight:900;letter-spacing:.14em}h1,h2{margin:8px 0 18px}.muted{color:#68736d}.small{font-size:12px}.login-card label{display:block;font-size:12px;font-weight:800;margin:12px 0 6px}.login-card input,.manual-row input,.order-filters select{width:100%;height:46px;border:1px solid #dfe5e1;border-radius:10px;padding:0 12px;background:#fff}.login-card button,#logoutBtn,.primary,.secondary,.status-btn{border:0;border-radius:10px;padding:12px 16px;font-weight:800;cursor:pointer}.login-card button,.primary{background:#f58220;color:#fff}.secondary{background:#e9eeeb;color:#183325}.error{margin-top:12px;padding:10px;background:#fee4e2;color:#b42318;border-radius:10px}.notice{margin-top:12px;padding:10px;background:#e9f7ed;color:#176b35;border-radius:10px}header{height:72px;background:#071b13;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 24px}.header-right{display:flex;gap:12px;align-items:center}.badge{padding:6px 10px;border-radius:999px;background:rgba(245,130,32,.18);color:#ffc28b;border:1px solid rgba(245,130,32,.4);font-size:12px;font-weight:800}.ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.2)!important}.layout{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 72px)}aside{background:#fff;border-right:1px solid #e2e7e3;padding:20px}.nav{width:100%;display:block;text-align:left;border:0;background:transparent;padding:12px;border-radius:10px;margin-bottom:8px;font-weight:700;color:#445149;cursor:pointer}.nav.active{background:#edf3ef;color:#123b2a}main{padding:32px}.panel{max-width:1220px}.eyebrow{font-size:12px;letter-spacing:.16em;color:#f58220;font-weight:900}.stats,.order-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat,.mini{background:#fff;border:1px solid #e2e7e3;border-radius:16px;padding:20px}.stat span,.mini span{display:block;color:#69736d;font-size:13px}.stat strong,.mini strong{font-size:28px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:18px}.table-wrap{overflow:auto;background:#fff;border:1px solid #e2e7e3;border-radius:14px;margin-top:16px}table{width:100%;border-collapse:collapse;min-width:720px}th,td{text-align:left;padding:12px;border-bottom:1px solid #edf0ee;font-size:14px}th{background:#f1f5f2}.batch-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.batch-card,.form-card{background:#fff;border:1px solid #e2e7e3;border-radius:16px;padding:18px}.review-toolbar{display:flex;gap:10px}.review-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.review-photo{background:#071b13;border-radius:18px;overflow:hidden;min-height:520px;position:relative;display:grid;place-items:center}.review-photo img{max-width:100%;max-height:72vh;object-fit:contain;display:block}.review-photo-meta{position:absolute;left:0;right:0;bottom:0;background:rgba(7,27,19,.76);color:#fff;padding:10px 14px;display:flex;justify-content:space-between;font-size:12px}.review-side{background:#fff;border:1px solid #e2e7e3;border-radius:18px;padding:18px}.review-counter{font-weight:900;margin-bottom:16px}.review-block{border:1px solid #edf0ee;border-radius:14px;padding:14px;margin-bottom:14px}.block-title{font-size:12px;font-weight:900;letter-spacing:.1em;margin-bottom:10px}.candidate{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:10px;border-bottom:1px solid #edf0ee}.candidate:last-child{border-bottom:0}.cand-main{display:flex;gap:10px;align-items:center}.cand-bib{font-weight:900}.cand-conf{font-size:12px;color:#68736d}.candidate button{padding:8px 10px;border:0;border-radius:8px;font-weight:800;cursor:pointer}.accept{background:#e8f5ec;color:#176b35}.reject{background:#feecea;color:#b42318}.candidate.accepted{background:#f0faf3}.candidate.rejected{opacity:.45}.candidate.pending{background:#fff}.manual-row{display:grid;grid-template-columns:1fr auto;gap:8px}.review-actions{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.order-filters{display:flex;gap:10px}.order-stats{margin:18px 0}.orders-list{display:grid;gap:16px}.order-card{background:#fff;border:1px solid #e2e7e3;border-radius:18px;padding:18px}.order-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.order-number{font-weight:900;font-size:18px}.order-status{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;text-transform:uppercase}.status-pending{background:#fff3d8;color:#8c5b00}.status-paid{background:#e9f7ed;color:#176b35}.status-delivered{background:#e8f1ff;color:#275ca8}.status-closed{background:#eef0ef;color:#5d665f}.order-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}.order-grid div{background:#f7f9f7;border-radius:10px;padding:10px}.order-grid span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#7a847e;font-weight:900}.order-grid strong{display:block;margin-top:4px}.items{margin-top:14px;border-top:1px solid #edf0ee;padding-top:12px}.item-row{display:grid;grid-template-columns:1fr auto;gap:10px;padding:8px 0;border-bottom:1px solid #f0f2f0;font-size:13px}.order-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.status-btn{padding:9px 12px}.mark-paid{background:#e9f7ed;color:#176b35}.mark-delivered{background:#e8f1ff;color:#275ca8}.close-order{background:#eef0ef;color:#485049}.reopen{background:#fff3d8;color:#8c5b00}@media(max-width:900px){.layout{grid-template-columns:1fr}aside{display:flex;overflow:auto;border-right:0;border-bottom:1px solid #e2e7e3}.nav{width:auto;white-space:nowrap;margin:0 8px 0 0}.stats,.order-stats,.order-grid,.batch-list,.review-layout{grid-template-columns:1fr 1fr}.panel-head{align-items:flex-start;flex-direction:column}}@media(max-width:560px){.stats,.order-stats,.order-grid,.batch-list,.review-layout{grid-template-columns:1fr}}
.form-card label{display:block;font-size:12px;font-weight:800;margin:12px 0 6px}.form-card input,.form-card select{width:100%;height:46px;border:1px solid #dfe5e1;border-radius:10px;padding:0 12px;background:#fff}.form-card{background:#fff;border:1px solid #e2e7e3;border-radius:16px;padding:20px;margin:18px 0}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.form-actions{display:flex;gap:10px;margin-top:18px}.batch-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:13px;color:#637068;margin:14px 0}.file-count{margin-top:10px;font-size:13px;color:#52635a}.progress-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #eef1ef;font-size:13px}.progress-ok{color:#176b35}.progress-fail{color:#b42318}

.cand-state{font-size:11px;font-weight:900;letter-spacing:.05em;color:#7a847e}
.candidate.accepted .cand-state{color:#176b35}
.candidate.rejected .cand-state{color:#b42318}
.candidate.accepted .accept{outline:2px solid #176b35}
.candidate.rejected .reject{outline:2px solid #b42318}


/* v0.9.1 mobile UX hardening */
input, button, select, textarea { font-size:16px; }
@media(max-width:900px){
  header{height:auto;min-height:68px;padding:12px 14px;gap:10px;align-items:flex-start}
  .header-right{flex-wrap:wrap;justify-content:flex-end}
  .layout{grid-template-columns:1fr}
  aside{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:10px;
    position:sticky;
    top:0;
    z-index:10;
    border-right:0;
    border-bottom:1px solid #e2e7e3;
  }
  .nav{width:auto;white-space:nowrap;margin:0}
  main{padding:18px 14px}
  .panel-head{align-items:flex-start;flex-direction:column}
  .stats,.order-stats,.order-grid,.batch-list,.review-layout,.form-grid{grid-template-columns:1fr}
  .review-photo{min-height:320px}
  .review-photo img{max-height:58vh}
  .review-side{padding:14px}
  .review-actions{position:sticky;bottom:8px;background:#fff;padding-top:10px}
  .review-actions button{flex:1;min-height:50px}
  .manual-row{grid-template-columns:1fr}
  .manual-row button{min-height:48px}
  .order-filters{width:100%;flex-direction:column}
  .order-filters select,.order-filters button{width:100%;min-height:48px}
  .order-actions .status-btn{flex:1;min-height:48px}
  .table-wrap{overflow-x:auto}
}
@media(max-width:560px){
  .header-right{width:100%;justify-content:flex-start}
  .stats,.order-stats{grid-template-columns:1fr 1fr}
  .stat,.mini{padding:14px}
  .stat strong,.mini strong{font-size:24px}
  .candidate{grid-template-columns:1fr 1fr}
  .cand-main{grid-column:1/-1}
  .candidate button{min-height:46px}
}
