/* Match the q2/nonce landing page while keeping the imported app layout intact. */
:root {
  --background: 60 2% 17%;
  --foreground: 0 0% 100%;
  --card: 60 2% 20%;
  --card-foreground: 0 0% 100%;
  --popover: 60 2% 20%;
  --popover-foreground: 0 0% 100%;
  --primary: 0 0% 94%;
  --primary-foreground: 60 2% 17%;
  --secondary: 60 2% 23%;
  --secondary-foreground: 0 0% 100%;
  --muted: 60 2% 23%;
  --muted-foreground: 60 3% 64%;
  --accent: 60 2% 23%;
  --accent-foreground: 0 0% 100%;
  --border: 60 2% 29%;
  --input: 60 2% 29%;
  --ring: 44 42% 71%;
  --navbar-background: 60 2% 17%;
  --navbar-border: 60 2% 29%;
  --wallet-surface: 60 2% 20%;
  --wallet-ink: 0 0% 100%;
  --wallet-divider: 60 2% 29%;
  --wallet-badge: 60 2% 25%;
  --wallet-muted: 60 3% 64%;
  --bg: #2c2c2a;
  --bg-panel: #363633;
  --bg-row-alt: #323230;
  --ink: #ffffff;
  --ink-2: #deded8;
  --ink-3: #aaa9a3;
  --ink-4: #85857f;
  --rule: #41413e;
  --rule-2: #555550;
  --accent-soft: #c4b79a;
  --up: #a8cbb0;
  --down: #e2a6a0;
  --button-bg: #deded8;
  --button-fg: #242423;
}

html,
body,
#root { min-height: 100%; background: var(--bg); color: var(--ink); }

