/* Station UI – Cloudflare Pages static app */
* { box-sizing: border-box; }
:root{
  --bg: #0e2243;
  --bg-2: #0f203e;
  --panel: #0f2649;
  --ink: #0c1222;
  --ink-soft:#5b6b8a;
  --white:#ffffff;
  --brand:#1928ff;
  --brand-2:#2233ff;
  --pill:#dfe4ec;
  --radius:18px;
}
html,body{height:100%;}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  overflow:hidden; /* no scroll */
  background:#f7f8fb;
}
#app{
  height:100vh;
  display:flex;
  overflow:hidden;
}

.sidebar{
  width:260px;
  background:linear-gradient(180deg, #0b1c3a, #0b1c35);
  color:#cfe3ff;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:22px 18px;
  gap:16px;
}
.logo{ width:140px; height:auto; margin-top:8px; }
.line-station{
  width:100%;
  text-align:center;
  line-height:1.25;
  margin:14px 0 8px;
  font-weight:800;
  letter-spacing:.3px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:800; letter-spacing:.4px;
  padding:14px 18px; border-radius:18px;
  border:none; cursor:pointer; user-select:none;
  transition:transform .06s ease;
  background:var(--brand); color:#fff;
}
.btn:active{ transform:translateY(1px) scale(.99); }
.btn-block{ width:100%; }
.btn-outline{ background:#182d5b; color:#e6ecff; }
.btn-primary{ background:var(--brand); color:#fff; }
.btn-wide{ width:min(760px, 80vw); height:64px; font-size:20px; border-radius:22px; }
.link{ background:none; border:none; padding:0; color:var(--brand); cursor:pointer; text-decoration:underline; }

.grow{ flex:1; }

.display{
  flex:1; position:relative;
  display:flex; flex-direction:column;
  align-items:center; justify-content:flex-start;
  padding:22px clamp(12px, 3vw, 36px);
}
.serial{
  font-size:38px; font-weight:800;
  margin: 8px 0 12px;
}
.order-meta{
  font-size:18px;
  font-weight:600;
  color:#1c2f55;
  margin-bottom:18px;
  text-align:center;
  min-height:24px;
}
.canvas-wrap{
  flex:1; width:100%; display:flex; align-items:center; justify-content:center;
}
.footer{ width:100%; display:flex; align-items:center; justify-content:center; padding:20px 0; }

.hidden{ display:none !important; }

/* Modals */
.modal{
  position:fixed; inset:0;
  background:rgba(0,0,0,.4);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
}
.modal-card{
  width:min(800px, 85vw);
  background:#0f2446;
  color:#eaf2ff;
  border-radius:18px;
  padding:20px 22px 26px;
  box-shadow:0 20px 70px rgba(0,0,0,.3);
}
.modal-header{
  display:flex; align-items:center; justify-content:space-between;
  margin:4px 2px 14px;
}
.modal-header h2{
  margin:0; letter-spacing:.4px; font-size:26px;
}
.icon-btn{
  width:44px; height:44px; border-radius:50%;
  border:2px solid #9db7ff; color:#fff; background:transparent;
  font-size:26px; line-height:1; cursor:pointer;
}
.orders-list{ display:flex; flex-direction:column; gap:14px; max-height:60vh; overflow:auto; padding-right:6px; }
.order-pill{
  background:#d7dce8; color:#0d1b34; border-radius:18px; padding:16px 18px;
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  font-weight:700;
  border:2px solid transparent;
}
.order-pill small{
  color:#2e3b5f;
  font-weight:600;
  text-transform:none;
}
.order-pill__main{ display:flex; flex-direction:column; gap:6px; }
.order-pill__serial{ font-size:20px; letter-spacing:.3px; }
.order-pill__meta{ font-size:14px; font-weight:600; color:#36476b; text-transform:uppercase; }
.order-pill.is-active{ border-color:var(--brand); box-shadow:0 0 0 3px rgba(56,108,255,.2); }

/* Admin */
.admin-login, .admin-actions{ display:flex; flex-direction:column; gap:14px; }
.admin-login .row, .admin-actions .row{ display:flex; gap:12px; align-items:center; }
.admin-login label{ width:120px; color:#b8c7ea; font-weight:600; }
.admin-login input{
  flex:1; height:44px; border-radius:12px; border:1px solid #6f87bf; background:#0e1f40; color:#fff; padding:0 12px;
}
.actions{ justify-content:center; gap:24px !important; margin:10px 0 16px; }
.msg{ min-height:22px; color:#f7d774; }

/* Post log page */
body.post-log{
  min-height:100vh;
  background:#f7f8fb;
  color:var(--ink);
  overflow:auto;
}

.post-log__wrap{
  max-width:1100px;
  margin:0 auto;
  padding:32px 24px 48px;
  display:flex;
  flex-direction:column;
  gap:28px;
}

.post-log__header{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}

.post-log__header h1{
  margin:0;
  font-size:32px;
  letter-spacing:.5px;
}

.post-log__subtitle{
  margin:8px 0 0;
  color:var(--ink-soft);
  max-width:620px;
}

.post-log__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.post-log__content{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.post-log__status{
  font-weight:600;
  color:var(--ink-soft);
}

.post-log__entries{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.post-log__card{
  background:#fff;
  border-radius:18px;
  box-shadow:0 12px 30px rgba(15,32,62,.08);
  padding:18px 20px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.post-log__card-header{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

.post-log__card-header h2{
  font-size:18px;
  margin:0;
}

.post-log__card-header time{
  color:var(--ink-soft);
  font-size:14px;
}

.post-log__meta{
  font-size:14px;
  color:var(--ink-soft);
}

.post-log__body{
  margin:0;
  padding:16px;
  background:#0f2446;
  color:#eaf2ff;
  border-radius:14px;
  overflow:auto;
  max-height:320px;
  font-family:"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size:13px;
}