body[data-session="guest"] .sidebar,body[data-session="guest"] #menu-toggle{display:none}
body[data-session="guest"] .application{margin-left:0}
.auth-panel{width:min(100%,470px);margin:6vh auto;background:white;border:1px solid var(--line);border-radius:8px;padding:28px}
.auth-panel h1{font-size:23px;margin-top:0}.auth-panel form{display:grid;gap:16px}.auth-panel .button{margin-top:5px}
.auth-panel .helper{font-size:12px}.auth-secret{overflow-wrap:anywhere;padding:12px;background:var(--green-soft);font-family:Consolas,monospace;user-select:all}
.auth-brand{display:grid;justify-items:center;gap:10px;text-align:center;margin-bottom:24px}
.auth-brand img{display:block;width:min(180px,100%);height:auto}
.auth-panel .auth-brand h1{font-size:clamp(18px,4.5vw,23px);line-height:1.5;margin:0;word-break:keep-all}
.auth-brand p{margin:0;font-size:15px;color:var(--muted)}
.live-connection{padding:10px 34px;background:#eef6f2;border-bottom:1px solid var(--line);font-size:11px;color:var(--green-dark)}
.live-connection[data-error="true"]{background:var(--amber-soft);color:#805c22}
.live-stack{display:grid;gap:20px}.live-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:130px}.live-stack>.panel{min-width:0}
.table-wrap{max-height:58vh;overflow:auto}.table-wrap th{position:sticky;top:0;z-index:2}
.live-help{padding:14px 20px;color:var(--muted);font-size:11px}.live-error{color:var(--red);white-space:pre-wrap}.server-form .field{min-width:0}
.supply-line{display:grid;grid-template-columns:130px minmax(160px,1fr) 110px 110px 42px;gap:8px;align-items:end;margin:10px 0}
.supply-line label{font-size:11px}.live-stack .metric-grid{margin:0}.modal-body pre{white-space:pre-wrap;overflow-wrap:anywhere}
.native-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0 20px}.native-tabs .button[aria-pressed="true"]{background:var(--green-soft);color:var(--green)}
.form-section{margin:22px 0 10px}.state-warning{margin:0 0 16px;padding:12px;background:var(--amber-soft);border-radius:5px}
@media(max-width:760px){.live-connection{padding:10px 17px}.supply-line{grid-template-columns:1fr 1fr}.supply-line label:nth-child(2){grid-column:1/-1}.auth-panel{margin:3vh auto;padding:20px}.topbar-actions{gap:6px;flex-wrap:wrap}.topbar-actions .button{font-size:10px;padding:5px 8px}.table-wrap{max-height:52vh}.native-tabs{gap:6px}.live-actions{min-width:110px}}
@media(max-width:760px){
  .topbar{height:auto;min-height:66px;flex-direction:column;align-items:stretch;gap:10px;padding:12px 17px}
  .breadcrumb{flex-wrap:wrap;gap:7px;line-height:1.6}.breadcrumb span,.breadcrumb strong{white-space:nowrap}
  .topbar-actions{justify-content:flex-start}
}
.live-update-notice{margin:10px 28px;padding:12px 16px;border:1px solid #e8d09d;background:#fff7e9;border-radius:6px;display:flex;align-items:center;justify-content:space-between;gap:12px}.live-update-notice[hidden]{display:none}@media(max-width:600px){.live-update-notice{margin:10px 16px;flex-wrap:wrap}}#draft-conflict pre{max-height:240px;overflow:auto;white-space:pre-wrap;word-break:break-word}
