@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../assets/fonts/dm-sans-variable.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/noto-sans-kr-variable.ttf') format('truetype');
}
:root {
  --ink: #231d3d;
  --muted: #878394;
  --brand: #1b1059;
  --mint: #c3efdf;
  --bg: #f6f6f9;
  --line: #eeedf3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  transition: 0.18s;
}
button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8a7ed3;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: white;
  border-right: 1px solid var(--line);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.logo {
  width: 164px;
  height: 83px;
  object-fit: contain;
}
.workspace {
  font-size: 10px;
  letter-spacing: 2px;
  color: #aaa5b5;
  margin: 37px 14px 14px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 15px 17px;
  border-radius: 12px;
  color: #9691a2;
  font-weight: 500;
}
.nav button.active {
  background: var(--brand);
  color: white;
  box-shadow: 0 6px 12px #1b105914;
}
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.sidebar-note {
  margin-top: auto;
  padding: 18px 15px;
  background: #f6f5fa;
  border-radius: 14px;
  color: #7a738e;
  line-height: 1.8;
  font-size: 12px;
}
.sidebar-note strong {
  display: block;
  color: var(--brand);
  margin-bottom: 4px;
}
.version {
  font-size: 10px;
  letter-spacing: 1px;
  color: #aaa;
  margin-top: 20px;
  text-align: center;
}
main {
  margin-left: 238px;
  padding: 0 46px 40px;
  max-width: 1660px;
}
header {
  height: 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9e8ee;
  margin-bottom: 31px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  color: var(--ink);
  margin-left: 13px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: #ece7fa;
  color: var(--brand);
  font-weight: 700;
  border-radius: 13px;
}
.avatar > svg:not(.emblem-art) {
  width: 25px;
}
.badge {
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 10px;
  background: #efedf8;
  color: var(--brand);
}
.small {
  font-size: 11px;
  color: var(--muted);
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
h1 {
  font-size: 28px;
  letter-spacing: -1.1px;
  margin: 0 0 9px;
  font-weight: 700;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.5px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0;
}
.sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.date {
  padding: 11px 14px;
  background: white;
  border: 1px solid #e9e7ef;
  border-radius: 9px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 23px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
}
.hero {
  background: var(--brand);
  color: white;
  padding: 29px 30px;
  position: relative;
  overflow: hidden;
  border: 0;
  min-height: 254px;
}
.hero:after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: -83px;
  top: -95px;
  border: 45px solid #ffffff06;
  border-radius: 50%;
  pointer-events: none;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  color: #b5abd7;
  margin-bottom: 18px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.connection {
  font-size: 10px;
  color: var(--mint);
  background: #ffffff12;
  border: 1px solid #ffffff18;
  border-radius: 20px;
  padding: 7px 10px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #69c9a7;
  border-radius: 50%;
  margin-right: 6px;
}
.hero h2 {
  font-size: 23px;
  font-weight: 500;
}
.hero .sub {
  color: #a9a1c5;
  margin-top: 8px;
}
.time-row {
  display: flex;
  gap: 32px;
  margin-top: 27px;
  align-items: center;
}
.clock {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1;
}
.clock small {
  font-size: 16px;
  color: #a9a1c5;
  margin-left: 5px;
}
.clock-label {
  font-size: 10px;
  color: #aaa0ca;
  margin-top: 9px;
}
.hero-btn {
  margin-left: auto;
  border-radius: 10px;
  background: var(--mint);
  color: #204b42;
  padding: 15px 22px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-btn.secondary {
  background: #ffffff18;
  color: white;
}
.pass-card {
  background: #eeecf7;
  border-color: #e7e3f3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.pass-count {
  font-size: 59px;
  letter-spacing: -3px;
  color: var(--brand);
  font-weight: 500;
  line-height: 1.2;
}
.pass-count small {
  font-size: 15px;
  color: #9690a9;
  letter-spacing: 0;
  margin-left: 8px;
}
.ticket {
  position: absolute;
  right: 25px;
  top: 75px;
  transform: rotate(-20deg);
  color: #a59bcf;
  opacity: 0.6;
}
.ticket svg {
  width: 65px;
  height: 65px;
}
.pass-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pips {
  display: flex;
  gap: 6px;
}
.pips i {
  height: 5px;
  width: 24px;
  background: #d7d1e7;
  border-radius: 3px;
}
.pips i.fill {
  background: #7f71af;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 21px 0 28px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 21px 24px;
}
.stat-icon {
  padding: 12px;
  border-radius: 12px;
  background: #f2f0f9;
  color: #7a6ca7;
}
.stat:nth-child(2) .stat-icon {
  background: #edf7f2;
  color: #57a68d;
}
.stat:nth-child(3) .stat-icon {
  background: #fff3e9;
  color: #bf966d;
}
.stat strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.6px;
  margin-top: 5px;
}
.stat strong small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}
.section-head .sub {
  margin-top: 5px;
}
.text-btn {
  color: #8a819d;
  font-size: 11px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.member {
  background: #fafafd;
  border: 1px solid #f0eff5;
  border-radius: 12px;
  text-align: center;
  padding: 17px 5px 13px;
}
.pixel {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #eee9fa;
  display: grid;
  place-items: center;
  margin: auto auto 12px;
  font-size: 24px;
}
.member:nth-child(2n) .pixel {
  background: #e9f2ec;
}
.member:nth-child(3n) .pixel {
  background: #fff1e4;
}
.member-name {
  font-size: 12px;
  font-weight: 600;
}
.member-gen {
  font-size: 10px;
  color: #aaa4b3;
  margin: 4px 0 12px;
}
.status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 10px;
  background: #eff0f4;
  color: #97909f;
}
.status.green {
  color: #379574;
  background: #e7f5ef;
}
.status.purple {
  background: #eeebf8;
  color: #8a76b3;
}
.status.orange {
  background: #fff1e2;
  color: #bd8d56;
}
.team-key {
  font-size: 10px;
  color: #aaa4b4;
  margin-top: 17px;
  display: flex;
  gap: 15px;
}
.schedule-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.schedule-item:last-child {
  border: 0;
  padding-bottom: 0;
}
.day-tile {
  background: #f6f5fa;
  border-radius: 9px;
  width: 44px;
  min-width: 44px;
  text-align: center;
  padding: 7px;
  color: #8f87a0;
  font-size: 9px;
}
.day-tile strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-top: 2px;
}
.schedule-item h3 {
  font-size: 12px;
  margin-bottom: 5px;
  font-weight: 500;
}
.schedule-item .sub {
  font-size: 10px;
}
.schedule-item .status {
  margin-left: auto;
  white-space: nowrap;
}
.bottom-card {
  margin-top: 23px;
}
.activity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.activity:last-child {
  border: 0;
}
.activity-time {
  margin-left: auto;
  color: #a39cab;
  font-size: 11px;
}
.activity-icon {
  width: 28px;
  height: 28px;
  background: #f3f1fa;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #8276a4;
}
.activity-icon svg {
  width: 14px;
  height: 14px;
}
.foot {
  display: flex;
  justify-content: space-between;
  color: #b0aab9;
  font-size: 10px;
  margin-top: 27px;
}
.demo-bar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff9e8;
  border: 1px solid #f0e6ca;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 22px;
  font-size: 11px;
  color: #897b50;
}
.demo-bar strong {
  color: #73613a;
}
.demo-bar input,
.demo-bar select {
  border: 1px solid #e8dfcb;
  border-radius: 6px;
  background: #fffdf6;
  padding: 5px;
  color: #786b4e;
  font-size: 11px;
}
.demo-bar button {
  border: 1px solid #e8dfcb;
  background: white;
  border-radius: 6px;
  font-size: 10px;
  padding: 6px 9px;
}
.demo-bar .spacer {
  flex: 1;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 12px;
}
th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  padding: 11px 10px;
  text-align: center;
  vertical-align: middle;
  background: #faf9fc;
}
td {
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.primary {
  background: var(--brand);
  color: white;
  border-radius: 7px;
  padding: 7px 13px;
  min-height: 32px;
  font-size: 11px;
  line-height: 1.4;
}
.outline {
  border: 1px solid #e1dce9;
  border-radius: 7px;
  padding: 5px 10px;
  min-height: 30px;
  font-size: 11px;
  line-height: 1.4;
}
.green-btn {
  background: #e4f5ed;
  color: #3d876d;
  padding: 5px 10px;
  min-height: 30px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.4;
}
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.page-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}
.page-tabs button {
  padding: 9px 17px;
  border-radius: 20px;
  background: white;
  color: #938b9f;
  font-size: 12px;
}
.page-tabs button.active {
  background: var(--brand);
  color: white;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.cal-head {
  background: #faf9fd;
  text-align: center;
  padding: 13px;
  color: #8f889c;
  font-size: 11px;
}
.cal-day {
  background: white;
  min-height: 105px;
  padding: 10px;
  font-size: 12px;
}
.cal-day.today {
  background: #f2effb;
}
.cal-day .event {
  margin-top: 8px;
  background: #ece7f8;
  color: #7a689e;
  padding: 5px;
  border-radius: 4px;
  font-size: 9px;
}
.cal-day.muted {
  color: #c8c4ce;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
dialog {
  border: 0;
  border-radius: 20px;
  padding: 30px;
  width: min(460px, 92vw);
  color: var(--ink);
  box-shadow: 0 30px 100px #1b105933;
}
dialog::backdrop {
  background: #17112f66;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 21px;
  margin-bottom: 10px;
}
dialog label {
  display: block;
  font-size: 12px;
  margin: 18px 0 7px;
}
dialog input,
dialog select,
dialog textarea {
  width: 100%;
  border: 1px solid #e3dfee;
  border-radius: 8px;
  padding: 11px;
  background: #fcfbfe;
}
dialog textarea {
  min-height: 80px;
  resize: vertical;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.notice {
  background: #f4f1fa;
  padding: 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 18px;
  color: #81758f;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 14px 22px;
  background: #241b42;
  color: white;
  border-radius: 12px;
  box-shadow: 0 8px 40px #1b105933;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  font-size: 13px;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.settings-row {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.settings-row input {
  padding: 8px;
  border: 1px solid #e4dfee;
  border-radius: 7px;
}
.mobile-brand {
  display: none;
}
.bell {
  position: relative;
}
@media (min-width: 1450px) {
  main {
    padding-left: 60px;
    padding-right: 60px;
  }
  .hero {
    min-height: 270px;
  }
  .team-grid {
    gap: 16px;
  }
  .member {
    padding-top: 22px;
    padding-bottom: 20px;
  }
}
@media (max-width: 1100px) {
  aside {
    width: 190px;
    padding: 28px 17px;
  }
  .logo {
    width: 145px;
  }
  main {
    margin-left: 190px;
    padding: 0 25px 30px;
  }
  .grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .time-row {
    gap: 15px;
  }
  .clock {
    font-size: 34px;
  }
  .hero {
    padding: 24px;
  }
  .hero-btn {
    padding: 13px;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 18px 14px;
    gap: 10px;
  }
  .stat-icon {
    padding: 9px;
  }
}
@media (max-width: 760px) {
  aside {
    width: 100%;
    height: 70px;
    inset: auto 0 0;
    flex-direction: row;
    padding: 6px 8px;
    border-top: 1px solid var(--line);
  }
  aside .logo,
  .workspace,
  .sidebar-note,
  .version {
    display: none;
  }
  .nav {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    gap: 0;
  }
  .nav button {
    flex-direction: column;
    gap: 5px;
    padding: 9px 11px;
    font-size: 9px;
    border-radius: 9px;
  }
  .nav button.active {
    background: #eeebf8;
    color: var(--brand);
    box-shadow: none;
  }
  .nav .icon {
    width: 19px;
    height: 19px;
  }
  main {
    margin-left: 0;
    padding: 0 18px 100px;
  }
  header {
    height: 77px;
    margin-bottom: 24px;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: block;
    width: 105px;
  }
  .header-right {
    gap: 9px;
  }
  h1 {
    font-size: 24px;
  }
  .title-row {
    align-items: flex-start;
  }
  .date {
    font-size: 10px;
    padding: 8px;
  }
  .date .icon {
    width: 14px;
  }
  .grid,
  .split {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .hero {
    min-height: 235px;
  }
  .pass-card {
    min-height: 180px;
  }
  .pass-count {
    font-size: 47px;
  }
  .ticket {
    top: 40px;
  }
  .stats {
    gap: 8px;
    margin: 17px 0;
  }
  .stat {
    padding: 14px 10px;
    display: block;
  }
  .stat-icon {
    display: none;
  }
  .stat strong {
    font-size: 20px;
  }
  .stat .small {
    font-size: 9px;
  }
  .card {
    padding: 20px;
  }
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .member {
    padding: 13px 3px;
  }
  .pixel {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .member-name {
    font-size: 10px;
  }
  .member-gen {
    font-size: 9px;
  }
  .status {
    font-size: 9px;
    padding: 4px 6px;
  }
  .team-key {
    gap: 9px;
  }
  .demo-bar {
    gap: 7px;
    font-size: 10px;
  }
  .demo-bar .spacer {
    display: none;
  }
  .cal-day {
    min-height: 75px;
    padding: 6px;
    font-size: 10px;
  }
  .cal-day .event {
    font-size: 8px;
    padding: 3px;
    word-break: break-all;
  }
  .table-wrap {
    overflow: auto;
  }
  td {
    white-space: nowrap;
  }
  .foot {
    line-height: 1.8;
    gap: 15px;
  }
  .time-row {
    gap: 22px;
  }
  .clock {
    font-size: 38px;
  }
  .hero-btn {
    padding: 14px 17px;
  }
  .hero h2 {
    font-size: 21px;
  }
}

/* Unified neutral profile until custom artwork is designed. */
.pixel,
.member:nth-child(2n) .pixel,
.member:nth-child(3n) .pixel,
.avatar {
  background: #efedf5;
  color: #8e85ab;
}
.pixel > svg:not(.emblem-art) {
  width: 34px;
  height: 34px;
}
.avatar > svg:not(.emblem-art) {
  width: 27px;
  height: 27px;
}

.checkout-actions {
  flex-wrap: wrap;
}
.checkout-actions button {
  flex-shrink: 0;
}

.pass-exchange {
  margin-top: 12px;
  border-color: #cec5e3;
  color: #67558e;
  font-size: 10px;
}
.pass-card {
  min-height: 290px;
}
.fleet-summary {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 23px;
  color: #8c849c;
  font-size: 12px;
}
.fleet-summary strong {
  color: #32264e;
  margin-left: 5px;
}
.fleet-summary .small {
  margin-left: auto;
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.car-card {
  padding: 23px;
  min-width: 0;
}
.car-card .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-bottom: 9px;
}
.car-card .section-head {
  margin-bottom: 10px;
}
.car-art {
  position: relative;
  background: #f7f6fb;
  border-radius: 13px;
  padding: 25px 4px 8px;
  margin: 18px 0;
}
.car-art > svg {
  width: 100%;
  height: 113px;
}
.sensor-pill {
  position: absolute;
  right: 10px;
  top: 9px;
  font-size: 9px;
  color: #9a92aa;
  background: #efedf5;
  padding: 4px 7px;
  border-radius: 20px;
}
.sensor-pill.attached {
  color: #4b927b;
  background: #e1f4eb;
}
.parking-box {
  border-bottom: 1px solid #eeedf3;
  padding: 3px 0 18px;
  min-height: 90px;
}
.parking-box strong {
  display: block;
  font-size: 14px;
  margin: 9px 0 8px;
  line-height: 1.6;
}
.parking-box .small {
  font-size: 10px;
}
.photo-link {
  padding: 6px 0;
  font-size: 10px;
  color: #8371ae;
}
.car-meta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin: 17px 0;
}
.car-meta span {
  display: block;
  font-size: 10px;
  color: #a099ad;
  margin-bottom: 7px;
}
.car-meta strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
}
.car-meta small {
  display: block;
  font-size: 9px;
  color: #aaa2b6;
  margin-top: 6px;
}
.expired {
  color: #ba766f;
}
.maintenance {
  font-size: 10px;
  color: #9c94aa;
  padding: 10px;
  background: #f8f7fb;
  border-radius: 7px;
  min-height: 36px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.maintenance.needed {
  background: #fff4e9;
  color: #a67f57;
}
.car-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.car-actions button {
  font-size: 10px;
  padding: 9px 11px;
}
.location-tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.location-tags span {
  background: #f3f1f9;
  color: #8a7b9d;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 11px;
}
.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
dialog {
  max-height: 90vh;
  overflow-y: auto;
}
.parking-photo {
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border-radius: 10px;
  margin: 16px 0;
}
.parking-thumb {
  max-width: 100%;
  max-height: 150px;
  margin-top: 12px;
  border-radius: 8px;
}
input[type='file'] {
  font-size: 11px;
}
.nav button {
  padding-top: 13px;
  padding-bottom: 13px;
}
@media (max-width: 1100px) {
  .fleet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .fleet-grid {
    grid-template-columns: 1fr;
  }
  .fleet-summary {
    gap: 16px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .fleet-summary .small {
    margin-left: 0;
  }
  .car-art > svg {
    height: 130px;
  }
  .nav button {
    padding: 8px 6px;
    font-size: 8px;
  }
  .nav {
    gap: 2px;
  }
  .fleet-grid .car-card {
    padding: 22px;
  }
}

/* Approved model-specific generated artwork, kept intact. */
.car-art .vehicle-illustration {
  display: block;
  width: 100%;
  height: 158px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}
.car-art:has(.vehicle-illustration) {
  padding: 18px 3px 4px;
  background: #f7f6fb;
}
@media (max-width: 760px) {
  .car-art .vehicle-illustration {
    height: 190px;
  }
}
.return-reminders {
  border: 1px solid #edd8bb;
  background: #fff7eb;
  border-radius: 14px;
  margin: 0 0 24px;
  padding: 17px 20px;
}
.return-reminders > div {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.return-reminders strong {
  font-size: 14px;
  color: #8d623b;
}
.return-reminders p {
  font-size: 11px;
  color: #ad947b;
  margin: 7px 0;
}
.reminder-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.fleet-calendar-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #8b809c;
  margin: 0 0 17px;
}
.vehicle-circle {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  min-width: 23px;
  border-radius: 50%;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid #d8d2e4;
  color: #8f839f;
  font-weight: 700;
  font-size: 11px;
  background: #faf9fc;
}
.fleet-day-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 9px 0;
}
.fleet-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  min-width: 23px;
}
.fleet-marker small {
  font-size: 8px;
  color: #aaa1b6;
}
.fleet-marker.in-use .vehicle-circle {
  background: #1b1059;
  color: white;
  border-color: #1b1059;
}
.fleet-marker.in-use small {
  color: #534180;
}
.fleet-marker.reserved .vehicle-circle {
  background: #e4f4ec;
  border-color: #badbcb;
  color: #58967e;
}
.fleet-marker.reserved small {
  color: #65a38a;
}
.fleet-marker.returned .vehicle-circle {
  background: #f0ecf7;
  border-color: #d5cbe7;
  color: #9c8cb6;
}
.vehicle-day-detail {
  padding: 15px 0;
  border-bottom: 1px solid #eeebf2;
}
.vehicle-day-detail strong {
  font-size: 12px;
}
.vehicle-day-detail .sub {
  margin-top: 9px;
}
.rental-period {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.7;
}
.calendar .cal-day {
  min-height: 135px;
}
@media (max-width: 760px) {
  .fleet-day-markers {
    gap: 3px;
  }
  .vehicle-circle {
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 9px;
  }
  .fleet-marker {
    min-width: 18px;
  }
  .fleet-marker small {
    font-size: 7px;
  }
  .return-reminders > div {
    flex-direction: column;
    align-items: flex-start;
  }
  .return-reminders {
    padding: 15px;
  }
  .reminder-actions {
    flex-wrap: wrap;
  }
  .form-two {
    grid-template-columns: 1fr;
  }
  .calendar .cal-day {
    padding: 5px;
    min-height: 120px;
  }
}
.fleet-day-markers {
  gap: 3px;
  margin: 6px 0;
}
.fleet-marker {
  min-width: 20px;
  gap: 2px;
}
.fleet-marker .vehicle-circle,
.fleet-calendar-legend .vehicle-circle {
  width: 16px;
  height: 16px;
  min-width: 16px;
  font-size: 8px;
}
.fleet-marker small {
  font-size: 7px;
}
.fleet-calendar-legend {
  gap: 5px;
}
@media (max-width: 760px) {
  .fleet-day-markers {
    gap: 2px;
  }
  .fleet-marker {
    min-width: 17px;
  }
  .fleet-marker .vehicle-circle {
    width: 14px;
    height: 14px;
    min-width: 14px;
    font-size: 7px;
  }
  .fleet-marker small {
    font-size: 6px;
  }
}

.calendar-month-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.calendar-month-actions button {
  padding: 7px 10px;
}
.fleet-calendar-panel .cal-day {
  min-height: 98px;
}
.fleet-calendar-panel .section-head {
  align-items: center;
}
@media (max-width: 760px) {
  .fleet-calendar-panel .cal-day {
    min-height: 90px;
  }
  .fleet-calendar-panel h2 {
    font-size: 15px;
  }
  .calendar-month-actions button {
    padding: 6px 8px;
    font-size: 10px;
  }
}

.car-image-preview {
  margin-top: 12px;
  background: #f6f4fa;
  border: 1px solid #eeebf4;
  border-radius: 12px;
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 8px;
}
.car-image-preview .vehicle-illustration {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
}
.car-image-preview svg {
  width: 85%;
  height: 140px;
}
.image-error {
  color: #b7746c;
  font-size: 11px;
  margin-top: 6px;
}

.sensor-image-warning {
  display: block;
  color: #a18c71;
  font-size: 9px;
  line-height: 1.6;
  padding: 3px 8px;
}
.image-preview-tabs {
  font-size: 10px;
  color: #9689a7;
  margin-top: 10px;
}
.car-image-preview .vehicle-illustration {
  max-height: 190px;
}

/* In-app guide */
.guide-help {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e6e2ee;
  background: #fff;
  color: #59467f;
  border-radius: 9px;
  padding: 7px 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
}
.guide-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  background: linear-gradient(120deg, #211452, #514079);
  color: #fff;
  padding: 36px 40px;
  border-radius: 20px;
  margin-bottom: 24px;
  overflow: hidden;
}
.guide-kicker {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #d0c5eb;
}
.guide-hero h2 {
  font-size: 30px;
  line-height: 1.45;
  margin: 13px 0;
}
.guide-hero p {
  color: #ded6ed;
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}
.guide-hero-note {
  display: grid;
  gap: 12px;
  background: #ffffff12;
  border: 1px solid #ffffff26;
  padding: 23px;
  border-radius: 14px;
  min-width: 220px;
  font-size: 13px;
}
.guide-hero-note strong {
  font-size: 11px;
  color: #d0c5eb;
  letter-spacing: 0.08em;
}
.guide-search {
  display: grid;
  gap: 9px;
  margin: 24px 0 18px;
}
.guide-search label {
  font-size: 13px;
  font-weight: 700;
}
.guide-search input {
  width: 100%;
  border: 1px solid #ded8e9;
  border-radius: 12px;
  padding: 15px 17px;
  font: inherit;
  background: white;
}
.guide-search input:focus {
  outline: 2px solid #a99ac9;
  outline-offset: 2px;
}
.guide-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.guide-jumps a {
  color: #59467f;
  background: #f0edf6;
  padding: 10px 13px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 12px;
}
.guide-jumps a:hover {
  background: #e4ddf0;
}
.guide-content {
  display: grid;
  gap: 20px;
}
.guide-section {
  scroll-margin-top: 22px;
  padding: 28px !important;
}
.guide-section-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}
.guide-section-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #eee8f6;
  color: #745995;
  font-weight: 700;
  font-size: 16px;
}
.guide-section-head h2 {
  margin: 0 0 5px;
}
.guide-section p,
.guide-section li {
  font-size: 13px;
  line-height: 1.95;
  color: #605b6c;
}
.guide-section h3 {
  font-size: 15px;
  margin-top: 24px;
}
.guide-section .table-wrap {
  margin: 18px 0;
}
.guide-section th,
.guide-section td {
  white-space: normal;
  line-height: 1.8;
  min-width: 120px;
  font-size: 12px;
}
.guide-section th {
  background: #f6f3fa;
}
.guide-section td:first-child {
  font-weight: 600;
  color: #4c3a6c;
}
.guide-steps {
  padding-left: 23px;
}
.guide-steps li {
  padding-left: 8px;
  margin: 12px 0;
}
.guide-steps li::marker {
  font-weight: 700;
  color: #8b71aa;
}
.guide-callout {
  background: #f3eff9;
  border-radius: 12px;
  padding: 19px 22px;
  margin: 18px 0;
  color: #4a316f;
}
.guide-callout p {
  margin: 8px 0 0;
}
.guide-tip {
  background: #eef5f1;
  border-radius: 11px;
  padding: 16px 20px;
  color: #456958;
  font-size: 13px;
  line-height: 1.9;
  margin: 18px 0;
}
.guide-preview {
  border-left: 3px solid #c4b8d8;
  padding-left: 14px;
  font-size: 12px !important;
  color: #857b92 !important;
}
.guide-bottom {
  text-align: center;
  color: #8c8398;
  font-size: 12px;
  line-height: 1.8;
  margin: 26px 0;
}
.guide-section[hidden],
#guide-empty[hidden],
#guide-permissions[hidden] {
  display: none;
}
.vehicle-image-settings {
  margin-top: 24px;
  border-top: 1px solid #e9e4ee;
  padding-top: 18px;
}
.vehicle-image-settings summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: #655474;
}
.vehicle-image-settings summary span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #93889f;
  margin: 7px 0 0 16px;
}
.vehicle-image-settings-body {
  padding-top: 8px;
}
@media (max-width: 700px) {
  .guide-hero {
    padding: 25px;
    display: grid;
    gap: 22px;
  }
  .guide-hero h2 {
    font-size: 25px;
  }
  .guide-hero-note {
    min-width: 0;
    padding: 18px;
  }
  .guide-section {
    padding: 20px !important;
  }
  .guide-help span {
    display: none;
  }
  .guide-help {
    padding: 7px 10px;
  }
  .guide-jumps {
    gap: 6px;
  }
  .guide-jumps a {
    padding: 9px;
    font-size: 11px;
  }
}

