:root { color-scheme: light; font-family: "Inter", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; color:#162235; background:#f3f5f9; --accent:#6354dd; --edge:#dce2ed; --muted:#52617a; --nav:#151c2e; --white:#fff; }
* { box-sizing:border-box; }
body { margin:0; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(1.6rem,4vw,2.35rem); letter-spacing:-.045em; }
h2 { font-size:1.35rem; letter-spacing:-.035em; }
h3 { font-size:1.03rem; }
a { color:#4c3dc7; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; border:1px solid var(--edge); border-radius:9px; background:#fff; color:#1c2940; font-weight:650; padding:.52rem .76rem; }
button:hover { background:#edf0f7; }
button:disabled { opacity:.55; cursor:wait; }
button.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
button.primary:hover { background:#5343cc; }
:focus-visible { outline:3px solid #887cf0; outline-offset:3px; }
small,.muted { color:var(--muted); }
.splash { padding:3rem; font-size:2rem; font-weight:800; }
.auth { display:grid; grid-template-columns:1.2fr 1fr; min-height:100dvh; }
.auth-brand { background:#151c2e; color:white; display:flex; flex-direction:column; justify-content:space-between; gap:4rem; padding:clamp(2rem,7vw,7rem); }
.auth-brand h1 { font-size:clamp(2.2rem,7vw,5.8rem); line-height:1.02; max-width:10em; }
.auth-brand p { color:#bfc9e1; font-size:1.1rem; margin-top:1.4rem; }
.brand { display:flex; align-items:center; gap:.65rem; font-size:1.05rem; font-weight:800; letter-spacing:-.015em; }
.mark { display:grid; place-content:center; border-radius:10px; width:35px; aspect-ratio:1; background:#7767ef; color:#fff; font-weight:900; font-size:1.12rem; }
.auth-panel { display:grid; place-items:center; padding:2rem; }
.auth-panel > section { max-width:420px; width:100%; }
.auth-panel h2 { margin-bottom:1.25rem; }
.auth-panel form { margin-bottom:1rem; }
.workspace { min-height:100dvh; display:grid; grid-template-columns:240px minmax(0,1fr); }
.sidebar { background:var(--nav); color:#f1f3fa; min-height:100dvh; padding:1.4rem 1rem; }
.sidebar .brand { padding:.25rem .4rem 1.5rem; }
.sidebar select { width:100%; background:#242e45; color:white; border:1px solid #414d66; }
.sidebar nav { display:grid; gap:.25rem; margin-top:1.2rem; }
.sidebar button { text-align:left; background:transparent; border-color:transparent; color:#ccd6ed; }
.sidebar button:hover,.sidebar button[aria-current="page"] { background:#2b3652; color:white; }
.sidebar .create { margin-top:.45rem; width:100%; }
.surface { min-width:0; }
.topbar { padding:.85rem clamp(1rem,3.5vw,2.6rem); border-bottom:1px solid var(--edge); background:white; display:flex; justify-content:space-between; align-items:center; gap:.65rem; flex-wrap:wrap; }
.content { padding:clamp(1rem,3.5vw,2.6rem); max-width:1600px; margin:auto; display:grid; gap:1.25rem; }
.page-header { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:.75rem; }
.page-header p { margin-top:.45rem; }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.card,.panel,.stat { border:1px solid var(--edge); border-radius:14px; background:white; padding:1.1rem; min-width:0; box-shadow:0 3px 10px #1b294205; }
.card { display:grid; gap:.75rem; align-content:start; }
.panel { display:grid; gap:1rem; }
.card p,.panel p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.55; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr)); gap:.85rem; }
.stat { display:grid; gap:.4rem; }
.stat strong { font-size:1.65rem; letter-spacing:-.045em; }
.stacks { display:grid; gap:1rem; }
.row { display:flex; justify-content:space-between; gap:.7rem; align-items:flex-start; flex-wrap:wrap; }
.row h3 { overflow-wrap:anywhere; }
.media-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,175px),1fr)); gap:.75rem; }
.media-grid img,.media-grid video { width:100%; aspect-ratio:4 / 3; object-fit:contain; background:#151c2e; border-radius:8px; }
.preview { width:min(100%,305px); max-height:65vh; display:block; background:#101729; border-radius:10px; }
.pill { display:inline-flex; border-radius:100px; font-size:.78rem; font-weight:750; padding:.25rem .62rem; background:#ece9ff; color:#4030ad; }
.pill.ok { color:#106043; background:#dbf4ea; }
.pill.error { color:#8c2139; background:#fce7ec; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:.92rem; }
th,td { padding:.65rem .5rem; border-bottom:1px solid var(--edge); }
th { white-space:nowrap; color:var(--muted); font-weight:650; }
form { display:grid; gap:.85rem; }
label { display:grid; gap:.35rem; font-weight:630; font-size:.92rem; }
input,select,textarea { min-width:0; border:1px solid #bec9dc; border-radius:8px; padding:.57rem .68rem; color:#162235; background:white; }
textarea { min-height:5rem; resize:vertical; }
label.check { display:flex; align-items:center; }
fieldset { border:1px solid var(--edge); border-radius:8px; display:grid; gap:.4rem; padding:.72rem; }
legend { font-weight:650; }
dialog { width:min(94vw,620px); max-height:92dvh; border:1px solid var(--edge); border-radius:15px; color:#162235; padding:clamp(1rem,4vw,1.6rem); }
dialog::backdrop { background:#101729a8; }
dialog h2 { margin-bottom:1rem; }
.form-message { color:#8c2139; min-height:1.1rem; }
#notice:empty { display:none; }
#notice { position:fixed; bottom:1rem; right:1rem; background:#182136; color:white; border-radius:9px; padding:.7rem 1rem; z-index:10; max-width:min(90vw,500px); overflow-wrap:anywhere; }
@media(max-width:760px){ .auth { grid-template-columns:1fr; } .auth-brand { padding:1.35rem; gap:1.6rem; } .auth-brand h1 { font-size:2rem; } .auth-brand p { margin-top:.6rem; } .workspace { grid-template-columns:1fr; } .sidebar { min-height:auto; } .sidebar .brand { padding-bottom:.8rem; } .sidebar nav { display:flex; overflow:auto; margin-top:.5rem; } .sidebar nav button { flex:none; } }
[hidden] { display:none !important; }
