/* Illustrative PHEV app screenshots — matches Carspel VlmTheme + landing phone mocks */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --app-blue: #0277bd;
  --app-blue-dark: #01579b;
  --app-bg: #f4f6f9;
  --app-surface: #ffffff;
  --app-text: #1a2332;
  --app-subtle: #6b7280;
  --app-accent: #e1f5fe;
  --app-charge: #2e7d32;
  --app-charge-bg: #e8f5e9;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(13, 46, 92, 0.08);
  --font: 'DM Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.export-page {
  font-family: var(--font);
  background: #e8ecf0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
}

body.export-page.embed-mode {
  padding: 0;
  background: transparent;
  min-height: 0;
  align-items: center;
  overflow: hidden;
  width: 390px;
  max-width: 100%;
  margin: 0 auto;
}

body.embed-mode .bottom-nav {
  display: none;
}

body.embed-mode .ytd-insight {
  display: none;
}

body.embed-mode .screen-body {
  padding-bottom: 16px;
}

body.embed-mode .phone-export {
  box-shadow: var(--shadow-card);
  border-width: 4px;
  width: 100%;
  max-width: 390px;
}

body.embed-mode .phone-export__screen {
  min-height: 0;
}

body.gallery-page {
  font-family: var(--font);
  background: #faf7f2;
  color: var(--app-text);
  padding: 2rem;
}

.gallery-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.gallery-page p {
  color: var(--app-subtle);
  max-width: 52rem;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.gallery-item h2 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* Phone chassis */
.phone-export {
  width: 390px;
  border-radius: 44px;
  background: #2c2c2e;
  border: 7px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.phone-export__screen {
  background: var(--app-bg);
  min-height: 844px;
  display: flex;
  flex-direction: column;
}

.app-bar {
  background: var(--app-bg);
  padding: 52px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-bar__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--app-text);
}

.app-bar__menu {
  width: 24px;
  height: 24px;
  color: var(--app-text);
  opacity: 0.7;
}

.screen-body {
  flex: 1;
  padding: 0 14px 88px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow: hidden;
  padding-bottom: 2px;
}

.chip {
  font-size: 0.8125rem;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(107, 114, 128, 0.35);
  background: var(--app-surface);
  color: var(--app-text);
  white-space: nowrap;
}

.chip--active {
  background: var(--app-blue);
  border-color: var(--app-blue);
  color: #fff;
  font-weight: 600;
}

.ytd-card {
  background: var(--app-surface);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
}

.ytd-card__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-subtle);
  margin-bottom: 8px;
}

.ytd-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 0.875rem;
}

.ytd-row__label {
  color: var(--app-subtle);
  font-size: 0.8125rem;
}

.ytd-row__value {
  font-weight: 600;
  color: var(--app-text);
  text-align: right;
}

.ytd-insight {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--app-subtle);
}

.log-card {
  background: var(--app-surface);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.log-card__date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: 4px;
}

.log-card__line {
  font-size: 0.875rem;
  color: var(--app-text);
  margin-bottom: 4px;
}

.log-card__sub {
  font-size: 0.8125rem;
  color: var(--app-subtle);
  margin-bottom: 8px;
}

.log-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.log-chip {
  font-size: 0.6875rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--app-accent);
  color: var(--app-blue-dark);
  font-weight: 500;
}

.log-chip--charge {
  background: var(--app-charge-bg);
  color: var(--app-charge);
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--app-subtle);
  margin: 8px 0 4px;
}

.info-card {
  background: var(--app-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(107, 114, 128, 0.12);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row__icon {
  width: 20px;
  height: 20px;
  color: var(--app-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-row__body {
  flex: 1;
  min-width: 0;
}

.info-row__label {
  font-size: 0.8125rem;
  color: var(--app-subtle);
}

.info-row__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--app-text);
}

.info-row__value--muted {
  color: var(--app-subtle);
  font-weight: 600;
}

.phev-hint {
  padding: 0 14px 8px 46px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--app-subtle);
}

.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--app-surface);
  border-top: 1px solid rgba(107, 114, 128, 0.15);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 0 22px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.625rem;
  color: var(--app-subtle);
}

.bottom-nav__item--active {
  color: var(--app-blue);
  font-weight: 600;
}