.pass-return-loss {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #fff0e9;
  color: #a15c3c;
}
.pass-return-actions {
  flex-wrap: wrap;
}
.pass-return-actions .primary {
  flex-grow: 1;
}

.calendar-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
}
.calendar-hint {
  line-height: 1.8;
  margin: 0 0 16px;
}
.calendar-hint span {
  display: inline-block;
  margin-left: 10px;
  color: #a69bae;
}
.calendar-event {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.calendar-event:hover {
  background: #ddd3f0 !important;
}
.calendar-event:focus-visible {
  outline: 2px solid #745995;
  outline-offset: 2px;
}
.calendar-detail-date {
  display: inline-block;
  padding: 10px 14px;
  background: #f0ebf8;
  color: #60457d;
  border-radius: 8px;
  font-size: 15px;
  margin: 10px 0 15px;
}
.cal-day {
  min-width: 0;
}

.pass-progress {
  width: 105px;
  height: 6px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  appearance: none;
  background: #d7d1e7;
}
.pass-progress::-webkit-progress-bar {
  background: #d7d1e7;
  border-radius: 10px;
}
.pass-progress::-webkit-progress-value {
  background: #7f71af;
  border-radius: 10px;
}
.pass-progress::-moz-progress-bar {
  background: #7f71af;
  border-radius: 10px;
}
.settings-row input[type='number'] {
  width: 120px;
}

.profile-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.emblem-avatar {
  background: #080e12 !important;
  overflow: hidden;
  border: 1px solid #323f46;
}
.emblem-art {
  display: block;
  width: 100%;
  height: 100%;
  background: #080e12;
  image-rendering: pixelated;
}
.emblem-art.off-duty {
  filter: grayscale(1) brightness(0.62);
}
.emblem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding: 4px;
  margin: 18px 0;
}
.emblem-option {
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #0b1217;
  padding: 8px 5px;
  color: #fff;
  cursor: pointer;
}
.emblem-option .emblem-art {
  width: 82px;
  height: 65px;
}
.emblem-option strong {
  font-size: 9px;
  overflow-wrap: anywhere;
}
.emblem-option span {
  font-size: 9px;
  color: #a3bdad;
}
.emblem-option:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.emblem-option[aria-pressed='true'] {
  border-color: #aa8ede;
  box-shadow: 0 0 0 2px #d8c9f3;
}
.emblem-payment {
  border: 1px solid #e8e2ef;
  border-radius: 10px;
  padding: 12px;
  margin: 15px 0;
}
.emblem-payment legend {
  font-size: 12px;
  color: #8c7c9f;
}
.emblem-payment label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  font-size: 12px;
}
.emblem-payment input {
  width: auto;
}
.join-emblem-preview {
  width: 100px;
  height: 80px;
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
}
.join-emblem-preview:empty {
  display: none;
}

