rosdiff / api /static /app /app.css
Chandrakiran-08
Deploy to HF Spaces
8501103
Raw History Blame Contribute Delete
26.8 kB
/* RosDiff web app: calm, Cursor-like workspace. Tokens first; everything else uses them. */
:root {
--bg: #f7f7f8;
--panel: #ffffff;
--panel-2: #f2f2f4;
--border: #e4e4e8;
--text: #17171c;
--muted: #6b6b76;
--accent: #5b5cf6;
--brand-grad: linear-gradient(135deg, #1fa2ff 0%, #4f5bff 45%, #9b6cff 100%);
--accent-soft: #efedff;
--accent-text: #ffffff;
--ok: #178a4f;
--ok-soft: #e6f5ed;
--warn: #9a6200;
--warn-soft: #fdf3e1;
--bad: #c9352b;
--bad-soft: #fcebea;
--sim: #0f8f86;
--sim-soft: #e2f5f3;
--code: #6d5efc;
--code-soft: #efedff;
--code-bg: #fbfbfc;
--shadow: 0 1px 2px rgb(0 0 0 / 5%), 0 8px 24px rgb(0 0 0 / 6%);
--radius: 12px;
--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
--mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
--hl-key: #7b3fe4;
--hl-str: #16794a;
--hl-com: #8a8a94;
--hl-num: #b45309;
--hl-tag: #0e7490;
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #0e0e11;
--panel: #16161a;
--panel-2: #1d1d22;
--border: #2a2a31;
--text: #ececf1;
--muted: #9a9aa6;
--accent: #7c83ff;
--accent-soft: #25224a;
--accent-text: #0e0e11;
--ok: #4cc38a;
--ok-soft: #13291f;
--warn: #e0a84a;
--warn-soft: #2d2413;
--bad: #f07167;
--bad-soft: #321817;
--sim: #3cc8bd;
--sim-soft: #10292a;
--code: #8b80ff;
--code-soft: #25224a;
--code-bg: #121216;
--shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
--hl-key: #c4a5ff;
--hl-str: #7ee0a8;
--hl-com: #6f6f7a;
--hl-num: #f5b15c;
--hl-tag: #67d4e8;
color-scheme: dark;
}
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font: 15px/1.5 var(--font);
-webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
code, pre, textarea.mono { font-family: var(--mono); }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* ---------- brand, buttons, inputs ---------- */
.brand { display: flex; align-items: center; gap: 8px; font-weight: 650; letter-spacing: -0.01em; }
.brand-lg { font-size: 20px; justify-content: center; margin-bottom: 18px; }
.logo {
display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
}
.brand-lg .logo { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
.tag { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); padding: 1px 7px; border-radius: 99px; }
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
border: 1px solid var(--border); background: var(--panel); color: var(--text);
padding: 8px 14px; border-radius: 9px; font-weight: 550; cursor: pointer; text-decoration: none;
transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: var(--panel-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { filter: brightness(1.06); background: var(--accent); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--panel-2); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn {
display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.input {
width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border);
background: var(--panel); color: var(--text); font: 15px var(--mono); margin: 14px 0 10px;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.error-text { color: var(--bad); font-size: 14px; margin: 8px 0 0; }
/* ---------- sign in ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login-card {
width: min(420px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
padding: 32px 28px; box-shadow: var(--shadow); text-align: center;
}
.login-card h1 { font-size: 21px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.015em; }
/* ---------- layout ---------- */
.app {
height: 100vh; height: 100dvh;
display: grid; grid-template-columns: 260px 1fr; grid-template-rows: 54px 1fr;
grid-template-areas: "top top" "side main";
}
.topbar {
grid-area: top; display: flex; align-items: center; gap: 12px; padding: 0 14px;
border-bottom: 1px solid var(--border); background: var(--panel);
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.budget { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.budget-bar { width: 80px; height: 6px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--border); overflow: hidden; }
.budget-bar span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .4s; }
.budget.high .budget-bar span { background: var(--warn); }
.budget.full .budget-bar span { background: var(--bad); }
.user { position: relative; }
.user-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--panel); padding: 3px 10px 3px 3px; border-radius: 99px; cursor: pointer; font-size: 13.5px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 12px; text-transform: uppercase; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 5px; min-width: 170px; z-index: 30; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.menu button:hover { background: var(--panel-2); }
.sidebar { grid-area: side; border-right: 1px solid var(--border); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.sidebar-nav { padding: 16px 12px 8px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--border); }
.s-nav-btn { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; padding: 12px 14px; border-radius: 12px; cursor: pointer; text-align: left; font-size: 15px; font-weight: 600; color: var(--muted); transition: all .15s; }
.s-nav-btn:hover { background: var(--panel-2); color: var(--text); }
.s-nav-btn.active { background: var(--accent-soft); color: var(--text); box-shadow: 0 0 0 1px var(--accent); }
.s-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; }
.s-nav-btn.active .sim-icon { background: var(--sim); color: #fff; }
.s-nav-btn.active .code-icon { background: var(--code); color: #fff; }
.sidebar-tools { padding: 16px 16px 12px; border-bottom: 1px solid var(--border); }
.tools-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tool-chip { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.tool-chip.mujoco { color: var(--sim); border-color: var(--sim-soft); }
.tool-chip.isaac { color: var(--ok); border-color: var(--ok-soft); }
.tool-chip.ros { color: var(--code); border-color: var(--code-soft); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 6px 16px; }
.section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.history { overflow-y: auto; padding: 4px 8px 16px; flex: 1; }
.history-group { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 12px 8px 4px; }
.h-item {
display: flex; align-items: flex-start; gap: 9px; width: 100%; text-align: left; border: 0; background: none;
padding: 8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; line-height: 1.35;
}
.h-item:hover, .h-item.active { background: var(--panel-2); }
.h-icon { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; margin-top: 1px; }
.h-icon svg { width: 13px; height: 13px; }
.h-icon.sim { background: var(--sim-soft); color: var(--sim); }
.h-icon.code { background: var(--code-soft); color: var(--code); }
.h-text { min-width: 0; flex: 1; }
.h-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); }
.history-empty { color: var(--muted); font-size: 13.5px; padding: 10px 8px; }
.workspace { grid-area: main; display: grid; grid-template-columns: 1fr; min-height: 0; min-width: 0; }
.pane { display: none; flex-direction: column; min-height: 0; min-width: 0; }
.pane.active { display: flex; }
.pane + .pane { border-left: 1px solid var(--border); }
.pane-head { display: flex; align-items: center; gap: 11px; padding: 14px 18px 12px; border-bottom: 1px solid var(--border); }
.pane-head h2 { font-size: 15.5px; margin: 0; letter-spacing: -0.01em; }
.pane-head p { margin: 0; }
.pane-head .btn { margin-left: auto; }
.pane-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.pane-icon.sim { background: var(--sim-soft); color: var(--sim); }
.pane-icon.code { background: var(--code-soft); color: var(--code); }
/* ---------- thread ---------- */
.thread { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.empty { margin: auto 0; text-align: center; padding: 20px 6px; }
.empty h3 { margin: 0 0 4px; font-size: 16px; }
.examples { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.example {
text-align: left; border: 1px solid var(--border); background: var(--panel); border-radius: 10px;
padding: 10px 12px; cursor: pointer; font-size: 14px; display: flex; gap: 8px; align-items: center;
}
.example:hover { border-color: var(--accent); background: var(--accent-soft); }
.example span { color: var(--muted); }
.msg-user {
align-self: flex-end; max-width: 88%; background: var(--accent-soft); color: var(--text);
border-radius: 14px 14px 4px 14px; padding: 9px 13px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg-user .meta { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.card-head .title { font-weight: 600; }
.card-head .sub { font-size: 13px; color: var(--muted); }
.card-body { padding: 0 14px 14px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--border); align-items: center; }
.card-actions .spacer { flex: 1; }
.status-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.status-icon svg { width: 15px; height: 15px; stroke-width: 2.4; }
.status-icon.ok { background: var(--ok-soft); color: var(--ok); }
.status-icon.bad { background: var(--bad-soft); color: var(--bad); }
.status-icon.warn { background: var(--warn-soft); color: var(--warn); }
.status-icon.busy { background: var(--accent-soft); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.working { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.shimmer { background: linear-gradient(90deg, var(--muted) 0%, var(--text) 50%, var(--muted) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .spinner, .shimmer { animation: none; } .shimmer { color: var(--muted); } }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 3px 9px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--border); }
.pill.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.pill.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.pill.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.error-box { background: var(--bad-soft); color: var(--bad); border-radius: 9px; padding: 10px 12px; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note { font-size: 13.5px; color: var(--muted); }
video { width: 100%; display: block; border-radius: 10px; background: #000; aspect-ratio: 16 / 9; }
/* ---------- code viewer ---------- */
.code-view { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--code-bg); }
.tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border); background: var(--panel-2); scrollbar-width: thin; }
.tab { border: 0; background: none; padding: 7px 12px; font: 12.5px var(--mono); color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); background: var(--code-bg); }
.code-scroll { max-height: 360px; overflow: auto; }
pre.code { margin: 0; padding: 10px 0; font-size: 12.5px; line-height: 1.6; counter-reset: line; }
pre.code .ln { display: block; padding: 0 14px 0 0; white-space: pre; }
pre.code .ln::before { counter-increment: line; content: counter(line); display: inline-block; width: 3.2em; padding-right: 12px; text-align: right; color: var(--muted); opacity: .55; user-select: none; }
.hl-k { color: var(--hl-key); } .hl-s { color: var(--hl-str); } .hl-c { color: var(--hl-com); font-style: italic; } .hl-n { color: var(--hl-num); } .hl-t { color: var(--hl-tag); }
details.xml > summary { cursor: pointer; font-size: 13.5px; color: var(--muted); padding: 4px 0 8px; }
/* ---------- feedback ---------- */
.feedback { display: inline-flex; gap: 2px; align-items: center; }
.feedback .label { font-size: 12.5px; color: var(--muted); margin-right: 4px; }
.fb { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); border: 1px solid transparent; background: none; padding: 4px 8px; border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1; }
.fb:hover { background: var(--panel-2); }
.fb.chosen { background: var(--accent-soft); border-color: var(--accent); }
.fb-label { font-size: 12.5px; }
@media (max-width: 560px) { .fb-label { display: none; } }
/* ---------- composer ---------- */
.composer { padding: 10px 14px 14px; border-top: 1px solid var(--border); background: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { border: 1px solid var(--border); background: var(--panel); border-radius: 99px; padding: 4px 11px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--sim); }
.chip.active { background: var(--sim-soft); border-color: var(--sim); color: var(--sim); font-weight: 600; }
.chip .emoji { font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 99px; padding: 2px; background: var(--panel); }
.seg-btn { border: 0; background: none; padding: 3px 11px; border-radius: 99px; font-size: 13px; cursor: pointer; color: var(--muted); }
.seg-btn.active { background: var(--code-soft); color: var(--code); font-weight: 600; }
.composer-box { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); transition: border-color .12s, box-shadow .12s; }
.composer-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer textarea {
width: 100%; border: 0; background: transparent; color: var(--text); resize: none; font: 15px/1.5 var(--font);
padding: 12px 52px 12px 14px; max-height: 200px; outline: none; display: block;
}
.composer textarea::placeholder { color: var(--muted); }
.send {
position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer;
background: var(--accent); color: var(--accent-text); display: grid; place-items: center;
}
.send:disabled { opacity: .45; cursor: default; }
.send svg { stroke-width: 2.4; }
/* ---------- dialog & toast ---------- */
.dialog { border: 1px solid var(--border); border-radius: 16px; background: var(--panel); color: var(--text); padding: 24px; max-width: 520px; box-shadow: var(--shadow); }
.dialog::backdrop { background: rgb(0 0 0 / 40%); }
.dialog h2 { margin: 0 0 10px; font-size: 18px; }
.steps { padding-left: 20px; margin: 0 0 12px; } .steps li { margin-bottom: 8px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); z-index: 50; max-width: calc(100% - 32px); }
/* ---------- small screens ---------- */
.only-mobile { display: none !important; }
.scrim { display: none; }
@media (max-width: 1080px) {
.app { grid-template-columns: 220px 1fr; }
.budget-bar { display: none; }
}
@media (max-width: 860px) {
.only-mobile { display: inline-flex !important; }
.app { grid-template-columns: 1fr; grid-template-areas: "top" "main"; }
.sidebar { position: fixed; z-index: 40; top: 54px; bottom: 0; left: 0; width: min(300px, 85vw); transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
.sidebar.open { transform: none; }
.scrim { display: block; position: fixed; inset: 54px 0 0; background: rgb(0 0 0 / 30%); z-index: 35; }
.workspace { grid-template-columns: 1fr; }
.pane + .pane { border-left: 0; }
.brand .tag, .budget-label, .user-chip #user-name { display: none; }
.mobile-tabs { gap: 2px; background: var(--panel-2); padding: 3px; border-radius: 99px; border: 1px solid var(--border); }
.mtab { border: 0; background: none; padding: 4px 12px; border-radius: 99px; font-size: 13px; cursor: pointer; color: var(--muted); }
.mtab.active { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.brand > span.by, .brand > span.tag { display: none; }
.thread { padding: 14px 12px; }
.composer { padding: 8px 10px 12px; }
}
/* ---------- brand ---------- */
.logo-img { width: 28px; height: 28px; border-radius: 8px; display: block; }
.brand .by { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.btn-primary, .send { background: var(--brand-grad); border-color: transparent; color: #fff; }
.btn-primary:hover { background: var(--brand-grad); filter: brightness(1.08); }
.login-logo { width: 84px; height: 84px; border-radius: 20px; display: block; margin: 0 auto 12px; box-shadow: 0 10px 40px rgb(79 91 255 / 35%); }
.login-brand { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 14px; }
.login-brand span { font-weight: 500; color: var(--muted); font-size: 14px; }
/* ---------- startup animation ---------- */
.splash { position: fixed; inset: 0; z-index: 100; background: #050507; display: grid; place-items: center; transition: opacity .45s ease; }
.splash.done { opacity: 0; pointer-events: none; }
.splash-inner { text-align: center; }
.splash-logo { width: 168px; height: 168px; border-radius: 36px; opacity: 0; transform: scale(.82); filter: drop-shadow(0 0 0 rgb(79 91 255 / 0%));
animation: logo-in .9s cubic-bezier(.2,.8,.2,1) .1s forwards; }
.splash-name { color: #f2f3ff; font: 700 34px/1.2 var(--font); letter-spacing: -0.02em; margin-top: 18px; opacity: 0; transform: translateY(8px); animation: rise .6s ease .75s forwards; }
.splash-by { color: #9aa0c8; font: 500 15px var(--font); letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; opacity: 0; transform: translateY(8px); animation: rise .6s ease 1.1s forwards; }
.splash.quick .splash-logo { animation-duration: .35s; animation-delay: 0s; }
.splash.quick .splash-name { animation-duration: .3s; animation-delay: .15s; }
.splash.quick .splash-by { animation-duration: .3s; animation-delay: .25s; }
@keyframes logo-in { to { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 38px rgb(79 91 255 / 55%)); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
.splash-logo, .splash-name, .splash-by { animation: none; opacity: 1; transform: none; }
}
/* ---------- budget button ---------- */
button.budget { border: 1px solid transparent; background: none; cursor: pointer; padding: 4px 8px; border-radius: 99px; font: inherit; font-size: 12.5px; color: var(--muted); }
button.budget:hover { border-color: var(--border); background: var(--panel-2); }
/* ---------- routing line on result cards ---------- */
.routing { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.routing .auto { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.routing .auto::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-grad); }
.routing details { display: inline; }
.routing summary { cursor: pointer; list-style: none; text-decoration: underline dotted; text-underline-offset: 3px; }
.routing summary::-webkit-details-marker { display: none; }
.routing .why { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); color: var(--text); line-height: 1.5; }
.sim-menu { order: 99; flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 6px; }
.sim-menu[hidden] { display: none; }
.sim-menu > .muted { grid-column: 1 / -1; }
.sim-opt { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.sim-opt:hover:not(:disabled) { background: var(--panel); }
.sim-opt:disabled { opacity: .5; cursor: default; }
.sim-opt b { display: block; font-size: 14px; }
.sim-opt span { font-size: 12.5px; color: var(--muted); }
.sim-opt.chosen b::after { content: " ✓"; color: var(--accent); }
/* ---------- confirmation & dialogs ---------- */
.enhanced { margin: 0 0 10px; font-size: 13px; }
.enhanced summary { cursor: pointer; color: var(--muted); }
.enhanced .why { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); line-height: 1.5; white-space: pre-wrap; }
.confirm { display: flex; flex-direction: column; gap: 8px; }
.confirm .big { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); padding: 10px 12px; font: 14.5px/1.5 var(--font); resize: vertical; }
.textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.usage-big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.meter { height: 8px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--border); overflow: hidden; margin: 8px 0 14px; }
.meter span { display: block; height: 100%; background: var(--brand-grad); }
.usage-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 14px; }
.usage-table td, .usage-table th { padding: 6px 4px; border-bottom: 1px solid var(--border); text-align: left; }
.usage-table td:last-child, .usage-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
/* ---------- tour ---------- */
.tour { width: min(560px, calc(100% - 32px)); padding: 18px 22px 20px; }
.tour-top { display: flex; align-items: center; gap: 10px; }
.tour-top img { border-radius: 8px; }
.tour-count { font-size: 12.5px; color: var(--muted); margin-right: auto; }
.tour-slide { min-height: 210px; padding: 14px 2px 6px; }
.tour-slide .step { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tour-slide h3 { font-size: 21px; margin: 6px 0 8px; letter-spacing: -0.015em; line-height: 1.25; }
.tour-slide p { margin: 0 0 10px; color: var(--muted); }
.tour-demo { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--panel-2); font-size: 14px; }
.tour-demo .you { font-weight: 600; margin-bottom: 8px; }
.tour-demo .line { display: flex; gap: 8px; align-items: baseline; margin-top: 4px; }
.tour-demo .line b { color: var(--text); }
.tour-dots { display: flex; gap: 6px; justify-content: center; margin: 4px 0 14px; }
.tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background .2s, width .2s; }
.tour-dots span.on { width: 20px; border-radius: 99px; background: var(--accent); }
.tour-actions { display: flex; justify-content: space-between; }
@media (max-width: 860px) { .brand .by { display: none; } }