:root {
  --black: #000000;
  --ink: #161616;
  --ink-soft: #333333;
  --muted: #666666;
  --line: #dedede;
  --line-strong: #b8b8b8;
  --surface: #ffffff;
  --surface-soft: #f6f6f5;
  --surface-warm: #f2efef;
  --accent: #1267e8;
  --accent-dark: #0b4fb7;
  --green: #107c41;
  --red: #c52828;
  --amber: #8a5a00;
  --shadow: 0 18px 45px rgba(0,0,0,.08);
  --shadow-soft: 0 8px 24px rgba(0,0,0,.06);
  --content: 1180px;
  --wide: 1440px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.workspace-body { background: #f3f4f5; }
a { color: inherit; }
img, svg, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.container-wide { width: min(var(--wide), calc(100% - 40px)); margin-inline: auto; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 12px 16px; background: #fff; color: #000; border: 2px solid #000; border-radius: var(--radius-sm); }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.header-row { min-height: 72px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #000; text-decoration: none; font-size: 1.2rem; font-weight: 760; letter-spacing: -.03em; white-space: nowrap; }
.brand-symbol { width: 34px; height: 34px; background: #000; border-radius: 50%; display: grid; place-items: center; position: relative; overflow: hidden; }
.brand-symbol span { position: absolute; display: block; width: 17px; height: 4px; background: #fff; border-radius: 3px; transform: rotate(-42deg); }
.brand-symbol span:first-child { transform: translate(-3px,-4px) rotate(-42deg); }
.brand-symbol span:last-child { transform: translate(4px,4px) rotate(-42deg); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a, .link-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 13px; border: 0; border-radius: 10px; background: transparent; color: #222; text-decoration: none; font-weight: 620; font-size: .94rem; cursor: pointer; }
.nav a:hover, .link-button:hover { background: #f0f0ef; }
.nav .top-cta { background: #000; color: #fff; padding-inline: 17px; }
.nav .top-cta:hover { background: #222; }
.nav-form { margin: 0; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 10px; background: #f2f2f1; padding: 12px; }
.nav-toggle span { display: block; height: 2px; background: #000; margin: 5px 0; }

.page-space { min-height: calc(100vh - 180px); padding-block: 46px 72px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { margin: 3px 0 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .98; letter-spacing: -.045em; }
.page-subtitle { margin: 12px 0 0; color: var(--muted); max-width: 720px; }
.eyebrow { margin: 0; color: #6a6a6a; font-size: .76rem; font-weight: 760; text-transform: uppercase; letter-spacing: .1em; }
.role-badge, .status { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 999px; background: #ececec; color: #333; font-size: .78rem; font-weight: 700; text-transform: capitalize; }
.status-good { background: #e5f5eb; color: #0c6535; }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 56px;
  align-items: center;
  min-height: 520px;
  padding: clamp(38px, 6vw, 86px);
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero::before { content: ""; position: absolute; width: 540px; height: 540px; right: -180px; top: -130px; border: 2px solid #e7e7e7; border-radius: 50%; box-shadow: 0 0 0 52px #f7f7f6, 0 0 0 54px #e7e7e7, 0 0 0 108px #fbfbfa; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin: 12px 0 18px; max-width: 820px; font-size: clamp(3.1rem, 7vw, 6.9rem); line-height: .88; letter-spacing: -.07em; font-weight: 780; }
.hero h2 { margin: 8px 0 10px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: .98; letter-spacing: -.045em; }
.hero p { max-width: 720px; color: #4e4e4e; font-size: 1.06rem; }
.hero.compact { min-height: 0; grid-template-columns: 1fr auto; gap: 32px; padding: 32px 36px; border-radius: 20px; box-shadow: var(--shadow-soft); }
.hero.compact::before { width: 280px; height: 280px; right: -90px; top: -100px; box-shadow: none; }
.hero-visual { position: relative; z-index: 2; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.route-orbit { width: 280px; height: 280px; border: 2px solid #151515; border-radius: 50%; position: relative; transform: rotate(-15deg); }
.route-orbit::before, .route-orbit::after { content: ""; position: absolute; width: 18px; height: 18px; background: #000; border: 7px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #000; }
.route-orbit::before { left: 24px; top: 49px; }
.route-orbit::after { right: 32px; bottom: 47px; }
.route-orbit .route-line { position: absolute; width: 190px; height: 88px; border-top: 10px solid #000; border-radius: 50%; left: 41px; top: 94px; transform: rotate(22deg); }
.route-orbit .bus-dot { position: absolute; width: 54px; height: 54px; display: grid; place-items: center; background: #000; color: #fff; border: 6px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #000; left: 118px; top: 82px; font-size: 1.25rem; font-weight: 800; transform: rotate(15deg); }

.hero-search { position: relative; z-index: 3; margin-top: 32px; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; padding: 10px; background: #f3f3f2; border-radius: 16px; }
.hero-search label { margin: 0; }
.hero-search input { border: 0; background: #fff; }
.hero-search .button { min-width: 132px; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 48px 0 18px; }
.section-heading h2 { margin: 3px 0 0; font-size: clamp(1.65rem, 3vw, 2.3rem); letter-spacing: -.035em; }
.section-heading a { color: #333; text-underline-offset: 3px; }

.card, .trip-card, .stat, .ticket, .scanner-shell, .verification-result {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card { padding: 26px; margin-bottom: 22px; }
.card h2, .card h3 { margin-top: 0; letter-spacing: -.025em; }
.card h2 { font-size: 1.45rem; }
.card p:last-child { margin-bottom: 0; }
.compact-card { max-width: 680px; }
.feature-grid, .trip-grid, .stats-grid, .dashboard-grid { display: grid; gap: 18px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; }
.trip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trip-card { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 190px; }
.trip-card h3 { margin: 7px 0 8px; font-size: 1.25rem; letter-spacing: -.02em; }
.trip-card p { color: var(--muted); }
.task-card { display: flex; flex-direction: column; }
.task-card .button { margin-top: auto; }

.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid #000; border-radius: 10px; background: #000; color: #fff; text-decoration: none; font-weight: 720; line-height: 1.15; cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.button:hover { background: #222; border-color: #222; }
.button:active { transform: translateY(1px); }
.button.secondary { background: #fff; color: #111; border-color: #cfcfcf; }
.button.secondary:hover { background: #f3f3f2; border-color: #bdbdbd; }
.button.danger { background: var(--red); border-color: var(--red); }
.button.success { background: var(--green); border-color: var(--green); }
.button.small { min-height: 36px; padding: 7px 11px; border-radius: 8px; font-size: .84rem; }
.button-wide { width: 100%; }
button:disabled { opacity: .55; cursor: wait; }

.form-card { max-width: 720px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.compact-form { gap: 9px; margin-top: 14px; }
.search-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px; align-items: end; }
label { display: grid; gap: 7px; color: #2d2d2d; font-size: .92rem; }
.field-label { font-weight: 690; }
input, select, textarea { width: 100%; min-height: 48px; border: 1px solid #cfcfcf; border-radius: 10px; background: #fff; padding: 10px 12px; outline: none; }
input::placeholder, textarea::placeholder { color: #9a9a9a; }
input:focus, select:focus, textarea:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(0,0,0,.09); }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(18,103,232,.4); outline-offset: 2px; }
textarea { min-height: 120px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 20px; min-height: 20px; padding: 0; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field-hint { color: var(--muted); font-weight: 400; font-size: .82rem; }
fieldset { border: 1px solid #d7d7d7; border-radius: 12px; padding: 16px; margin: 0; }
legend { font-weight: 700; padding: 0 7px; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { min-width: 145px; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e2e2e2; border-radius: 12px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; font-size: .91rem; }
th, td { text-align: left; padding: 14px 13px; border-bottom: 1px solid #ececec; vertical-align: middle; }
th { background: #fafafa; color: #666; font-size: .74rem; text-transform: uppercase; letter-spacing: .065em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafafa; }

.alert { border: 1px solid; border-radius: 12px; padding: 13px 15px; margin-bottom: 20px; background: #fff; overflow-wrap: anywhere; }
.alert.success { border-color: #b8dfc6; background: #eef9f2; color: #0e5e34; }
.alert.error { border-color: #efb6b6; background: #fff4f4; color: #8d1d1d; }
.alert.info { border-color: #b9cff3; background: #f2f6fd; color: #184b94; }
.empty-state { min-height: 130px; display: grid; place-items: center; text-align: center; padding: 26px; border: 1px dashed #c8c8c8; border-radius: 12px; background: #fafafa; color: #696969; }
.empty-state > span { font-size: 1.6rem; }
.empty-state p { margin: 4px 0 0; }
.demo-box, .notice-box { margin-top: 16px; padding: 14px 15px; border: 1px solid #ddd; border-radius: 12px; background: #f7f7f6; }
.muted { color: var(--muted); font-size: .9rem; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #efefef; border-radius: 6px; padding: 2px 6px; font-size: .92em; }

.stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 22px; }
.stat { padding: 20px; box-shadow: none; }
.stat span { display: block; color: var(--muted); font-size: .82rem; }
.stat strong { display: block; margin-top: 7px; font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -.035em; overflow-wrap: anywhere; }

.seat-grid { display: grid; grid-template-columns: repeat(4, minmax(50px, 1fr)); gap: 10px; max-width: 560px; margin: 20px auto 30px; }
.seat { display: block; }
.seat input { position: absolute; opacity: 0; pointer-events: none; }
.seat span { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid #c8c8c8; border-radius: 10px; background: #fff; cursor: pointer; font-weight: 720; }
.seat input:checked + span { background: #000; border-color: #000; color: #fff; }
.seat input:focus-visible + span { outline: 3px solid rgba(18,103,232,.35); }
.seat.taken span { background: #eeeeed; color: #999; border-style: dashed; cursor: not-allowed; text-decoration: line-through; }
.booking-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid #e6e6e6; padding-top: 18px; }
.booking-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.booking-summary span, .ticket-grid span, .checkout-summary span { display: block; color: var(--muted); font-size: .8rem; }
.booking-summary strong, .ticket-grid strong, .checkout-summary strong { display: block; margin-top: 4px; }

.payment-card { max-width: 760px; margin-inline: auto; }
.price-big { margin: 18px 0 22px; font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 780; letter-spacing: -.05em; }
.payment-method { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid #ddd; border-radius: 12px; margin-bottom: 10px; background: #fff; }
.payment-badge { font-family: ui-monospace, monospace; background: #eee; border-radius: 6px; padding: 5px 7px; font-size: .78rem; }
.otp-box { max-width: 520px; margin-inline: auto; }
.otp-input { font-family: ui-monospace, monospace; letter-spacing: .3em; font-size: 1.4rem; text-align: center; }
.checkout-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; padding: 18px; border-radius: 12px; background: #f5f5f4; }
.result-panel { text-align: center; max-width: 620px; margin-inline: auto; padding: 38px; }
.result-icon { width: 56px; height: 56px; display: inline-grid; place-items: center; border-radius: 50%; background: #111; color: #fff; font-size: 1.6rem; font-weight: 800; }
.result-icon.success { background: var(--green); }
.result-icon.pending { background: #777; }

.ticket { max-width: 980px; margin-inline: auto; padding: 0; overflow: hidden; }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 26px; border-bottom: 1px solid #e4e4e4; }
.ticket-head h2 { margin: 5px 0 0; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.04em; }
.ticket-ref { font-family: ui-monospace, monospace; font-size: .86rem; padding: 8px 10px; border-radius: 8px; background: #f2f2f1; white-space: nowrap; }
.ticket-body { display: grid; grid-template-columns: 1fr 250px; gap: 26px; padding: 26px; align-items: center; }
.ticket-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.qr-ticket-panel { text-align: center; padding: 16px; background: #fafafa; border: 1px solid #e1e1e1; border-radius: 14px; }
.ticket-qr { display: block; width: min(100%, 210px); height: auto; margin: 0 auto; background: #fff; }
.qr-ticket-panel p { margin: 10px 0 0; }
.qr-ticket-panel span { font-size: .78rem; color: #666; }
.ticket-code { font-family: ui-monospace, monospace; letter-spacing: .13em; text-align: center; padding: 18px; font-weight: 700; }

.scanner-shell { display: grid; grid-template-columns: 1fr minmax(320px, .85fr); overflow: hidden; margin-bottom: 22px; }
.scanner-copy { padding: 30px; }
.scanner-copy h2 { margin: 6px 0 10px; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.045em; }
.scanner-copy p { color: #555; }
.scanner-view { position: relative; min-height: 360px; background: #111; display: grid; place-items: center; overflow: hidden; }
.scanner-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; width: min(68%, 250px); aspect-ratio: 1; border: 2px solid rgba(255,255,255,.96); border-radius: 22px; box-shadow: 0 0 0 999px rgba(0,0,0,.24); }
.scan-frame::before, .scan-frame::after, .scan-frame span::before, .scan-frame span::after { content: ""; position: absolute; width: 34px; height: 34px; border-color: #fff; }
.scan-frame::before { left: -2px; top: -2px; border-left: 5px solid; border-top: 5px solid; border-radius: 10px 0 0 0; }
.scan-frame::after { right: -2px; top: -2px; border-right: 5px solid; border-top: 5px solid; border-radius: 0 10px 0 0; }
.scan-frame span::before { left: -2px; bottom: -2px; border-left: 5px solid; border-bottom: 5px solid; border-radius: 0 0 0 10px; }
.scan-frame span::after { right: -2px; bottom: -2px; border-right: 5px solid; border-bottom: 5px solid; border-radius: 0 0 10px 0; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.verification-result { padding: 26px; margin-top: 22px; }
.verification-result.is-valid { border-color: #b8dfc6; }
.verification-result.is-invalid { border-color: #efb6b6; }
.verification-status { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.verification-status h2 { margin: 2px 0; }
.verification-result.is-valid .result-icon { background: var(--green); }
.verification-result.is-invalid .result-icon { background: var(--red); }

.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: start; min-height: calc(100vh - 72px); padding-block: 24px 56px; }
.workspace-nav { position: sticky; top: 96px; background: #111; color: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.workspace-profile { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid #2b2b2b; }
.workspace-profile .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; font-weight: 800; }
.workspace-profile strong, .workspace-profile span { display: block; }
.workspace-profile > div > span { margin-top: 3px; color: #aaa; font-size: .76rem; }
.workspace-nav nav { display: grid; padding: 9px; }
.workspace-nav nav a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 45px; padding: 10px 11px; border-radius: 10px; color: #eee; text-decoration: none; font-size: .91rem; }
.workspace-nav nav a:hover { background: #2a2a2a; }
.workspace-nav-footer { display: grid; gap: 4px; padding: 12px 20px 18px; border-top: 1px solid #2b2b2b; }
.workspace-nav-footer a { color: #a9a9a9; font-size: .83rem; text-decoration: none; }
.workspace-main { min-width: 0; padding: 12px 0 18px; }
.workspace-main .page-heading { padding: 10px 2px 0; }
.workspace-main .page-heading h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

.site-footer { border-top: 1px solid #e2e2e2; background: #fff; padding: 30px 0; color: #555; font-size: .86rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.site-footer p { margin: 5px 0 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #444; }

@media (max-width: 1050px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 20px; right: 20px; top: 72px; margin-left: 0; padding: 10px; background: #fff; border: 1px solid #ddd; border-radius: 14px; box-shadow: var(--shadow); align-items: stretch; }
  .nav.open { display: grid; }
  .nav a, .link-button { width: 100%; justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
  .trip-grid, .feature-grid, .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .search-grid, .form-grid.columns-3 { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 220px minmax(0,1fr); }
}

@media (max-width: 760px) {
  .container, .container-wide { width: min(100% - 24px, var(--content)); }
  .header-row { min-height: 64px; }
  .nav { top: 64px; left: 12px; right: 12px; }
  .page-space { padding-block: 28px 52px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .hero { min-height: 0; padding: 32px 22px; border-radius: 20px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .hero-visual { display: none; }
  .hero-search { grid-template-columns: 1fr; }
  .hero-search .button { width: 100%; }
  .hero.compact { grid-template-columns: 1fr; padding: 26px 22px; }
  .trip-grid, .feature-grid, .dashboard-grid, .stats-grid, .form-grid.columns-2, .form-grid.columns-3, .search-grid, .booking-summary, .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .booking-bar, .ticket-head { align-items: stretch; flex-direction: column; }
  .ticket-body { grid-template-columns: 1fr; padding: 20px; }
  .ticket-grid { grid-template-columns: 1fr 1fr; }
  .qr-ticket-panel { max-width: 280px; width: 100%; margin-inline: auto; }
  .scanner-shell { grid-template-columns: 1fr; }
  .scanner-copy { padding: 22px; }
  .scanner-view { min-height: 330px; }
  .app-shell { width: min(100% - 24px, var(--wide)); grid-template-columns: 1fr; padding-top: 14px; }
  .workspace-nav { position: static; display: block; }
  .workspace-nav nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .workspace-nav-footer { grid-template-columns: 1fr 1fr; }
  .workspace-main { padding-top: 0; }
  .payment-method { grid-template-columns: auto 1fr; }
  .payment-method .button { grid-column: 1 / -1; }
  .actions .button { flex: 1 1 160px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .brand { font-size: 1.08rem; }
  .brand-symbol { width: 31px; height: 31px; }
  .hero h1 { font-size: 3.25rem; }
  .ticket-grid { grid-template-columns: 1fr; }
  .seat-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .seat span { min-height: 46px; }
  .workspace-nav nav { grid-template-columns: 1fr; }
  .checkout-summary { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
}

@media print {
  .site-header, .site-footer, .workspace-nav, .no-print, .alert, .page-heading { display: none !important; }
  body { background: #fff; }
  .app-shell, .container, .container-wide { width: 100%; display: block; }
  .page-space, .workspace-main { padding: 0; }
  .ticket { box-shadow: none; border-color: #aaa; }
}

/* Authentication pages deliberately use one calm focal panel instead of a dashboard grid. */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 500px); min-height: 620px; overflow: hidden; background: #fff; border: 1px solid #e1e1e1; border-radius: 26px; box-shadow: var(--shadow); }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 76px); background: #111; color: #fff; }
.auth-aside::after { content: ""; position: absolute; width: 440px; height: 440px; right: -180px; bottom: -210px; border: 1px solid #444; border-radius: 50%; box-shadow: 0 0 0 44px #181818, 0 0 0 45px #383838, 0 0 0 92px #141414; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .eyebrow { color: #bdbdbd; }
.auth-aside h2 { margin: 10px 0 16px; max-width: 620px; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .94; letter-spacing: -.055em; }
.auth-aside p { max-width: 620px; color: #cfcfcf; }
.auth-points { display: grid; gap: 10px; margin-top: 26px; color: #eee; font-size: .92rem; }
.auth-panel { align-self: center; margin: 32px; padding: 32px; background: #fff; }
.auth-panel-head { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.auth-panel-head h2 { margin: 0; font-size: 1.7rem; letter-spacing: -.035em; }
.auth-panel-head p { margin: 3px 0 0; color: #777; font-size: .88rem; }
.brand-mini { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #000; color: #fff; font-weight: 800; font-size: .85rem; }
.auth-foot { margin: 22px 0 0; text-align: center; color: #666; font-size: .9rem; }
.auth-foot a, .form-between a { color: #111; font-weight: 700; text-underline-offset: 3px; }
.form-between { display: flex; justify-content: flex-end; align-items: center; margin-top: -4px; font-size: .86rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #999; margin: 20px 0; font-size: .82rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #e5e5e5; }
.auth-single { max-width: 560px; margin-inline: auto; }
.auth-single .auth-panel { margin: 0; border: 1px solid #e1e1e1; border-radius: 20px; box-shadow: var(--shadow-soft); }

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .auth-aside { min-height: 270px; padding: 34px 26px; }
  .auth-aside h2 { font-size: 2.8rem; }
  .auth-points { grid-template-columns: 1fr 1fr; }
  .auth-panel { margin: 0; padding: 28px 22px 32px; }
}
@media (max-width: 520px) {
  .auth-points { grid-template-columns: 1fr; }
  .auth-aside h2 { font-size: 2.45rem; }
}

.admin-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
.inside-card { margin-top: 0; }
.integration-card h2 { text-transform: capitalize; }
.integration-state { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 5px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.integration-state.ok { background: #e5f5eb; color: #0c6535; }
.integration-state.warn { background: #fff4dc; color: #6d4700; }
.config-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.config-list code { padding: 6px 8px; border-radius: 7px; background: #f1f1f1; font-size: .76rem; }
@media (max-width: 980px) { .admin-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .admin-stats { grid-template-columns: 1fr; } }
