/* JCULTURE WORK v1.1 adaptable display tokens, scoped to avoid overriding WireMap editor geometry. */
:root{--wm-accent:#0ea5e9;--wm-font-scale:1;--wm-bg:#f3f5f8;--wm-surface:#ffffff;--wm-ink:#172033;--wm-muted:#6f7a8a;--wm-border:#e5e9ef;--wm-sidebar:#111827}
html{font-family:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif}
body{font-family:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;font-size:calc(14px * var(--wm-font-scale))}
.wm-brand-image{display:block;width:100%;height:100%;object-fit:contain;max-width:100%;max-height:100%}
.wm-top-utils{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 0 auto;margin-left:auto;min-height:44px;flex-wrap:wrap}
.wm-utility{border:1px solid #d8e2ed;background:#fff;color:#334155;border-radius:8px;padding:0 12px;min-height:38px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.wm-utility:hover{background:#eef6ff}.wm-utility:focus-visible{outline:2px solid var(--wm-accent);outline-offset:2px}
.wm-logout{background:#fff;color:#1e3a5f;border-color:#a8bdd3}
.wm-clock{font-size:12px;color:#56677b;font-variant-numeric:tabular-nums;white-space:nowrap;padding:0 5px}
.header{min-height:60px}.header-actions{flex-wrap:wrap;align-items:center;min-width:0}.admin-head{min-height:72px;flex-wrap:wrap}
#logout{display:none!important} /* Legacy top-right logout only; sidebar #btn-logout stays visible. */
.admin-nav,.sidebar{background:var(--wm-sidebar)}
.admin-nav{width:212px;min-width:212px}.admin-nav .nav-brand{min-height:62px;align-items:center}
.admin-nav .nav-item{min-height:42px}.admin-content .panel,.admin-content .kpi{border-radius:10px}
.admin-content input,.admin-content select,.login-card input,.login-card .primary-btn{min-height:46px;font-size:14px}
.admin-content .btn{min-height:38px}.admin-content .btn.primary,.login-card .primary-btn{background:var(--wm-accent);border-color:var(--wm-accent)}
.auth-body{background:var(--wm-bg)}.login-card{max-width:420px;border-radius:14px;padding:32px}.login-card .notice{line-height:1.7}
.wm-brand-preview{border-radius:12px;border:1px solid #dce5ee;background:#f7fafc;padding:18px;margin:12px 0;color:#172033}
.wm-brand-preview strong{font-size:19px}.wm-brand-preview p{margin:4px 0 0}
.wm-brand-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.wm-brand-logo-preview{height:50px;width:50px;border-radius:12px;background:#1d4ed8;display:grid;place-items:center;color:#fff;font-weight:800}
.wm-brand-history button{margin:2px}.wm-brand-label{font-size:12px;font-weight:700;color:#63758c}
.wm-login-notice{white-space:normal}
html[data-theme="dark"]{--wm-bg:#0f1720;--wm-surface:#17212d;--wm-ink:#e8eef6;--wm-muted:#9aa8b8;--wm-border:#2a3949;--wm-sidebar:#0b111b;color-scheme:dark}
html[data-theme="dark"] body{background:var(--wm-bg);color:var(--wm-ink)}
html[data-theme="dark"] .login-card,html[data-theme="dark"] .panel,html[data-theme="dark"] .kpi,html[data-theme="dark"] .header,html[data-theme="dark"] .admin-head,html[data-theme="dark"] .editor-zone,html[data-theme="dark"] .stat,html[data-theme="dark"] .modal,html[data-theme="dark"] .dialog{background:var(--wm-surface);color:var(--wm-ink);border-color:var(--wm-border)}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .wm-utility{background:#1d2937;color:var(--wm-ink);border-color:var(--wm-border)}
html[data-theme="dark"] .admin-content p,html[data-theme="dark"] .admin-head h1{color:var(--wm-ink)}
html[data-theme="dark"] .wm-clock{color:var(--wm-muted)}
html[data-theme="dark"] table th,html[data-theme="dark"] .user-chip{background:#1d2937;color:var(--wm-ink)}
html[data-theme="dark"] .canvas-wrap{background:#f8fbff} /* architectural plan keeps light contrast */
@media(max-width:1100px){.wm-top-utils{width:100%;justify-content:flex-end}.admin-head{align-items:flex-start}}
@media(max-width:680px){.admin-nav{width:100%;min-width:0}.wm-top-utils{gap:4px}.wm-utility{min-height:36px;padding:0 8px}.wm-clock{font-size:11px}.wm-account{display:none}.login-card{padding:24px}}
@media(max-width:360px){.wm-utility{font-size:11px;padding:0 6px}.wm-clock{width:100%;text-align:right;order:-1}}

/* Additional dark-mode surfaces; the editable architectural canvas remains light. */
html[data-theme="dark"] .building-dashboard,html[data-theme="dark"] .workflow-toolbar,html[data-theme="dark"] .canvas-bar,html[data-theme="dark"] .canvas-footer,html[data-theme="dark"] .stat,html[data-theme="dark"] .search,html[data-theme="dark"] .top-overflow-body,html[data-theme="dark"] .modal-actions{background:#17212d;color:#e8eef6;border-color:#2a3949}
html[data-theme="dark"] .field label,html[data-theme="dark"] .breadcrumb,html[data-theme="dark"] .muted,html[data-theme="dark"] .canvas-footer{color:#a9b8c8}
html[data-theme="dark"] .dialog-body,html[data-theme="dark"] .dialog-actions,html[data-theme="dark"] .search input{background:#17212d;color:#e8eef6}
html[data-theme="dark"] .panel th,html[data-theme="dark"] .panel td,html[data-theme="dark"] .dialog-head{border-color:#2a3949}
html[data-theme="dark"] .editor-zone .canvas-wrap{background:#f8fbff;color:#172033}
html[data-theme="dark"] .wm-brand-preview{background:#17212d;color:#e8eef6;border-color:#2a3949}