.cohort-note {
  margin-bottom: 20px;
}

.vehicle-dialog-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -30px -30px 20px;
  padding: 20px 30px;
  background: #fff;
  border-bottom: 1px solid #eee9f3;
  box-shadow: 0 5px 12px #22113c05;
}
.vehicle-dialog-header h2 {
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
.vehicle-dialog-header #vehicle-save {
  flex-shrink: 0;
  white-space: nowrap;
}
.vehicle-dialog-header #vehicle-save:focus-visible {
  outline: 2px solid #aa8ede;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .vehicle-dialog-header {
    padding: 16px 22px;
    gap: 10px;
  }
  .vehicle-dialog-header h2 {
    font-size: 16px;
  }
  .vehicle-dialog-header #vehicle-save {
    padding: 11px 13px;
  }
}

dialog[open]:has(> .vehicle-dialog-header) {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.vehicle-dialog-header {
  position: relative;
  top: auto;
  margin: 0;
  flex: 0 0 auto;
}
#vehicle-form {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 30px 30px;
  flex: 1 1 auto;
  scroll-padding-top: 12px;
}
@media (max-width: 480px) {
  #vehicle-form {
    padding: 0 22px 24px;
  }
}

.deferral-dashboard {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 26px;
  border: 1px solid #e5dbef;
}
.deferral-dashboard > div:first-child {
  flex: 1;
  min-width: 220px;
}
.deferral-dashboard h2 {
  margin: 9px 0;
}
.deferral-count {
  display: grid;
  gap: 7px;
  min-width: 130px;
}
.deferral-count label {
  font-size: 11px;
  color: #91829e;
}
.deferral-count input,
#member-deferral-month {
  border: 1px solid #e3ddeb;
  padding: 7px;
  border-radius: 7px;
  color: #655279;
  background: white;
}
.deferral-count strong {
  font-size: 27px;
  color: #5d447a;
}
.deferral-count strong small {
  font-size: 12px;
  margin-left: 5px;
  color: #9a8ba7;
}
.deferral-notification {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid #e1d9ec;
  margin-top: 9px;
}
@media (max-width: 600px) {
  .deferral-dashboard > div:first-child {
    flex-basis: 100%;
  }
  .deferral-dashboard .primary {
    margin-left: auto;
  }
}

