.questionable-demo { --q-bg:#19141f; --q-panel:#251e2c; --q-border:#44334f; --q-accent:#bf8cee; --q-muted:#8b7ea7; --q-input:#302339; --q-button:#503b63; font-family:"Segoe UI",sans-serif; background:#0c1019; }
.questionable-demo .header-inner { min-height:52px; }
.questionable-demo .shell { width:calc(100% - 36px); max-width:none; }
.questionable-demo .brand-name { font-size:15px; }
.questionable-demo .preview-label { font-size:11px; }
.questionable-demo .skip-link { opacity:0; pointer-events:none; z-index:10001; }
.questionable-demo .skip-link:focus { opacity:1; pointer-events:auto; }
.demo-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:7px 18px; border-bottom:1px solid #282132; font-size:12px; }
.demo-toolbar label { display:flex; align-items:center; gap:6px; }
.demo-toolbar select,.demo-toolbar button { font:inherit; color:#e6dcef; background:#292136; border:1px solid #514064; border-radius:4px; padding:3px 7px; }
.demo-note { margin-left:auto; color:#8c839b; font-size:11px; }
#desktop { position:relative; min-height:calc(100dvh - 92px); padding:0; overflow:hidden; background:radial-gradient(ellipse at 45% 30%,#21172b55,transparent 65%); outline:none; }
.q-window { position:absolute; left:24px; top:24px; width:350px; max-width:calc(100% - 16px); color:#f0eaf6; background:linear-gradient(115deg,#1b1524,#19151e); border:1px solid #3e2d4c; border-radius:3px; box-shadow:0 14px 40px #0006; font-size:12px; line-height:1.4; overflow:hidden; }
.q-window.child { width:700px; height:600px; min-width:330px; min-height:220px; resize:both; display:flex; flex-direction:column; }
.q-window.settings { width:740px; height:750px; }
.q-window.fate,.q-window.seasonal { width:600px; height:400px; }
.q-window.news { width:900px; height:620px; }
.q-titlebar { height:23px; flex:none; display:flex; align-items:center; padding:0 5px; background:#352642; cursor:move; user-select:none; touch-action:none; }
.q-titlebar strong { font-weight:600; flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.q-window button,.q-window input,.q-window select,.q-window textarea,#demo-dialog button,#demo-dialog input,#demo-dialog select,#demo-dialog textarea { font:inherit; }
.q-window button,#demo-dialog button { border:1px solid transparent; border-radius:3px; background:var(--q-button); color:#f5effc; padding:2px 7px; min-height:23px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:5px; }
.q-window button:hover,#demo-dialog button:hover { background:#72558a; }
.q-window button:disabled,#demo-dialog button:disabled { opacity:.45; cursor:default; }
.q-window button.active,.q-window button[aria-pressed="true"] { color:#eddbff; background:#805ba2; border-color:#a477cb; }
.q-window .q-titlebar button { width:19px; height:21px; min-height:0; padding:0; border:0; background:transparent; }
.q-window .q-titlebar button:hover { background:#72558a; }
.q-titlebar .q-icon { width:14px; height:14px; }
.q-icon { display:inline-block; width:17px; height:17px; flex:none; vertical-align:middle; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.q-window .q-body { flex:1; overflow:auto; min-height:0; padding:10px; scrollbar-color:#57416b #1a1422; scrollbar-width:thin; }
.q-window.main .q-body { padding:8px 7px; }
.q-window .q-body.split { padding:8px; display:flex; overflow:hidden; }
.q-window p { margin:5px 0; }
.q-window h2 { font-size:12px; font-weight:600; color:inherit; margin:0 0 6px; display:block; letter-spacing:0; }
.q-window h2::after { display:none; }
.q-window h3 { font-size:12px; font-weight:600; margin:0 0 5px; padding-left:6px; border-left:3px solid var(--q-accent); }
.q-section { margin:0 0 17px; }
.q-panel { padding:10px; border:1px solid var(--q-border); background:#ffffff04; border-radius:6px; }
.q-row { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.q-row.nowrap { flex-wrap:nowrap; }
.q-spacer { flex:1; }
.q-muted { color:var(--q-muted); }
.q-purple { color:var(--q-accent); }
.q-green { color:#54fb39; }
.q-red { color:#ff474e; }
.q-yellow { color:#fff45a; }
.q-small { font-size:11px; }
.q-tabs { display:flex; border-bottom:2px solid #33263f; margin:0 0 6px; gap:0; }
.q-window .q-tabs button { background:none; border-radius:0; border:0; padding:5px 6px; margin-bottom:-2px; color:var(--q-muted); border-bottom:2px solid transparent; }
.q-window .q-tabs button[aria-selected="true"] { color:var(--q-accent); border-bottom-color:var(--q-accent); }
.main .q-tabs button { flex:1; }
.main .quest-status { min-height:72px; padding:10px; }
.main .events { margin:16px 0; }
.q-window details { border:1px solid var(--q-border); border-radius:5px; background:#ffffff04; }
.q-window summary { cursor:pointer; padding:5px 9px; font-weight:500; }
.q-window summary::marker { color:var(--q-accent); }
.main .events summary { padding:12px; }
.main .events summary .q-muted { float:right; }
.q-detail { padding:6px 10px; }
.main .main-actions { display:flex; gap:8px; }
.main .main-actions button { flex:1; }
.main .window-buttons { display:flex; justify-content:space-between; gap:8px; margin-top:18px; }
.main .window-buttons button { flex:1; height:24px; padding:0; }
.main .window-buttons .q-icon { width:19px; height:19px; fill:currentColor; stroke-width:1.5; }
.main .window-buttons button:first-child { color:var(--q-accent); background:#302339; border-color:#664a7c; }
.q-check,.q-radio { display:flex; gap:7px; align-items:flex-start; margin:4px 0; }
.q-check input,.q-radio input { appearance:none; width:23px; height:23px; flex:0 0 23px; border:0; border-radius:4px; margin:0; background:var(--q-input); cursor:pointer; position:relative; }
.q-check input:checked::after { content:""; position:absolute; left:6px; top:2px; width:8px; height:14px; border:solid #d6b9f8; border-width:0 3px 3px 0; transform:rotate(42deg); }
.q-radio input { border-radius:50%; }
.q-radio input:checked { background:#dcc3ff; border:4px solid #4b345f; }
.q-check span,.q-radio span { padding-top:2px; }
.q-window input[type="text"],.q-window input[type="search"],.q-window input[type="number"],.q-window select,.q-window textarea,#demo-dialog input,#demo-dialog textarea,#demo-dialog select { background:var(--q-input); border:1px solid transparent; border-radius:4px; color:#f1eaf9; padding:2px 5px; min-height:23px; max-width:100%; }
.q-window input::placeholder { color:#9584a8; opacity:1; }
.q-window input[type="number"] { width:65px; }
.q-window input[type="search"] { min-width:80px; flex:1; }
.q-window select { color-scheme:dark; }
.q-window input:disabled,.q-window select:disabled { opacity:.45; }
.q-window fieldset { padding:0; border:0; margin:0; min-width:0; }
.q-window fieldset:disabled { opacity:.5; }
.q-field { display:flex; align-items:center; gap:6px; margin:5px 0; }
.q-field select,.q-field input[type="text"] { width:260px; min-width:80px; }
.q-range { display:flex; align-items:center; gap:6px; margin:5px 0; }
.q-slider { width:260px; max-width:60%; background:#2c2234; border-radius:3px; position:relative; height:23px; flex:none; }
.q-slider input { width:100%; height:23px; margin:0; appearance:none; background:transparent; position:relative; z-index:1; cursor:pointer; }
.q-slider input::-webkit-slider-thumb { appearance:none; width:24px; height:19px; border-radius:4px; background:#795390; }
.q-slider output { position:absolute; inset:2px 0; text-align:center; pointer-events:none; z-index:2; }
.q-info { display:inline-flex; vertical-align:middle; align-items:center; justify-content:center; border-radius:50%; color:#20182c; background:#8f80a4; font-size:10px; font-family:serif; width:16px; height:16px; margin-left:5px; cursor:help; }
.q-sidebar { width:168px; flex:none; border-right:1px solid #35263e; padding:0 8px 0 2px; overflow:auto; scrollbar-width:thin; scrollbar-color:#57416b #1a1422; }
.q-nav-group { color:#78668f; margin:4px 0 4px; font-size:12px; }
.q-nav-group:not(:first-child) { margin-top:25px; }
.q-sidebar button { width:100%; justify-content:flex-start; background:transparent; border:1px solid transparent; color:var(--q-muted); padding:3px 7px; white-space:nowrap; }
.q-sidebar button[aria-current="page"] { background:#302339; color:var(--q-accent); border-color:#4f365f; }
.q-sidebar button .q-icon { width:18px; height:18px; }
.q-content { flex:1; min-width:0; overflow:auto; padding:0 3px 0 12px; scrollbar-color:#57416b #1a1422; scrollbar-width:thin; }
.q-table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:12px; margin-top:4px; }
.q-table th:first-child { width:70%; }
.q-table:has(th:nth-child(3)) th:first-child { width:58%; }
.q-table:has(th:nth-child(4)) th:first-child { width:40%; }
.q-table td:first-child { overflow:hidden; }
.q-table .text-button { max-width:100%; overflow:hidden; }
.q-table .tree-label { min-width:0; }
.q-map-controls { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.q-map-controls .q-field { margin:0; min-width:0; }
.q-map-controls .q-field:first-child { flex:1; }
.q-map-controls .q-field select { width:100%; }
.q-map-controls .q-field:nth-child(2) select { width:95px; }
.q-map-controls .q-check { white-space:nowrap; }
.quest-status [data-action="stop"] .q-icon { fill:currentColor; }
.q-table th { font-weight:500; text-align:left; background:#241b2e; border-block:1px solid #4b3557; padding:2px 4px; }
.q-table td { padding:2px 4px; border-bottom:1px solid #34273f; background:#ffffff03; height:21px; }
.q-table tbody tr:nth-child(even) td { background:#ffffff05; }
.q-table .numbers { text-align:center; white-space:nowrap; font-variant-numeric:tabular-nums; }
.q-table .tree-label { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:275px; }
.q-window .tree-button { background:none; border:0; border-radius:0; padding:0; min-height:18px; justify-content:flex-start; text-align:left; width:100%; }
.tree-arrow { color:var(--q-accent); width:12px; flex:none; }
.q-table .leaf { padding-left:18px; }
.q-window .text-button { background:transparent; min-height:18px; padding:0; color:var(--q-accent); text-align:left; justify-content:flex-start; }
.q-empty { text-align:center; color:var(--q-muted); padding:24px 8px; }
.q-empty .q-icon { width:28px; height:28px; opacity:.6; margin-bottom:8px; }
.q-grid { display:grid; grid-template-columns:1fr 1fr; gap:2px 15px; }
.q-progress { background:#382746; border-radius:4px; height:23px; position:relative; overflow:hidden; margin:6px 0 12px; }
.q-progress i { display:block; height:100%; background:var(--q-accent); }
.q-progress span { position:absolute; right:6px; top:3px; }
.q-plan { min-height:130px; margin-bottom:16px; }
.q-plan-row { padding:5px 0; border-bottom:1px solid var(--q-border); }
.q-stop-row { gap:5px; }
.q-stop-row .q-field,.q-stop-row .q-check { margin:0; }
.q-stop-row .q-field select { width:70px; min-width:70px; }
.q-stop-row input[type="number"] { width:32px; padding-inline:2px; appearance:textfield; }
.q-stop-row input[type="number"]::-webkit-inner-spin-button { appearance:none; }
.q-window .tiny { padding:0 4px; min-width:23px; }
.q-chain { display:grid; grid-template-columns:36% 1fr; gap:8px; height:calc(100% - 34px); min-height:220px; }
.q-chain-list,.q-chain-view { overflow:auto; padding:5px; border:1px solid var(--q-border); border-radius:4px; }
.q-chain-list button { background:none; display:flex; justify-content:flex-start; width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.q-chain-list button.selected { background:#49345b; }
.q-dot { display:inline-block; border-radius:50%; width:6px; height:6px; flex:none; background:#f5f25a; }
.q-dot.Complete { background:#4aff15; }.q-dot.Locked { background:#ff2828; }.q-dot.Unobtainable { background:#aaa; }
.q-node { border:1px solid #6e4b88; border-radius:5px; padding:12px; text-align:center; margin:15px 0; background:#30223c; }
.q-chain-arrow { text-align:center; color:var(--q-accent); }
.q-map { position:relative; background:#cfbf80; overflow:hidden; margin-top:5px; min-height:330px; }
.q-map svg { width:100%; display:block; }
.q-map-image { width:100%; aspect-ratio:500 / 430; background-position:center; background-size:135%; background-repeat:no-repeat; }
.q-map-image.goblet { background-size:220%; background-position:50% 45%; }
.map-legend { position:absolute; top:6px; right:6px; display:flex; gap:8px; background:#493f2bbf; color:#e9deb5; border-radius:4px; padding:3px 5px; font-size:10px; }
.map-pin { position:absolute; transform:translate(-50%,-50%); }
.q-window .map-pin { width:19px; height:19px; min-height:19px; padding:0; border:2px solid #6f5a1b; border-radius:50%; color:#473514; background:#fff254; box-shadow:0 1px 5px #0006; font-weight:bold; }
.q-window .map-pin.Complete { background:#55e536; }.q-window .map-pin.Locked { background:#fa5252; }.q-window .map-pin.Unobtainable { background:#aaa; }
.override-box { border:1px solid var(--q-border); padding:5px; min-height:300px; border-radius:4px; }
.override-box details { margin-bottom:2px; }
.override-box summary .q-muted { float:right; }
.q-status-box { border:1px solid #356b25; background:#1c351d; color:#66ff26; padding:10px; border-radius:6px; }
.q-window.news .q-body { padding:8px; }
.news-hero { text-align:center; padding:20px; border-block:2px solid #8c6cb1; margin-bottom:6px; background:radial-gradient(ellipse,#33204466,transparent); }
.news-hero h2 { font-family:monospace; font-size:14px; margin:8px 0; }
.q-news-entry { margin-bottom:7px; }
.q-news-entry ul { padding-left:22px; color:var(--q-muted); }
.q-news-entry li { margin-bottom:6px; }
.q-footer { border-top:1px solid var(--q-border); text-align:center; padding:5px; flex:none; }
.q-window.collapsed { height:auto!important; min-height:0!important; resize:none; }
.q-window.collapsed .q-body,.q-window.collapsed .q-footer { display:none; }
.q-window .window-menu { position:absolute; right:5px; top:25px; padding:5px; border:1px solid var(--q-border); background:#291e34; box-shadow:0 5px 15px #0008; z-index:50; }
.window-menu button { display:flex; width:100%; margin:2px 0; }
#demo-dialog { --q-input:#302339; --q-button:#503b63; width:min(560px,calc(100% - 24px)); max-height:85dvh; overflow:auto; background:#21182b; border:1px solid #74528b; border-radius:6px; color:#eee8f4; padding:15px; font:13px/1.5 "Segoe UI",sans-serif; }
#demo-dialog::backdrop { background:#05030bb5; }
#demo-dialog h2 { display:block; font-size:15px; color:#d7b4f5; letter-spacing:0; }
#demo-dialog h2::after { display:none; }
#demo-dialog textarea { width:100%; height:160px; font-family:monospace; resize:vertical; }
#demo-dialog .dialog-close { float:right; }
#demo-toast { position:fixed; bottom:16px; left:50%; transform:translateX(-50%); z-index:10000; padding:8px 14px; color:#f5ebfc; background:#352442; border:1px solid #76558e; border-radius:5px; font-size:12px; max-width:calc(100% - 24px); box-shadow:0 5px 25px #0009; }
#demo-toast:empty { display:none; }
@media (max-width:760px) {
    .questionable-demo .shell { width:calc(100% - 20px); }.questionable-demo .preview-label { display:none; }
    .demo-toolbar { gap:6px; padding:7px 8px; }.demo-note { display:none; }.demo-toolbar select { max-width:160px; }
    #desktop { display:flex; flex-direction:column; align-items:center; gap:12px; padding:12px 0 24px; overflow:visible; }
    .q-window,.q-window.child { position:relative!important; left:auto!important; top:auto!important; width:calc(100% - 16px)!important; max-width:740px; min-width:0; resize:none; flex:none; }
    .q-window.main { max-width:350px; order:0; }.q-window.child { height:600px; max-height:85dvh; order:1; }
    .q-window .q-titlebar { cursor:default; }.q-window.settings { height:700px; }.q-window.news { height:620px; }
    .q-sidebar { width:125px; padding-right:5px; }.q-sidebar button { padding:4px; font-size:11px; }.q-sidebar button .q-icon { width:15px; height:15px; }
    .q-content { padding-left:7px; }.q-window .q-body.split { padding:6px 4px; }.q-field,.q-range { flex-wrap:wrap; }.q-field select,.q-field input[type="text"] { width:100%; }
    .q-grid { grid-template-columns:1fr; }.q-window .q-slider { width:100%; max-width:100%; }.q-table .tree-label { max-width:190px; }.q-table { font-size:10px; }.q-table:has(th:nth-child(3)) th:first-child { width:48%; }.q-table td,.q-table th { padding-inline:2px; }
    .q-chain { grid-template-columns:1fr; height:auto; }.q-chain-list { max-height:200px; }.q-map { min-height:200px; }.map-legend { position:relative; top:auto; right:auto; flex-wrap:wrap; }
    .q-window .q-tabs { flex-wrap:wrap; }.q-window .q-tabs button { padding-inline:4px; }.q-window .q-row.nowrap { flex-wrap:wrap; }
}
