/* Shared by seller, operator and sign-in screens. */
:is(.a-seller, .a-admin, .a-plain) {
  --ink: #292621;
  --mut: #69645b;
  --line: #e3ded4;
  --bg: #f8f6f1;
  --accent: #ff714b;
  --focus: #a53717;
  font-family: 'Pretendard Variable', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.main { padding-top: clamp(24px, 3vw, 42px); }
h1 { font-size: clamp(25px, 3vw, 34px); line-height: 1.25; letter-spacing: -.04em; }
h2 { letter-spacing: -.025em; }
.logo-mark { background: var(--accent); color: var(--ink); border-radius: 11px; }
.mtop { background: #fffdf9; }
.mtop.dark { background: #282620; color: #fffaf0; }
.mtop-in { min-height: 66px; height: auto; gap: clamp(12px, 2vw, 24px); }
.mnav { align-items: center; gap: 4px; padding-block: 5px; min-width: 0; }
.mnav a { flex: none; border: 0; border-radius: 9px; padding: 10px 13px; line-height: 1.45; opacity: 1; color: #655e54; }
.mnav a:hover { color: var(--ink); background: #f5f1e9; }
.mnav a.on { color: #74280f; background: #ffe2d4; }
.dark .mnav a { color: #ddd7cb; }
.dark .mnav a:hover { background: #3c3830; color: #fff; }
.dark .mnav a.on { color: #ffcfb9; background: #503429; }
.mwho { gap: 8px; }
.mwho b { max-width: 13em; overflow: hidden; text-overflow: ellipsis; }
.mwho > a, .mwho .linkbtn { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 8px; border-radius: 7px; font-weight: 600; text-decoration: none; }
.mwho > a:hover, .mwho .linkbtn:hover { background: #f5f1e9; }
.dark .mwho > a:hover, .dark .mwho .linkbtn:hover { background: #3c3830; }

.btn, .sec-h > .btn {
  min-height: 40px;
  padding: 8px 16px;
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 10px;
  line-height: 1.35;
  font-weight: 650;
}
.btn:hover { background: #4a4339; border-color: #4a4339; }
.btn.ghost { background: #fffdf9; color: var(--ink); border-color: #c9c2b7; }
.btn.ghost:hover { color: #703016; background: #fff0e7; border-color: #b79783; }
.btn.big { min-height: 46px; padding: 10px 21px; }
.btn.sm { min-height: 32px; padding: 6px 11px; border-radius: 8px; }
.btn:active:not(:disabled), .tabs a:active, .pager a:active { transform: translateY(1px); }
.btn:disabled { opacity: .54; cursor: not-allowed; }
.actions, .bulkbar { flex-wrap: wrap; }
.actions input[type=file] { flex: 1 1 210px; min-width: 0; }
:is(.a-seller, .a-admin, .a-plain) :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mtop.dark :focus-visible { outline-color: #ffb493; }

input, textarea, select { border-color: #c9c2b7; }
input:not([type=checkbox]):not([type=hidden]), select, textarea { max-width: 100%; }
input::placeholder, textarea::placeholder { color: #716c63; }
input:focus, textarea:focus, select:focus { border-color: var(--focus); outline-color: var(--focus); }
input[type=checkbox] { accent-color: #a43b1b; }
label { font-weight: 650; }
input::file-selector-button { margin-inline-end: 10px; border: 1px solid #d0c8ba; border-radius: 6px; background: #f5f2eb; color: var(--ink); padding: 5px 9px; font: inherit; cursor: pointer; }
.tabs { gap: 7px; }
.tabs > a, .pager a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; font-weight: 600; }
.tabs > a:hover, .pager a:hover { color: #74280f; background: #fff0e7; border-color: #c4a18c; }
.tabs > a.on, .pager a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager { flex-wrap: wrap; }
.inline-search { max-width: 100%; }
.inline-search input, .inline-search select { min-width: 0; min-height: 36px; border-radius: 8px; }
.inline-search button { flex: none; min-height: 36px; }
.tbl thead th { color: #5a554c; background: #f2efe8; }
.stats a:hover { border-color: #b79783; background: #fffaf5; }
.box, .login, .stats a, .tblwrap { border-color: var(--line); }

.login { max-width: 430px; margin: clamp(10px, 4vw, 48px) auto; padding: clamp(22px, 4vw, 38px); border-radius: 20px; box-shadow: 0 8px 32px #4534220c; }
.login h1 { margin-bottom: 24px; }
.login .logo { margin-bottom: 25px; }
.login label { margin-bottom: 17px; }
.login input { min-height: 44px; margin-top: 6px; }
.login .btn { min-height: 47px; background: var(--accent); color: #231e19; border-color: var(--accent); }
.login .btn:hover { background: #ff805e; border-color: #e96641; }
.login .btn:active { background: #f46944; }
.foot { color: #635d54; }
.foot-note { color: #6a655d; }

@media (max-width: 900px) {
  .mtop-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; padding-top: 8px; }
  .mtop-in > .logo { grid-column: 1; grid-row: 1; }
  .mwho { grid-column: 2; grid-row: 1; justify-content: end; }
  .mwho > a { display: inline-flex; }
  .mnav { grid-column: 1 / -1; grid-row: 2; padding: 5px 3px; }
  .mnav a { padding: 8px 12px; }
  .inline-search select { flex: 1; width: auto; }
}

@media (max-width: 600px) {
  .main > .tbl { display: block; max-width: 100%; overflow: auto; }
  .pick-h { flex-wrap: wrap; }
  .actions.sticky { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
