main { margin: 0 auto; max-width: 1230px; padding: 92px 26px 48px; }
.layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pane { padding: 22px; }
.pane h2 { margin: 0; font-size: 16px; }
.muted { color: #51637c; line-height: 1.6; font-size: 13px; margin: 9px 0 15px; }
.fixed, .split { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fixed { margin-top: 14px; font-size: 12px; color: #405475; }
.fixed strong { color: #7b5518; background: #fff2d9; border-radius: 5px; padding: 4px 8px; }
.file { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 600; margin: 14px 0; background: #f4f7fc; border: 1px dashed #aab9d0; padding: 14px; border-radius: 8px; }
.file span { font-weight: 400; color: #51637c; }
.template { color: #244fbd; font-size: 13px; }
.queue-count { margin: 19px 0 7px; color: #243e63; }
.queue-count strong { font-size: 30px; margin-right: 4px; }
.results { margin-top: 18px; }
.target-group { border: 1px solid #dce4ef; border-radius: 8px; margin-top: 12px; overflow: auto; }
.target-group table { width: 100%; min-width: 630px; }
.target-group th, .target-group td { padding: 10px 14px; text-align: left; overflow-wrap: anywhere; }
#results ul { line-height: 1.7; padding-left: 20px; }
#results > ul { color: #a02c32; }
#results summary { cursor: pointer; white-space: nowrap; }
:focus-visible { outline: 2px solid #315ccc; outline-offset: 2px; }
@media (max-width: 750px) { main { padding: 86px 14px 28px; } .layout { grid-template-columns: 1fr; } .pane { padding: 16px; } }
[hidden] { display: none !important; }
.signin-view { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: min(420px, 100%); padding: 34px; background: #fff; border: 1px solid #dce5f3; border-radius: 14px; box-shadow: 0 16px 50px #243e6312; }
.login-mark { margin-bottom: 16px; }
.login h1 { font-size: 20px; margin: 0 0 10px; }
.login p { color: #6f819a; line-height: 1.7; }
.login label { display: block; margin: 18px 0; }
.login input, .login button { width: 100%; min-height: 40px; margin-top: 8px; }
.login input:focus { outline: 2px solid #b5c9ff; }
.login #login-status { min-height: 24px; margin: 10px 0 0; }
.login #login-status[data-error="true"] { color: #a02c32; }
.actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.page-head { align-items: center; gap: 12px; }
.button-link { display: inline-flex; padding: 9px 13px; border: 1px solid #cfdaf2; border-radius: 7px; background: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.button-link:hover { background: #eef3ff; }
.upload-panel .file { margin-bottom: 8px; }
.upload-panel .file input::file-selector-button { margin-right: 12px; padding: 5px 9px; background: #eaf1ff; color: #264da8; border: 1px solid #cbdaf6; border-radius: 5px; cursor: pointer; }
.queue-header .muted { margin: 4px 0 0; }
.queue-current { margin: 16px 0 12px; padding: 10px 12px; border-radius: 7px; background: #f3f6fb; color: #475c7a; font-size: 13px; overflow-wrap: anywhere; }
.queue-current.is-active { background: #eaf1ff; color: #214da9; font-weight: 600; }
.queue-empty { text-align: center; padding: 22px 12px; }
.queue-table-wrap { border: 1px solid #e0e7f1; border-radius: 9px; overflow: auto; }
.queue-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.queue-table th { background: #f6f8fc; color: #506581; padding: 10px 12px; text-align: left; white-space: nowrap; }
.queue-table td { padding: 12px; border-top: 1px solid #e6ecf4; vertical-align: top; }
.queue-table td:first-child { width: 34%; min-width: 180px; overflow-wrap: anywhere; }
.queue-table td:last-child { white-space: nowrap; }
.queue-table small { display: block; margin-top: 4px; color: #5b6d87; line-height: 1.45; }
.queue-table details { margin-top: 5px; color: #385c9f; }
.queue-table summary { cursor: pointer; }
.queue-table ul { padding-left: 16px; margin: 4px 0 0; color: #506581; }
.queue-running { background: #f4f8ff; }
.status-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #edf1f7; color: #536783; }
.status-running { background: #dce9ff; color: #1d48a3; }
.status-waiting { background: #fff1d6; color: #795418; }
.status-confirmed { background: #e4f5eb; color: #266444; }
.status-attention { background: #fce9eb; color: #992e3b; }
.phase { display: grid; gap: 4px; min-width: 64px; }
.phase progress { width: 100%; max-width: 92px; height: 7px; accent-color: #315ccc; }
.phase-complete { color: #266444; font-weight: 600; }
@media (max-width: 630px) {
  .page-head { align-items: flex-start; flex-wrap: wrap; }
  .queue-table-wrap { border: 0; overflow: visible; }
  .queue-table, .queue-table tbody { display: block; }
  .queue-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .queue-table tr { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e0e7f1; border-radius: 8px; margin-bottom: 10px; padding: 6px; }
  .queue-table td { padding: 6px; border: 0; white-space: normal; }
  .queue-table td::before { content: attr(data-label); display: block; color: #536783; font-size: 11px; margin-bottom: 3px; }
  .queue-table td:first-child { width: 100%; min-width: 0; grid-column: 1 / -1; }
}
