.auto-mode {
  --auto-bg: var(--bg-app, #F6F7F9); --auto-card: var(--bg-card, #FFFFFF);
  --auto-ink: var(--text-primary, #2C2F35); --auto-muted: var(--text-muted, #6B707A);
  --auto-line: var(--border, #E2E5E9); --auto-plum: var(--primary, #980033);
  --auto-soft: var(--primary-soft, #F7E7EC); --auto-secondary: var(--pp-text, #2C2F35);
  --auto-secondary-soft: var(--bg-table-header, #FAFAFB); --auto-on-brand: var(--btn-primary-text, #FFFFFF);
  --auto-icon: var(--primary, #980033); --auto-secondary-icon: var(--text-primary, #2C2F35);
  min-height: 100dvh; background: var(--auto-bg); color: var(--auto-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.45; letter-spacing: -.015em; padding-bottom: env(safe-area-inset-bottom);
}
.auto-mode--dark { --auto-bg: var(--bg-app, #111318); --auto-card: var(--bg-card, #191C22); --auto-ink: var(--text-primary, #F4F5F6); --auto-muted: var(--text-muted, #AEB3BB); --auto-line: var(--border, #2C3038); --auto-plum: var(--primary, #B5144D); --auto-soft: var(--primary-soft, rgba(181,20,77,.2)); --auto-secondary-soft: var(--bg-table-header, #20242B); --auto-icon: var(--text-primary, #F4F5F6); --auto-secondary-icon: var(--text-primary, #F4F5F6); color-scheme: dark; }
.auto-mode *, .auto-mode *::before, .auto-mode *::after { box-sizing: border-box; }
.auto-mode button, .auto-mode input, .auto-mode textarea, .auto-mode select { font: inherit; letter-spacing: inherit; }
.auto-mode button { cursor: pointer; touch-action: manipulation; }
.auto-mode button:disabled { cursor: not-allowed; opacity: .5; }
.auto-mode :is(button, input, textarea, select):focus-visible { outline: 3px solid var(--auto-plum); outline-offset: 4px; }
.auto-mode svg { flex: 0 0 auto; width: 22px; height: 22px; stroke-width: 1.8; }
.auto-mode__shell { max-width: 680px; margin: 0 auto; min-height: 100dvh; }
.auto-mode__chrome { position: sticky; top: 0; z-index: 20; background: var(--auto-card); }
.auto-mode__header { padding: calc(16px + env(safe-area-inset-top)) 22px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--auto-card); }
.auto-mode__header > div { display: flex; flex-direction: column; }
.auto-mode__brand { font-size: 24px; color: var(--auto-plum); font-weight: 750; letter-spacing: -.8px; }
.auto-mode__brand small { color: var(--auto-muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.auto-mode__caption { font-size: 13px; color: var(--auto-muted); }
.auto-mode__exit { min-height: 48px; padding: 10px 12px; border: 1px solid var(--auto-line); background: var(--auto-card); color: var(--auto-ink); border-radius: 12px; font-size: 13px !important; font-weight: 600 !important; }
.auto-mode__access { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 0 20px 12px; min-height: 58px; background: var(--auto-card); border-bottom: 1px solid var(--auto-line); }
.auto-mode__access > span { display: flex; gap: 7px; align-items: center; color: var(--auto-muted); font-size: 13px; font-weight: 600; }
.auto-mode__access > span svg { width: 18px; height: 18px; }
.auto-mode__access button { display: flex; gap: 8px; align-items: center; min-height: 48px; border: 0; border-radius: 13px; padding: 10px 13px; background: var(--auto-secondary-soft); color: var(--auto-ink); font-size: 14px; font-weight: 600; }
.auto-mode__main { padding: 24px 20px 36px; min-width: 0; }
.auto-mode h1 { margin: 0 0 10px; font-size: clamp(26px, 6vw, 32px); line-height: 1.18; font-weight: 700; letter-spacing: -.8px; overflow-wrap: anywhere; }
.auto-mode__intro { margin: 0 0 24px; font-size: 16px; color: var(--auto-muted); line-height: 1.5; }
.auto-mode__shortcuts { display: grid; gap: 13px; }
.auto-mode__tile { display: grid; grid-template-columns: 45px minmax(0, 1fr) 20px; gap: 13px; align-items: center; min-height: 108px; text-align: left; padding: 20px 18px; border: 0; border-radius: 22px; background: var(--auto-plum); color: var(--auto-on-brand); }
.auto-mode__tile--orders { background: var(--auto-secondary); }
.auto-mode__tile > span:first-child { display: flex; align-items: center; justify-content: center; width: 45px; height: 48px; border-radius: 14px; background: #ffffff22; }
.auto-mode__tile > span:first-child svg { width: 27px; height: 27px; }
.auto-mode__tile strong { display: block; font-size: 21px; line-height: 1.2; font-weight: 650; }
.auto-mode__tile small { display: block; font-size: 13px; margin-top: 6px; line-height: 1.4; }
.auto-mode__section-title { margin: 26px 2px 12px; color: var(--auto-muted); font-size: 14px; font-weight: 600; }
.auto-mode__records { border: 1px solid var(--auto-line); background: var(--auto-card); border-radius: 19px; }
.auto-mode__records:empty { display: none; }
.auto-mode__record { width: 100%; display: grid; grid-template-columns: 58px minmax(0, 1fr) 18px; gap: 13px; align-items: center; min-height: 102px; padding: 17px 14px; color: var(--auto-ink); background: none; border: 0; border-bottom: 1px solid var(--auto-line); text-align: left; }
.auto-mode__record:first-child { border-radius: 18px 18px 0 0; }
.auto-mode__record:last-child { border-bottom: 0; border-radius: 0 0 18px 18px; }
.auto-mode__record-copy { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; gap: 4px; }
.auto-mode__record-copy strong { font-size: 18px; line-height: 1.25; font-weight: 650; }
.auto-mode__record-copy > span { color: var(--auto-muted); font-size: 15px; line-height: 1.4; }
.auto-mode__record-copy small { color: var(--auto-muted); font-size: 13px; line-height: 1.4; }
.auto-mode__status { font-size: 13px; font-weight: 600; color: var(--auto-icon) !important; }
.auto-mode__record > svg { width: 18px; color: var(--auto-muted); }
.auto-mode__thumbnail { display: flex; align-items: center; justify-content: center; width: 58px; height: 65px; border-radius: 12px; color: var(--auto-icon); background: var(--auto-soft); }
.auto-mode__thumbnail--order { color: var(--auto-secondary-icon); background: var(--auto-secondary-soft); }
.auto-mode__thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #fff; }
.auto-mode__back { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 50px; background: var(--auto-card); color: var(--auto-icon); border: 1px solid var(--auto-line); border-radius: 13px; padding: 11px 14px; margin-bottom: 22px; font-size: 15px !important; font-weight: 600 !important; }
.auto-mode__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: var(--auto-line); padding: 5px; border-radius: 16px; margin: 20px 0; }
.auto-mode__tabs button { min-height: 52px; border: 0; border-radius: 12px; color: var(--auto-muted); background: none; font-size: 15px; font-weight: 600; }
.auto-mode__tabs button[aria-pressed="true"] { background: var(--auto-card); color: var(--auto-icon); }
.auto-mode__search { display: flex; align-items: center; gap: 9px; padding: 0 13px; min-height: 56px; background: var(--auto-card); color: var(--auto-muted); border: 1px solid var(--auto-line); border-radius: 15px; }
.auto-mode__search input { width: 100%; min-width: 0; min-height: 54px; border: 0; background: none; color: var(--auto-ink); font-size: 16px; }
.auto-mode__scope { display: block; font-size: 13px; color: var(--auto-muted); line-height: 1.5; margin: 15px 0; }
.auto-mode__order-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 16px 0; }
.auto-mode__order-tools label { display: flex; flex: 1; min-width: 160px; flex-direction: column; gap: 6px; font-size: 13px; color: var(--auto-muted); }
.auto-mode__order-tools select, .auto-mode__order-tools button { min-height: 52px; max-width: 100%; color: var(--auto-ink); background: var(--auto-card); border: 1px solid var(--auto-line); border-radius: 13px; padding: 10px; font-size: 16px; }
.auto-mode__pagination { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 20px; }
.auto-mode__pagination button { display: inline-flex; gap: 5px; align-items: center; justify-content: center; min-height: 52px; padding: 10px 12px; color: var(--auto-ink); background: var(--auto-card); border: 1px solid var(--auto-line); border-radius: 12px; font-size: 14px; }
.auto-mode__pagination > span { font-size: 14px; color: var(--auto-muted); }
.auto-mode__detail-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.auto-mode__detail-heading > div { min-width: 0; }
.auto-mode__detail-heading .auto-mode__scope { margin: 0 0 6px; overflow-wrap: anywhere; }
.auto-mode__detail-heading h1 { font-size: 25px; margin-bottom: 5px; }
.auto-mode__summary { background: var(--auto-card); border: 1px solid var(--auto-line); border-radius: 20px; padding: 19px; margin-bottom: 18px; }
.auto-mode__summary h2 { font-size: 21px; line-height: 1.4; margin: 0 0 24px; font-weight: 650; overflow-wrap: anywhere; }
.auto-mode__summary dl { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.auto-mode__summary dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; }
.auto-mode__summary dt { font-size: 14px; color: var(--auto-muted); }
.auto-mode__summary dd { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.auto-mode__primary, .auto-mode__secondary { display: flex; gap: 10px; align-items: center; justify-content: center; width: 100%; min-height: 62px; border: 0; border-radius: 17px; padding: 15px; color: var(--auto-on-brand); background: var(--auto-plum); font-size: 17px; font-weight: 650; }
.auto-mode__secondary { margin-top: 12px; background: var(--auto-card); color: var(--auto-ink); border: 1px solid var(--auto-line); }
.auto-mode__note { font-size: 13px; color: var(--auto-muted); text-align: center; line-height: 1.6; margin: 18px 4px 0; }
.auto-mode__notice { padding: 14px 16px; font-size: 14px; border-left: 3px solid var(--auto-plum); background: var(--auto-soft); color: var(--auto-ink); margin: 18px 0; }
.auto-mode__locked { padding: 32px 4px 16px; text-align: center; max-width: 420px; margin: 0 auto; }
.auto-mode__car { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 27px; background: var(--auto-secondary-soft); color: var(--auto-secondary-icon); margin: 0 auto 28px; }
.auto-mode__car svg { width: 44px; height: 44px; stroke-width: 1.5; }
.auto-mode__locked h1 { font-size: 36px; }
.auto-mode__locked > p:not(.auto-mode__note) { margin: 20px auto 32px; color: var(--auto-muted); font-size: 18px; line-height: 1.55; max-width: 300px; }
.auto-mode__locked .auto-mode__primary { background: var(--auto-secondary); }
.auto-mode__form { display: flex; flex-direction: column; gap: 18px; margin-bottom: 22px; }
.auto-mode__form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--auto-muted); }
.auto-mode__form input, .auto-mode__form textarea { min-height: 56px; border-radius: 13px; border: 1px solid var(--auto-line); padding: 14px; font-size: 17px; color: var(--auto-ink); background: var(--auto-card); width: 100%; min-width: 0; }
.auto-mode__form textarea { resize: vertical; line-height: 1.6; }
@media (max-width: 360px) { .auto-mode__main { padding: 21px 14px 30px; } .auto-mode__header { padding-left: 16px; padding-right: 16px; } .auto-mode__access { padding-left: 16px; padding-right: 16px; } .auto-mode__tile { gap: 10px; padding: 19px 13px; grid-template-columns: 40px minmax(0, 1fr) 18px; } .auto-mode__tile > span:first-child { width: 40px; } .auto-mode__tile strong { font-size: 19px; } .auto-mode__record { grid-template-columns: 48px minmax(0, 1fr) 16px; padding: 15px 11px; gap: 10px; } .auto-mode__thumbnail { width: 48px; height: 57px; } }
@media (min-width: 760px) { .auto-mode { padding: 28px 20px; } .auto-mode__shell { min-height: calc(100dvh - 56px); border: 1px solid var(--auto-line); border-radius: 25px; background: var(--auto-bg); } .auto-mode__chrome, .auto-mode__header { border-radius: 24px 24px 0 0; } .auto-mode__main { padding: 28px; } }
@media (prefers-reduced-motion: no-preference) { .auto-mode button { transition: background-color .15s ease; } }
