:root{color:#18202f;background:#f5f7fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{border:0;background:#145ea8;color:#fff;min-height:36px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:6px;cursor:pointer}button:disabled{opacity:.65;cursor:default}input{width:100%;min-height:38px;border:1px solid #cbd5e1;border-radius:6px;padding:8px 10px;background:#fff;color:#172033}input[type=checkbox]{width:auto;min-height:auto}label{display:grid;gap:6px;font-size:13px;font-weight:700}.shell-loading{min-height:100vh;display:grid;place-items:center;color:#536072}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:#eef4f8}.login-panel{width:min(390px,100%);display:grid;gap:16px;background:#fff;border:1px solid #d9e1ea;border-radius:8px;padding:24px;box-shadow:0 18px 50px #1928461f}.login-heading{display:flex;gap:12px;align-items:center;margin-bottom:4px}.login-heading h1{margin:0;font-size:20px}.login-heading p{margin:2px 0 0;color:#64748b}.inline-error{display:flex;align-items:center;gap:8px;color:#b42318;background:#fff1f0;border:1px solid #ffd1cc;border-radius:6px;padding:8px 10px}.app-shell{min-height:100vh}.topbar{height:72px;padding:0 28px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #dce4ee;background:#fff}.topbar h1{margin:0;font-size:20px}.topbar p{margin:4px 0 0;color:#667085}.topbar-actions{display:flex;align-items:center;gap:8px}.topbar-nav{margin-left:auto;display:flex;gap:8px;align-items:center}.nav-button{background:#fff;color:#31506f;border:1px solid #d5e1ec}.nav-button.active{background:#145ea8;color:#fff;border-color:#145ea8}.icon-button{width:38px;padding:0;background:#e8f1f9;color:#124e86}.maintenance-toggle{min-height:38px;display:grid;grid-template-columns:auto auto auto;align-items:center;gap:8px;padding:0 10px;border:1px solid #d5e1ec;border-radius:6px;background:#fff;color:#31506f;font-size:13px;font-weight:800}.maintenance-toggle input{accent-color:#145ea8}.maintenance-toggle small{color:#667085;font-weight:800}.maintenance-toggle.enabled{border-color:#fdba74;background:#fff7ed;color:#9a3412}.maintenance-toggle.enabled input{accent-color:#ea580c}.maintenance-toggle.enabled small{color:#c2410c}.workspace{min-height:calc(100vh - 72px);display:grid;grid-template-columns:var(--template-sidebar-width, 390px) 12px minmax(0,1fr)}.template-list{background:#f9fbfd;padding:18px;display:grid;align-content:start;justify-items:stretch;gap:10px;min-width:0}.sidebar-resize-handle{width:12px;min-height:0;height:100%;padding:0;align-self:stretch;background:#f5f8fc;border-left:1px solid #dce4ee;border-right:1px solid #dce4ee;border-radius:0;cursor:col-resize}.sidebar-resize-handle:before{content:"";width:2px;height:44px;border-radius:999px;background:#c7d4e4}.sidebar-resize-handle:hover,.sidebar-resize-handle:focus-visible{background:#e8f1f9}.sidebar-resize-handle:hover:before,.sidebar-resize-handle:focus-visible:before{background:#145ea8}.section-heading{display:flex;gap:9px;align-items:center;margin-bottom:8px}.section-heading h2{margin:0;font-size:16px}.section-heading p{margin:4px 0 0;color:#64748b}.section-heading.split{justify-content:space-between;align-items:start}.template-row{width:100%;min-height:54px;display:grid;justify-items:start;justify-content:stretch;align-content:center;gap:4px;background:transparent;color:#223047;border:1px solid transparent;border-radius:6px;padding:8px 10px;text-align:left}.template-row span,.template-row small{width:100%;min-width:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.template-row small,.table-row small{display:block;color:#718096}.template-row.active{background:#fff;border-color:#b7cbe3;color:#124e86}.detail-area,.page-area{padding:18px 22px 32px;display:grid;gap:16px;align-content:start}.page-title-panel .section-heading,.template-summary-panel .section-heading{margin-bottom:0}.panel{background:#fff;border:1px solid #dce4ee;border-radius:8px;padding:18px}.field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.status-line{margin:14px 0 0;color:#14532d}.table{display:grid;border:1px solid #e2e8f0;border-radius:6px;overflow:hidden}.client-create{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;align-items:end;gap:12px;margin-bottom:14px}.table-head,.table-row{display:grid;grid-template-columns:1.4fr 1.3fr 1fr auto;gap:12px;align-items:center;padding:10px 12px}.client-table .table-head,.client-table .table-row{grid-template-columns:minmax(180px,.8fr) minmax(300px,1.8fr) minmax(130px,.6fr) minmax(120px,.6fr) auto;min-width:980px}.client-table{overflow-x:auto}.audit-table .table-head,.audit-table .table-row{grid-template-columns:1.2fr 1fr 1.2fr .7fr .6fr}.table-head{background:#f1f5f9;color:#475569;font-size:12px;font-weight:800;text-transform:uppercase}.table-row{border-top:1px solid #e2e8f0}.compact{min-height:32px;padding:0 10px;background:#ecfdf3;color:#027a48}.compact.danger{background:#fff1f0;color:#b42318}.row-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.template-access-list{display:flex;flex-wrap:wrap;gap:8px}.template-access-toggle{width:min(210px,100%);min-height:32px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;border:1px solid #d7e3ef;border-radius:6px;background:#f8fafc;padding:6px 8px;font-weight:700}.template-access-toggle span{min-width:0;overflow-wrap:anywhere}.secret-once{margin-top:12px;display:grid;gap:8px;border:1px solid #fedf89;background:#fffaeb;border-radius:6px;padding:12px}.secret-once code{white-space:normal;word-break:break-all}.success{color:#027a48;font-weight:700}.failure{color:#b42318;font-weight:700}.empty-state{padding:16px;color:#64748b}@media(max-width:820px){.topbar{height:auto;min-height:72px;gap:12px;padding:16px;flex-wrap:wrap;align-items:flex-start}.topbar-nav{width:100%;margin-left:0;order:3}.topbar-actions{margin-left:auto}.nav-button{flex:1}.workspace{grid-template-columns:1fr}.template-list{border-right:0;border-bottom:1px solid #dce4ee}.sidebar-resize-handle,.table-head{display:none}.table-row,.audit-table .table-row{grid-template-columns:1fr}.client-table .table-row{grid-template-columns:1fr;min-width:0}.client-create{grid-template-columns:1fr}}
