@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;600;700&display=swap');

:root { --ink:#17233a; --muted:#63738e; --line:#dce4ef; --paper:#fff; --canvas:#f4f7fb; --blue:#2454dc; --danger:#b91c1c; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--canvas); font-family:"Fira Sans",system-ui,sans-serif; }
button,input { font:inherit; }
button { min-height:44px; cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.52; }
.topbar { min-height:60px; display:flex; align-items:center; justify-content:space-between; padding:0 max(20px,calc((100% - 1120px)/2)); border-bottom:1px solid var(--line); background:var(--paper); }
.topbar > div { display:flex; align-items:center; gap:10px; }
.topnav { display:flex; align-items:center; gap:16px; }.topnav a { color:#314765; font-size:13px; text-decoration:none; }.topnav a:hover { color:var(--blue); text-decoration:underline; }.topnav form { margin:0; }
.brand-mark { display:inline-grid; place-items:center; width:30px; height:30px; border-radius:8px; background:var(--blue); color:#fff; font-size:12px; font-weight:700; }
.topbar-sub { border-left:1px solid var(--line); padding-left:10px; color:var(--muted); font-size:14px; }
.ghost { min-height:auto; border:0; padding:6px; color:#314765; background:transparent; text-decoration:underline; }
.content { width:min(1120px,calc(100% - 40px)); margin:0 auto; padding:40px 0 72px; }
.intro { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:24px; }
.eyebrow { margin:0 0 7px; color:var(--blue); font-size:12px; font-weight:700; letter-spacing:0; }
h1 { margin:0; font-size:28px; }
.muted { margin:8px 0 0; color:var(--muted); }
.provider-state { flex:0 0 auto; display:flex; align-items:center; gap:7px; border:1px solid var(--line); border-radius:7px; padding:11px 13px; background:var(--paper); font-size:14px; }
.dot { width:8px; height:8px; border-radius:50%; background:#dc2626; }
.ready .dot { background:#16a34a; }
.store-grid { display:grid; gap:12px; }
.store-card,.create-panel,.empty { border:1px solid var(--line); border-radius:8px; background:var(--paper); box-shadow:0 2px 8px #1f29370b; }
.store-card { position:relative; display:grid; grid-template-columns:minmax(170px,1fr) minmax(220px,1.05fr) minmax(390px,1.55fr); align-items:center; gap:16px; padding:14px 16px; }
.store-identity h2,.create-panel h2 { margin:0; }
.store-identity { padding-right:150px; }.store-identity h2 { font-size:18px; }
.identity-view { position:relative; }.identity-view h2 { padding-right:26px; }.identity-view .icon-button { position:absolute; top:-5px; right:0; }.identity-edit { display:flex; align-items:center; gap:6px; }.identity-edit input { width:min(150px,42%); height:32px; padding:4px 7px; border:1px solid #cbd5e1; border-radius:5px; }.identity-edit .icon-button { flex:0 0 32px; }
.mono { color:#52657f; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:12px; }
.store-identity .mono { margin:3px 0 0; }
.disabled-label { display:inline-block; margin-top:6px; color:#9a6700; font-size:12px; font-weight:600; }
.store-summary { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.store-summary div { display:grid; gap:3px; min-width:0; }
.store-summary span { color:var(--muted); font-size:12px; }
.store-summary strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; font-weight:600; }
.store-actions { position:absolute; top:12px; right:58px; display:flex; align-items:center; gap:8px; }
.status-pill { padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700; }
.status-pill.neutral { background:#eef2f7; color:#526176; }.status-pill.warning { background:#fff7ed; color:#c2410c; }.status-pill.success { background:#ecfdf3; color:#15803d; }.status-pill.danger { background:#fef2f2; color:var(--danger); }
.card-actions { display:grid; grid-template-columns:44px 44px; gap:8px; width:auto; }.card-actions form { min-width:0; }
.card-tools { position:absolute; top:12px; right:14px; }.icon-button { display:inline-grid; place-items:center; width:40px; height:40px; min-height:40px; border:1px solid #9cafc9; border-radius:6px; padding:0; background:#fff; color:#314765; font-size:18px; line-height:1; }.icon-button:hover,.icon-button:focus-visible { border-color:var(--blue); color:var(--blue); }.rescue-on { border-color:var(--blue); background:var(--blue); color:#fff; }.rescue-off { color:#314765; }.enabled-toggle[aria-pressed="true"] { border-color:#86b99a; color:#15803d; background:#f0fdf4; }.settings-save { grid-column:2; grid-row:1; justify-self:end; }
.primary,.secondary,.danger-button { width:100%; border-radius:6px; padding:10px 12px; font-weight:700; }
.primary { border:1px solid var(--blue); background:var(--blue); color:#fff; }.secondary { border:1px solid #9cafc9; background:#fff; color:#243b5c; }.danger-button { border:1px solid #f0b3b3; background:#fff; color:var(--danger); }
.store-settings { grid-column:1 / -1; border-top:1px solid var(--line); padding-top:9px; }.store-settings summary { color:#3b526f; cursor:pointer; font-size:13px; font-weight:600; }
.detail-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:12px 0; }.detail-facts span { display:grid; gap:2px; color:var(--muted); font-size:12px; }.detail-facts b { color:var(--ink); font-size:13px; }
.create-panel { display:grid; grid-template-columns:minmax(220px,.7fr) 1.3fr; gap:28px; margin-top:32px; padding:24px; }.create-panel h2 { font-size:21px; }
.store-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.store-form label,.login-panel label,.delete-form label { display:grid; gap:5px; color:#334155; font-size:13px; font-weight:600; }
.store-form input,.login-panel input,.delete-form input { width:100%; height:40px; padding:7px 10px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; }.store-form > button { grid-column:1 / -1; max-width:220px; }
.password-field { position:relative; display:block; }.password-field input { padding-right:42px; }.password-toggle { position:absolute; top:0; right:0; width:40px; min-height:40px; border:0; padding:0; background:transparent; color:#52657f; cursor:pointer; }.password-toggle:hover,.password-toggle:focus-visible { color:var(--blue); }.eye-icon { display:inline-block; position:relative; width:17px; height:11px; border:1.7px solid currentColor; border-radius:75% 15%; transform:rotate(45deg); }.eye-icon::after { content:""; position:absolute; top:2px; left:4px; width:5px; height:5px; border-radius:50%; background:currentColor; }
.compact-form { border-top:1px solid var(--line); padding-top:12px; }.token-row { display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:10px; margin-top:12px; align-items:start; }.token-row output { min-height:44px; overflow-wrap:anywhere; padding:10px; border:1px solid var(--line); border-radius:6px; color:#3b526f; font-family:ui-monospace,monospace; font-size:12px; }
.delete-form { display:grid; grid-template-columns:minmax(220px,1fr) 180px; gap:12px; align-items:end; margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.empty { margin-bottom:16px; padding:40px; text-align:center; }.empty h2 { margin:0; }
.page-heading { display:flex; align-items:end; justify-content:space-between; margin-bottom:24px; }.log-panel,.user-list { border:1px solid var(--line); border-radius:8px; background:#fff; }.log-header,.log-row { display:grid; grid-template-columns:170px 120px 120px 180px minmax(0,1fr); gap:12px; align-items:center; padding:12px 16px; }.log-header { color:var(--muted); border-bottom:1px solid var(--line); font-size:12px; font-weight:700; }.log-row { border-bottom:1px solid #eef1f5; font-size:13px; }.log-row:last-child { border-bottom:0; }.log-row time { color:var(--muted); font-size:12px; }.log-row strong { font-size:13px; }.empty-copy { padding:24px; color:var(--muted); text-align:center; }.user-layout { display:grid; gap:20px; }.user-row { display:grid; grid-template-columns:160px minmax(0,1fr) 90px; gap:16px; align-items:center; padding:16px; border-bottom:1px solid #eef1f5; }.user-row:last-child { border-bottom:0; }.user-row > div { display:grid; gap:6px; }.role-badge { width:max-content; border-radius:999px; padding:3px 8px; background:#eef2f7; color:#526176; font-size:12px; }.user-edit { display:grid; grid-template-columns:1fr 1fr 130px 44px; gap:10px; align-items:end; }.user-edit label { display:grid; gap:5px; color:#334155; font-size:12px; font-weight:600; }.user-edit input,.user-edit select,.user-create select { width:100%; height:40px; padding:7px 10px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; }.small-button { min-height:40px; }.user-create { margin-top:0; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:20px; }.login-panel { width:min(420px,100%); padding:32px; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 10px 30px #1f293712; }.login-panel h1 { margin:16px 0 8px; }.login-panel form { display:grid; gap:14px; margin-top:24px; }.error { color:var(--danger); }
@media (max-width:960px) { .store-card { grid-template-columns:minmax(160px,1fr) minmax(300px,1.5fr); }.store-actions { position:absolute; top:12px; right:58px; }.detail-facts { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:680px) { .topbar { padding:0 20px; }.topnav { gap:8px; }.topnav a { font-size:12px; }.content { width:min(100% - 32px,1120px); padding-top:28px; }.intro { align-items:start; flex-direction:column; }.store-card { display:block; padding:16px; }.store-identity { padding-right:0; }.store-summary { margin:14px 0; }.store-actions { position:static; display:flex; justify-content:space-between; gap:8px; }.card-actions { grid-template-columns:44px 44px; }.store-settings { margin-top:14px; }.detail-facts,.store-form,.create-panel { grid-template-columns:1fr; }.create-panel { padding:20px; }.store-form > button { max-width:none; }.compact-form .settings-save { grid-column:1; grid-row:auto; justify-self:end; }.token-row,.delete-form { grid-template-columns:1fr; }.log-panel { overflow-x:auto; }.log-header,.log-row { min-width:680px; }.user-row { grid-template-columns:1fr; }.user-edit { grid-template-columns:1fr 1fr; }.user-edit .icon-button { grid-column:2; justify-self:end; }.topbar-sub { display:none; }.login-panel { padding:28px 24px; } }
