@import url('/assets/css/fonts.css?v=20261024-font-assets-1');
@import url('/assets/css/checkboxes.css?v=20261010-1');

:root {
    color-scheme: light;
    --ink: #202328;
    --muted: #858991;
    --line: #e9e8e3;
    --canvas: #c5c6c3;
    --paper: #fbfaf6;
    --surface: #fff;
    --accent: #179877;
    --accent-dark: #742c17;
    --green: #168c62;
    --supporting-text-color: #91918e;
    --supporting-text-size: 10px;
    --shadow: 0 18px 50px rgba(51, 47, 37, .055);
    font-family: var(--app-font-family);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow: hidden; background: var(--canvas); color: var(--ink); font-size: 13px; }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; flex: 0 0 auto; }

.app-shell { width: 100%; height: 100vh; height: 100dvh; display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 12px; padding: 12px; overflow: hidden; }
.sidebar { position: relative; top: auto; display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 20px 14px 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.76); border-radius: 24px; background: #f8f7f1; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 8px; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--accent); color: #fff; font: 700 20px/1 var(--app-font-family); box-shadow: 0 4px 11px color-mix(in srgb, var(--accent) 19%, transparent); }
.brand-copy, .workspace-switch > span:nth-child(2), .profile > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.brand-copy strong { font-size: 15px; letter-spacing: .045em; }
.brand-copy small { color: #a49e93; font-size: 8px; letter-spacing: .14em; }
.sidebar .brand-mark { flex-shrink: 0; }
.sidebar .brand-mark.has-image { overflow: hidden; background: transparent; box-shadow: none; }
.sidebar .brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sidebar .brand-copy { flex: 1; }
.sidebar .brand-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switch { display: grid; grid-template-columns: 34px minmax(0,1fr) 15px; align-items: center; gap: 9px; margin: 24px 0 24px; padding: 10px 9px; border: 1px solid #e9e6dc; border-radius: 12px; background: #fff; }
.workspace-avatar, .profile-avatar { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 10px; background: #f4e9df; color: var(--accent); font-weight: 700; }
.workspace-switch small, .profile small { color: #999a9c; font-size: 10px; }
.workspace-switch strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.chevron { color: #97938b; }
.nav-label { padding: 0 10px 9px; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.side-nav { display: grid; flex: 1 1 auto; min-height: 0; align-content: start; gap: 3px; margin-left: -14px; margin-right: -7px; padding-right: 7px; overflow-y: auto; scrollbar-width: thin; }
.nav-link { display: flex; align-items: center; gap: 9px; min-height: 41px; padding: 0 11px; border-radius: 0 22px 22px 0; color: #74777c; font-size: 12px; transition: background .15s, color .15s; }
.nav-link svg { width: 17px; height: 17px; color: #888b8e; }
.nav-link:hover, .nav-link.is-active { background: color-mix(in srgb, #fff 90%, var(--accent) 10%); color: var(--accent); box-shadow: none; }
.nav-group { min-width: 0; }
.nav-group-toggle { width: 100%; border: 0; background: transparent; text-align: left; }
.nav-link .nav-item-chevron, .nav-group-toggle .nav-group-chevron { width: 8px; height: 12px; color: #888b8e; }
.nav-group-toggle .nav-group-chevron { transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.nav-group.is-open .nav-group-chevron { transform: rotate(90deg); }
.nav-group-toggle.is-active { background: color-mix(in srgb, #fff 90%, var(--accent) 10%); color: var(--accent); font-weight: 600; box-shadow: none; }
/* Expanded vertical navigation marks the selected leaf, keeping its parent unboxed. */
html:root:not([data-menu-mode='horizontal']):not([data-sidebar-collapsed='true']) .sidebar .nav-group-toggle.is-active:not(:hover) { background: transparent; }
@media (max-width: 767px) {
    html:root:not([data-menu-mode='horizontal']) .sidebar .nav-group-toggle.is-active:not(:hover) { background: transparent; }
}
html:root[data-menu-mode='horizontal'] .nav-group[data-hover-open] > .nav-group-toggle { background: color-mix(in srgb, #fff 90%, var(--accent) 10%); }
.nav-link:is(:hover,.is-active) :is(svg,i), .nav-group[data-hover-open] > .nav-group-toggle :is(svg,i) { color: var(--accent); }
.nav-submenu { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .32s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, visibility 0s .32s; }
.nav-group.is-open .nav-submenu { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
.nav-submenu-inner { display: grid; min-height: 0; gap: 0; overflow: hidden; }
.nav-submenu-link { position: relative; min-height: 34px; padding: 0 12px 0 51px; font-size: 11px; }
.nav-submenu-link > span::before { content: "- "; white-space: pre; margin-inline-end: 5px; }
.nav-submenu-link.is-active { background: color-mix(in srgb, #fff 70%, var(--accent) 30%); color: var(--accent); box-shadow: none; font-weight: 600; }
.sidebar-bottom { flex-shrink: 0; margin-top: auto; padding-top: 10px; }
.help-link { display: flex; align-items: center; gap: 9px; padding: 8px 10px 14px; color: #73767b; font-size: 11px; }
.help-link svg { width: 16px; }
.plan-card { display: grid; gap: 6px; padding: 12px; border: 1px solid #ebe7dc; border-radius: 12px; background: linear-gradient(145deg,#fff,#f5f1e7); }
.plan-card > span { color: #aaa195; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.plan-card strong { font-size: 12px; }
.plan-card small { color: #94928c; font-size: 10px; }
.plan-card a { margin-top: 2px; color: var(--accent); font-size: 10px; font-weight: 600; }
.profile { display: grid; grid-template-columns: 34px minmax(0,1fr) 28px; align-items: center; gap: 9px; margin-top: 12px; padding: 10px 2px 0; border-top: 1px solid #e9e6dc; }
.profile strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { display: inline-grid; position: relative; width: 35px; height: 35px; place-items: center; border: 1px solid #e8e8e4; border-radius: 50%; background: #fff; color: #5e6165; }
.profile .icon-button { border: 0; background: transparent; font-size: 20px; }
.profile .profile-popup-icon { width:18px; height:18px; fill:currentColor; stroke:none; }

.main-area { min-width: 0; min-height: 0; height: 100%; display: grid; grid-template-rows: 64px minmax(0, 1fr) auto; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: #f8f7f0; box-shadow: var(--shadow); }
.topbar { position: relative; z-index: 5; display: flex; min-width: 0; height: 64px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 28px; border-bottom: 1px solid rgba(231,229,219,.8); background: rgba(250,249,244,.96); backdrop-filter: blur(14px); box-shadow: 0 6px 10px -6px #0004; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #a1a09c; font-size: 11px; }
.breadcrumbs strong { color: #34373a; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.topbar-actions > .topbar-logout-button { margin-left: 15px; }
.global-search { display: flex; width: min(280px, 30vw); height: 36px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #e8e7e2; border-radius: 10px; background: white; color: #9a9da1; }
.global-search svg { width: 15px; }
.global-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 11px; }
.global-search kbd { white-space: nowrap; padding: 2px 5px; border: 1px solid #ecebe7; border-radius: 5px; background: #fafaf8; font-size: 9px; }
.notification-button [data-popup-unread-indicator] { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #e65d4d; transform: scale(1.5); }
.notification-button [data-popup-unread-indicator][hidden] { display: none !important; }
.notification-button [data-popup-unread-indicator][data-popup-unread-blink]:not([hidden]) { animation: ddm-popup-unread-blink 1s step-end infinite; }
@keyframes ddm-popup-unread-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.language-picker { position: relative; display: inline-flex; width: 80px; height: 36px; flex: 0 0 80px; align-items: center; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: #5e6165; }
.language-picker img { position: absolute; left: 13px; width: 20px; height: 15px; object-fit: contain; pointer-events: none; }
.language-picker select { width: 100%; height: 100%; padding: 0 28px 0 38px; border: 0; border-radius: inherit; appearance: none; background: transparent; color: transparent; cursor: pointer; font-size: 11px; }
.language-picker option { background: var(--surface); color: var(--ink); font-size: 12px; }
.language-picker > svg { position: absolute; right: 10px; width: 13px; height: 13px; pointer-events: none; }
.language-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.language-picker select:focus { outline: 0; }
.topbar .breadcrumbs { min-width: 0; }
.topbar .breadcrumbs strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { flex-shrink: 0; }
.mobile-menu { display: none; }
.page-content { width: 100%; height: 100%; min-width: 0; min-height: 0; display: flex; flex-direction: column; margin: 0 auto; padding: 27px 11px 16px 15px; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 19px; }
.eyebrow { margin-bottom: 7px; color: #a47b68; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.page-heading > div:first-child { min-width: 0; flex: 1; }
.page-heading .eyebrow { display: flex; align-items: center; gap: 20px; white-space: nowrap; color: var(--accent); }
.page-heading h1 { margin: 0; font-size: clamp(23px,2.2vw,29px); font-weight: 600; letter-spacing: -.045em; }
.page-heading p { margin: 6px 0 0; color: #888b8e; font-size: 11px; }
.page-heading-actions { display: flex; align-items: center; gap: 12px; }
.date-stamp { color: #8d8e90; font-size: 10px; }
.preview-banner { display: flex; align-items: center; gap: 9px; margin: -8px 0 13px; padding: 8px 11px; border: 1px solid #eee4d0; border-radius: 9px; background: #fffaf0; color: #83745e; }
.preview-banner span { flex: 0 0 auto; color: #986d27; font-size: 9px; font-weight: 700; }
.preview-banner p { margin: 0; font-size: 9px; line-height: 1.5; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; font-size: 10px; font-weight: 600; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.button:hover { transform: none; }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 14.000000000000002%, transparent); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { border-color: #e8e7e2; background: #fff; color: #55595d; }
.button-small { min-height: 29px; padding: 0 9px; font-size: 9px; }
.welcome-strip { display: flex; align-items: center; gap: 11px; min-height: 57px; margin-bottom: 14px; padding: 9px 13px; border: 1px solid #eee9dd; border-radius: 13px; background: linear-gradient(95deg,#fffdfa,#f6f2e8); }
.welcome-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: #f4e7d5; color: var(--accent); font-size: 17px; }
.welcome-strip > span:nth-child(2) { display: grid; gap: 3px; }
.welcome-strip strong { font-size: 11px; }
.welcome-strip small { color: var(--supporting-text-color); font-size: var(--supporting-text-size); font-weight: 400; line-height: 1.4; }
.welcome-strip a { margin-left: auto; color: var(--accent); font-size: 10px; font-weight: 600; }

.section-card { width: 100%; min-width: 0; margin-bottom: 13px; padding: 17px; border: 1px solid rgba(233,231,221,.82); border-radius: 17px; background: var(--paper); box-shadow: 0 3px 12px rgba(48,45,37,.018); }
.page-content > .section-card { flex: 0 0 auto; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.025em; }
.section-heading p { margin: 5px 0 0; color: #92949a; font-size: 10px; }
.select-pill { display: inline-flex; height: 31px; align-items: center; gap: 14px; padding: 0 11px; border: 1px solid #ecebe6; border-radius: 20px; background: white; color: #676a70; font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.metric-card { position: relative; display: flex; min-height: 84px; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid #f1f0ec; border-radius: 13px; background: #fff; }
.metric-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 10px; }
.metric-icon svg { width: 17px; }
.icon-blue { background: #edf5ff; color: #4382e8; }
.icon-green { background: #edfaf2; color: #1e9c68; }
.icon-orange { background: #fff0e9; color: #d95a32; }
.icon-purple { background: #f4efff; color: #8058d8; }
.metric-copy { display: grid; min-width: 0; gap: 3px; }
.metric-copy > span { color: #80838a; font-size: 10px; }
.metric-copy strong { overflow: hidden; font-size: clamp(12.8px,1.36vw,16.8px); font-weight: 600; letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }
.metric-copy small { color: #249968; font-size: 9px; }
.hint-button { position: absolute; top: 9px; right: 9px; width: 17px; height: 17px; border: 1px solid #e7e8e7; color: #95989d; font-size: 10px; }
.insights-card { background: #f8f7f0; }
.circle-link { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #fff; color: #5e6063; }
.circle-link svg { width: 15px; }
.insight-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.insight-grid article { position: relative; min-height: 106px; padding: 13px; border: 1px solid #f0efeb; border-radius: 13px; background: #fff; }
.insight-grid article > small { display: block; margin: 0 0 5px 14px; color: #84878c; font-size: 9px; }
.insight-grid article > strong { display: block; margin-left: 14px; font-size: 16px; font-weight: 600; }
.insight-dot { position: absolute; top: 15px; left: 13px; width: 7px; height: 7px; border-radius: 50%; }
.dot-blue { background: #5e91f2; }.dot-red { background: #ed6262; }.dot-yellow { background: #edab3e; }.dot-green { background: #43b384; }
.progress { height: 6px; margin: 12px 0 9px; overflow: hidden; border-radius: 8px; background: #edf2ff; }
.insight-grid .progress { height: 11px; }
.progress i { display: block; height: 100%; border-radius: inherit; background: #668ef0; }
[data-dashboard-animate] .progress i { transform-origin: left; }
[data-count-up] { font-variant-numeric: tabular-nums; }
.partner-items-filters { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(180px, 2fr); gap: 12px; margin-bottom: 16px; }
.partner-items-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.partner-items-filters :is(select, input) { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 12px; }
@media (max-width: 560px) { .partner-items-filters { grid-template-columns: 1fr; gap: 9px; } }
[data-dashboard-animate][data-animation-state='running'] { animation: dashboard-card-enter .45s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes dashboard-card-enter { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.progress-red { background: #ffeded; }.progress-red i { background: #f26c72; }
.progress-yellow { background: #fff5dc; }.progress-yellow i { background: #edb34b; }
.progress-green { background: #e6f8ed; }.progress-green i { background: #43b889; }
.insight-foot { display: flex; justify-content: space-between; color: #a1a3a8; font-size: 8px; }
.insight-foot b { color: #5e6367; font-weight: 600; }
.table-section { padding-bottom: 9px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 10px; font-weight: 600; }
.text-link svg { width: 13px; }
.table-wrap { width: 100%; overflow: auto; border: 1px solid #eeede8; border-radius: 11px; background: #fff; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { height: 38px; padding: 0 12px; background: #fbfbf9; color: #85888d; font-size: 9px; font-weight: 500; white-space: nowrap; }
td { height: 46px; padding: 8px 12px; border-top: 1px solid #f0efeb; color: #45494d; font-size: 10px; white-space: nowrap; }
tbody tr:hover { background: #fdfcf9; }
td strong { font-weight: 600; }
.mono { color: #71757a; font-family: var(--app-font-family); font-size: 9px; }
.amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; min-height: 21px; align-items: center; padding: 0 8px; border: 1px solid transparent; border-radius: 15px; font-size: 9px; }
.status-success { border-color: #c8ead9; background: #effaf4; color: #188555; }
.status-warning { border-color: #f4dfae; background: #fff8e8; color: #a77717; }
.status-info { border-color: #d7e7fb; background: #f0f7ff; color: #5180b5; }
.status-accent { border-color: #f2d8c9; background: #fff3ec; color: #b45e37; }
.status-neutral { border-color: #e8e8e5; background: #f7f7f5; color: #72767a; }
.row-action { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--accent); color: white; }
.row-action svg { width: 13px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 9px 3px 0; color: #9b9da0; font-size: 9px; }
.app-footer { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 34px; border-top: 1px solid rgba(231,229,219,.9); background: rgba(250,249,244,.97); color: #a2a29f; font-size: 9px; }
.app-footer a { color: #82827e; }

.table-toolbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.table-search { display: flex; width: min(290px,60%); height: 34px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #e8e7e2; border-radius: 8px; background: #fff; color: #999; }
.table-search svg { width: 14px; }
.table-search input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 10px; }
.permission-legend { display: flex; gap: 12px; padding: 11px 2px 2px; color: #8e8f91; font-size: 9px; }
.permission-legend b { color: #606368; font-weight: 500; }
.skin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.skin-card { overflow: hidden; border: 1px solid #ebe9e2; border-radius: 14px; background: #fff; }
.skin-preview { position: relative; display: flex; min-height: 205px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 16px; }
.skin-preview > span { z-index: 1; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.skin-preview > div { z-index: 1; display: grid; gap: 8px; align-content: end; }
.skin-preview > div small { font-size: 8px; letter-spacing: .16em; }
.skin-preview > div strong { font-size: 21px; line-height: 1.25; letter-spacing: -.04em; }
.skin-preview > div button { width: max-content; padding: 7px 11px; border: 0; border-radius: 18px; font-size: 8px; }
.skin-preview > i { position: absolute; top: 47px; right: 24px; display: grid; width: 99px; height: 118px; place-items: center; transform: rotate(10deg); border: 1px solid rgba(80,60,43,.16); background: repeating-linear-gradient(90deg,rgba(90,67,45,.1) 0 1px,transparent 1px 6px),linear-gradient(145deg,#e7d3b8,#f4e9d5); color: rgba(88,62,39,.48); font-size: 13px; font-style: normal; text-align: center; }
.skin-market { background: #eee6d6; color: #473a2d; }.skin-market > div button { background: #503925; color: #fff; }
.skin-atelier { background: #ded7cb; color: #41403c; }.skin-atelier > i { transform: rotate(-8deg); background: repeating-linear-gradient(0deg,rgba(90,67,45,.09) 0 1px,transparent 1px 5px),#b9c0ab; }.skin-atelier > div button { background: #45513c; color: white; }
.skin-minimal { background: #f2f0e9; color: #222; }.skin-minimal > i { border-radius: 48% 48% 4px 4px; background: linear-gradient(140deg,#d9d3c5,#f9f6ee); }.skin-minimal > div button { background: #252525; color: #fff; }
.skin-archive { background: #d8e1d9; color: #35443b; }.skin-archive > i { border-radius: 50%; background: repeating-linear-gradient(145deg,rgba(37,74,54,.14) 0 2px,transparent 2px 6px),#bbc9b7; }.skin-archive > div button { background: #455d4b; color: #fff; }
.skin-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; }
.skin-kicker { color: #ae806b; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.skin-info h3 { margin: 4px 0; font-size: 13px; }
.skin-info p { margin: 0; color: #8c8e91; font-size: 9px; line-height: 1.5; }
.settings-section { max-width: none; padding: 20px; }
.setting-row { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #efeee9; }
.setting-row strong { font-size: 11px; }
.setting-row p { margin: 4px 0 0; color: #939599; font-size: 9px; }
.setting-row select { min-width: 105px; height: 33px; padding: 0 9px; border: 1px solid #e6e5df; border-radius: 8px; background: #fff; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch > span { position: relative; display: block; width: 38px; height: 22px; border-radius: 15px; background: #d7d8d7; transition: background .18s; }
.switch > span::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #0002; content: ""; transition: transform .18s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(16px); }
.setting-actions { display: flex; gap: 8px; margin-top: 16px; }
.channel-grid, .server-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.channel-grid article, .server-grid article { display: grid; min-height: 119px; align-content: start; gap: 7px; padding: 13px; border: 1px solid #eeede8; border-radius: 11px; background: #fff; }
.channel-grid strong { font-size: 11px; }
.channel-grid small, .server-grid small { color: #929498; font-size: 9px; }
.channel-symbol { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: #f3eee6; color: var(--accent); font-size: 8px; font-weight: 700; }
.channel-symbol.kakao { background: #fff4cc; color: #6d5010; }.channel-symbol.mail { background: #edf4ff; color: #4d76af; }
.channel-grid .status { width: max-content; }
.server-grid article > span { color: #85878a; font-size: 9px; }
.server-grid article strong { font-size: 13px; }
.security-note { margin: 14px 0 0; color: #93959a; font-size: 9px; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.form-grid label { display: grid; gap: 6px; color: #808286; font-size: 9px; }
.form-grid input, .form-grid select { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid #ebeae4; border-radius: 8px; background: #fff; color: #55595d; font-size: 10px; }
.setting-row select, .permission-editor select { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid #ebeae4; border-radius: 8px; background: #fff; color: #55595d; font-size: 10px; }
.management-panel { margin: 0 0 12px; border: 1px solid #eeede8; border-radius: 11px; background: #fff; }
.management-panel > summary { padding: 12px 14px; color: #55595d; cursor: pointer; font-size: 10px; font-weight: 600; }
.management-panel[open] > summary { border-bottom: 1px solid #eeede8; }
.management-form { padding: 13px; }
.management-actions { display: flex; grid-column: 1 / -1; align-items: center; flex-wrap: wrap; gap: 8px; }
.management-actions > span { color: #8c8e91; font-size: 9px; }
.inline-checkbox { display: flex !important; align-items: center; gap: 9px !important; }
.order-items { display: grid; grid-column: 1 / -1; gap: 8px; }.order-item-row { display: grid; grid-template-columns: minmax(180px,2fr) minmax(90px,1fr) minmax(110px,1fr) auto; align-items: end; gap: 8px; padding: 10px; border: 1px solid #eeede8; border-radius: 9px; background: #fff; }.order-item-row label { display: grid; gap: 5px; color: #808286; font-size: 9px; }.order-item-row select,.order-item-row input { min-width: 0; height: 34px; padding: 0 8px; border: 1px solid #ebeae4; border-radius: 7px; background: #fff; font-size: 10px; }.order-items + .management-actions strong { margin-left: auto; color: #4f5357; font-size: 11px; }
.dispatch-notice { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 11px 13px; border: 1px solid #f0e3d2; border-radius: 10px; background: #fff9ef; }
.notice-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: #f9ebd8; color: #ad7223; }
.dispatch-notice p { margin: 0; color: #8b8175; font-size: 9px; line-height: 1.65; }.dispatch-notice strong { color: #5b5145; font-size: 10px; }
.dispatch-input input { width: 68px; height: 28px; padding: 0 6px; border: 1px solid #e8e7e2; border-radius: 6px; outline-color: var(--accent); }
.dispatch-order-item { display: grid; gap: 3px; min-width: 150px; padding: 3px 0; }.dispatch-order-item strong { color: #55595d; font-size: 9px; }.dispatch-order-item small,.dispatch-stock { color: #898b8e; font-size: 9px; white-space: nowrap; }.dispatch-stock { padding: 6px 0; }
.dispatch-controls { display: grid; min-width: 125px; gap: 6px; }.dispatch-meta-input { display: grid; gap: 3px; color: #85878b; font-size: 8px; }.dispatch-meta-input input { width: 100%; min-width: 95px; height: 27px; padding: 0 6px; border: 1px solid #e8e7e2; border-radius: 6px; font-size: 9px; }
.empty-cell { height: 70px; color: #999; text-align: center; }
.alert-list > article { display: flex; gap: 11px; padding: 15px 0; border-top: 1px solid #eeede8; }
.alert-mark { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; font-weight: 700; }
.alert-red { background: #fff0ed; color: #db5c4d; }.alert-yellow { background: #fff6dc; color: #c58a20; }.alert-blue { background: #edf5ff; color: #4884ca; }
.alert-list article strong { font-size: 11px; }.alert-list article p { margin: 4px 0; color: #87898d; font-size: 10px; }.alert-list article small { color: #a0a1a4; font-size: 8px; }
.alert-list article.is-read { opacity: .65; }.alert-read { margin-left: auto; align-self: center; }
.tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.tool-card { display: grid; min-width: 0; justify-items: start; align-content: start; gap: 8px; padding: 16px; border: 1px solid #eeede8; border-radius: 12px; background: #fff; }
.tool-card > span { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 10px; background: #f6eee6; color: var(--accent); font-size: 17px; }
.tool-card strong { font-size: 11px; }.tool-card small { color: #95969a; font-size: 9px; }
.tool-fields { display: flex; width: 100%; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.tool-fields input,.tool-fields select { min-width: 0; height: 34px; padding: 0 8px; border: 1px solid #e8e7e2; border-radius: 7px; background: #fff; }
.tool-fields input[type="number"] { width: 100px; }.tool-fields input[type="text"] { flex: 1; }
.tool-fields label { display: grid; gap: 4px; color: #85878b; font-size: 9px; }
.tool-fields output { width: 100%; color: var(--accent); font-size: 11px; font-weight: 700; }
.tool-fields input[type="color"] { width: 48px; padding: 3px; }
.empty-page { display: grid; min-height: 300px; justify-items: center; align-content: center; text-align: center; }
.empty-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: #f4eee5; color: var(--accent); }
.empty-page h2 { margin: 14px 0 5px; font-size: 16px; }.empty-page p { margin: 0 0 14px; color: #929498; font-size: 10px; }
.mobile-overlay { display: none; }
.permission-editor { display: grid; grid-template-columns: minmax(150px,1fr) minmax(150px,1fr) auto auto; align-items: end; gap: 10px; margin-bottom: 13px; padding: 12px; border: 1px solid #eeede8; border-radius: 11px; background: #fff; }
.permission-editor > label { display: grid; gap: 5px; color: #85878b; font-size: 9px; }
.permission-editor select { min-width: 0; height: 34px; padding: 0 8px; border: 1px solid #e9e8e2; border-radius: 7px; background: white; color: #4c4f53; font-size: 9px; }
.permission-checks { display: flex; flex-wrap: wrap; gap: 9px; min-height: 34px; align-items: center; }
.permission-checks label { display: flex; align-items: center; gap: 9px; color: #66696d; font-size: 9px; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; overflow: auto; background: radial-gradient(ellipse at 10% 10%,#f9f3e6 0,transparent 38%),radial-gradient(ellipse at 90% 85%,#e5efe8 0,transparent 35%),#efeee7; }
.login-shell { width: min(100%,430px); }
.login-card { padding: 32px 32px 17px; border: 1px solid rgba(255,255,255,.85); border-radius: 22px; background: rgba(255,255,255,.8); box-shadow: 0 24px 70px rgba(48,45,37,.11); }
.login-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login-card-header > .login-brand { flex: 1; min-width: 0; }
.login-card-header .brand-copy { flex: 1; min-width: 0; }
.login-card-header .brand-copy > :is(strong, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-card-header > .language-picker { max-width: 50%; border-radius: 20px !important; }
.login-card-header [data-language-label] { overflow: hidden; text-overflow: ellipsis; }
.login-brand { padding: 0; }
.login-heading { margin: 34px 0 24px; }
.login-heading h1 { margin: 6px 0; font-size: 25px; font-weight: 600; letter-spacing: -.05em; }
.login-heading p { margin: 0; color: #898b8e; font-size: 10px; }
.login-form { display: grid; gap: 8px; }
.login-label { margin-top: 7px; color: #4c5054; font-size: 10px; font-weight: 600; }
.login-label small { margin-left: 4px; color: #999b9e; font-size: 8px; font-weight: 400; }
.login-input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #e7e5df; border-radius: 9px; outline: 0; background: #fff; color: #303338; font-size: 11px; }
.login-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent); }
.login-input[readonly] { background: #f3f2ed; color: #626762; cursor: default; }
.login-company-note { color: #858b85; font-size: 9px; line-height: 1.5; }
.login-submit { width: 100%; min-height: 42px; margin-top: 15px; font-size: 11px; }
.login-submit:disabled { cursor: wait; opacity: .66; }
.login-form.company-profile-form .login-label { margin: 0; }
.login-form.company-profile-form .login-label small { margin-left: 0; color: var(--ui-muted-color); font-size: var(--ui-label-size); }
.login-form.company-profile-form .login-input[readonly] { cursor: default; }
.login-form.company-profile-form .login-company-note { color: var(--ui-muted-color); font-size: var(--ui-label-size); }
.login-actions .login-submit, .login-actions .login-back { margin: 0; }
.login-actions [data-login-submit] { margin-top:10px; }
.login-remember { display:inline-flex; align-items:center; gap:7px; width:max-content; color:var(--ui-text-color); font:400 var(--ui-text-size)/1.5 var(--app-font-family); }
.login-remember input { margin:0; width:14px; height:14px; accent-color:var(--accent); }
.login-actions .login-back { width: 100%; }
.login-message { display: block; min-height: 17px; margin-top: 4px; color: #777c80; font-size: 9px; line-height: 1.6; }
.login-form > .login-message:empty { min-height: 2px; }
.login-message.is-error { color: #bf3f36; }
.login-security { margin: 18px 0 0; padding-top: 13px; border-top: 1px solid #eeece6; color: #989995; font-size: 8px; line-height: 1.6; text-align: center; }
.login-footer { margin-top: 15px; color: #fff; font-size: 8px; text-align: center; text-shadow: 0 0 2px #000, 0 1px 3px #000, 0 2px 8px #000b; }
.login-otp-step { padding-top: 8px; text-align: center; }
.login-otp-step[hidden], [data-login-fields][hidden] { display: none !important; }
.login-otp-step h2 { margin: 0; font-size: 18px; }
.login-otp-step > p { margin: 7px 0 17px; color: #85868b; font-size: 9px; }
.login-otp-grid { margin: 15px 0 3px; }
.login-back { display: block; margin: 12px auto 0; padding: 5px; border: 0; background: transparent; color: #777a7e; font-size: 9px; }

.auth-modal { position: fixed; z-index: 30; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; }
.auth-modal.is-open { display: flex; }
.auth-backdrop { position: absolute; inset: 0; border: 0; background: rgba(43,43,50,.38); backdrop-filter: blur(5px); }
.auth-dialog { position: relative; width: min(100%,430px); max-height: calc(100dvh - 40px); margin: 0; padding: 27px 30px 24px; overflow: auto; border: 1px solid rgba(255,255,255,.86); border-radius: 23px; background: rgba(255,252,248,.98); color: var(--ink); box-shadow: 0 28px 80px rgba(34,30,25,.22); text-align: center; }
.auth-close { position: absolute; top: 13px; right: 16px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #898782; font-size: 23px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 9px; color: #303136; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.auth-brand > span:last-child { display: grid; gap: 3px; text-align: left; }.auth-brand small { color: #a09a91; font-size: 7px; letter-spacing: .16em; }
.auth-lock { display: grid; width: 41px; height: 41px; place-items: center; margin: 22px auto 12px; border-radius: 13px; background: #f5e9de; color: var(--accent); font-size: 20px; }
.auth-dialog h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }.auth-dialog > p { margin: 8px 0 20px; color: #85868b; font-size: 10px; }
.otp-grid { display: grid; grid-template-columns: repeat(6,minmax(36px,1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.otp-grid input { width: 100%; height: 53px; border: 1px solid #e1ded7; border-radius: 10px; outline: 0; background: #fff; color: #303238; font-size: 22px; font-weight: 600; text-align: center; transition: border-color .15s, box-shadow .15s; }
.otp-grid input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.auth-meta { display: flex; justify-content: space-between; margin: 11px 1px 17px; color: #888a8e; font-size: 9px; }.auth-meta strong { color: var(--accent); font-variant-numeric: tabular-nums; }.auth-meta button { padding: 0; border: 0; background: transparent; color: #797b80; font-size: 9px; }
.auth-submit { width: 100%; min-height: 42px; font-size: 11px; }.auth-footnote { display: block; margin-top: 13px; color: #a09f9b; font-size: 8px; }
.toast { position: fixed; z-index: 40; right: 22px; bottom: 20px; max-width: min(380px,calc(100vw - 36px)); padding: 12px 16px; transform: translateY(12px); border-radius: 11px; background: #292d32; color: white; font-size: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 7px 24px #0002; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Responsive company storefront preview */
.store-page { min-width: 320px; background: #faf9f5; }
.storefront { min-height: 100vh; --store-ink:#30312f; --store-accent:#8e3b22; --store-canvas:#f5f1e8; color: var(--store-ink); }
.store-atelier { --store-ink:#333b34; --store-accent:#53634e; --store-canvas:#f0eee7; }
.store-minimal { --store-ink:#282828; --store-accent:#272727; --store-canvas:#faf9f5; }
.store-archive { --store-ink:#344338; --store-accent:#496550; --store-canvas:#eff2ed; }
.store-topline { padding: 8px 14px; background: var(--store-accent); color: #fff; font-size: 9px; text-align: center; }
.store-header { display: flex; max-width: 1320px; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; margin: auto; padding: 0 28px; border-bottom: 1px solid #eae8e2; }
.store-brand { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .07em; }
.store-brand > span:last-child { display: grid; gap: 4px; }.store-brand small { color: #9e9c95; font-size: 7px; letter-spacing: .15em; }
.store-brand .brand-mark { background: var(--store-accent); }
.store-header nav { display: flex; gap: clamp(14px,3vw,36px); color: #686a66; font-size: 10px; }
.store-main { max-width: 1320px; margin: auto; padding: 0 28px; }
.store-hero { display: grid; min-height: 400px; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 35px; padding: 35px 0; }
.store-hero > div:first-child > span, .store-kicker { color: #9b715a; font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.store-hero h1 { margin: 15px 0 10px; color: var(--store-ink); font-family: var(--app-font-family); font-size: clamp(40px,5vw,66px); font-weight: 500; line-height: 1.1; letter-spacing: -.055em; }
.store-hero p { margin: 0 0 21px; color: #7b7c77; font-size: 11px; line-height: 1.9; }
.store-hero .button { background: var(--store-accent); }
.store-hero .button svg { width: 14px; }
.fabric-art { position: relative; display: flex; min-height: 322px; align-items: end; justify-content: end; overflow: hidden; padding: 23px; background: linear-gradient(140deg,#ded1be,#eee8dc 48%,#d7d5c7); }
.fabric-art::before, .fabric-art::after { position: absolute; content: ""; }
.fabric-art::before { inset: 12% 11% 14% 20%; transform: rotate(-7deg); border: 1px solid #b4a790; background: repeating-linear-gradient(90deg,rgba(112,88,59,.13) 0 1px,transparent 1px 5px),linear-gradient(125deg,#c5b49c,#efe4d1 45%,#d4c4ab); box-shadow: 0 15px 35px #635b4d22; }
.fabric-art::after { inset: 24% 22% 8% 34%; transform: rotate(8deg); border: 1px solid #d0c7b7; background: repeating-linear-gradient(0deg,rgba(92,90,81,.07) 0 1px,transparent 1px 5px),linear-gradient(135deg,#faf7ef,#d6d0c1); box-shadow: 0 12px 28px #534d4122; }
.fabric-art span, .fabric-art b { position: relative; z-index: 1; color: #5b564b; font-size: 8px; letter-spacing: .15em; line-height: 1.7; }.fabric-art b { font-size: 9px; }
.store-products { padding: 39px 0 55px; border-top: 1px solid #e9e7df; }
.store-products .section-heading { align-items: end; }.store-products .section-heading h2 { margin: 5px 0 0; font-family: var(--app-font-family); font-size: 25px; font-weight: 500; }.store-products .section-heading p { font-size: 10px; }
.store-products .section-heading > a { color: var(--store-accent); font-size: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.product-grid article > small { color: #8f8c85; font-size: 8px; letter-spacing: .12em; }.product-grid article h3 { margin: 6px 0 4px; font-size: 12px; }.product-grid article p { margin: 0 0 8px; color: #92918c; font-size: 9px; }.product-grid article > strong { font-size: 11px; }.product-grid article > strong small { color: #888; font-size: 8px; font-weight: 400; }
.fabric-swatch { display: flex; height: 180px; align-items: end; justify-content: end; margin-bottom: 12px; padding: 12px; }
.fabric-swatch span { color: #fff; font: 12px var(--app-font-family); text-shadow: 0 1px 4px #0005; }
.swatch-one { background: repeating-linear-gradient(100deg,rgba(125,105,76,.08) 0 1px,transparent 1px 5px),linear-gradient(135deg,#eee4d5,#d1c0a8); }
.swatch-two { background: repeating-linear-gradient(90deg,rgba(61,71,52,.1) 0 1px,transparent 1px 7px),linear-gradient(135deg,#aeb2a0,#ded8c4); }
.swatch-three { background: repeating-linear-gradient(110deg,rgba(102,68,83,.08) 0 1px,transparent 1px 5px),linear-gradient(135deg,#e0ced0,#c3a8ae); }
.swatch-four { background: repeating-linear-gradient(90deg,rgba(15,45,74,.15) 0 1px,transparent 1px 4px),linear-gradient(130deg,#647d92,#273f58); }
.store-footer { padding: 17px 10px; border-top: 1px solid #e9e7df; color: #92918c; font-size: 9px; text-align: center; }
.store-skin-switch { position: fixed; right: 15px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e8e6de; border-radius: 12px; background: #fff; box-shadow: 0 7px 24px #00000012; }
.store-skin-switch label { color: #777; font-size: 8px; }.store-skin-switch select { max-width: 118px; border: 0; background: transparent; color: #444; font-size: 9px; }.store-skin-switch a { padding-left: 7px; border-left: 1px solid #eee; color: var(--accent); font-size: 8px; }
.quick-tools-button { flex: 0 0 auto; border-radius: 10px; }
.quick-tools-overlay { position: fixed; z-index: 19; inset: 0; background: rgba(28,29,30,.28); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.quick-tools-panel { position: fixed; z-index: 20; top: 0; right: 0; display: flex; width: min(380px, calc(100vw - 20px)); height: 100vh; height: 100dvh; flex-direction: column; gap: 14px; padding: 22px; overflow-y: auto; transform: translateX(105%); border-left: 1px solid #e9e7df; background: #fbfaf6; box-shadow: -16px 0 50px rgba(36,34,30,.13); transition: transform .22s ease; }
html.quick-tools-open .quick-tools-overlay { opacity: 1; pointer-events: auto; }
html.quick-tools-open .quick-tools-panel { transform: translateX(0); }
.quick-tools-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid #e9e7df; }
.quick-tools-heading .eyebrow { margin: 0 0 6px; }.quick-tools-heading h2 { margin: 0; font-size: 19px; letter-spacing: .01em; }.quick-tools-heading p { margin: 5px 0 0; color: #8b8d91; font-size: 10px; }
.quick-tools-links { display: grid; gap: 7px; }
.quick-tools-links a { display: flex; min-height: 55px; align-items: center; gap: 11px; padding: 9px 11px; border: 1px solid #eeece5; border-radius: 10px; background: #fff; }
.quick-tools-links a > svg { color: var(--accent); }.quick-tools-links a > span { display: grid; gap: 4px; }.quick-tools-links strong { font-size: 10px; }.quick-tools-links small { color: #96979a; font-size: 9px; }
.quick-tool-card { display: grid; gap: 10px; padding: 13px; border: 1px solid #ebe9e2; border-radius: 12px; background: #fff; }
.quick-tool-card h3 { margin: 0; font-size: 11px; }
.quick-tool-fields { display: flex; align-items: end; gap: 8px; }
.quick-tool-fields label { display: grid; min-width: 0; flex: 1; gap: 5px; color: #85878b; font-size: 9px; }
.quick-tool-fields input,.quick-tool-fields select { width: 100%; min-width: 0; height: 35px; padding: 0 8px; border: 1px solid #e8e7e2; border-radius: 7px; background: #fff; }
.quick-tool-card output { color: var(--accent); font-size: 12px; font-weight: 700; }
.quick-tools-hint { margin: auto 0 0; padding-top: 10px; border-top: 1px solid #e9e7df; color: #8f9092; font-size: 9px; }
.quick-tools-hint kbd { padding: 3px 6px; border: 1px solid #e3e2dd; border-radius: 5px; background: white; color: #555; }

@media (min-width: 1500px) {
    .app-shell { grid-template-columns: 260px minmax(0,1fr); gap: 15px; padding: 15px; }
    .page-content { padding-right: 15px; padding-left: 19px; }
    .app-footer { padding-right: 42px; padding-left: 42px; }
}
@media (max-width: 1100px) {
    .app-shell { grid-template-columns: 215px minmax(0,1fr); gap: 9px; padding: 9px; }
    .sidebar { padding-right: 10px; padding-left: 10px; }
    .topbar { padding: 0 18px; }
    .page-content { padding: 22px 5.5px 14px 9.5px; }
    .app-footer { padding-right: 23px; padding-left: 23px; }
    .metric-card { gap: 8px; padding: 10px; }
    .metric-icon { width: 31px; height: 31px; }
    .metric-copy > span { font-size: 9px; }
    .metric-copy small { font-size: 8px; }
}
@media (max-width: 800px) {
    body { overflow: hidden; }
    .app-shell { display: block; height: 100vh; height: 100dvh; padding: 0; }
    .sidebar { position: fixed; z-index: 15; top: 0; bottom: 0; left: 0; width: min(290px,85vw); height: 100dvh; min-height: 0; transform: translateX(-105%); border-radius: 0 20px 20px 0; transition: transform .22s ease; }
    body.menu-open .sidebar { transform: translateX(0); }
    .mobile-overlay { position: fixed; z-index: 14; inset: 0; display: block; background: rgba(33,34,35,.35); opacity: 0; pointer-events: none; transition: opacity .2s; }
    body.menu-open .mobile-overlay { opacity: 1; pointer-events: auto; }
    .main-area { height: 100%; min-height: 0; grid-template-rows: 58px minmax(0,1fr) auto; border: 0; border-radius: 0; }
    .topbar { height: 58px; gap: 10px; padding: 0 15px; }
    .mobile-menu { display: inline-grid; width: 32px; height: 32px; border-radius: 9px; }
    .mobile-menu svg { width: 16px; }
    .breadcrumbs { margin-right: auto; font-size: 10px; }
    .global-search { width: 35px; justify-content: center; padding: 0; border: 0; background: transparent; }
    .global-search input, .global-search kbd { display: none; }
    .topbar-actions { gap: 5px; }
    .topbar-actions > .notification-button { width: 32px; height: 32px; }
    .page-content { padding: 20px 8px 14px; scrollbar-gutter: stable both-edges; }
    .app-footer { padding-right: 20px; padding-left: 20px; }
    .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .insight-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .metric-card { min-height: 77px; }
    .metric-copy strong { font-size: 14.4px; }
    .section-card { padding: 14px; }
    .store-header { min-height: 65px; padding: 0 18px; }
    .store-header nav { display: none; }
    .store-main { padding: 0 18px; }
    .store-hero { min-height: 330px; gap: 16px; }
    .fabric-art { min-height: 250px; }
    .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 20px; }
    .fabric-swatch { height: 205px; }
}
@media (max-width: 560px) {
    body { min-width: 320px; }
    .topbar { padding: 0 11px; }
    .breadcrumbs > span:first-child { display: none; }.breadcrumbs > span:nth-child(2) { display: none; }
    .topbar-actions { gap: 3px; }
    .language-picker { width: 62px; flex-basis: 62px; }
    .language-picker img { left: 10px; }
    .language-picker > svg { right: 8px; }
    .page-content { padding: 16px 5.5px 12px; }
    .app-footer { padding-right: 15px; padding-left: 15px; }
    .page-heading { align-items: start; margin-bottom: 14px; }
    .page-heading h1 { font-size: 23px; }.page-heading p { max-width: 245px; font-size: 10px; line-height: 1.5; }
    .page-heading-actions { display: grid; justify-items: end; gap: 6px; }.date-stamp { font-size: 8px; }.page-heading-actions .button { min-height: 31px; padding: 0 9px; font-size: 9px; }
    .welcome-strip { gap: 8px; padding: 8px; }.welcome-strip small { max-width: 180px; line-height: 1.4; }.welcome-strip a { font-size: 8px; white-space: nowrap; }
    .section-card { margin-bottom: 10px; padding: 12px; border-radius: 14px; }
    .section-heading { gap: 8px; margin-bottom: 11px; }.section-heading h2 { font-size: 12px; }.section-heading p { max-width: 260px; line-height: 1.5; font-size: 9px; }
    .select-pill { height: 28px; gap: 7px; padding: 0 8px; font-size: 8px; }
    .metric-grid { gap: 7px; }.metric-card { min-height: 76px; gap: 7px; padding: 8px; border-radius: 10px; }
    .metric-icon { width: 28px; height: 28px; border-radius: 8px; }.metric-icon svg { width: 14px; }
    .metric-copy > span { max-width: 105px; font-size: 8px; }.metric-copy strong { font-size: 12.8px; }.metric-copy small { max-width: 120px; overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
    .hint-button { top: 6px; right: 6px; width: 14px; height: 14px; font-size: 8px; }
    .insight-grid { gap: 7px; }.insight-grid article { min-height: 95px; padding: 10px; }.insight-grid article > small { margin-left: 12px; font-size: 8px; }.insight-grid article > strong { margin-left: 12px; font-size: 14px; }.insight-dot { top: 12px; left: 10px; width: 6px; height: 6px; }
    .progress { margin: 9px 0 7px; }.insight-foot { font-size: 7px; }
    .table-wrap { margin-right: -1px; overflow: visible; }
    table { width: 100%; min-width: 0; table-layout: fixed; }
    table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    table tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 12px; padding: 9px 10px; border-top: 1px solid #f0efeb; }
    table td { display: block; min-width: 0; height: auto; min-height: 33px; padding: 4px 0; overflow-wrap: anywhere; border: 0; font-size: 9px; white-space: normal; }
    table td::before { display: block; margin-bottom: 3px; color: #999a9d; content: attr(data-label); font-size: 7px; }
    table td[data-label=""]::before { display: none; }
    table td[colspan] { grid-column: 1 / -1; text-align: center; }
    .status { min-height: 19px; padding: 0 6px; font-size: 8px; }
    .text-link { font-size: 8px; white-space: nowrap; }.text-link svg { width: 11px; }
    .app-footer { flex-wrap: wrap; justify-content: center; gap: 6px 12px; font-size: 8px; text-align: center; }
    .skin-grid { grid-template-columns: 1fr; gap: 10px; }.skin-preview { min-height: 180px; }.skin-preview > i { right: 16%; width: 87px; height: 108px; }.skin-info { align-items: start; padding: 11px; }.skin-info p { max-width: 205px; }
    .channel-grid, .server-grid { grid-template-columns: 1fr; }.channel-grid article, .server-grid article { min-height: 98px; }
    .form-grid { grid-template-columns: 1fr; }.setting-row { min-height: 61px; }.setting-actions { flex-wrap: wrap; }
    .order-item-row { grid-template-columns: repeat(2,minmax(0,1fr)); }.order-item-row > label:first-child { grid-column: 1 / -1; }
    .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.tool-card { padding: 12px; }
    .permission-legend { flex-wrap: wrap; gap: 8px; font-size: 8px; }
    .permission-editor { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 8px; padding: 9px; }
    .permission-checks { grid-column: 1 / -1; }
    .permission-editor > button { grid-column: 1 / -1; }
    .login-page { padding: 16px; }
    .login-card { padding: 25px 19px 10px; border-radius: 18px; }
    .login-heading { margin: 27px 0 18px; }
    .login-heading h1 { font-size: 22px; }
    .store-header { gap: 8px; min-height: 58px; padding: 0 12px; }.store-header > .button { min-height: 31px; padding: 0 8px; font-size: 8px; }
    .store-brand { gap: 6px; font-size: 10px; }.store-brand .brand-mark { width: 29px; height: 29px; }
    .store-main { padding: 0 13px; }.store-hero { min-height: auto; grid-template-columns: 1fr; padding: 27px 0 23px; }.store-hero h1 { margin: 9px 0; font-size: 43px; }.store-hero p { font-size: 10px; }
    .fabric-art { min-height: 210px; }.store-products { padding: 27px 0 35px; }.store-products .section-heading h2 { font-size: 21px; }.fabric-swatch { height: 145px; }
    .store-skin-switch { right: 9px; bottom: 9px; gap: 6px; padding: 7px; }.store-skin-switch label { display: none; }.store-skin-switch select { max-width: 103px; }.store-skin-switch a { font-size: 7px; }
    .auth-dialog { padding: 24px 17px 20px; border-radius: 19px; }.otp-grid { gap: 5px; }.otp-grid input { height: 47px; border-radius: 8px; font-size: 19px; }.auth-dialog h2 { font-size: 18px; }
    .toast { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.font-preview { display: grid; gap: 10px; margin: 18px 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.font-preview small, .font-preview p, .font-preview span { color: var(--muted); }
.font-preview small, .font-preview span { font-size: 11px; }
.font-preview strong { font-size: 24px; line-height: 1.5; font-weight: 700; }
.font-preview p { margin: 0; font-size: 13px; }
[data-font-settings] .setting-actions { flex-wrap: wrap; }
[data-font-settings] .setting-row select { max-width: 100%; }
@media (max-width: 600px) { [data-font-settings] .setting-row { align-items: stretch; flex-direction: column; gap: 12px; } }

/* KPI and insight values share the weight used by outstanding payments. */
.metric-copy strong,
.insight-grid article > strong {
    font-family: var(--app-font-family);
    font-weight: var(--dashboard-value-weight, 600);
}
.metric-copy strong { padding-left: 10px; }

/* Superadmin tenant management and editable hosting specifications. */
.company-list-toolbar { display: grid; grid-template-columns: minmax(160px, 1fr) 130px minmax(280px, 340px) 214px; align-items: end; gap: 12px; margin: 16px 0; }
.company-list-search, .company-list-status, .company-list-period { display: grid; gap: 4px; min-width: 0; }
.company-list-period-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; min-width: 0; }
.company-list-search-reset { white-space: nowrap; }
.company-list-search input { width: 100%; }
.company-list-field-label { color: var(--ui-label-color); font-size: var(--ui-text-size); white-space: nowrap; }
.company-list-date-range { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 8px; color: var(--ui-label-color); font-size: var(--ui-text-size); }
.company-list-date-label { white-space: nowrap; }
.company-list-date-field { display: grid; gap: 4px; min-width: 0; }
.company-list-date-separator { align-self: end; line-height: 38px; }
.company-list-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 14px 0 4px; }
.company-list-pagination-host { flex: 1 1 auto; min-width: 0; }
.company-list-footer .admin-list-pagination { margin: 0; }
:root .page-content .company-list-footer button.button[data-company-create] { flex: 0 0 auto; height: var(--admin-pagination-button-height, 30px); min-height: var(--admin-pagination-button-height, 30px); max-height: var(--admin-pagination-button-height, 30px); padding: 0 10px; border-radius: 5px; font-size: .8rem; line-height: 1; }
:root .company-list-footer [data-company-create] svg { width: 14px; height: 14px; }
@media (max-width: 1240px) { .company-list-toolbar { grid-template-columns: minmax(0, 1fr) 214px; } }
.company-management-dialog { width: min(700px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 70px #0003; }
.company-management-dialog::backdrop { background: #24232166; backdrop-filter: blur(3px); }
.company-management-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.company-management-dialog h2 { margin: 0; font-size: var(--ui-card-title-size, 14px); font-weight: 500; }
.company-management-dialog .form-grid, .server-settings-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.company-management-dialog .company-dialog-status, .server-settings-form .management-actions { grid-column: 1 / -1; }
.company-management-dialog .management-actions { justify-content: flex-end; margin-top: 0; }
.company-management-dialog .company-delete-open { margin-right: auto; color: #c83d25; }
.company-management-dialog .company-delete-open[hidden] { display: none !important; }
.company-delete-dialog { width: min(480px, calc(100vw - 32px)); }
.company-delete-dialog > p { margin: 0 0 14px; }
.company-delete-dialog [data-company-delete-name] { font-weight: 600; }
.company-delete-dialog [data-company-delete-form] { display: grid; gap: 16px; }
.company-management-dialog .company-profile-form { gap: 16px; padding: 0; }
.company-management-dialog .company-profile-field { gap: 3px; }
.company-management-dialog .company-password-note { grid-column: 1 / -1; margin: -8px 0 0; }
:is(.company-management-dialog, .server-settings-form) label > span:not(.company-input-group) { display: inline-flex; align-items: center; gap: 7px; }
:is(.company-management-dialog, .server-settings-form) label:not(:where(.company-profile-field > label)) > span:not(.company-input-group)::before { content:var(--layout-label-prefix,'‣'); font-family:var(--layout-label-prefix-font-family,'Pretendard','Noto Sans KR','Nanum Gothic','MaruBuri','NeoDunggeunmo',sans-serif); font-weight:400; font-style:normal; font-synthesis:none; color: var(--muted); }
.server-grid.server-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.server-grid.server-metrics strong { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 720px) {
    .company-list-toolbar { gap: 8px; }
    .company-management-dialog { padding: 20px; }
    .company-management-dialog .form-grid, .server-settings-form { grid-template-columns: 1fr; }
    .server-grid.server-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.company-list-toolbar .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 560px) {
    .company-list-toolbar { grid-template-columns: minmax(0, 1fr); }
    .company-list-date-range { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
}

.workspace-member-card { cursor:pointer; grid-template-columns:34px minmax(0,1fr); }
.workspace-member-card .workspace-avatar { overflow:hidden; }
.workspace-member-card .workspace-avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.workspace-member-card small { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.workspace-member-card .workspace-member-greeting-row { display:grid; grid-template-columns:minmax(0,1fr) 12px; align-items:center; gap:6px; min-width:0; }
.workspace-member-card .workspace-member-chevron { display:grid; width:12px; height:12px; place-items:center; }
.workspace-member-card .workspace-member-chevron svg { display:block; width:12px; height:12px; }
.workspace-member-card:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

:root .page-content .staff-list-footer button.button[data-staff-add] { flex: 0 0 auto; height: var(--admin-pagination-button-height, 30px); min-height: var(--admin-pagination-button-height, 30px); max-height: var(--admin-pagination-button-height, 30px); padding: 0 10px; border-radius: 5px; font-size: .8rem; }
[data-staff-list-status]:empty { display: none; }
[data-staff-add][hidden] { display: none !important; }
