/* 리도키 자료실과 웹 게임 관리창의 탐색, 활자, 표와 조작부를 통일한다. */
@font-face{font-family:Pretendard;src:url('/web-games-font.woff2') format('woff2');font-weight:100 900;font-display:swap}
html[data-shell]{--paper:#fff;--line:#d9d9df;--ink:#161619;--muted:#62626b;--accent:#242428;--deep:#333337;--rail:194px;background:#fff;color:var(--ink);color-scheme:light}
html[data-shared-entry]{--rail:0px}
html[data-shell] body{margin:0;padding-left:var(--rail);min-height:100vh;background:white;color:var(--ink);font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}
.tool-rail,.tool-rail *{box-sizing:border-box}
html[data-shell] .tool-rail{position:fixed;z-index:5;inset:0 auto 0 0;width:var(--rail);background:#fff;border-right:1px solid var(--line);padding:29px 16px;display:block;line-height:1.4}
.tool-brand,.tool-rail nav a{color:var(--ink);text-decoration:none}
.tool-brand{display:inline-flex;gap:9px;align-items:center;padding:0 8px;font:500 22px/1.2 Pretendard,sans-serif;letter-spacing:-.045em}
.tool-brand em{color:#929298;font-style:normal}.tool-brand b{font-weight:650}
.tool-mark{width:22px;height:22px;display:inline-block;position:relative}
.tool-mark i{position:absolute;background:#19191c;border-radius:2px}
.tool-mark i:first-child{inset:0 auto 0 0;width:9px}.tool-mark i:nth-child(2),.tool-mark i:last-child{right:0;width:9px;height:9px}
.tool-mark i:nth-child(2){top:0}.tool-mark i:last-child{bottom:0}
html[data-shell] .tool-rail nav{display:grid;gap:4px;margin:34px 0 0}
.tool-rail nav a{display:block;padding:9px 12px;border-radius:6px;color:#47474d;font:500 14px/1.45 Pretendard,sans-serif}
.tool-rail nav a:hover,.tool-rail nav a[aria-current]{color:#17171a;background:#ededee}
.tool-rail .tool-mobile{display:none}
html[data-shell] main{max-width:1180px;min-width:0;margin-inline:auto}
html[data-shell] body>main,.tool-content{padding:clamp(20px,3.5vw,52px)}
html[data-shell] h1{font-family:Georgia,"Nanum Myeongjo",Batang,serif;font-size:clamp(32px,3.6vw,52px);font-weight:400;letter-spacing:-.035em;line-height:1.15;color:var(--ink);text-shadow:none}
html[data-shell] h2,html[data-shell] h3{color:var(--ink);letter-spacing:-.02em;text-shadow:none}
html[data-shell] :is(.panel,.metric,.feed,.play,.strip,.detail,.summary,.live-card,.board-panel,dialog){border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;box-shadow:none}
html[data-shell] :is(.hint,.help,.eyeline,.overline,.team,small,footer,.muted,.meta,.summary h2){color:var(--muted);letter-spacing:normal}
html[data-shell] :is(.total,.summary strong,.meta b){color:var(--ink)}
html[data-shell] :is(.mast,.top,.bar,.head,.toolbar){background:#fff;border-color:var(--line);box-shadow:none}
html[data-shell] .top{padding-inline:clamp(16px,3vw,40px)}
html[data-shell] :is(input:not([type=checkbox],[type=radio],[type=range],[type=color]),select,textarea){color:var(--ink);background:#fff;border:1px solid #bdbdc5;border-radius:6px;box-shadow:none;font-family:inherit;max-width:100%}
html[data-shell] input{accent-color:#28282c}
html[data-shell] :is(button,.mast a,.bar a,.top-actions a,.control header nav a,.actions a){color:#242428;background:white;border:1px solid #c5c5cc;border-radius:6px;box-shadow:none;text-shadow:none;font:550 14px/1.4 Pretendard,sans-serif;min-height:36px;padding:8px 12px;text-decoration:none}
html[data-shell] :is(button,.actions a):hover:not(:disabled){background:#efeff1;color:#161619}
html[data-shell] :is(button.primary,button.selected,.switch input:checked+span,[aria-pressed=true],.login button,.actions a:first-child){color:white;background:#252528;border-color:#252528}
html[data-shell] button.danger{color:#8b2734;border-color:#d6b4b9;background:#fff}
html[data-shell] :is(th,td,.signature-picker,.signature-option,.tabs,.table-wrap){border-color:var(--line);box-shadow:none}
html[data-shell] :is(th,.signature-picker,.signature-option){background:#f5f5f6;color:#232326}
html[data-shell] .signature-option.selected{border-color:#333338;background:#ededee}
html[data-shell] :is(.metric a,.signature-picker summary,#notice,.panel label,.panel small,.status,.roster){color:#414148}
html[data-shell] .metric strong{color:var(--ink)}
html[data-shell] :is(.tabs button:not(.selected),.benefit-editor,.signature-option label){background:#f6f6f7;color:#333338}
html[data-shell] .tabs button.selected{background:#242428;color:white}
html[data-shell] .dashboard{grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr))}
html[data-shell] :is(.fields,.panel,.desk,.columns,.board,.connect,.summary){min-width:0}
html[data-shell] :is([role=alert],#notice.error,#notice[data-error=true]){color:#9f2939}
html[data-shell] :focus-visible{outline:2px solid #2c50a0;outline-offset:3px}
html[data-shell] :is(#quit,#exit,[data-quit],[data-action="quit"]){display:none!important}
html[data-tools="lobby"] main{max-width:980px;width:auto;padding:clamp(28px,5vw,72px)}
html[data-tools="lobby"] main>p{max-width:42em;color:var(--muted)}
.login{display:flex;align-items:center;gap:8px}.login input{width:min(24rem,100%)}
html[data-shared-entry] .login{margin-top:8px}
html[data-shared-entry] .login input{box-sizing:border-box;min-height:38px;padding:8px 10px;font-size:16px}
@media(max-width:940px){html[data-shell]{--rail:0px}html[data-shell] .tool-rail{position:relative;inset:auto;width:100%;padding:12px 16px;min-height:52px;display:flex;align-items:center;justify-content:space-between;border:0;border-bottom:1px solid var(--line)}
html[data-shell] .tool-rail>nav{display:none}.tool-rail .tool-mobile{display:block}.tool-mobile summary{cursor:pointer;padding:6px 12px}
html[data-shell] .tool-mobile nav{position:absolute;z-index:6;top:calc(100% - 4px);right:12px;min-width:160px;padding:8px;margin:0;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 20px #19191b12}}
@media(max-width:600px){html[data-shell] body>main{padding:16px}html[data-shell] .control header{flex-wrap:wrap;align-items:flex-start}html[data-shell] .fields{grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr))}.login{flex-wrap:wrap}}

html[data-tools="operator"] .game-list .studio-links{margin:20px 0 0;padding-top:12px;border-top:1px solid var(--line)}
html[data-tools="operator"] body > :is(.rail,.sidebar,.bar){display:none}
html[data-tools="operator"] body > main{width:auto;max-width:1472px;margin-inline:auto}
html[data-game="timeattack"] body > .top{position:static;inset:auto;width:auto;max-width:1472px;margin-inline:auto;display:flex;flex-direction:row;justify-content:end;min-height:0;border:0;padding-block:16px 0}
html[data-game="timeattack"] body > .top > :not(.top-actions){display:none}
html[data-game="timeattack"] .top-actions{flex-direction:row;align-items:center}
html[data-game="sighunter"] main > header nav a[href="/pyeongwang/games/"]{display:none}
@media(max-width:940px){
  html[data-tools="operator"] .game-list{display:block}
  html[data-tools="operator"] .game-list nav{display:flex;flex-wrap:wrap;gap:3px;margin:8px 0 0}
  .game-list nav a{padding:7px 9px}
  html[data-tools="operator"] .game-list .studio-links{margin-top:8px;padding-top:6px}
}
html[data-tools="operator"] :is(#quit,#exit,[data-quit],[data-action="quit"]){display:none!important}
html[data-game="sighunter"] #notice{background:#f4f5f3;border:1px solid #d7dacf;color:#374733}
html[data-game="sighunter"] #notice.error{background:#fcf4f4;color:#8a2431;border-color:#d9b8bd}
html[data-tools="operator"][data-game="sighunter"] .assigned-card{background:#f6f6f7;border-color:var(--line);color:var(--ink)}
html[data-tools="operator"][data-game="sighunter"] .assigned-card>span{color:var(--ink);font-weight:650}
html[data-tools="operator"][data-game="sighunter"] .assigned-card>small{color:var(--muted)}

html[data-tools="operator"] body > main.studio-tools{max-width:1050px}
.studio-tools h1{margin:0 0 24px;font-family:inherit;font-weight:750}
.studio-section{padding:clamp(16px,2.5vw,25px);margin-bottom:14px}
.studio-section h2{margin:0 0 12px;font-size:19px}
.studio-section p{margin-block:10px;line-height:1.5}
.studio-files{padding:0;margin:0;list-style:none}
.studio-files li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:9px 0}
.studio-section .studio-button{white-space:nowrap;display:inline-block;padding:7px 13px;border:1px solid var(--line);border-radius:6px;color:var(--ink);text-decoration:none}
.studio-section .studio-button:hover{background:#efeff1}
.studio-inline{display:flex;gap:9px;align-items:end;flex-wrap:wrap}
.studio-inline h2{margin-right:auto}
.studio-tools label{display:grid;gap:5px}
.studio-tools input:not([type="checkbox"]),.studio-tools select{min-height:38px;padding:6px 10px}
.studio-tools .studio-repeat{display:flex;align-items:center;gap:6px;min-height:38px}
.studio-tools #obs-settings [hidden],.studio-tools #obs-pair[hidden],.studio-tools #obs-forget[hidden],.studio-tools #obs-manual[hidden],.studio-tools #obs-auto[hidden]{display:none}
#obs-arm-hint:empty{display:none}
.studio-repeat input{width:15px;height:15px;margin:0}
.studio-tools fieldset{margin:13px 0 0;padding:0;border:0;min-width:0}
.studio-tools legend{margin-bottom:8px;color:var(--muted);font-size:13px}
.studio-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px}
.studio-tools .studio-help{font-size:13px;color:var(--muted)}
.studio-player{display:block;width:min(100%,520px);height:clamp(200px,42vw,295px);border:0;border-radius:8px;background:#19191b;margin:12px 0}
.studio-song-form{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr) auto;gap:9px;align-items:end;margin-bottom:14px}
.studio-song-form input{box-sizing:border-box;width:100%;min-width:0}
.studio-song-form button{justify-self:start}
#obs-add-status:empty{display:none}
@media(max-width:600px){.studio-song-form{grid-template-columns:minmax(0,1fr)}}