.dashboard-team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.dashboard-team-grid .dashboard-member {
  padding: 13px 4px 9px;
  min-width: 0;
}
.dashboard-team-grid .pixel {
  width: 42px;
  height: 42px;
  margin-bottom: 9px;
}
.dashboard-team-grid .member-name {
  font-size: 11px;
}
.dashboard-team-grid .member-gen {
  font-size: 9px;
  margin: 5px 0 0;
}
.dashboard-me {
  color: #aaa2bb;
  font-size: 9px;
}
.dashboard-member.is-off .pixel:not(.emblem-avatar) {
  filter: grayscale(1) brightness(0.62);
}
.dashboard-team-total {
  font-size: 10px;
  color: #aaa2b5;
  margin-top: 14px;
}
@media (max-width: 760px) {
  .dashboard-team-grid {
    gap: 6px;
  }
  .dashboard-team-grid .member-name {
    font-size: 10px;
  }
  .dashboard-team-grid .pixel {
    width: 38px;
    height: 38px;
  }
}

.emblem-avatar > .emblem-art {
  width: 100%;
  height: 100%;
  display: block;
  min-width: 0;
  min-height: 0;
}

dialog:has(.fee-ledger) {
  width: min(1020px, 94vw);
}
.fee-ledger .eyebrow {
  color: #9d8cb4;
  margin-bottom: 8px;
}
.fee-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.fee-filters label {
  margin: 0;
  font-size: 11px;
  min-width: 140px;
  flex: 1;
}
.fee-filters input,
.fee-filters select {
  margin-top: 7px;
}
.fee-filters button {
  min-height: 39px;
}
.fee-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 28px;
}
.fee-totals > div {
  background: #f6f3fa;
  border-radius: 11px;
  padding: 18px;
}
.fee-totals span {
  display: block;
  font-size: 11px;
  color: #9b8cab;
}
.fee-totals strong {
  display: block;
  font-size: 23px;
  margin-top: 9px;
}
.fee-due {
  color: #ae714d;
  font-weight: 700;
}
.fee-detail-heading {
  margin-top: 27px;
}
.fee-ledger table {
  margin-top: 12px;
}
.fee-ledger td {
  white-space: nowrap;
}
.fee-ledger .table-wrap {
  overflow: auto;
}
@media (max-width: 600px) {
  .fee-totals {
    gap: 6px;
  }
  .fee-totals > div {
    padding: 13px 9px;
  }
  .fee-totals strong {
    font-size: 16px;
  }
  .fee-totals span {
    font-size: 10px;
  }
  .fee-filters label {
    min-width: 120px;
  }
}

