:root {
  color-scheme: light;
  --page: #f6f5f7;
  --paper: #fff;
  --ink: #27212a;
  --muted: #625a66;
  --line: #e9e5eb;
  --quiet: #f7f5f8;
  --accent: #653650;
  --accent-text: #5e2d49;
  --accent-soft: #f3ebf0;
  --accent-border: #e9dce4;
  font-family: "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.5; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
form { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a67595; outline-offset: 2px; }
.container { width: min(1312px, calc(100% - 64px)); margin-inline: auto; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar, .bar-group, .heading-row, .feature-copy, .save-actions { display: flex; align-items: center; gap: 12px; }
.bar { justify-content: space-between; min-height: 72px; }
.bar-nav { flex-wrap: wrap; justify-content: flex-end; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; letter-spacing: -.06em; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: white; background: var(--accent); font-size: 19px; }
.test-tag { color: var(--accent-text); background: var(--accent-soft); font-size: 11px; font-weight: 700; border-radius: 20px; padding: 3px 9px; white-space: nowrap; }
.role-link { display: grid; gap: 1px; border-left: 1px solid var(--line); padding-left: 12px; font-size: 12px; }
.role-link span { color: var(--muted); font-size: 11px; }
.role-link:hover strong { text-decoration: underline; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border: 1px solid transparent; border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 650; white-space: nowrap; }
.button:hover { background: var(--quiet); }
.button.outline { border-color: var(--line); }
.button.selected { color: var(--accent-text); background: var(--accent-soft); }
.button.primary { background: var(--accent); color: white; }
.button.primary:hover { background: #532940; }
.logout { color: var(--muted); }
svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.solid-background { fill: var(--paper); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.main { padding-block: 28px 56px; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 123px; margin-bottom: 22px; padding: 22px 28px; overflow: hidden; border-radius: 18px; color: white; background: linear-gradient(104deg, #2b222e 0%, #3e293d 65%, #5d3b53 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 354px; height: 354px; right: 2%; top: 50%; border-radius: 50%; transform: translateY(-50%); background: repeating-radial-gradient(circle, transparent 0 30px, #d9afc32a 30px 31px, transparent 31px 32px); mask-image: radial-gradient(circle, transparent 0 58px, #000 75px 177px, transparent 178px); }
h1 { font-size: clamp(25px, 3.25vw, 34px); line-height: 1.25; letter-spacing: -.04em; }
.hero p { margin-top: 8px; color: #e5d5e0; }
.saved { padding: 8px 12px; border-radius: 8px; color: #255b3d; background: #ddefdf; font-weight: 650; font-size: 13px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; }
.panel h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; line-height: 1.4; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.16fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.quick-grid, .group-grid { display: grid; margin-top: 14px; gap: 10px; }
.quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.group-stack { display: grid; gap: 13px; min-width: 0; }
.panel.compact { padding: 14px 17px; }
.compact h2 { font-size: 16px; }
.heading-row { justify-content: space-between; }
.group-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); }
.group-icon.large { width: 54px; height: 54px; border-radius: 14px; }
.group-icon.large svg { width: 24px; height: 24px; }
.menu-link { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px; min-height: 43px; border: 1px solid #efeaf0; border-radius: 8px; background: var(--quiet); font-weight: 600; font-size: 14px; }
.menu-link:hover { background: var(--accent-soft); border-color: var(--accent-border); }
.menu-link svg { width: 15px; height: 15px; color: var(--muted); }
.compact .menu-link { background: white; border-color: var(--line); font-size: 13px; min-height: 34px; padding: 5px 9px; }
.compact .menu-link:hover { background: var(--accent-soft); }
.muted { color: var(--muted); font-size: 13px; }
.compact p { margin-top: 8px; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role-card { display: grid; text-align: left; gap: 10px; width: 100%; min-height: 160px; justify-items: start; align-content: space-between; color: var(--muted); }
.role-card:hover { border-color: #b995aa; }
.role-title { color: var(--ink); font-size: 21px; font-weight: 750; }
.role-go { color: var(--accent-text); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.page-head { display: grid; gap: 8px; margin-bottom: 22px; }
.page-head p, .feature-card p { color: var(--muted); }
.feature-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-color: var(--accent-border); }
.feature-copy { gap: 16px; }
.feature-card h2 { font-size: 20px; margin-bottom: 5px; }
.settings-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.settings-head .page-head { margin: 0; }
.back { display: inline-flex; align-items: center; color: var(--muted); width: fit-content; font-size: 13px; }
.back:hover { text-decoration: underline; }
.save-area { align-self: end; position: relative; }
.save-area > span { position: absolute; right: 0; bottom: -20px; color: var(--accent-text); font-size: 11px; white-space: nowrap; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.settings-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 10px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 39px; padding: 5px 7px; border-bottom: 1px solid #efeaf0; font-size: 13px; font-weight: 600; cursor: pointer; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row:hover { background: var(--quiet); }
.toggle-row.fixed { cursor: default; min-height: 35px; background: var(--quiet); border: 0; border-radius: 7px; }
.toggle-row.fixed span:last-child { color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.setting-group { padding: 8px 0; border-bottom: 1px solid #efeaf0; }
.setting-group h3 { color: var(--accent-text); font-size: 13px; }
.setting-group .toggle-row { min-height: 32px; border: 0; }
.setting-group + .fixed { margin-top: 10px; }
.toggle-visual { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.switch { width: 38px; height: 22px; border-radius: 20px; padding: 3px; background: #8a828e; }
.switch::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: white; }
.on-label, .switch-input:checked + .toggle-visual .off-label { display: none; }
.switch-input:checked + .toggle-visual .on-label { display: inline; color: var(--accent-text); }
.switch-input:checked + .toggle-visual .switch { background: #713f5e; }
.switch-input:checked + .toggle-visual .switch::after { transform: translateX(16px); }
.switch-input:focus-visible + .toggle-visual .switch { outline: 3px solid #a67595; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.problem { margin-bottom: 14px; padding: 10px 12px; border-radius: 8px; color: #782e3c; background: #fae8eb; font-weight: 650; }
.search-dialog { width: min(560px, calc(100% - 32px)); max-height: 78vh; padding: 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); }
.search-dialog::backdrop { background: #27212a66; }
.search-dialog label { display: block; margin: 10px 0 4px; }
.search-dialog input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.search-dialog ul { padding: 0; margin: 12px 0 0; list-style: none; display: grid; gap: 6px; }
@media (max-width: 960px) {
  .container { width: calc(100% - 36px); }
  .dashboard-grid, .settings-grid { grid-template-columns: 1fr; gap: 15px; }
  .group-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar { align-items: flex-start; padding-block: 12px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 24px); }
  .bar { flex-direction: column; gap: 7px; }
  .bar-nav { justify-content: flex-start; gap: 4px; }
  .bar-nav .button { min-height: 32px; padding-inline: 7px; }
  .role-link { padding-left: 6px; }
  .main { padding-top: 18px; }
  .hero { align-items: flex-start; flex-direction: column; padding: 18px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .group-stack, .role-grid, .settings-columns { grid-template-columns: 1fr; gap: 8px; }
  .menu-link { font-size: 13px; padding-inline: 8px; }
  .panel { padding: 13px; }
  .settings-head, .feature-card { align-items: flex-start; flex-direction: column; }
  .save-area { align-self: flex-start; margin-bottom: 8px; }
}


  .sample-label-print-frame {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
  }

  .sample-label-preview-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
  }

  .sample-label-preview-image {
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: 0.5rem;
    background: #f1f3f5;
  }

  .sample-label-preview-placeholder {
    width: 104px;
    height: 104px;
    border-radius: 0.5rem;
    background: #f1f3f5;
    color: #868e96;
  }

  .sample-label-preview-image-link {
    display: block;
    color: inherit;
    text-decoration: none;
  }

  .sample-label-preview-image-link[href] .sample-label-preview-image {
    cursor: zoom-in;
  }

  .sample-label-preview-barcode-bars {
    height: 34px;
    border-radius: 0.25rem;
    background: repeating-linear-gradient(
      90deg,
      #111 0,
      #111 2px,
      #fff 2px,
      #fff 5px,
      #111 5px,
      #111 7px,
      #fff 7px,
      #fff 11px
    );
  }