/* The imported UI uses --accent for navigation and links. */
:root { --accent: #d8c590; }

input,
textarea,
select { background-color: var(--bg); color: var(--ink); color-scheme: dark; }
input::placeholder,
textarea::placeholder { color: var(--ink-4); }
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.lockform input,
.lockform textarea,
.devpanel input { background: var(--bg) !important; color: var(--ink) !important; }
.lockform button[type=submit]:disabled,
.vbtn:disabled { color: var(--ink-2) !important; background: #555550 !important; }
.sb-wallet [role=menu],
.wallet-panel { background: var(--bg-panel); color: var(--ink); }
.sb-wallet [role=menu] .wallet-control { background: var(--bg-panel); color: var(--ink); }

@media (max-width: 759px) {
  .section:has(> .tbl) { max-width: 100%; overflow-x: auto; }
  .sidebar .nav { height: auto; min-height: 32px; flex-wrap: wrap; row-gap: 4px; padding-bottom: 6px; }
  .sidebar .nav a + a::before { display: inline !important; }
  .sidebar .xbtn { display: flex; grid-column: 1 / -1; width: 42px; height: 24px; margin: 2px 0 8px; }
  .topline { height: auto; white-space: normal; flex-wrap: wrap; }
  .board-top > pre { width: 100% !important; max-width: 100%; overflow-x: auto !important; }
  .board-top > div { width: 100% !important; max-width: 100%; min-width: 0; overflow-x: auto; }
}

.wordmark::before { content: ""; display: inline-block; width: 1.45em; height: 1.45em; margin-right: .35em; vertical-align: middle; background: url("../../q2nonce.png") center / contain no-repeat; }

authorization-desk {display:block;max-width:52rem}
authorization-desk label {display:block;margin:1.2rem 0 .5rem}
authorization-desk input,authorization-desk textarea {display:block;width:min(100%,36rem);background:var(--bg,#252525);color:inherit;border:1px solid #777;padding:.55rem;margin:.3rem 0;font:inherit}
authorization-desk button {border:1px solid #888;padding:.45rem .85rem;margin:.35rem 0 .8rem;cursor:pointer}
authorization-desk [role=status] {margin:1rem 0;font-weight:bold}
authorization-desk p {max-width:66ch}
/* Launch workspace and shared app navigation */
.frame {border-color:#43433e}
.sidebar .nav a {padding-block:6px}
.sidebar .nav a.active {color:#f1e5c9}
.content {min-width:0}
@media(min-width:760px){
 .sidebar {width:202px;padding:56px 20px 0 28px}
 .content {padding:54px clamp(22px,3.5vw,54px) 68px}
}
authorization-desk {display:block;max-width:100%;--panel:#32322f;--edge:#54534c;--quiet:#bbb9ae;font:14px/1.5 var(--font-sans,Arial,sans-serif)}
authorization-desk [hidden] {display:none!important}
validator-desk {display:block}
.launch-heading {padding-bottom:25px;border-bottom:1px solid var(--edge);margin-bottom:26px}
.launch-heading h1 {font:400 clamp(34px,4.5vw,54px)/1.05 var(--font-serif,Georgia,serif);letter-spacing:-.035em}
.launch-heading p {margin-top:10px;color:#c4c2b9;max-width:59ch}
.launch-grid {display:grid;grid-template-columns:minmax(0,1.55fr) minmax(220px,.88fr);gap:clamp(16px,2.4vw,32px);align-items:start}
.issue-form, .launch-grid>* {min-width:0}
.issue-form fieldset {border:0;padding:0 0 21px;margin:0 0 18px;border-bottom:1px solid var(--edge);min-width:0}
.issue-form legend,.launch-result h2,.launch-shelf h2 {font:400 25px/1.1 var(--font-serif,Georgia,serif);margin-bottom:4px}
authorization-desk label {margin:12px 0 4px;font-size:13px;font-weight:500}
authorization-desk small,.network-settings p,.secondary-tool p {color:var(--quiet);font-weight:400;font-size:12px}
.issue-form label>small {font-size:11px}
.field-pair {display:grid;grid-template-columns:1.55fr 1fr;gap:12px}
authorization-desk input,authorization-desk textarea {border:1px solid var(--edge);width:100%;padding:10px 12px;background:#272725;border-radius:4px;color:var(--ink);font:14px/1.35 var(--font-sans,Arial,sans-serif)}
authorization-desk textarea {resize:vertical}
authorization-desk input:focus,authorization-desk textarea:focus {outline:1px solid #caaf78;outline-offset:1px}
authorization-desk .art-field {position:relative;display:flex;align-items:center;gap:14px;padding:11px 14px;border:1px dashed #727067;border-radius:5px;cursor:pointer;margin:6px 0;overflow:hidden}
.art-field small {display:block}
.art-field input[type=file] {position:absolute;inset:0;opacity:0;cursor:pointer;height:100%;margin:0}
.art-field:focus-within {outline:1px solid var(--accent)}
[data-art-icon] {border:1px solid var(--edge);border-radius:4px;font-size:22px;width:35px;height:35px;text-align:center;color:#d8c590}
[data-art-text] {overflow-wrap:anywhere}
.launch-preview {background:linear-gradient(145deg,#393933,#30302d 58%);border:1px solid #605e52;border-radius:8px;padding:21px;min-width:0}
.preview-top,.preview-symbol,.launch-preview dt,.launch-preview dd,.launch-heading small {font:12px/1.45 var(--font-mono,monospace)}
.preview-top {color:#d2c4a3;border-bottom:1px solid var(--edge);padding-bottom:12px}
.preview-avatar {display:grid;place-items:center;margin:20px 0 9px;width:68px;height:68px;overflow:hidden;border-radius:9px;background:#2b2b28;border:1px solid #666459;color:#ded4bb}
.preview-avatar span {font:italic 30px var(--font-serif,Georgia,serif)}
.preview-avatar img {width:100%;height:100%;object-fit:cover}
.launch-preview h2 {font:400 28px/1.1 var(--font-serif,Georgia,serif);overflow-wrap:anywhere}
.preview-symbol {color:#bab8ad;margin:5px 0 18px}
.launch-preview dl>div {display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid #51514a}
.launch-preview dt,.preview-task {color:var(--quiet)}
.launch-preview dd {text-align:right;overflow-wrap:anywhere}
.preview-task {border-top:1px solid var(--edge);padding-top:12px;overflow-wrap:anywhere}
.network-settings summary,.secondary-tool summary {cursor:pointer;font-weight:500;padding:8px 0}
.network-settings p,.secondary-tool p {margin:8px 0 14px}
authorization-desk button {border:1px solid var(--edge);border-radius:4px;padding:8px 13px}
authorization-desk .primary-issue {margin:14px 6px 0 0;background:#e3d7b9;color:#22221f;font-weight:600;padding:11px 20px;border-color:#e3d7b9}
authorization-desk button:disabled {opacity:.62;cursor:default}
[data-progress]:not(:empty) {color:#e3d3aa;border-left:2px solid #aa976b;padding:4px 10px;margin-top:10px;overflow-wrap:anywhere}
.secondary-tool,.launch-result {border-top:1px solid var(--edge);margin-top:22px;padding-top:9px}
.launch-result [data-report] {white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0;font:12px/1.55 var(--font-mono,monospace)}
.launch-result h3 {margin-top:16px}
.launch-shelf {display:block;border-block:1px solid var(--rule-2);padding:18px 0;margin:20px 0 26px}
.launch-shelf header {display:flex;justify-content:space-between;align-items:center;gap:12px}
.launch-shelf header a {color:var(--accent);font:12px var(--font-mono,monospace)}
.shelf-rows {color:var(--ink-3);font:14px/1.6 var(--font-sans,Arial,sans-serif);margin-top:12px}
.shelf-rows article {padding:7px 0}.shelf-rows code {display:block;overflow-wrap:anywhere;font-size:12px}
@media(max-width:980px){.launch-grid{grid-template-columns:minmax(0,1.4fr) minmax(185px,.9fr)}.launch-preview{padding:14px}}
@media(max-width:680px){.launch-grid{display:flex;flex-direction:column}.launch-grid>*{width:100%}.launch-heading{margin-bottom:18px;padding-bottom:16px}.launch-preview{padding:15px}.preview-avatar{width:48px;height:48px;margin:12px 0 6px}.launch-grid:has([data-edit]:not([hidden])) .launch-preview{order:-1}.field-pair{gap:9px}.launch-preview dl{margin-top:10px}.launch-shelf header{flex-wrap:wrap}}
