/* Shared Mint console. Inter is served locally by the existing application. */
:root{color-scheme:light;--ink:#202923;--muted:#646d67;--accent:#216845;--accent-hover:#185236;--line:#acb7af;--border:#e2e7e3;--surface:#fff;--soft:#f5f7f5;--focus:#21684522;--error:#ad2929;--error-bg:#fff4f3;--success:#216845;--success-bg:#ecf6ef}
html{background:#f8faf8;scroll-padding-top:24px}body{background:#f8faf8;color:var(--ink);font-family:Inter,Arial,sans-serif;font-size:14px;line-height:1.6}a{color:var(--accent)}
.sidebar{position:fixed;inset:0 auto 0 0;width:224px;padding:28px 18px 20px;border-right:1px solid var(--border);background:#fff;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink);padding:0 10px;font-size:29px;font-weight:700;letter-spacing:-1.5px;line-height:1}.brand-dot{color:#348b59}.brand-mark{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background:#263c2d;color:#e6f2cc;border-radius:9px}.brand-mark svg{width:21px;height:21px}.brand-label{font-size:9px;font-weight:600;letter-spacing:1px;color:var(--muted);margin:5px 0 0 3px}.workspace-label{display:flex;align-items:center;gap:10px;padding:15px 10px;margin:29px 0 28px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:12px;font-weight:600;line-height:1.4}.workspace-label small{font-size:11px;font-weight:400;margin:4px 0 0}.workspace-avatar{display:grid;place-items:center;width:29px;height:29px;border:1px solid #dfe5d8;background:#f1f4ed;border-radius:7px;color:#536049}.nav-label{font-size:10px;font-weight:600;letter-spacing:1.2px;color:#747d77;margin:0 12px 10px}.sidebar .mode-nav{display:flex;flex-direction:column;gap:5px;margin:0}.sidebar .mode-nav a{display:flex;align-items:center;gap:11px;min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:7px;font-size:13px;font-weight:500;color:#616b64;background:transparent;box-shadow:none;text-decoration:none;transition:background .15s,color .15s}.sidebar .mode-nav a svg{width:18px;height:18px;flex-shrink:0}.sidebar .mode-nav a:hover{background:#f6f8f6;color:var(--ink)}.sidebar .mode-nav a[aria-current=page]{background:#eef5ee;color:#27643e;border-color:#e0ebdf;font-weight:600}.sidebar-footer{margin-top:auto;padding:18px 12px 0;border-top:1px solid var(--border)}.sidebar-footer a{display:flex;justify-content:space-between;align-items:center;min-height:32px;font-size:12px;font-weight:500;color:#59655d;text-decoration:none}.sidebar-footer p{font-size:10px;color:#6e7971;margin:12px 0 0}
.console-topbar{height:65px;margin-left:224px;padding:0 clamp(24px,3vw,48px);display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid var(--border);font-size:12px;font-weight:500}.console-topbar>div{display:flex;gap:16px;align-items:center}.breadcrumb-workspace{color:var(--muted)}.breadcrumb-divider{color:#bcc4be;font-weight:400}.environment-label{display:flex;gap:7px;align-items:center;color:#586c5d;font-size:11px;border:1px solid var(--border);border-radius:5px;padding:4px 8px;background:#fbfcfb}.environment-label>span{height:5px;width:5px;border-radius:50%;background:#479a60}
main{width:auto;max-width:1680px;margin-left:224px;padding:36px clamp(24px,3vw,48px) 48px;min-height:calc(100dvh - 65px)}.page-header{position:relative;padding-bottom:28px;margin:0}.page-header .eyebrow{font-size:10px;font-weight:600;letter-spacing:1.4px;margin:0 0 9px;color:#6d786f;text-transform:uppercase}h1{font-size:clamp(25px,2.5vw,31px);letter-spacing:-1px;font-weight:650;line-height:1.25;margin:0 0 9px;padding-right:210px}.page-header>p:last-child{font-size:13px;margin:0;max-width:680px;color:var(--muted)}.endpoint-badge{position:absolute;right:0;top:26px;padding:5px 9px;border:1px solid var(--border);background:#fff;border-radius:6px;font:11px/1.6 Consolas,monospace;color:#657067}.endpoint-badge b{font-size:9px;color:var(--accent);margin-right:7px}.workspace{grid-template-columns:minmax(0,1fr) minmax(0,.96fr);gap:24px;align-items:start}form,section{min-width:0;padding:24px;border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:0 2px 4px #17291e03}h2{font-size:15px;font-weight:650;letter-spacing:-.25px}.section-heading{min-height:24px;margin-bottom:22px;gap:12px}.chip,.status-chip{font-size:10px;font-weight:500;padding:3px 8px;border-radius:5px;border:1px solid var(--border);background:#f7f9f7;color:#657067;line-height:1.7;white-space:nowrap}
.field{margin-bottom:19px}.row{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:16px}.admin-field{padding:14px;background:#f8faf8;border:1px solid var(--border);border-radius:7px;display:block}.admin-field label{white-space:normal}.admin-field input{max-width:100%;width:100%;background:white}label{font-size:12px;font-weight:600;line-height:1.5;margin-bottom:7px;color:#34433a}input,select,textarea{border:1px solid var(--line);border-radius:6px;min-height:41px;padding:9px 11px;font-size:13px;color:#283b2e;background:#fff;box-shadow:0 1px 2px #162b1b03;line-height:1.55}input[type=password]{letter-spacing:.2px}textarea{font:12px/1.7 Consolas,'Liberation Mono',monospace;overflow-wrap:anywhere}input::placeholder,textarea::placeholder{color:#738077}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus)}small{font-size:11px;line-height:1.6;margin-top:6px;color:#657168}.note{font-size:11px;line-height:1.7;padding:12px 14px;background:#f4f8f2;border:1px solid #e2ebdf;color:#55704d;border-radius:6px;margin:0 0 20px}.optional{font-size:11px;color:#707c74;font-weight:400}button{min-height:41px;border:1px solid var(--accent);border-radius:6px;padding:9px 16px;font:500 12px/1.6 Inter,Arial,sans-serif;background:var(--accent);color:white;box-shadow:0 1px 2px #153d2312;transition:background .15s,border-color .15s;touch-action:manipulation}button:hover{background:var(--accent-hover);border-color:var(--accent-hover)}button.secondary{color:#536057;background:white;border-color:var(--line);box-shadow:none}button.secondary:hover{background:#f5f8f5;border-color:#88978c}.actions{gap:9px;display:flex;flex-wrap:wrap}.actions button:first-child[type=submit]{min-width:144px}button:disabled{opacity:.5;cursor:not-allowed}#status,#file-status{min-height:21px;margin:14px 0 0;font-size:11px;color:#66746b}#status[data-error=true],.error{color:var(--error)}.error-summary{font-size:12px;background:var(--error-bg);border-radius:7px}.error-summary a{color:var(--error)}
#result-panel{position:sticky;top:24px;padding:24px}#result-description{font-size:12px;line-height:1.8;margin-bottom:20px}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 24px;padding:13px 0;border:1px solid var(--border);background:#fafbfa;border-radius:7px}.metrics>div,.metric{padding:0 13px;border:0;border-right:1px solid var(--border);border-radius:0;background:none;display:block;min-width:0}.metrics>div:last-child{border-right:0}.metrics dt{font-size:10px;color:#69776e;line-height:1.5}.metrics dd{font-size:14px;font-weight:600;line-height:1.7;margin:5px 0 0;color:#38483e;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}textarea[readonly]{background:#f8faf8;border-color:#d8e1da;box-shadow:none;color:#45604e}#token{margin-bottom:13px;height:214px}#output{height:340px;background:#f8faf8;color:#354a3c;border:1px solid #d8e1da;border-radius:6px;padding:14px;font-size:12px}#file-content{height:300px}#response-json{height:300px}#token-panel{margin-bottom:22px}#token-panel textarea{height:180px}.file-viewer{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}details{margin-top:18px}summary{min-height:36px;cursor:pointer;font-size:12px;font-weight:600;color:#5b6d60}details>button{margin-top:10px}#used-hash{font-size:12px}.file-label{margin-top:13px}.json-key{color:#216845}.json-string{color:#556e98}.json-number{color:#8a5a3b}#result-panel[data-state=done] .chip,#result-panel[data-state=done] .status-chip{color:#216845;background:#edf6ed;border-color:#d8e9d8}#result-panel[data-state=error] .chip,#result-panel[data-state=error] .status-chip{color:var(--error);background:var(--error-bg)}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.skip-link{position:fixed;left:240px;top:-60px;background:var(--accent);color:white;padding:8px 16px;z-index:30;border-radius:6px}.skip-link:focus{top:12px}[hidden]{display:none!important}
@media(min-width:1900px){main{margin-right:auto}.console-topbar{padding-right:48px}}
@media(max-width:1150px){.sidebar{width:196px;padding-left:12px;padding-right:12px}.console-topbar,main{margin-left:196px}.brand{font-size:27px}.brand-label{font-size:8px}.workspace{gap:18px}form,section,#result-panel{padding:20px}.endpoint-badge{position:static;display:inline-block;float:right;margin-bottom:12px}.page-header h1{padding-right:0;clear:both}.page-header .eyebrow{padding-top:6px}.row{grid-template-columns:1fr;gap:0}.metrics>div{padding:0 9px}}
@media(max-width:950px){.workspace{grid-template-columns:minmax(0,1fr)}#result-panel{position:static}.row{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px}.page-header>p:last-child{max-width:560px}}
@media(max-width:700px){.sidebar{position:static;width:100%;padding:16px 16px 0;border-right:0;border-bottom:1px solid var(--border);display:block}.brand{padding:0;font-size:25px}.brand-mark{height:28px;width:28px}.brand-label{font-size:9px}.workspace-label,.nav-label,.sidebar-footer{display:none}.sidebar .mode-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:16px 0 12px}.sidebar .mode-nav a{min-height:44px;justify-content:center;gap:7px;font-size:11px;padding:8px 5px;white-space:nowrap}.sidebar .mode-nav a svg{width:15px;height:15px}.console-topbar{height:46px;margin:0;padding:0 18px;font-size:11px}.console-topbar>div{gap:12px}.environment-label{padding:2px 6px;font-size:10px}main{margin:0;padding:24px 16px 32px;min-height:0}.page-header{padding-bottom:22px}.page-header h1{font-size:27px}.page-header>p:last-child{font-size:12px;line-height:1.8}.endpoint-badge{font-size:10px;margin:0}.page-header .eyebrow{font-size:9px;margin-bottom:10px}form,section,#result-panel{padding:20px 16px}.row{grid-template-columns:minmax(0,1fr);gap:0}.field{margin-bottom:20px}label{font-size:12px}input,textarea,select{font-size:16px;min-height:44px}textarea{font-size:14px}button{min-height:44px;font-size:12px}.actions{flex-direction:row}.actions button{width:auto;flex:1}.metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:12px 0}.metrics>div{display:block;padding:0 9px}.metrics dt{font-size:9px}.metrics dd{font-size:12px;margin-top:5px}.skip-link{left:16px}.admin-field{padding:12px}#download{width:100%}.input-action{flex-direction:column}.note{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.topbar-actions{display:flex;align-items:center;gap:14px}.theme-toggle{display:grid;place-items:center;width:34px;min-height:34px;padding:7px;background:transparent;border:1px solid transparent;color:#66776c;box-shadow:none;border-radius:6px}.theme-toggle:hover{background:#f2f6f2;border-color:#dfe7df;color:#263e2e}.theme-toggle svg{width:18px;height:18px}.theme-sun{display:none}[data-theme=dark] .theme-sun{display:block}[data-theme=dark] .theme-moon{display:none}
html[data-theme=dark]{color-scheme:dark;background:#101512;--ink:#e5ece6;--muted:#a0afa4;--accent:#a9d8ac;--accent-hover:#bce6bf;--line:#536159;--border:#303c34;--surface:#19201b;--soft:#202923;--focus:#a9d8ac25;--error:#ffa49c;--error-bg:#352320;--success:#aedbb3;--success-bg:#233729}
[data-theme=dark] body{background:#101512;color:var(--ink)}[data-theme=dark] .sidebar,[data-theme=dark] .console-topbar{background:#161d18;border-color:#303c34}[data-theme=dark] .brand{color:#e4ece4}[data-theme=dark] .brand-mark{background:#b7dca8;color:#263a2b}[data-theme=dark] .brand-dot{color:#a9d8ac}[data-theme=dark] .brand-label,[data-theme=dark] .nav-label{color:#a4b3a8}[data-theme=dark] .workspace-label{color:#d8e3da}[data-theme=dark] .workspace-avatar{background:#253127;border-color:#405042;color:#c7d4c4}[data-theme=dark] .sidebar .mode-nav a{color:#aebcb2}[data-theme=dark] .sidebar .mode-nav a:hover{background:#232e26;color:#e6ede7}[data-theme=dark] .sidebar .mode-nav a[aria-current=page]{background:#2a3a2c;border-color:#3c523d;color:#c5e2be}[data-theme=dark] .sidebar-footer a,[data-theme=dark] .sidebar-footer p{color:#a0b0a5}[data-theme=dark] .environment-label{background:#202b23;border-color:#37463b;color:#c2d5c6}[data-theme=dark] .environment-label>span{background:#abd3a8}[data-theme=dark] .theme-toggle{color:#c4d4c7}[data-theme=dark] .theme-toggle:hover{background:#2a362d;border-color:#48594b}[data-theme=dark] .page-header .eyebrow{color:#a0b2a5}[data-theme=dark] .endpoint-badge{background:#1c251f;border-color:#36473b;color:#b1c1b6}
[data-theme=dark] form,[data-theme=dark] section,[data-theme=dark] #result-panel{background:#19211c;border-color:#303f35;box-shadow:0 2px 4px #00000012}[data-theme=dark] label{color:#cfddd3}[data-theme=dark] small,[data-theme=dark] #status,[data-theme=dark] #file-status{color:#a4b6aa}[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#131b16;color:#d7e5da;border-color:#53685a;box-shadow:none}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#9cb0a2}[data-theme=dark] .admin-field{background:#202b23;border-color:#3a493e}[data-theme=dark] .admin-field input{background:#151f18}[data-theme=dark] .optional{color:#a9b9ae}[data-theme=dark] .note{background:#263429;border-color:#3f5542;color:#bad0b8}[data-theme=dark] button{color:#1b3021;background:#a9d8ac;border-color:#a9d8ac}[data-theme=dark] button:hover{background:#c3e7c4;border-color:#c3e7c4}[data-theme=dark] button.secondary{background:#1b261f;color:#c3d5c8;border-color:#52685a}[data-theme=dark] button.secondary:hover{background:#2a3b2e;border-color:#728777}[data-theme=dark] button.theme-toggle{background:transparent;color:#c4d4c7;border-color:transparent}[data-theme=dark] button.theme-toggle:hover{background:#2a362d;border-color:#48594b}
[data-theme=dark] .chip,[data-theme=dark] .status-chip{background:#243129;border-color:#405247;color:#c0d1c5}[data-theme=dark] .metrics{background:#1e2a22;border-color:#3a4a3f}[data-theme=dark] .metrics>div{border-color:#3a4a3f}[data-theme=dark] .metrics dt{color:#b1c3b6}[data-theme=dark] .metrics dd{color:#d0e1d4}[data-theme=dark] textarea[readonly],[data-theme=dark] #output{background:#111b15;color:#bdcfc1;border-color:#3d5444}[data-theme=dark] summary{color:#c0d3c5}[data-theme=dark] .file-viewer{border-color:#35493c}[data-theme=dark] #result-panel[data-state=done] .chip,[data-theme=dark] #result-panel[data-state=done] .status-chip{background:#2b4230;border-color:#4e6b53;color:#c3e6c1}[data-theme=dark] .error,[data-theme=dark] #status[data-error=true]{color:#ffaaa3}[data-theme=dark] .json-key{color:#b0d8b7}[data-theme=dark] .json-string{color:#a6c5ed}[data-theme=dark] .json-number{color:#e9c295}[data-theme=dark] [aria-invalid=true]{border-color:#ffaaa3}
@media(max-width:700px){.theme-toggle{width:44px;min-height:44px}.topbar-actions{gap:7px}.console-topbar>div.topbar-actions{gap:7px}}

/* Readable controls and restrained interaction states, shared by every page. */
@media(max-width:700px){.sidebar .mode-nav{grid-template-columns:repeat(2,minmax(0,1fr));}}
:root {
  --control-focus: #536f5b;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23606e64' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
html[data-theme=dark] {
  --control-focus: #b3c9ba;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b7c8bc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
body { font-size:16px; line-height:1.6; }
.sidebar .mode-nav a { font-size:14px; }
.workspace-label { font-size:13px; }
.workspace-label small,.sidebar-footer a,.sidebar-footer p { font-size:12px; }
.console-topbar { font-size:13px; }
.page-header { padding-bottom:28px; }
.page-header h1 { font-size:32px; letter-spacing:-.8px; }
.page-header>p:last-child { font-size:15px; line-height:1.65; }
.endpoint-badge { top:4px; font-size:12px; }
.endpoint-badge b { font-size:11px; }
h2 { font-size:18px; }
.chip,.status-chip { font-size:12px; }
label { font-size:14px; line-height:1.5; }
input,select { min-height:44px; font-size:15px; line-height:1.6; }
textarea,#used-hash,#output { font-size:14px; line-height:1.7; }
small,.optional,.note,#status,#file-status { font-size:12px; line-height:1.65; }
#result-description { font-size:14px; }
button { min-height:44px; font-size:14px; font-weight:500; }
.metrics dt { font-size:12px; }
.metrics dd { font-size:16px; }
.error-summary { font-size:14px; }
.field { margin-bottom:22px; }
input,textarea,select,button,.sidebar .mode-nav a { transition:border-color .12s,color .12s; }
input:focus,textarea:focus,select:focus {
  border-color:var(--control-focus);
  box-shadow:none;
}
:focus-visible { outline:1px solid var(--control-focus); outline-offset:2px; }
input:focus-visible,textarea:focus-visible,select:focus-visible { outline-offset:0; }
:focus:not(:focus-visible) { outline:none; }
input,textarea,select { box-shadow:none; }
select,[data-theme=dark] select {
  appearance:none;
  -webkit-appearance:none;
  background-image:var(--select-arrow);
  background-repeat:no-repeat;
  background-position:right 13px center;
  background-size:16px 16px;
  padding-right:42px;
  cursor:pointer;
}
select:disabled { cursor:not-allowed; opacity:.65; }
summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  padding:8px 0;
  list-style:none;
  font-size:14px;
}
summary::-webkit-details-marker { display:none; }
summary::after {
  content:"";
  width:16px;
  height:16px;
  flex-shrink:0;
  background:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
details[open]>summary::after { transform:rotate(180deg); }
.admin-key-row { position:relative; }
.admin-key-row input { padding-right:68px; }
button.key-visibility,[data-theme=dark] button.key-visibility {
  position:absolute;
  right:1px;
  top:1px;
  bottom:1px;
  min-height:42px;
  min-width:60px;
  padding:0 12px;
  border:0;
  border-left:1px solid var(--border);
  border-radius:0 5px 5px 0;
  box-shadow:none;
  background:transparent;
  color:var(--muted);
  font-size:12px;
}
button.key-visibility:hover,[data-theme=dark] button.key-visibility:hover {
  background:var(--soft);
  color:var(--ink);
}
.admin-key-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:7px; }
#admin-key-storage { font-size:12px; line-height:1.5; color:var(--muted); }
button.link-button,[data-theme=dark] button.link-button {
  min-height:28px;
  padding:3px 0 3px 10px;
  border:0;
  box-shadow:none;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  text-decoration:underline;
  text-underline-offset:3px;
}
button.link-button:hover,[data-theme=dark] button.link-button:hover { background:transparent; color:var(--ink); }
.admin-key-meta .link-button:disabled { visibility:hidden; }
input[aria-invalid=true],textarea[aria-invalid=true],select[aria-invalid=true] { border-color:var(--error); }
@media(max-width:1150px) {
  .endpoint-badge { float:none; margin:0 0 12px; }
  .page-header h1 { clear:none; }
  .page-header .endpoint-badge+h1 { margin-top:0; }
}
@media(max-width:700px) {
  body { font-size:16px; }
  .sidebar .mode-nav a { font-size:12px; gap:6px; }
  .sidebar .mode-nav a svg { width:16px; height:16px; }
  .console-topbar { font-size:12px; }
  .page-header h1 { font-size:29px; }
  .page-header>p:last-child { font-size:14px; }
  h2 { font-size:17px; }
  label { font-size:14px; }
  input,select,textarea { font-size:16px; }
  .metrics dt { font-size:11px; }
  .metrics dd { font-size:14px; }
  button { font-size:14px; min-height:44px; }
  .endpoint-badge { font-size:11px; }
  .admin-key-meta { align-items:center; }
  button.link-button { min-height:32px; }
}