.pixel:not(.emblem-avatar),
.avatar:not(.emblem-avatar) {
  border: 0;
}
.pixel.emblem-avatar,
.avatar.emblem-avatar {
  border: 2px solid #352365;
}
.guide-suggestion-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: white;
  border: 1px solid #e2d9ef;
  border-radius: 14px;
  padding: 21px 24px;
  margin: 22px 0;
}
.guide-suggestion-bar > div {
  flex: 1;
  min-width: 220px;
}
.guide-suggestion-bar strong {
  color: #4e366e;
  font-size: 14px;
}
.guide-suggestion-bar p {
  color: #9a8aa9;
  font-size: 12px;
  margin: 8px 0 0;
  line-height: 1.8;
}
.suggestion-ack {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.8;
}
.suggestion-ack input {
  width: auto;
  margin-top: 5px;
  flex-shrink: 0;
}
#suggestion-text {
  min-height: 150px;
}
dialog:has(.suggestion-inbox) {
  width: min(740px, 94vw);
}
.suggestion-item {
  border: 1px solid #e9e1f0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}
.suggestion-item h3 {
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.suggestion-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.9;
  color: #6e607c;
  margin: 15px 0;
}
.suggestion-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.suggestion-inbox .eyebrow {
  color: #9d8ab4;
  margin-bottom: 8px;
}

main > header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--bg);
}
.profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-radius: 12px;
  padding: 7px 9px;
  min-width: 0;
  max-width: 220px;
}
.profile-trigger:hover {
  background: #eeeaf5;
  transform: none;
}
.profile-trigger .avatar {
  flex-shrink: 0;
}
.profile-identity {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.profile-identity strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-identity .small {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-chevron {
  color: #a092af;
  font-size: 15px;
}
.my-profile-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 25px;
}
.my-profile-heading .pixel {
  margin: 0;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
}
.my-profile-heading .sub {
  margin: 7px 0 0;
}
.my-profile-options {
  display: grid;
  gap: 11px;
  margin: 20px 0;
}
.my-profile-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  text-align: left;
  padding: 20px 18px;
  border: 1px solid #e5ddee;
  border-radius: 12px;
  background: #faf8fc;
}
.my-profile-option strong {
  display: block;
  font-size: 14px;
  color: #4f3670;
}
.my-profile-option small {
  display: block;
  margin-top: 8px;
  color: #a08dae;
  font-size: 11px;
  line-height: 1.7;
}
.my-profile-option:hover {
  border-color: #ad98c7;
  background: #f2edf8;
  transform: none;
}
.guide-section {
  scroll-margin-top: 116px;
}
@media (max-width: 760px) {
  .profile-trigger {
    padding: 5px;
    gap: 7px;
    max-width: 160px;
  }
  .profile-identity {
    gap: 3px;
  }
  .profile-identity strong {
    font-size: 11px;
  }
  .profile-identity .small {
    font-size: 9px;
  }
  .profile-chevron {
    display: none;
  }
  .guide-section {
    scroll-margin-top: 90px;
  }
}

