@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap");

:root {
  font-family: "DM Sans", "Noto Sans KR", sans-serif;
  color: #23251f;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --green: #2f644b;
  --green-dark: #244f3b;
  --green-soft: #e9f2ec;
  --text: #23251f;
  --muted: #858a84;
  --line: #ecefea;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 84% 3%, rgba(225, 236, 226, .65), transparent 24rem),
    #f5f7fb;
}

button, input { font: inherit; }
button { cursor: pointer; }

.app-shell { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.045em; font-size: 18px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; color: #fff; background: var(--green); font-size: 17px; }
.brand small { display: block; margin-top: 1px; color: #9aa099; font-size: 8px; letter-spacing: .16em; font-weight: 600; }
.open-status, .live-badge { display: inline-flex; align-items: center; gap: 7px; color: #617166; font-size: 12px; font-weight: 600; }
.open-status i, .live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #59a878; box-shadow: 0 0 0 3px #e1efe5; }

.hero { min-height: 280px; margin: 12px 0 27px; padding: 42px 62px; border-radius: 22px; background: #eaf1eb; position: relative; overflow: hidden; display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 11px; color: #809184; font-size: 10px; line-height: 1.3; letter-spacing: .15em; font-weight: 700; }
.hero .eyebrow { color: #65816d; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 13px; font-size: clamp(30px, 4vw, 42px); line-height: 1.3; letter-spacing: -.07em; font-weight: 800; }
.hero-description { margin: 0; color: #707a71; font-size: 13px; line-height: 1.8; }
.hero-art { position: absolute; right: 54px; top: 18px; width: 288px; height: 246px; }
.bowl { position: absolute; right: 35px; bottom: 28px; display: grid; place-items: center; width: 190px; height: 108px; border-radius: 15px 15px 88px 88px; background: linear-gradient(155deg, #fffdf8 5%, #e6e8dd 94%); box-shadow: 0 16px 24px #56645220, inset 0 -9px 0 #d8dbd0; transform: rotate(-8deg); }
.bowl::before { content: ""; position: absolute; top: -15px; left: -2px; width: 195px; height: 35px; border-radius: 50%; background: #738a67; border: 8px solid #faf9f3; box-shadow: 0 3px 8px #39473226; }
.bowl span { position: relative; top: 15px; color: #96a08e; font-size: 15px; font-weight: 800; letter-spacing: .2em; }
.bowl-shadow { position: absolute; right: 5px; bottom: 19px; width: 230px; height: 22px; border-radius: 50%; background: #7583711c; filter: blur(7px); }
.steam { position: absolute; z-index: 1; width: 22px; height: 50px; border-left: 3px solid #ffffffab; border-radius: 50%; transform: rotate(12deg); }
.steam-one { right: 134px; top: 37px; }
.steam-two { right: 100px; top: 20px; height: 43px; transform: rotate(-8deg); }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { min-height: 304px; padding: 29px 31px 24px; border: 1px solid #eff1ee; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px #283a2b08; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.section-heading .eyebrow { margin-bottom: 7px; }
h2 { margin-bottom: 0; font-size: 20px; line-height: 1.4; letter-spacing: -.055em; font-weight: 800; }
.step-badge { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: #7d907e; background: #f2f5f0; font-size: 11px; font-weight: 700; }
.muted { margin: 10px 0 21px; color: var(--muted); font-size: 12px; }
label { display: block; margin-bottom: 8px; color: #454a44; font-size: 11px; font-weight: 700; }
.input-wrap { display: flex; align-items: center; height: 47px; padding: 0 13px; border: 1px solid #e8ece7; border-radius: 9px; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: #77a186; box-shadow: 0 0 0 3px #eaf2ec; }
.phone-icon { color: #9da79e; font-size: 13px; }
input { width: 100%; height: 100%; padding: 0 0 0 10px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; letter-spacing: .03em; }
input::placeholder { color: #b7bcb7; }
.button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 9px; font-size: 12px; font-weight: 700; transition: transform .15s, background .15s; }
.button:active { transform: translateY(1px); }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-full { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 46px; margin-top: 12px; padding: 0 17px; }
.privacy-note { margin: 12px 0 0; color: #9aa099; text-align: center; font-size: 10px; }
.privacy-note span { margin-right: 4px; color: #6f9879; }
.booking-result { margin-top: 16px; padding: 12px 14px; border-radius: 10px; color: #3f674b; background: #edf5ef; font-size: 12px; line-height: 1.7; }
.booking-result strong { font-size: 14px; }

.live-badge { margin-top: 6px; padding: 6px 9px; border: 1px solid #e9f1e9; border-radius: 20px; color: #65836b; font-size: 9px; letter-spacing: .05em; }
.live-badge i { width: 6px; height: 6px; box-shadow: none; }
.queue-total { display: flex; align-items: center; justify-content: space-between; margin-top: 29px; color: #737a73; font-size: 12px; }
.queue-total strong { color: var(--green); font-size: 33px; letter-spacing: -.06em; }
.queue-total small { padding-left: 4px; color: #737a73; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.queue-divider { height: 1px; margin: 17px 0; background: #eff1ee; }
.queue-estimate { display: flex; align-items: center; gap: 11px; }
.estimate-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #728b74; background: #eef4ef; font-size: 21px; }
.queue-estimate div { display: grid; gap: 3px; }
.queue-estimate div strong { font-size: 11px; }
.queue-estimate div span { color: #9a9f99; font-size: 10px; }
.queue-estimate > b { margin-left: auto; color: #526d59; font-size: 12px; }
.my-status { margin-top: 16px; padding: 10px 12px; border-radius: 9px; color: #345d42; background: #edf5ef; font-size: 12px; line-height: 1.6; }
.queue-footnote { margin: 15px 0 0; color: #a1a59f; font-size: 10px; }

.manager-card { margin-top: 19px; padding: 22px 27px; border: 1px solid #e9ece8; border-radius: 16px; background: #fff; }
.manager-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.manager-header .eyebrow { margin-bottom: 4px; font-size: 9px; }
.manager-header h2 { font-size: 16px; }
.manager-header p:not(.eyebrow) { margin: 4px 0 0; color: #969c95; font-size: 10px; }
.button-quiet { color: #69736a; border: 1px solid #e9ece8; background: #fff; }
.button-quiet:hover { background: #f7f9f6; }
.button-dark { color: #fff; background: #303c33; }
.button-dark:hover { background: #1e2a21; }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.manager-panel { margin-top: 21px; border-top: 1px solid var(--line); }
.manager-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 11px; }
.manager-toolbar p { margin: 0; color: #81877f; font-size: 11px; }
.manager-list { display: grid; }
.manager-row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; min-height: 56px; border-top: 1px solid #f1f2ef; }
.ticket-number { color: #718b74; font-size: 11px; font-weight: 700; }
.guest-detail strong { display: block; font-size: 12px; font-weight: 600; }
.guest-detail span { display: block; margin-top: 3px; color: #9a9f98; font-size: 10px; }
.status-chip { padding: 5px 8px; border-radius: 20px; color: #6b826d; background: #eff5f0; font-size: 9px; white-space: nowrap; }
.status-chip.called { color: #927446; background: #faf3e4; }
.empty-list { padding: 21px 0 7px; color: #9a9f98; text-align: center; font-size: 11px; }

footer { display: flex; justify-content: space-between; padding: 26px 2px 32px; color: #a4aaa3; font-size: 10px; }
.toast { position: fixed; z-index: 5; right: 22px; bottom: 22px; max-width: min(390px, calc(100% - 44px)); padding: 13px 17px; border-radius: 11px; color: #fff; background: #303c33; box-shadow: 0 8px 26px #18271c30; font-size: 12px; line-height: 1.5; opacity: 0; pointer-events: none; transform: translateY(9px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 700px) {
  .app-shell { width: min(100% - 32px, 520px); }
  .topbar { height: 70px; }
  .hero { min-height: 250px; margin-top: 7px; padding: 31px 25px; align-items: flex-start; }
  .hero-copy { margin-top: 7px; }
  h1 { font-size: 31px; }
  .hero-description { font-size: 11px; }
  .hero-art { right: -50px; top: 108px; transform: scale(.73); transform-origin: top right; opacity: .78; }
  .content-grid { grid-template-columns: 1fr; gap: 13px; }
  .card { min-height: unset; padding: 23px 22px; }
  .queue-card { padding-bottom: 20px; }
  .queue-total { margin-top: 21px; }
  .manager-card { padding: 19px 18px; }
  .manager-header { align-items: flex-start; }
  .manager-header .button { padding: 0 10px; font-size: 10px; white-space: nowrap; }
  footer { gap: 9px; flex-direction: column; padding: 23px 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

[hidden] { display: none !important; }

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 31px 0 24px; }
.page-intro h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 37px); }
.page-intro .hero-description { line-height: 1.8; }
.page-intro > .button { flex: 0 0 auto; }
.narrow-main { width: min(680px, 100%); margin: 0 auto; }
.intro-centered { justify-content: center; text-align: center; margin-top: 46px; }
.intro-centered .hero-description { margin: 0 auto; }
.panel { margin-top: 18px; padding: 26px 29px; border: 1px solid #eff1ee; border-radius: 17px; background: #fff; box-shadow: 0 8px 24px #283a2b08; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel-heading .eyebrow { margin-bottom: 6px; }
.panel-heading h2 { font-size: 19px; }
.count-badge { padding: 6px 10px; border-radius: 20px; color: #637b67; background: #eff5f0; font-size: 10px; font-weight: 700; white-space: nowrap; }
.text-link { color: #54755d; text-decoration: none; font-size: 11px; font-weight: 700; }
.text-link:hover { color: #244f3b; text-decoration: underline; text-underline-offset: 3px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.compact-metrics { margin-top: 24px; }
.metric-card { display: grid; gap: 7px; min-height: 118px; padding: 19px 20px; border: 1px solid #eff1ee; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px #283a2b08; }
.metric-card > span { color: #788078; font-size: 11px; font-weight: 600; }
.metric-card strong { color: #2f644b; font-size: 30px; line-height: 1; letter-spacing: -.06em; }
.metric-card small { color: #a0a69f; font-size: 10px; }
.approval-list, .company-list { display: grid; }
.approval-row, .company-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1fr) auto; align-items: center; gap: 18px; padding: 15px 0; border-top: 1px solid #f0f2ef; }
.approval-row:first-child, .company-row:first-child { border-top: 0; }
.approval-main, .company-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.approval-main > div, .company-main > div { display: grid; gap: 5px; min-width: 0; }
.approval-main strong, .company-main strong { overflow: hidden; color: #343a34; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.approval-main span:not(.company-avatar), .company-main span:not(.company-avatar) { overflow: hidden; color: #969c95; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.company-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 37px; height: 37px; border-radius: 12px; color: #4f7559; background: #eaf2eb; font-size: 15px; font-weight: 800; }
.approval-meta { display: grid; gap: 4px; color: #90978f; font-size: 10px; }
.approval-actions { display: flex; gap: 7px; }
.approval-actions .button { min-height: 34px; padding: 0 11px; font-size: 10px; }
.company-row { grid-template-columns: minmax(180px, 1fr) auto auto; }
.company-links { display: flex; gap: 10px; }
.company-links a { color: #56765c; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.company-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.company-access-address { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; min-width: 0; color: #56765c; font-size: 10px; font-weight: 700; text-decoration: none; }
.company-access-address:hover { text-decoration: underline; text-underline-offset: 3px; }
.company-access-address code { min-width: 0; color: #788078; font: 10px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.company-account-form { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr) auto; align-items: end; gap: 10px; padding-top: 12px; border-top: 1px solid #f0f2ef; }
.company-account-form label { display: grid; gap: 5px; color: #687168; font-size: 10px; font-weight: 700; }
.company-account-form input { width: 100%; min-width: 0; height: 36px; padding: 7px 9px; border: 1px solid #e8ece7; border-radius: 8px; font-size: 11px; }
.company-account-form .button { min-height: 36px; white-space: nowrap; }
.platform-intro { margin-bottom: 17px; }
.platform-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 20px; margin-bottom: 24px; }
.platform-sidebar { position: sticky; top: 18px; padding: 19px 12px; border: 1px solid #eff1ee; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px #283a2b08; }
.platform-sidebar > .eyebrow { margin: 0 10px 12px; }
.platform-nav { display: grid; gap: 4px; }
.platform-nav-button { display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 11px; border: 0; border-radius: 10px; color: #687168; background: transparent; font-size: 11px; font-weight: 700; text-align: left; transition: color .16s, background .16s; }
.platform-nav-button:hover { color: #315f47; background: #f4f7f3; }
.platform-nav-button.is-active { color: #2f644b; background: #eaf2eb; }
.platform-nav-button:focus-visible { outline: 2px solid #77a186; outline-offset: 2px; }
.nav-count { display: inline-grid; min-width: 21px; height: 21px; place-items: center; padding: 0 5px; border-radius: 12px; color: #6f7d70; background: #f0f3ef; font-size: 9px; }
.platform-nav-button.is-active .nav-count { color: #2f644b; background: #dceade; }
.platform-sections, .platform-section { min-width: 0; }
.platform-section-heading { margin: 3px 2px 17px; }
.platform-section-heading h2 { font-size: 23px; }
.platform-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.platform-dashboard-note { margin-top: 17px; padding: 17px 20px; border: 1px solid #e7eee8; border-radius: 13px; color: #718074; background: #f8faf7; font-size: 11px; line-height: 1.7; }
.platform-dashboard-note p { margin: 0; }
.platform-panel { margin-top: 0; }
.platform-ledger-table { min-width: 820px; }
.platform-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; border-top: 1px solid #f0f2ef; }
.platform-setting-row:first-of-type { border-top: 0; }
.platform-setting-row > div { display: grid; gap: 6px; }
.platform-setting-row strong { color: #343a34; font-size: 12px; }
.platform-setting-row span { color: #90978f; font-size: 11px; line-height: 1.7; }
.platform-setting-row .button { flex: 0 0 auto; }
.topup-invoice-option { display: inline-flex; min-height: 43px; align-items: center; gap: 8px; margin: 0; color: #58645a; font-size: 11px; white-space: nowrap; }
.topup-invoice-option input { width: 16px; height: 16px; accent-color: #2f644b; }
.invoice-request-chip { display: inline-flex; width: fit-content; padding: 4px 7px; border-radius: 10px; color: #52745a; background: #eaf2eb; font-size: 9px !important; font-weight: 700; }
.invoice-request-date { color: #90978f; font-size: 10px; white-space: nowrap; }
.auth-logout { min-height: 34px; padding: 0 11px; font-size: 10px; }
.help-shortcut { display: inline-flex; min-height: 38px; align-items: center; gap: 9px; padding: 0 13px 0 8px; border-color: #dce9df; border-radius: 22px; color: #315f47; background: linear-gradient(135deg, #fff, #f2f8f3); box-shadow: 0 3px 10px #283a2b0c; font-size: 11px; text-decoration: none; transition: border-color .16s, color .16s, background .16s, box-shadow .16s, transform .16s; }
.help-shortcut:hover { transform: translateY(-1px); border-color: #bcd5c2; color: #244f3b; background: #edf6ef; box-shadow: 0 6px 14px #283a2b14; }
.help-shortcut:focus-visible { outline: 2px solid #77a186; outline-offset: 3px; }
.help-shortcut-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #57936a, #2f644b); font-size: 12px; font-weight: 800; }
.help-shortcut-arrow { color: #809184; font-size: 12px; }
.login-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 18px; }
.login-message { margin-top: 14px; }
.point-balance { color: #2f644b; font-size: 24px; letter-spacing: -.04em; }
.point-balance-low { color: #b3261e; animation: point-balance-blink 1s steps(2, jump-none) infinite; }
.points-warning { margin: 12px 0; padding: 12px 15px; border: 1px solid #f0b7b3; border-radius: 10px; color: #a51d16; background: #fff0ef; font-size: 13px; font-weight: 800; text-align: center; animation: point-balance-blink 1s steps(2, jump-none) infinite; }
@keyframes point-balance-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .point-balance-low, .points-warning { animation: none; }
}
.point-topup-form { display: flex; align-items: flex-end; gap: 12px; }
.point-topup-form .form-field { width: min(100%, 360px); }
.point-topup-form select, .form-field select { display: block; width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #e8ece7; border-radius: 9px; outline: 0; color: var(--text); background: #fff; font-size: 12px; }
.point-topup-form select:focus, .form-field select:focus { border-color: #77a186; box-shadow: 0 0 0 3px #eaf2ec; }
.point-request-list { display: grid; gap: 0; }
.point-request-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid #f0f2ef; color: #788078; font-size: 11px; }
.point-request-pending { color: #8c764e; }
.point-request-approved { color: #477553; }
.point-request-rejected { color: #9a635c; }
.point-subheading { margin: 20px 0 8px; color: #464d46; font-size: 12px; }
.data-table.point-history-table { min-width: 500px; }
.points-added { color: #477553 !important; font-weight: 700; }
.points-used { color: #9a635c !important; font-weight: 700; }
.status-approved { color: #477553; background: #eaf4eb; }
.status-pending { color: #8c764e; background: #faf2e1; }
.muted-small { color: #a0a69f; font-size: 10px; white-space: nowrap; }
.demo-notice { margin: 17px 2px 0; color: #8d948d; font-size: 10px; line-height: 1.8; }
.demo-notice strong { color: #637a66; }
.form-panel { padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form-field { min-width: 0; }
.form-field label, .company-picker label, .date-filter label { display: block; margin-bottom: 7px; color: #464d46; font-size: 11px; font-weight: 700; }
.optional { margin-left: 4px; color: #a0a69f; font-size: 10px; font-weight: 400; }
.form-field input, .form-field textarea, .form-field select, .company-picker select, .date-filter input { display: block; width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #e8ece7; border-radius: 9px; outline: 0; color: var(--text); background: #fff; font-size: 12px; }
.form-field textarea { min-height: 78px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus, .company-picker select:focus, .date-filter input:focus { border-color: #77a186; box-shadow: 0 0 0 3px #eaf2ec; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #b7bcb7; }
.full-field { grid-column: 1 / -1; }
.form-field .button-full { margin-top: 0; }
.notice-box { padding: 19px; border-radius: 12px; color: #536c57; background: #eef5ef; font-size: 12px; line-height: 1.8; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.notice-actions .button { display: inline-flex; align-items: center; text-decoration: none; }
.company-picker { display: flex; align-items: center; gap: 12px; max-width: 480px; margin: -2px 0 19px; }
.company-picker label { flex: 0 0 auto; margin: 0; }
.company-picker select { max-width: 300px; }
.empty-state { color: #717970; font-size: 13px; line-height: 1.8; }
.customer-hero { margin-bottom: 20px; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.page-actions .button { display: inline-flex; align-items: center; text-decoration: none; }
.shortcut-actions { display: flex; gap: 6px; }
.qr-dialog { width: min(420px, calc(100% - 32px)); padding: 22px; border: 1px solid #e7ece6; border-radius: 16px; color: var(--text); background: #fff; box-shadow: 0 24px 70px #17251b38; }
.qr-dialog::backdrop { background: #17251b88; backdrop-filter: blur(2px); }
.qr-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.qr-dialog-heading .eyebrow { margin-bottom: 5px; }
.qr-dialog-heading h2 { font-size: 18px; }
.qr-dialog-image { display: block; width: min(100%, 280px); height: auto; margin: 20px auto 14px; image-rendering: pixelated; }
.qr-dialog-address { margin: 0; padding: 10px; border-radius: 8px; color: #687168; background: #f5f7f5; font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.manager-row-expanded { grid-template-columns: 54px minmax(120px, 1fr) auto; }
.row-actions { display: flex; align-items: center; gap: 7px; }
.button-small { min-height: 31px; padding: 0 10px; font-size: 10px; }
.date-filter { width: 180px; flex: 0 0 auto; }
.metric-grid:has(.metric-card:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid.platform-metrics:has(.metric-card:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { padding: 11px 10px; color: #858c84; background: #f8faf7; font-size: 10px; font-weight: 700; }
.data-table td { padding: 13px 10px; border-top: 1px solid #eff1ee; color: #626a62; font-size: 10px; }
.data-table td strong { color: #466c4e; }
.data-table .status-chip { display: inline-block; }
.queue-type-picker { margin: 0 0 18px; }
.queue-type-label { display: block; margin-bottom: 9px; color: #454a44; font-size: 11px; font-weight: 700; }
.queue-type-options { display: flex; flex-wrap: wrap; gap: 8px; }
.queue-type-option { position: relative; display: block; margin: 0; cursor: pointer; }
.queue-type-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.queue-type-option span { display: grid; min-width: 64px; min-height: 40px; place-items: center; padding: 0 15px; border: 1px solid #e5ebe5; border-radius: 10px; color: #687168; background: #fff; font-size: 12px; transition: .15s; }
.queue-type-option input:checked + span { border-color: #4c7959; color: #315d3c; background: #edf5ef; box-shadow: 0 0 0 2px #edf5ef; }
.queue-type-option input:focus-visible + span { outline: 2px solid #8baa91; outline-offset: 2px; }
.phone-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.phone-keypad button { min-height: 43px; border: 1px solid #ecefea; border-radius: 9px; color: #343a34; background: #fafbf9; font-size: 16px; font-weight: 600; transition: background .15s, border-color .15s; }
.phone-keypad button:hover { border-color: #c8d8cb; background: #eff5f0; }
.phone-keypad button:active { background: #e2ede4; }
.phone-keypad .keypad-utility { color: #718071; font-size: 11px; }
.queue-type-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.queue-type-count { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #edf1ec; border-radius: 9px; background: #fafbf9; font-size: 10px; }
.queue-type-count strong { color: #426d4d; }
.queue-type-count span { color: #858c84; }
.queue-call-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.queue-call-group { padding: 13px 14px; border: 1px solid #edf0ec; border-radius: 12px; background: #fafbf9; }
.queue-call-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.queue-call-heading > div { display: grid; gap: 5px; }
.queue-call-heading strong { color: #364239; font-size: 12px; }
.queue-call-heading span { color: #919890; font-size: 10px; }
.manager-type-list { margin-top: 18px; }
.manager-type-list h3 { margin: 0; padding: 0 0 9px; color: #667668; font-size: 12px; }
.settings-panel { margin-top: 18px; }
.queue-settings-form { display: block; }
.queue-settings-controls { display: flex; align-items: center; gap: 10px; }
.queue-settings-controls input { flex: 1; min-width: 0; }
.queue-settings-controls .button { flex: 0 0 auto; min-width: 126px; }
.queue-settings-form .form-field small { display: block; margin-top: 9px; color: #959b94; font-size: 10px; line-height: 1.6; }
.settings-warning { margin: 12px 0 0; color: #a18a63; font-size: 10px; }
.detail-tools { display: flex; align-items: center; gap: 10px; }
.detail-tools label { margin: 0; color: #7b837a; font-size: 10px; }
.detail-tools input { width: 145px; min-height: 34px; padding: 6px 9px; border: 1px solid #e8ece7; border-radius: 8px; outline: 0; color: var(--text); background: #fff; font-size: 10px; }
.detail-tools input:focus { border-color: #77a186; box-shadow: 0 0 0 3px #eaf2ec; }
.company-stat-grid { margin-top: 18px; }
.manager-call-panel .panel-heading, .manager-list-panel .panel-heading { margin-bottom: 12px; }
.manager-list-panel { margin-top: 13px; }
.manager-call-panel { margin-top: 0; }
.brand-mark { overflow: hidden; }
.brand-mark.has-company-logo { background: #fff; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.company-profile-form { display: grid; gap: 20px; }
.company-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 16px; }
.company-profile-grid .form-field { min-width: 0; margin: 0; }
.company-profile-grid input { display: block; width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #e8ece7; border-radius: 9px; outline: 0; color: var(--text); background: #fff; font-size: 12px; }
.company-profile-grid input:focus { border-color: #77a186; box-shadow: 0 0 0 3px #eaf2ec; }
.company-profile-grid input::placeholder { color: #b7bcb7; }
.company-profile-save { justify-self: end; min-width: 170px; }
.company-logo-field { display: flex; align-items: center; gap: 17px; }
.company-logo-preview { display: grid; flex: 0 0 auto; width: 92px; height: 92px; place-items: center; overflow: hidden; border: 1px dashed #cad8cb; border-radius: 18px; color: #4f7559; background: #f2f6f2; font-size: 28px; font-weight: 800; }
.company-logo-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.company-logo-controls { display: grid; justify-items: start; gap: 7px; min-width: 0; }
.company-logo-controls label { margin: 0; }
.company-logo-controls input[type="file"] { width: 100%; height: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; font-size: 11px; }
.company-logo-controls small { color: #929990; font-size: 10px; line-height: 1.6; }
.company-profile-fields { min-width: 0; }
.company-profile-controls { display: flex; align-items: center; gap: 10px; }
.company-profile-controls input { flex: 1; min-width: 0; }
.company-profile-controls .button { flex: 0 0 auto; min-width: 150px; min-height: 45px; border-radius: 11px; white-space: nowrap; }

@media (max-width: 760px) {
  .platform-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .platform-sidebar { position: static; min-width: 0; padding: 11px; }
  .platform-sidebar > .eyebrow { margin: 0 7px 8px; }
  .platform-nav { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
  .platform-nav-button { width: auto; min-width: max-content; min-height: 38px; padding: 0 10px; }
  .platform-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-section-heading { margin: 4px 2px 12px; }
  .platform-setting-row { align-items: flex-start; flex-direction: column; gap: 11px; }
  .platform-setting-row .button { width: 100%; justify-content: center; }
  .point-topup-form .topup-invoice-option { width: 100%; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 15px; margin-top: 24px; }
  .page-intro > .button { align-self: stretch; justify-content: space-between; }
  .metric-grid, .metric-grid:has(.metric-card:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-grid.platform-metrics:has(.metric-card:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 102px; padding: 15px; }
  .panel { padding: 21px 18px; }
  .approval-row, .company-row { grid-template-columns: 1fr auto; gap: 12px; }
  .approval-meta { grid-column: 1 / -1; }
  .approval-actions, .company-links, .muted-small { grid-column: 1 / -1; }
  .company-links { flex-wrap: wrap; }
  .form-panel { padding: 22px 18px; }
  .manager-row-expanded { grid-template-columns: 39px minmax(105px, 1fr); }
  .manager-row-expanded .row-actions { grid-column: 2; justify-content: flex-start; padding-bottom: 10px; }
  .page-actions { justify-content: flex-start; }
  .shortcut-actions { flex: 1 1 0; }
  .shortcut-actions > a { flex: 1 1 auto; justify-content: center; }
  .date-filter { width: 100%; }
  .company-picker { align-items: flex-start; flex-direction: column; }
  .company-picker select { max-width: none; }
  .intro-centered { align-items: center; }
  .queue-settings-controls { align-items: stretch; flex-direction: column; }
  .queue-settings-controls .button { width: 100%; }
  .detail-tools { flex-wrap: wrap; justify-content: flex-end; }
  .detail-tools label { flex: 0 0 100%; text-align: right; }
}

@media (max-width: 460px) {
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .manager-row-expanded { gap: 7px; }
  .data-table th, .data-table td { padding-right: 8px; padding-left: 8px; }
}

@media (max-width: 920px) {
  .app-shell { width: min(100% - 36px, 760px); }
  .topbar { height: 72px; }
  .page-intro { gap: 16px; }
  .page-actions { max-width: 45%; }
  .page-actions .button { justify-content: center; }
  .approval-row { grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr); }
  .approval-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 760px) {
  .app-shell { width: calc(100% - 32px); }
  .topbar { min-height: 66px; height: auto; gap: 10px; }
  .brand { gap: 8px; font-size: 16px; }
  .brand-mark { width: 32px; height: 32px; }
  .open-status { font-size: 10px; white-space: nowrap; }
  .hero { min-height: 224px; margin: 8px 0 18px; padding: 27px 22px; border-radius: 17px; }
  .hero-copy { max-width: 78%; }
  h1 { font-size: clamp(27px, 7vw, 34px); }
  .hero-description { font-size: 12px; }
  .hero-art { right: -82px; top: 89px; transform: scale(.68); transform-origin: top right; opacity: .45; }
  .content-grid { gap: 12px; }
  .card { padding: 21px 19px; border-radius: 15px; }
  .page-intro { margin: 22px 0 17px; }
  .page-intro h1 { font-size: clamp(26px, 7vw, 34px); }
  .page-actions { width: 100%; max-width: none; justify-content: stretch; }
  .page-actions .button { flex: 1 1 0; min-height: 44px; padding: 0 10px; font-size: 11px; }
  .shortcut-actions { min-width: 0; }
  .shortcut-actions > a { min-width: 0; }
  .shortcut-actions > button { flex: 0 0 auto; padding: 0 9px; font-size: 10px; }
  .panel { margin-top: 13px; padding: 20px 17px; border-radius: 14px; }
  .panel-heading { align-items: flex-start; gap: 10px; }
  .panel-heading h2 { font-size: 17px; }
  .metric-grid { gap: 9px; margin: 13px 0; }
  .metric-card { min-height: 100px; padding: 14px 13px; }
  .metric-card strong { font-size: 26px; }
  .approval-row, .company-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .approval-meta { grid-column: 1 / -1; }
  .approval-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .company-links { grid-column: 1 / -1; flex-wrap: wrap; }
  .company-links a { min-height: 32px; display: inline-flex; align-items: center; }
  .company-account-form { grid-template-columns: minmax(0, 1fr); }
  .company-account-form .button { grid-column: auto; width: 100%; }
  .form-panel { padding: 22px 17px; }
  .queue-call-groups { grid-template-columns: 1fr; }
  .manager-row-expanded { grid-template-columns: 40px minmax(0, 1fr); }
  .manager-row-expanded .row-actions { grid-column: 2; justify-content: flex-start; padding: 0 0 10px; }
  .detail-tools { flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
  .detail-tools label { flex-basis: 100%; text-align: right; }
  .company-profile-controls { align-items: stretch; flex-direction: column; }
  .company-profile-controls .button { width: 100%; }
  .point-topup-form { align-items: stretch; flex-direction: column; }
  .point-topup-form .form-field { width: 100%; }
  .detail-tools input { max-width: 145px; }
  .table-scroll { margin: 0 -4px; }
  .data-table { min-width: 660px; }
  footer { gap: 8px; flex-direction: column; padding: 21px 2px 26px; }
}

@media (max-width: 480px) {
  .app-shell { width: calc(100% - 24px); }
  .topbar { min-height: 60px; }
  .brand { font-size: 15px; }
  .brand small { font-size: 7px; }
  .open-status { gap: 5px; font-size: 9px; }
  .hero { min-height: 208px; padding: 24px 18px; }
  .hero-copy { max-width: 100%; }
  .hero-art { right: -114px; top: 99px; opacity: .24; }
  .hero-description { font-size: 11px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 19px 16px; }
  .section-heading { gap: 8px; }
  .section-heading h2 { font-size: 18px; }
  .metric-grid, .metric-grid:has(.metric-card:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 92px; padding: 12px 11px; }
  .metric-card > span { font-size: 10px; }
  .metric-card small { font-size: 9px; }
  .page-intro { gap: 12px; }
  .page-intro .hero-description { font-size: 11px; }
  .page-actions { flex-direction: column; }
  .page-actions .button { flex: auto; width: auto; justify-content: center; }
  .shortcut-actions { width: 100%; }
  .shortcut-actions > a { justify-content: space-between; }
  .qr-dialog { padding: 18px; }
  .panel { padding: 18px 14px; }
  .approval-main, .company-main { gap: 8px; }
  .company-avatar { width: 32px; height: 32px; }
  .approval-actions .button { flex: 1; min-height: 40px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .full-field { grid-column: auto; }
  .queue-call-heading { align-items: flex-start; flex-direction: column; }
  .queue-call-heading .button { width: 100%; min-height: 40px; }
  .manager-row-expanded { grid-template-columns: 34px minmax(0, 1fr); gap: 6px; }
  .guest-detail strong { font-size: 11px; }
  .guest-detail span { font-size: 9px; }
  .row-actions { flex-wrap: wrap; }
  .detail-tools { justify-content: flex-start; }
  .detail-tools label { text-align: left; }
  .detail-tools input { flex: 1 1 130px; max-width: none; }
  .detail-tools .count-badge { margin-left: auto; }
  .company-logo-field { align-items: flex-start; flex-direction: column; }
  .company-profile-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .company-profile-grid .full-field { grid-column: auto; }
  .company-profile-save { width: 100%; }
  .company-logo-controls { width: 100%; }
  .company-logo-preview { width: 80px; height: 80px; }
  .company-logo-controls input[type="file"] { font-size: 10px; }
  .queue-type-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .queue-type-option span { min-width: 0; min-height: 44px; padding: 0 8px; }
  .phone-keypad { gap: 6px; }
  .phone-keypad button { min-height: 48px; }
  .queue-total { margin-top: 20px; }
  .queue-total strong { font-size: 30px; }
  .queue-estimate { gap: 8px; }
  .queue-estimate > b { font-size: 11px; }
  .narrow-main { width: 100%; }
  .intro-centered { margin-top: 29px; }
  .company-picker { width: 100%; }
  .company-picker select { width: 100%; max-width: none; }
  .demo-notice { font-size: 9px; }
}

@media (max-width: 360px) {
  .app-shell { width: calc(100% - 20px); }
  .brand { gap: 6px; font-size: 14px; }
  .brand-mark { width: 29px; height: 29px; border-radius: 10px; }
  .open-status { font-size: 8px; }
  .hero { min-height: 198px; padding: 22px 15px; }
  h1, .page-intro h1 { font-size: 26px; }
  .card { padding: 17px 13px; }
  .panel { padding: 16px 12px; }
  .metric-card strong { font-size: 23px; }
  .queue-total { font-size: 11px; }
  .queue-type-count { gap: 5px; padding: 6px 8px; font-size: 9px; }
  .manager-row-expanded .row-actions { gap: 5px; }
  .button-small { padding: 0 8px; font-size: 9px; }
}
