/* Page shell. The planner's own styles live in its shadow DOM.
   Type uses the system UI font. The garage-plan PDF uses the built-in Helvetica and Helvetica-Bold fonts, so this folder has no font files. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; max-width: 100%; background: #101214; color: #fff; box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}
main { width: 100%; max-width: min(1120px, 100%); margin: 0 auto; padding: 28px 16px 40px; box-sizing: border-box; overflow-x: hidden; }
.brand-lockup {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 8px 14px 7px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.34);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  pointer-events: none;
}
.brand {
  display: block;
  width: 202px;
  height: auto;
  max-width: min(202px, calc(100vw - 48px));
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-word {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: center;
}
.preview-badge {
  margin-top: 4px;
  padding: 1px 7px 2px;
  border-radius: 999px;
  background: #2ec4f3;
  color: #101214;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
button {
  appearance: none;
  background: transparent;
  color: #d6d6d6;
  border: 1.5px solid #2f2f2f;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
button:hover { border-color: #555; color: #fff; }
button.on { background: #2ec4f3; border-color: #2ec4f3; color: #000; }
button:focus-visible { outline: 2px solid #2ec4f3; outline-offset: 2px; }
a { color: #2ec4f3; }
html.cf-desk-fs .brand-lockup { visibility: hidden; }
a:hover { color: #1aa9d6; }
chargeflex-garage-layout { display: block; }
@media (min-width: 521px) {
  html, body { height: 100%; }
  body { overflow: hidden; }
  main {
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 8px 16px 10px;
    overflow: hidden;
  }
  .brand-lockup {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    flex: 0 0 auto;
    align-self: center;
    margin: 0 auto 8px;
    z-index: 50;
  }
  chargeflex-garage-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: visible;
  }
}
@media (max-width: 520px) {
  html, body { height: 100%; }
  body { overflow: hidden; }
  main {
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
  }
  .brand-lockup {
    top: 8px;
    padding: 6px 10px 6px;
    border-radius: 14px;
  }
  .brand {
    width: 118px;
    max-width: min(118px, 38vw);
  }
  .brand-word { font-size: 13px; color: #fff; white-space: nowrap; }
  chargeflex-garage-layout { display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; min-width: 0; align-self: stretch; min-height: 0; height: auto; overflow: hidden; }
  button { font-weight: 600; }
}
