/* moreweb dash — dark, restrained; palette matches the auth login screen. */
@font-face{font-family:Poppins;font-weight:100;font-style:normal;font-display:swap;src:url(/fonts/poppins-100.woff2) format('woff2')}
@font-face{font-family:Poppins;font-weight:300;font-style:normal;font-display:swap;src:url(/fonts/poppins-300.woff2) format('woff2')}
@font-face{font-family:Poppins;font-weight:400;font-style:normal;font-display:swap;src:url(/fonts/poppins-400.woff2) format('woff2')}
@font-face{font-family:Poppins;font-weight:500;font-style:normal;font-display:swap;src:url(/fonts/poppins-500.woff2) format('woff2')}
@font-face{font-family:Poppins;font-weight:600;font-style:normal;font-display:swap;src:url(/fonts/poppins-600.woff2) format('woff2')}

:root{color-scheme:dark;--bg:#0a0a0c;--surface:#141417;--raised:#1a1a1f;--text:#eeeef0;--muted:#aaaab7;--accent:#d19ae8;--accent-ink:#250e2d;--line:#414149;--ok:#7ee2a8;--bad:#ff8a9a}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.6 Poppins,system-ui,sans-serif}
a{color:var(--accent);text-underline-offset:4px}
:focus-visible{outline:2px solid #e0a0ff;outline-offset:3px}
::selection{background:#793b96;color:#fff}
input,select,textarea,button{font:inherit;color:var(--text)}
input,select,textarea{background:var(--surface);border:1px solid var(--line);border-radius:5px;min-height:40px;padding:9px 12px}
input::placeholder,textarea::placeholder{color:#9d9daa}
label{display:block;margin:0 0 7px;font-weight:500;font-size:13px}
button{background:var(--accent);color:var(--accent-ink);border:1px solid var(--accent);border-radius:5px;font-weight:600;padding:9px 16px;min-height:40px;cursor:pointer}
button:hover{background:#e3b7f4}
button.ghost{background:var(--surface);border-color:var(--line);color:var(--text);font-weight:400}
button.ghost:hover{background:#232329}
button.danger{background:transparent;border-color:#72424b;color:var(--bad);font-weight:500}
button.danger:hover{background:#392329}
button:disabled{opacity:.55;cursor:default}

.noscript{padding:40px;max-width:40ch;margin:0 auto;color:var(--muted)}
.fatal{min-height:100svh;display:grid;place-items:center;padding:24px}
.fatal div{max-width:46ch;text-align:center}
.fatal h1{font-weight:400;font-size:26px;margin:0 0 10px}
.fatal p{color:var(--muted)}

.shell{display:grid;grid-template-columns:220px 1fr;min-height:100svh}
.side{border-right:1px solid #2d2d33;padding:28px 18px;display:flex;flex-direction:column;gap:26px;position:sticky;top:0;height:100svh}
.brand{font-size:22px;font-weight:100;letter-spacing:-.03em;text-decoration:none;color:var(--text);padding-left:12px}
.side nav{display:flex;flex-direction:column;gap:2px}
.side nav a{padding:9px 12px;border-radius:6px;text-decoration:none;color:var(--muted);font-weight:400}
.side nav a:hover{color:var(--text);background:var(--surface)}
.side nav a.active{color:var(--text);background:var(--surface);font-weight:500}
.who{margin-top:auto;font-size:12px;color:var(--muted)}
.who .email{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:6px}

main{padding:36px clamp(20px,5vw,64px);max-width:980px;width:100%}
h1{font-size:24px;font-weight:500;letter-spacing:-.02em;margin:0 0 4px}
.sub{color:var(--muted);margin:0 0 28px}
h2{font-size:15px;font-weight:600;margin:34px 0 12px;color:#d4d4db}
h2:first-of-type{margin-top:0}

.card{background:var(--surface);border:1px solid #2d2d33;border-radius:9px;padding:18px 20px;margin-bottom:14px}
.grid{display:grid;gap:14px}
.grid.cols2{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin-bottom:22px}
.stat .n{font-size:26px;font-weight:300}
.stat .l{font-size:12px;color:var(--muted)}

table{width:100%;border-collapse:collapse;font-size:13px}
th{color:var(--muted);font-weight:500;text-align:left;padding:7px 10px;border-bottom:1px solid #2d2d33;white-space:nowrap}
td{padding:9px 10px;border-bottom:1px solid #232329;vertical-align:top}
tr:last-child td{border-bottom:0}
.mono{font-family:ui-monospace,Menlo,monospace;font-size:12px}
.dim{color:var(--muted)}
.pill{display:inline-block;border:1px solid var(--line);border-radius:99px;padding:1px 10px;font-size:11px;color:var(--muted)}
.pill.on{border-color:#2e5945;color:var(--ok)}
.pill.off{border-color:#5c343d;color:var(--bad)}

form.stack{display:grid;gap:14px;max-width:520px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}
.row > *{flex:0 0 auto}
.row input,.row select{flex:1 1 180px}
textarea{width:100%;min-height:110px;resize:vertical}
.hint{font-size:12px;color:var(--muted);margin:6px 0 0}
.callout{background:#241a2b;border:1px solid #59396a;border-radius:8px;padding:14px 16px;margin:14px 0}
.callout .mono{word-break:break-all}
.error-box{background:#392329;border:1px solid #72424b;color:#ffc7ce;border-radius:6px;padding:11px 14px;margin:12px 0;font-size:13px}
pre{background:#101014;border:1px solid #2d2d33;border-radius:8px;padding:14px 16px;overflow:auto;font-size:12.5px;white-space:pre-wrap;word-break:break-word;min-height:52px;margin:0}
.actions{display:flex;gap:8px}
.copy-ok{color:var(--ok);font-size:12px}

.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:var(--raised);border:1px solid var(--line);border-radius:8px;padding:10px 18px;font-size:13px;box-shadow:0 8px 30px rgba(0,0,0,.5);z-index:50}
.toast.bad{border-color:#72424b;color:#ffc7ce}

@media(max-width:760px){
  .shell{grid-template-columns:1fr}
  .side{position:static;height:auto;border-right:0;border-bottom:1px solid #2d2d33;padding:18px}
  .side nav{flex-direction:row;overflow-x:auto}
  .who{margin-top:6px}
  main{padding:24px 16px 60px}
}

/* Boot loader: the dash's loading screen — the m and a spinner, black.
   Lives in #app so the first render (shell, fatal) replaces it; stays
   on screen through the OAuth bounce and the token exchange. */
.boot{position:fixed;inset:0;z-index:60;background:#000;display:grid;place-content:center;justify-items:center;gap:25px}
.boot .loader{width:20px;height:20px;border:1px solid rgba(255,255,255,0.15);border-top-color:#fff;border-radius:50%;animation:boot-spin .9s linear infinite;will-change:transform}
@keyframes boot-spin{to{transform:rotate(360deg)}}

/* Provider rows — the expandable list: icon tile, name, status right,
   opens into its configure forms. The tiles are the tab's signature
   element: dark inset squares with clearly legible marks; connection
   state rides on the tile border + the status dot. */
.prows{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.prow{border:1px solid var(--line);border-radius:8px;background:transparent}
.prow:hover{background:var(--surface)}
.prow[open]{background:var(--surface);border-color:#4a4a54}
.prow-head{display:flex;align-items:center;gap:12px;padding:10px 16px;cursor:pointer;list-style:none;min-width:0}
.prow-head::-webkit-details-marker{display:none}
.prow-id{display:flex;align-items:center;gap:12px;min-width:0}
.plogo{width:30px;height:30px;flex-shrink:0;background:#19191d;border:1px solid var(--line);border-radius:7px;display:grid;place-items:center;color:#c9c9d4;transition:border-color .15s ease}
.plogo svg{width:17px;height:17px}
.pname{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prow.on .plogo{border-color:#2e4a3a}
.chip{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 8px;flex-shrink:0}
.prow-status{margin-left:auto;color:var(--muted);font-size:13px;flex-shrink:0;white-space:nowrap}
.prow-status .mono{font-size:12.5px;color:#d4d4db}
.prow-status.on{color:#d4d4db}
.pdot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ok);margin-right:8px;vertical-align:1px}
.prow-note{margin-left:auto;color:var(--muted);font-size:12.5px;flex-shrink:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pchev{flex-shrink:0;color:var(--muted);transition:transform .15s ease}
.prow[open] .pchev{transform:rotate(90deg)}
.prow-body{padding:2px 16px 16px}
.pblurb{color:var(--muted);font-size:13px;max-width:64ch;margin:0 0 6px}
.pform{margin-top:10px}
.provider-search{margin-top:4px}
@media(max-width:760px){
  .prow-status,.prow-note{display:none}
  .prow.on .pname::after{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ok);margin-left:8px;vertical-align:2px}
}
