body{font-family:system-ui,sans-serif;margin:0;background:#f6f7f9}
nav{background:#1e293b;padding:.6rem 1rem;display:flex;align-items:center;gap:.15rem .65rem;flex-wrap:wrap}
nav a{color:#e2e8f0;text-decoration:none;font-weight:500;padding:.3rem .5rem;border-radius:4px;white-space:nowrap}
.nav-tail{margin-left:auto}
nav a:hover{background:#334155;color:#fff}
main{padding:1rem;max-width:1200px;margin:auto}
body.login{display:flex;flex-direction:column;align-items:center;padding-top:12vh;gap:1rem}
body.login form{display:flex;gap:.5rem}
.cards{display:flex;gap:1rem;margin:1rem 0;flex-wrap:wrap}
.card{background:#fff;border-radius:8px;padding:1rem 1.4rem;box-shadow:0 1px 3px #0002;min-width:140px}
.card b{font-size:1.8rem;display:block}
table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;margin-top:.5rem}
th,td{padding:.6rem .8rem;border-bottom:1px solid #e5e7eb;text-align:left;font-size:.88rem}
th{background:#f8fafc;color:#475569;font-weight:600}
form.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem;max-width:680px}
label{display:flex;flex-direction:column;font-size:.85rem;gap:.3rem;color:#334155;font-weight:500}
input,textarea,select{padding:.5rem;border:1px solid #cbd5e1;border-radius:6px;font-size:.88rem}
input:focus,textarea:focus{outline:none;border-color:#2563eb}
button{padding:.5rem 1rem;border:none;border-radius:6px;background:#2563eb;color:#fff;cursor:pointer;font-weight:500}
button:hover{opacity:.9}
.err{color:#dc2626}

.terminal{background:#0f172a;color:#38bdf8;padding:.9rem;border-radius:6px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.82rem;max-height:280px;overflow-y:auto;white-space:pre-wrap;margin-top:.6rem;border:1px solid #334155;line-height:1.45}
.badge{display:inline-block;padding:.2rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600}
.badge-active{background:#dcfce7;color:#166534}
.badge-warning{background:#fef9c3;color:#854d0e}
.badge-failed{background:#fee2e2;color:#991b1b}
.badge-running{background:#e0e7ff;color:#3730a3}
.pipeline{display:flex;gap:.5rem;align-items:center;margin:.8rem 0;flex-wrap:wrap}
.step{padding:.35rem .75rem;border-radius:6px;background:#e2e8f0;font-size:.8rem;color:#475569}
.step.active{background:#2563eb;color:#fff;font-weight:bold}
.step.done{background:#10b981;color:#fff}
.flex-between{display:flex;justify-content:space-between;align-items:center}
.panel{background:#fff;border-radius:8px;padding:1.2rem;box-shadow:0 1px 3px #0001;margin-bottom:1.5rem;border:1px solid #e2e8f0}

.subscription-page{color:#263445}
.subscription-page h1{font-size:1.4rem;margin:.25rem 0 .5rem}
.subscription-page h2,.sub-dialog h2{font-size:1rem;margin:0;line-height:1.6}
.sub-heading,.sub-section-heading{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}
.sub-section{padding:1rem 0;border-bottom:1px solid #dce1e8}
.sub-section-heading{margin-bottom:.75rem}
.sub-settings{max-width:680px;margin-top:.65rem}
.sub-checkbox{display:flex;flex-direction:row;align-items:center;gap:.5rem;margin-bottom:.7rem;width:fit-content}
.sub-checkbox input{width:1.1rem;height:1.1rem;margin:0;accent-color:#2563eb}
.sub-filter-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;align-items:end}
.sub-filter-row input{min-width:0;width:100%;box-sizing:border-box}
.sub-command{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:2.25rem;white-space:nowrap}
.sub-icon{width:18px;height:18px;flex:none}
.sub-secondary{background:#e6ebf1;color:#263445;border:1px solid #cbd5e1}
.sub-icon-button{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;box-sizing:border-box;border-radius:6px;padding:0;text-decoration:none;flex:none}
.sub-command:focus-visible,.sub-icon-button:focus-visible,.sub-dialog button:focus-visible,.sub-checkbox input:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.sub-command:disabled,.sub-icon-button:disabled{opacity:.5;cursor:default}
.sub-url-label{margin:.65rem 0 .3rem}
.sub-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:.4rem;align-items:center}
.sub-url-row input{min-width:0;width:100%;box-sizing:border-box;background:#fff;color:#263445;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.sub-copy-feedback{min-height:1.2rem;margin:.5rem 0 0;color:#166534;font-size:.82rem}
.sub-copy-feedback.err{color:#dc2626}
.sub-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem 1.5rem;margin:.7rem 0 1rem}
.sub-status-grid div{min-width:0}
.sub-status-grid dt,.sub-last-error>span{font-size:.82rem;color:#5b6573}
.sub-status-grid dd{font-size:.9rem;margin:.25rem 0 0;overflow-wrap:anywhere}
.sub-status-grid code{font-size:.82rem}
.sub-status-error{color:#854d0e;font-size:.88rem;overflow-wrap:anywhere}
.sub-last-error p{font-size:.88rem;margin:.3rem 0 0;overflow-wrap:anywhere}
.sub-skipped-list{margin:.2rem 0 .8rem;padding-left:1.1rem;font-size:.84rem;color:#854d0e}
.sub-skipped-list li{margin:.2rem 0;overflow-wrap:anywhere}
.sub-message{font-size:.88rem;margin:.65rem 0;overflow-wrap:anywhere}
.sub-notice{color:#166534}
.sub-dialog{max-width:calc(100% - 3rem);width:340px;box-sizing:border-box;padding:1.2rem;border:1px solid #cbd5e1;border-radius:8px;color:#263445}
.sub-dialog::backdrop{background:#0006}
.sub-dialog p{font-size:.9rem;line-height:1.6}
.sub-dialog-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.2rem;flex-wrap:wrap}
@media(max-width:700px){.nav-tail{margin-left:0}}
@media(max-width:540px){.sub-status-grid{grid-template-columns:minmax(0,1fr)}.sub-section-heading h2{font-size:.95rem}}