.deputy-list {
  display: grid;
  gap: 10px;
}
.deputy-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #eae3f1;
  border-radius: 10px;
  padding: 15px 17px;
  background: #fbf9fd;
}
.deputy-member strong {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}
.deputy-add {
  border-top: 1px solid #eee8f4;
  padding-top: 20px;
  margin-top: 20px;
}
.deputy-add > label {
  font-size: 12px;
  color: #8d7b9f;
}
.deputy-add > div {
  display: flex;
  gap: 10px;
  margin-top: 9px;
}
.deputy-add select {
  flex: 1;
  min-width: 0;
  border: 1px solid #e5ddee;
  background: white;
  border-radius: 8px;
  padding: 10px;
  color: #71617f;
}
.deputy-add .primary {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .deputy-add > div {
    flex-wrap: wrap;
  }
  .deputy-add select {
    flex-basis: 100%;
  }
}
.role-management .eyebrow,
.role-dialog .eyebrow {
  color: #9a86b0;
  margin-bottom: 9px;
}
.role-launchers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.role-launcher {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
  text-align: left;
  border: 1px solid #e6deef;
  border-radius: 14px;
  background: #fcfaff;
  min-width: 0;
}
.role-launcher:hover {
  background: #f4effa;
  border-color: #b7a4cf;
  transform: none;
}
.role-launcher-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #eee8f7;
  color: #645083;
  border-radius: 12px;
  flex-shrink: 0;
}
.role-launcher strong {
  display: block;
  font-size: 14px;
  color: #382153;
}
.role-launcher small {
  display: block;
  font-size: 11px;
  color: #9787a7;
  line-height: 1.7;
  margin-top: 7px;
}
.role-launcher-arrow {
  margin-left: auto;
  color: #9e8cb5;
  font-size: 19px;
}
.role-dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.role-dialog-heading h2 {
  margin: 0;
}
.role-dialog > .card {
  padding: 0;
  border: 0;
  box-shadow: none;
  margin: 0;
}
.role-dialog > .card > .section-head h2 {
  display: none;
}
.role-dialog > .card > .section-head {
  margin-bottom: 20px;
}
.successor-picker {
  padding: 0;
  border: 0;
  margin: 25px 0 0;
  min-width: 0;
}
.successor-picker legend {
  font-size: 12px;
  font-weight: 600;
  color: #7a658f;
  margin-bottom: 12px;
}
.successor-list {
  display: grid;
  gap: 9px;
  max-height: 320px;
  overflow-y: auto;
  padding: 3px;
  overscroll-behavior: contain;
}
.successor-option {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 13px 15px;
  border: 1px solid #e9e2f1;
  border-radius: 12px;
  background: #fcfafd;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.successor-option:hover {
  background: #f4eff9;
  border-color: #b8a3ce;
}
.successor-option:has(input:checked) {
  border-color: #70509c;
  background: #f1eaf8;
  box-shadow: 0 0 0 1px #70509c;
}
.successor-option:has(input:focus-visible) {
  outline: 2px solid #70509c;
  outline-offset: 2px;
}
.successor-option input {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px;
  margin: 0;
}
.successor-option .avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.successor-identity {
  flex: 1;
  min-width: 0;
}
.successor-identity strong {
  display: block;
  color: #3c2855;
  font-size: 13px;
}
.successor-identity small {
  display: block;
  color: #9c89ad;
  font-size: 11px;
  margin-top: 6px;
}
.successor-role {
  font-size: 10px;
  color: #8a749d;
  background: #eee7f5;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.successor-check {
  display: grid;
  place-items: center;
  border: 1px solid #d9cde5;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: transparent;
  font-size: 11px;
}
.successor-option:has(input:checked) .successor-check {
  background: #614080;
  border-color: #614080;
  color: white;
}
.role-dialog-footer {
  border-top: 1px solid #eee8f3;
  margin-top: 22px;
  padding-top: 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.role-dialog-footer p {
  margin: 0;
  line-height: 1.8;
}
.role-dialog-footer button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
dialog:has(.role-dialog) {
  width: min(580px, 94vw);
}
@media (max-width: 680px) {
  .role-launchers {
    grid-template-columns: 1fr;
  }
  .role-launcher {
    padding: 18px;
  }
  .successor-option {
    padding: 12px 10px;
    gap: 9px;
  }
  .successor-list {
    max-height: 38vh;
  }
}
dialog:has(.successor-picker) {
  overflow: hidden;
  box-sizing: border-box;
  max-height: 90dvh;
}
.role-dialog:has(.successor-picker) {
  display: flex;
  flex-direction: column;
  max-height: calc(90dvh - 60px);
  min-height: 0;
}
.role-dialog:has(.successor-picker) > .role-dialog-heading,
.role-dialog:has(.successor-picker) > .sub,
.role-dialog-footer {
  flex-shrink: 0;
}
.successor-picker {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.successor-list {
  min-height: 0;
  max-height: 320px;
  flex: 1;
}
.role-dialog-footer {
  margin-top: 18px;
  padding-top: 14px;
}
.holiday-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eee8f4;
  padding: 14px 0;
}
.holiday-row strong {
  font-size: 13px;
}
.holiday-row small {
  display: block;
  font-size: 11px;
  color: #a08eae;
  margin-top: 7px;
}
.holiday-public-list {
  margin: 25px 0 18px;
  border: 1px solid #e6deef;
  border-radius: 12px;
  padding: 15px;
}
.holiday-public-list summary {
  font-size: 13px;
  cursor: pointer;
  color: #79618d;
}
.calendar-holiday {
  display: block;
  font-size: 10px;
  color: #aa6c80;
  line-height: 1.5;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.attendance-alert-banner {
  margin: 18px 34px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e5dbee;
  border-radius: 12px;
  background: #fbf8ff;
  padding: 15px 20px;
  color: #6a4d82;
}
.attendance-alert-banner > div {
  flex: 1;
}
.attendance-alert-banner strong {
  font-size: 12px;
}
.attendance-alert-banner small {
  display: block;
  font-size: 10px;
  color: #a28caf;
  margin-top: 6px;
}
.holiday-manager h3 {
  margin-top: 24px;
}
dialog:has(.holiday-manager) {
  width: min(680px, 94vw);
}
@media (max-width: 600px) {
  .attendance-alert-banner {
    margin: 15px 18px 0;
    padding: 13px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .attendance-alert-banner button {
    margin-left: auto;
  }
  .holiday-row {
    flex-wrap: wrap;
  }
}
.payment-request-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px;
  margin: 20px 0;
  border: 1px solid #e2d7ee;
  background: #faf7ff;
  border-radius: 12px;
  flex-wrap: wrap;
}
.payment-request-entry strong {
  display: block;
  font-size: 13px;
  color: #5d407a;
}
.payment-request-entry small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  color: #9c87ad;
}
.payment-review-item {
  border: 1px solid #e8dfef;
  background: #fcfaff;
  border-radius: 14px;
  padding: 20px;
  margin-top: 14px;
}
.payment-review-item .section-head {
  margin-bottom: 12px;
}
.payment-review-item .section-head strong {
  font-size: 13px;
}
.payment-review-amount {
  font-size: 24px;
  font-weight: 700;
  color: #563575;
  margin: 12px 0;
}
.payment-review-amount small {
  font-size: 12px;
  margin-left: 5px;
}
.payment-rejection {
  padding: 10px 12px;
  margin: 10px 0;
  background: #fff4ec;
  border-radius: 8px;
  color: #a66e50;
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.payment-review .eyebrow {
  color: #9982af;
  margin-bottom: 8px;
}
dialog:has(.payment-review) {
  width: min(700px, 94vw);
}
.balance-notification {
  border: 1px solid #e6ddef;
  border-radius: 12px;
  background: #fcfaff;
  padding: 18px;
  margin: 14px 0;
}
.balance-notification .section-head {
  gap: 12px;
  flex-wrap: wrap;
}
.balance-notification strong {
  font-size: 13px;
}
.balance-change {
  font-size: 23px;
  font-weight: 700;
  color: #61417f;
  margin: 16px 0;
}
.balance-change span {
  color: #bcabc9;
  margin: 0 12px;
  font-size: 18px;
}
.balance-reason {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
  color: #7c658e;
  background: #f3edf8;
  padding: 12px;
  border-radius: 8px;
}
.balance-notification-dialog .eyebrow {
  color: #9b86ae;
  margin-bottom: 9px;
}
dialog:has(.balance-notification-dialog) {
  width: min(670px, 94vw);
}
.pass-balance-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  min-height: 28px;
}
.pass-balance-cell strong {
  font-size: 13px;
  line-height: 1.4;
}
.pass-balance-cell .pass-adjust-compact {
  padding: 4px 9px;
  min-height: 26px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
  border-color: #e4dced;
  background: #fbf9fd;
  color: #7b648f;
}
.pass-balance-cell .pass-adjust-compact:hover {
  background: #f0eaf7;
  border-color: #baa5d0;
  transform: none;
}
.green-btn.payment-request-compact,
.outline.payment-request-compact {
  height: 23.2px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 10px;
  line-height: normal;
  min-height: 0;
  white-space: nowrap;
  margin-left: 4px;
  font-weight: 400;
}
.green-btn.payment-request-compact:hover,
.outline.payment-request-compact:hover {
  transform: none;
}
.section-head > button[data-action='request'] {
  flex-shrink: 0;
  white-space: nowrap;
}
.member-status-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.member-status-controls .status-correct-compact {
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 6px;
  white-space: nowrap;
  color: #8a729d;
  background: #fcfaff;
  min-height: 0;
}
.status-correction-dialog .eyebrow {
  color: #a08ab5;
  margin-bottom: 9px;
}
.status-correction-dialog h3 {
  margin-top: 23px;
}
.status-correction-dialog select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e4ddec;
  border-radius: 9px;
  background: #fcfaff;
  color: #685178;
}
dialog:has(.status-correction-dialog) {
  width: min(680px, 94vw);
}
.trip-return-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  padding: 20px 24px;
  background: #f2edf9;
  border: 1px solid #e1d5ee;
  border-radius: 13px;
}
.trip-return-panel strong {
  font-size: 14px;
  color: #593d78;
}
.trip-return-panel p {
  font-size: 12px;
  color: #947fa7;
  line-height: 1.8;
  margin: 8px 0 0;
}
.trip-return-panel button {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .trip-return-panel {
    flex-wrap: wrap;
  }
  .trip-return-panel button {
    margin-left: auto;
  }
}
.payment-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin: 18px 0;
  background: #f5f0fa;
  border-radius: 11px;
}
.payment-undo-bar {
  position: sticky;
  bottom: -30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  margin-top: 18px;
  background: #efe8f8;
  border: 1px solid #d8c9e9;
  border-radius: 11px;
  box-shadow: 0 -6px 20px #29144609;
}
.payment-undo-bar strong {
  font-size: 12px;
  color: #654586;
}
.payment-undo-bar button {
  white-space: nowrap;
}
.hero-unified {
  min-height: 405px;
}
.hero-unified .time-row {
  margin-bottom: 22px;
}
.attendance-quick-actions {
  border-top: 1px solid #ffffff20;
  padding-top: 19px;
  position: relative;
  z-index: 1;
}
.attendance-quick-label {
  font-size: 10px;
  color: #bbb1d8;
  margin-bottom: 12px;
}
.attendance-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.attendance-quick-grid > button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ffffff27;
  background: #ffffff0c;
  color: #eeeaf8;
  padding: 12px 13px;
  border-radius: 10px;
  font-size: 11px;
  text-align: left;
  min-width: 0;
  line-height: 1.5;
}
.attendance-quick-grid > button:hover {
  background: #ffffff19;
  border-color: #ffffff50;
  transform: none;
}
.attendance-quick-grid .icon {
  width: 16px;
  height: 16px;
  color: #bcacd8;
}
.attendance-quick-grid .quick-arrow {
  margin-left: auto;
  color: #afa0cd;
}
.attendance-quick-grid > button span:not(.quick-arrow) {
  flex: 1;
}
.attendance-deferral-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: #b5a8cf;
  font-size: 10px;
}
.attendance-deferral-summary label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.attendance-deferral-summary input {
  width: 110px;
  background: #ffffff0b;
  color: #d4c9e5;
  border: 1px solid #ffffff23;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 10px;
  color-scheme: dark;
}
.attendance-deferral-summary strong {
  font-size: 16px;
  color: #e1d8ef;
}
.attendance-deferral-summary strong small {
  font-size: 10px;
  margin-left: 4px;
  font-weight: 400;
}
.attendance-history-link {
  margin-left: auto;
  color: #c8bada;
  font-size: 10px;
  padding: 4px;
}
.hero-unified .hero-top .eyebrow {
  margin-bottom: 18px;
}
@media (max-width: 480px) {
  .attendance-quick-grid {
    gap: 7px;
  }
  .attendance-quick-grid > button {
    padding: 11px 9px;
    font-size: 10px;
    gap: 6px;
  }
  .attendance-quick-grid .quick-arrow {
    display: none;
  }
  .hero-unified {
    padding: 24px 21px;
  }
}
.late-half-advice {
  background: #fff4e9;
  border: 1px solid #f0dbc8;
  color: #a77a53;
  font-size: 12px;
  line-height: 1.9;
}

