:root {
  color-scheme: light;
  --canvas: #f7f7f4;
  --white: #fff;
  --ink: #202722;
  --muted: #647067;
  --line: #e6e8e2;
  --green: #263f33;
  --coral: #ba492e;
  --coral-dark: #a13a24;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: 'Avenir Next', Avenir, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #327653; outline-offset: 3px; }
h1, h2, p { margin: 0; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 750; line-height: 1.13; letter-spacing: -.055em; white-space: nowrap; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .21em; }
.brand-icon { display: grid; place-items: center; flex: 0 0 37px; height: 37px; border-radius: 11px; background: var(--coral); }
.brand-icon::before { content: ''; width: 15px; height: 17px; transform: rotate(-18deg); border: 1.6px solid white; border-radius: 3px; background: linear-gradient(white,white) 3px 5px / 9px 1px no-repeat, linear-gradient(white,white) 3px 9px / 7px 1px no-repeat; }
.environment { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #ecdac9; border-radius: 20px; background: #fbf1e6; color: #884b2e; font-size: 10px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.environment i { width: 6px; height: 6px; border-radius: 50%; background: #ab5c30; }
.live-mode .environment { border-color: #e9c8bc; background: #fbece5; color: #92351f; }
.live-mode .environment i { background: #ab432d; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.button.primary { background: var(--coral); color: white; }
.button.primary:not(:disabled):hover { background: var(--coral-dark); }
.button.secondary { background: white; color: var(--green); border-color: #dce3db; }
.button.secondary:not(:disabled):hover, .button.quiet:hover { background: #f2f5f0; }
.button.quiet { background: transparent; color: var(--muted); }
.button.small { min-height: 34px; font-size: 12px; padding-inline: 11px; }
.text-button { padding: 0; background: none; border: 0; color: var(--coral-dark); font-weight: 700; }
.text-button:hover { text-decoration: underline; }
label { display: grid; gap: 7px; color: #303932; font-size: 13px; font-weight: 650; }
input, select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #dce1d9; border-radius: 8px; background: white; color: var(--ink); }
input:focus, select:focus { outline: 2px solid #779583; outline-offset: 1px; }
.auth-layout { display: grid; grid-template-columns: minmax(460px, 1fr) minmax(470px, .92fr); min-height: 100vh; background: #fbfaf7; }
.auth-main { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 5vw, 70px); }
.auth-content { align-self: center; width: min(100%, 395px); padding-block: 53px; }
.auth-content h1 { margin: 16px 0 10px; font: 500 clamp(38px, 4.4vw, 57px)/1.04 var(--serif); letter-spacing: -.05em; }
.auth-content > p { color: var(--muted); line-height: 1.55; }
#auth-form { display: grid; gap: 17px; margin-top: 29px; }
#auth-form .primary { justify-content: space-between; min-height: 48px; margin-top: 4px; }
#demo-start { width: 100%; min-height: 44px; margin-top: 12px; }
.form-error { color: #92351f; padding: 10px 11px; background: #fcece5; border-radius: 7px; }
.auth-content .auth-switch { margin-top: 23px; }
.auth-main footer { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.auth-aside { display: grid; place-items: center; margin: 16px 16px 16px 0; border-radius: 19px; min-height: 570px; overflow: hidden; color: #f4f4e9; background-color: #233c31; background-image: radial-gradient(circle, #6b8071 0.7px, transparent 1px), radial-gradient(ellipse at 50% 45%, #385545, #233c31 69%); background-size: 23px 23px, 100% 100%; }
.aside-inner { display: grid; justify-items: center; text-align: center; padding: 32px; }
.sheet-stack { display: grid; position: relative; place-items: center; width: 340px; max-width: 100%; height: 305px; margin-bottom: 15px; }
.paper { width: 174px; height: 236px; border-radius: 12px; position: absolute; }
.paper-back { transform: translate(-37px,-5px) rotate(-15deg); border: 1px solid #dce6d6; background: linear-gradient(150deg,#c4d6c1,#92a997); box-shadow: 0 15px 40px #182c26; }
.paper-front { transform: translate(22px,-7px) rotate(8deg); background: #fffaf0; color: #20382d; text-align: left; padding: 15px 13px; box-shadow: 0 12px 35px #172d24; }
.paper-band { display: flex; justify-content: space-between; padding: 7px; border-radius: 3px; font-size: 7px; letter-spacing: .08em; font-weight: 800; color: #fdf7e9; background: #3a5748; }
.paper-front > b { display: block; font: 21px var(--serif); margin-top: 15px; }
.paper-time { font-size: 9px; color: #4b6255; }
.paper-lines { display: grid; gap: 6px; margin: 13px 0 14px; }
.paper-lines i { width: 80%; height: 3px; border-radius: 3px; background: #ccd5c6; }
.paper-lines i:nth-child(2) { width: 61%; }
.paper-lines i:nth-child(3) { width: 71%; }
.barcode { height: 33px; background: repeating-linear-gradient(90deg,#354d40 0 2px,transparent 2px 4px,#354d40 4px 5px,transparent 5px 8px,#354d40 8px 11px,transparent 11px 13px); }
.paper-front small { display: block; margin-top: 12px; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.sheet-status { position: absolute; display: flex; align-items: center; gap: 9px; right: 0; bottom: 20px; padding: 10px 14px 10px 10px; background: #f9f8ef; color: #2c4b38; border-radius: 8px; font-size: 11px; font-weight: 800; box-shadow: 0 8px 24px #243c31; }
.sheet-status span { display: grid; place-items: center; height: 21px; width: 21px; border-radius: 50%; background: #dfe9d9; }
.aside-copy h2 { font: 400 clamp(29px, 4vw, 53px)/1.04 var(--serif); letter-spacing: -.04em; }
.aside-copy p { max-width: 260px; margin: 15px auto 0; color: #d3e0d4; line-height: 1.6; }
.workspace { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: white; padding: 25px 17px; }
.sidebar .brand { margin-inline: 7px; }
.sidebar nav { display: grid; gap: 4px; margin-top: 41px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 8px; color: #546459; font-weight: 620; text-decoration: none; white-space: nowrap; }
.nav-link span { width: 18px; text-align: center; font-size: 16px; line-height: 1; }
.nav-link.active, .nav-link:hover { color: #2d4b38; background: #edf2eb; }
.side-footer { margin-top: auto; padding: 8px; color: var(--muted); }
.side-footer small { display: block; margin-top: 8px; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 30px; border-bottom: 1px solid var(--line); background: white; color: var(--muted); font-size: 13px; }
.account { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 680; }
#account-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #e3ece0; color: #31523d; font-size: 11px; }
.dashboard { max-width: 1280px; margin: auto; padding: 35px 33px 50px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.page-heading h1 { font: 500 44px/1.06 var(--serif); letter-spacing: -.045em; }
.page-heading p, .panel-heading p { margin-top: 6px; color: var(--muted); }
.status-banner { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border: 1px solid #e9dfd1; border-radius: 10px; background: #faf3e9; color: #70462e; }
.status-banner p { margin-top: 3px; color: #745f4d; font-size: 12px; }
.test-icon { display: grid; place-items: center; min-width: 33px; height: 33px; background: #f0e3d1; border-radius: 8px; font-size: 19px; }
.live-badge { margin-left: auto; padding: 5px 8px; border-radius: 6px; background: #eee3d4; font-size: 10px; font-weight: 750; white-space: nowrap; }
.notice { margin-bottom: 15px; padding: 11px 14px; border-radius: 8px; border: 1px solid #d8e2d7; background: #eaf2e7; color: #34573c; }
.notice.error { border-color: #ecd6cc; background: #fbece6; color: #933a25; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; margin: 17px 0; }
.stat { min-height: 95px; padding: 14px 16px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.stat span { display: block; color: var(--muted); font-size: 12px; }
.stat strong { display: block; margin-top: 5px; font: 35px/1.02 var(--serif); letter-spacing: -.035em; }
.panel { scroll-margin-top: 15px; margin-top: 14px; border: 1px solid var(--line); border-radius: 11px; background: white; overflow: hidden; }
.panel-heading { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 17px; border-bottom: 1px solid #eef0eb; }
.panel-heading h2 { font-size: 17px; letter-spacing: -.035em; }
.panel-heading p { font-size: 12px; line-height: 1.4; }
.empty { padding: 20px 17px; color: var(--muted); }
.shop-row, .event-row { display: flex; align-items: center; gap: 11px; padding: 12px 17px; border-bottom: 1px solid #eef0eb; }
.shop-row:last-child, .event-row:last-child { border-bottom: 0; }
.shop-row.selected { background: #f7faf5; }
.shop-row .select-shop { display: flex; flex: 1; text-align: left; align-items: center; gap: 10px; border: 0; padding: 0; color: var(--ink); background: transparent; font-weight: 700; }
.shop-logo { display: grid; place-items: center; min-width: 33px; height: 33px; border-radius: 8px; background: #f4e9e0; color: #965038; }
.pill { display: inline-flex; align-items: center; padding: 4px 7px; min-height: 21px; border-radius: 12px; background: #edf0eb; color: #526156; font-size: 10px; font-weight: 750; white-space: nowrap; }
.pill.good { background: #e9f2e6; color: #366342; }
.pill.wait { background: #fcf0df; color: #8e622e; }
.pill.bad { background: #faebe5; color: #963e29; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 11px 15px; border-bottom: 1px solid #eef0eb; }
tr:last-child td { border-bottom: 0; }
th { background: #fafbf8; color: var(--muted); font-size: 11px; font-weight: 650; }
td strong { font-weight: 700; }
td small { display: block; color: var(--muted); margin-top: 4px; }
.schedule-form { display: grid; grid-template-columns: minmax(145px,1fr) minmax(110px,1fr) auto; gap: 11px; align-items: end; padding: 15px 17px; border-bottom: 1px solid #eef0eb; }
.schedule-form select { min-height: 42px; }
.event-row { justify-content: space-between; color: #4f6054; font-size: 12px; }
.event-row time { flex: 0 0 auto; color: var(--muted); }
@media (max-width: 970px) {
  .auth-layout { grid-template-columns: minmax(365px, 1fr) minmax(310px, .8fr); }
  .auth-main { padding: 32px; }
  .sheet-stack { width: 250px; }
  .workspace { grid-template-columns: 176px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .sidebar .brand { margin-inline: 0; }
  .dashboard { padding-inline: 20px; }
}
@media (max-width: 700px) {
  .auth-layout { display: block; }
  .auth-main { min-height: 100vh; padding: 22px; max-width: 520px; margin: auto; }
  .auth-aside { display: none; }
  .workspace { display: block; }
  .sidebar { position: static; height: auto; padding: 14px 16px 6px; border-right: 0; }
  .sidebar nav { display: flex; margin-top: 9px; gap: 4px; overflow-x: auto; }
  .nav-link { padding: 8px; font-size: 11px; }
  .nav-link span, .side-footer { display: none; }
  .topbar { min-height: 48px; padding-inline: 16px; }
  .dashboard { padding: 20px 13px 36px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 38px; }
  .live-badge { display: none; }
  .stats { gap: 7px; }
  .stat { min-height: 81px; padding: 10px; }
  .stat strong { font-size: 29px; }
  .panel-heading, .shop-row { padding-inline: 11px; }
  .shop-row { flex-wrap: wrap; }
  .schedule-form { grid-template-columns: 1fr 1fr; padding-inline: 11px; }
  .schedule-form button { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