.bottom-nav__item svg {
  width: 22px;
  height: 22px;
}

.phone-export--relative {
  position: relative;
}

/* PDF-style energy report */
.report-export {
  width: 520px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  padding: 28px 32px 32px;
}

.report-export__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--app-blue);
}

.report-export__brand img {
  height: 28px;
  width: auto;
}

.report-export__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--app-text);
  margin-top: 6px;
}

.report-export__meta {
  font-size: 0.8125rem;
  color: var(--app-subtle);
  text-align: right;
  line-height: 1.5;
}

.report-export__disclaimer {
  font-size: 0.6875rem;
  color: var(--app-subtle);
  line-height: 1.4;
  margin-bottom: 18px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.report-stat {
  background: var(--app-bg);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}

.report-stat__num {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--app-blue-dark);
}

.report-stat__lbl {
  font-size: 0.625rem;
  color: var(--app-subtle);
  margin-top: 2px;
  line-height: 1.3;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.report-table th,
.report-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(107, 114, 128, 0.15);
}

.report-table th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--app-subtle);
  font-weight: 600;
}

.report-table td:last-child,
.report-table th:last-child {
  text-align: right;
}

.report-table tr:last-child td {
  border-bottom: none;
  font-weight: 600;
}

.report-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-subtle);
  margin: 16px 0 8px;
}

.mock-note {
  font-size: 0.75rem;
  color: #888;
  margin-top: 12px;
  text-align: center;
}

html[dir='rtl'] .ytd-row,
html[dir='rtl'] .info-row__body {
  text-align: right;
}

html[dir='rtl'] .ytd-row__value,
html[dir='rtl'] .report-export__meta {
  text-align: left;
}

html[dir='rtl'] .chip-row,
html[dir='rtl'] .log-card__chips {
  direction: rtl;
}

/* Garage home screen (landing-style dashboard mock) */
.garage-home {
  background: linear-gradient(160deg, #eef6fb 0%, #e8f1f3 100%);
  min-height: 0;
  padding: 52px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.garage-home__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #eef6fb;
  border: 1px solid var(--app-blue);
  box-shadow: 0 2px 8px rgba(13, 46, 92, 0.08);
  min-width: 0;
}

.garage-home__logo {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.garage-home__logo img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 100%;
  max-height: 22px;
  object-fit: contain;
  object-position: left center;
}

.garage-home__bell {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(2, 119, 189, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-blue);
  flex-shrink: 0;
}

.garage-home__bell svg {
  display: block;
  width: 15px;
  height: 15px;
  max-width: 15px;
  max-height: 15px;
}

.garage-home__welcome {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--app-text);
}

.garage-home__welcome small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-subtle);
  margin-bottom: 4px;
}

.garage-home__card {
  background: var(--app-surface);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(13, 46, 92, 0.1);
  box-shadow: var(--shadow-card);
}

.garage-home__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.garage-home__divider {
  height: 1px;
  background: rgba(13, 46, 92, 0.1);
  margin: 8px 0;
}

.garage-home__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(2, 119, 189, 0.12);
  border: 1px solid rgba(2, 119, 189, 0.22);
  color: var(--app-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.garage-home__icon svg {
  display: block;
  width: 15px;
  height: 15px;
  max-width: 15px;
  max-height: 15px;
}

.garage-home__icon--charge {
  background: rgba(46, 125, 50, 0.12);
  border-color: rgba(46, 125, 50, 0.25);
  color: var(--app-charge);
}

.garage-home__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--app-text);
}

.garage-home__sub {
  font-size: 0.72rem;
  color: var(--app-subtle);
  margin-top: 2px;
}

.garage-home__recall {
  background: rgba(232, 184, 75, 0.16);
  border: 1px solid rgba(200, 150, 48, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.garage-home__recall-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8b84b;
  flex-shrink: 0;
  margin-top: 4px;
}

.garage-home__recall-text {
  font-size: 0.78rem;
  color: var(--app-text);
  line-height: 1.45;
}

.garage-home__recall-text strong {
  display: block;
  color: #9a7318;
  font-weight: 600;
  margin-bottom: 2px;
}

html[dir='rtl'] .garage-home__logo img {
  object-position: right center;
}

html[dir='rtl'] .garage-home__row {
  text-align: right;
}