/* 2026-10-28 policy controls */
.member-arrival {
  display: block;
  font-size: 10px;
  color: #9a91ad;
  margin-top: 5px;
}
.list-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 0;
  color: #9a91ad;
  font-size: 12px;
}
.list-pagination button {
  padding: 7px 14px;
  min-height: 32px;
}
.guide-jumps {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(248, 247, 252, 0.97);
  padding: 12px;
  box-shadow: 0 4px 18px #2117470b;
  overflow-x: auto;
  flex-wrap: wrap;
}
.guide-section {
  scroll-margin-top: 140px;
}
#guide-top {
  scroll-margin-top: 20px;
}
.pass-progress {
  display: block;
  width: 100%;
  height: 6px;
  accent-color: #7866be;
  margin-top: 12px;
  border: none;
  border-radius: 8px;
  overflow: hidden;
}
.pass-progress::-webkit-progress-bar {
  background: #e9e5f3;
}
.pass-progress::-webkit-progress-value {
  background: #7866be;
}

/* Booking, trip and report controls share spacing. */
.pass-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.pass-bottom > .small {
  white-space: nowrap;
}
.pass-bottom .pass-progress {
  margin-top: 0;
  width: 100%;
}
.pass-card .pass-exchange {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 12px 0 0 !important;
}
.pass-card .pass-bottom + .small {
  line-height: 1.9;
}
.notice > button,
.notice > .green-btn,
.notice > .outline {
  margin-inline: 6px;
  margin-block: 6px;
}
.notice p {
  margin-block: 10px;
}
.attendance-alert-banner > strong {
  flex: 1;
}
.attendance-alert-banner {
  gap: 16px;
}
.dialog-actions {
  gap: 12px;
  margin-top: 24px;
}
.dialog-actions button {
  margin: 0;
}
.inline-check,
.trip-vehicle-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inline-check input,
.trip-vehicle-options input {
  width: auto;
  margin: 0;
}
.inline-check {
  margin: 18px 0;
}
.trip-vehicle-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 12px 0 18px;
}
.trip-vehicle-options label {
  font-size: 12px;
  padding: 10px 12px;
  border: 1px solid #e6dfef;
  border-radius: 9px;
  margin: 0;
}
.bug-report-item {
  border: 1px solid #e6dfef;
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
}
.bug-report-detail {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  margin: 14px 0;
}
.fleet-calendar-book {
  margin-top: 12px !important;
}
.calendar-day-number {
  padding: 3px 5px;
  background: transparent;
  font-size: 12px;
  color: inherit;
  border: 0;
  cursor: pointer;
}
.calendar-month-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#rental-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5deee;
  border-radius: 8px;
  background: #fff;
  color: inherit;
}
.vehicle-day-detail {
  padding-block: 16px;
}
.bug-report-item .section-head {
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  .header-right {
    gap: 8px;
  }
  .header-right .guide-help {
    padding: 7px 9px;
    font-size: 10px;
  }
  .notice > button {
    margin-inline: 0 8px;
  }
  .trip-vehicle-options {
    gap: 10px;
  }
  .pass-card .pass-exchange {
    width: 100%;
  }
}

/* Shared GPU resources */
.gpu-summary {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.gpu-summary .notice {
  margin: 0;
  padding: 28px;
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gpu-summary h2 {
  margin: 14px 0 10px;
}
.gpu-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.gpu-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.gpu-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d5e8;
  flex-shrink: 0;
}
.gpu-dot.occupied {
  background: #69bda2;
}
.gpu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gpu-tile {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 162px;
  padding: 22px;
  border: 1px solid #e4dfef;
  border-radius: 18px;
  background: #faf9fd;
  color: #211950;
  cursor: pointer;
  transition:
    transform 0.16s,
    border-color 0.16s;
}
.gpu-tile:hover {
  transform: translateY(-2px);
  border-color: #8e7dd0;
}
.gpu-tile:focus-visible {
  outline: 3px solid #8e7dd0;
  outline-offset: 3px;
}
.gpu-tile.is-occupied {
  color: white;
  background: linear-gradient(135deg, #332266, #21164f);
  border-color: #463273;
}
.gpu-tile.is-occupied .small {
  color: #c7c0df;
}
.gpu-tile-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  width: 100%;
}
.gpu-tile-top .gpu-dot {
  margin-left: auto;
}
.gpu-tile strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.gpu-tile .small {
  margin-top: auto;
}
.gpu-picker {
  margin: 22px 0 8px;
  padding: 16px;
  border: 1px solid #e4dfef;
  border-radius: 12px;
}
.gpu-picker legend {
  padding: 0 6px;
  font-size: 13px;
}
#gpu-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.gpu-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  min-height: 34px;
}
.gpu-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #3f2b7d;
}
.gpu-option:has(input:disabled) {
  opacity: 0.5;
}
.gpu-period-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.gpu-details {
  margin: 24px 0;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  background: #f7f5fc;
}
.gpu-details dt {
  color: #847a9d;
  font-size: 13px;
}
.gpu-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}
@media (max-width: 1000px) {
  .gpu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gpu-summary {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .gpu-tile {
    padding: 16px;
    min-height: 150px;
  }
  .gpu-period-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .gpu-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .gpu-details dd {
    margin-bottom: 10px;
  }
}

.gpu-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

#storage-status {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(90vw, 650px);
  padding: 16px;
  background: #fff4d6;
  color: #453515;
  border: 1px solid #e7c475;
  border-radius: 12px;
  box-shadow: 0 4px 20px #0002;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
}
.auth-card {
  width: min(100%, 460px);
}
.auth-card .logo {
  max-width: 200px;
  margin-bottom: 24px;
}
.auth-card label {
  display: block;
  margin: 18px 0;
}
.auth-card input {
  display: block;
  width: 100%;
}
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
#audit-items {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  margin-top: 16px;
}
/* Tables share centered columns and compact action controls. */
.table-wrap {
  overflow-x: auto;
}
.table-wrap table td button:is(.outline, .primary, .green-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  height: 28px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 18px;
  white-space: nowrap;
  margin-block: 2px;
}
.table-wrap td:has(button) {
  white-space: nowrap;
}
.table-wrap td > button + button {
  margin-inline-start: 5px;
}
.table-wrap .pass-balance-cell,
.table-wrap .member-status-controls {
  justify-content: center;
  vertical-align: middle;
}
.table-wrap td .small {
  line-height: 1.6;
}
.list-pagination .outline {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 10px;
}
@media (pointer: coarse) {
  .table-wrap table td button:is(.outline, .primary, .green-btn) {
    height: 36px;
    min-height: 36px;
  }
}

.bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #9c96ac;
}
.bell.has-notifications {
  background: #271866;
  color: #fff;
  box-shadow: 0 0 0 3px #eee9fc;
}
.notification-exclamation {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: #e58166;
  color: white;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}
.notification-center-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.notification-center-heading h2 {
  margin: 0;
}
dialog:has([data-notification-center]) {
  width: min(720px, calc(100vw - 32px));
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Authenticated shell: account controls and eight navigation items must fit small screens. */
.secure-main {
  min-width: 0;
}
.secure-main > header {
  height: auto;
  min-height: 96px;
  gap: 16px;
  padding-block: 16px;
}
.secure-main .header-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.secure-main .header-right strong {
  overflow-wrap: anywhere;
}
.secure-main .demo-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 16px;
}
.secure-main .hero .outline {
  background: white;
  color: var(--brand);
}
.secure-main .card {
  min-width: 0;
}
.secure-main .activity {
  overflow-wrap: anywhere;
}
.secure-main .activity-time {
  flex-shrink: 0;
}
.secure-sidebar .nav {
  overflow-y: auto;
}
@media (max-width: 760px) {
  .secure-sidebar .nav {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .secure-sidebar .nav button {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 44px;
  }
  .secure-main > header {
    min-height: 77px;
  }
  .secure-main .header-right {
    justify-content: flex-start;
    gap: 8px;
  }
  .secure-main .header-right strong {
    flex-basis: 100%;
  }
  .secure-main .stats {
    grid-template-columns: 1fr;
  }
  .secure-main .title-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .secure-main .demo-bar input {
    max-width: 100%;
  }
}
.secure-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}
.secure-calendar-day {
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  overflow-wrap: anywhere;
}
.secure-calendar-day span {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  background: #eeebf8;
  border-radius: 4px;
}
.secure-calendar-day.today {
  border-color: var(--brand);
}
@media (max-width: 760px) {
  .secure-calendar-day {
    min-height: 64px;
    padding: 4px 2px;
  }
  .secure-calendar-day span {
    font-size: 9px;
  }
}

/* Keep the original layouts within the viewport on narrow screens. */
.guide-layout,
.guide-content,
.guide-section {
  min-width: 0;
}
.guide-section .table-wrap {
  max-width: 100%;
}
.page-tabs {
  max-width: 100%;
  overflow-x: auto;
}
.page-tabs > button {
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .section-head {
    flex-wrap: wrap;
  }
}
