/* Kim Guest Access premium visual layer (owner + shared guest key).
 * Scoped to guest pages. No vehicle command or permission behavior is changed. */
.guest-access-page, .guest-key-page {
  --guest-accent: #278fff;
  --guest-bright: #60baff;
  --guest-fg: #f1f8ff;
  --guest-muted: #9bb4cc;
  --guest-outline: rgba(126,185,239,.24);
  --guest-card: linear-gradient(138deg, rgba(31,75,111,.56), rgba(8,25,43,.88) 60%, rgba(6,19,34,.92));
  isolation: isolate;
  background: radial-gradient(ellipse at 86% -12%,rgba(23,101,195,.32),transparent 46%),
    radial-gradient(ellipse at 0% 90%,rgba(13,79,139,.14),transparent 46%),
    linear-gradient(160deg,#06182e 0%,#061222 48%,#040c18 100%);
  color: var(--guest-fg);
}
.guest-access-page::before, .guest-key-page::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(165deg, transparent 33%,rgba(16,66,117,.11) 75%, transparent),
    radial-gradient(ellipse at 60% 3%,rgba(91,174,255,.10),transparent 40%);
}
.guest-access-page button, .guest-key-page button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.guest-access-page button:disabled, .guest-key-page button:disabled { cursor: not-allowed; }
.guest-access-page button:focus-visible, .guest-key-page button:focus-visible,
.guest-access-page input:focus-visible { outline: 2px solid #79c7ff; outline-offset: 3px; }
.guest-access-page [hidden], .guest-key-page [hidden] { display: none !important; }
.guest-access-shell { width: min(1160px, calc(100% - 42px)); padding: 30px 0 64px; }
.guest-access-head { align-items: flex-start; margin-bottom: 26px; }
.guest-page-heading { min-width: 0; }
.guest-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 760; font-size: 24px; letter-spacing: -.6px; }
.guest-brand img { width: 34px; height: 34px; object-fit: contain; }
.guest-brand-divider { width: 1px; height: 24px; background: rgba(191,215,248,.24); margin: 0 3px; }
.guest-brand .guest-brand-context { font-size: 13px; letter-spacing: .01em; font-weight: 620; color: #bedaff; padding: 9px 13px; border: 1px solid rgba(84,165,246,.28); border-radius: 12px; background: rgba(44,120,206,.13); }
.guest-page-heading > .eyebrow { margin: 25px 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .15em; color: #6eb9ff; }
.guest-access-head h2 { margin: 0 0 6px; font-size: clamp(29px,4.2vw,42px); letter-spacing: -.04em; font-weight: 790; }
.guest-access-head p:not(.eyebrow) { font-size: 14px; line-height: 1.5; color: var(--guest-muted); max-width: 570px; }
.guest-close-button { border: 1px solid var(--guest-outline) !important; border-radius: 14px !important; background: rgba(22,48,72,.8) !important; color: #d3eaff !important; margin-top: 2px; }
.guest-close-button:hover { background: rgba(40,85,128,.76) !important; }
.guest-access-grid { grid-template-columns: minmax(0, 1fr) minmax(0,.92fr); gap: 20px; align-items: start; }
.guest-owner-side { display: flex; flex-direction: column; min-width: 0; gap: 18px; }
.guest-access-card, .guest-owner-summary, .guest-vehicle-hero, .guest-key-control-section,
.guest-key-invalid { border: 1px solid var(--guest-outline); background: var(--guest-card); box-shadow: 0 18px 60px rgba(0,6,16,.4), inset 0 1px 0 rgba(255,255,255,.065); border-radius: 23px; backdrop-filter: blur(24px) saturate(138%); -webkit-backdrop-filter: blur(24px) saturate(138%); }
.guest-access-card { padding: 24px; }
.guest-access-create-card { position: relative; overflow: hidden; }
.guest-access-create-card::before { position: absolute; content: ''; height: 1px; left: 24px; right: 24px; top: 0; background: linear-gradient(90deg,transparent,rgba(108,184,255,.55),transparent); }
.guest-access-card-title { margin-bottom: 23px; }
.guest-title-inline { display: flex; align-items: center; gap: 15px; }
.guest-access-card-title strong { font-size: 21px; letter-spacing: -.035em; font-weight: 750; }
.guest-access-card-title small { margin-top: 5px; color: var(--guest-muted); font-size: 12px; line-height: 1.5; }
.guest-card-icon { display: inline-grid; place-items: center; width: 49px; height: 49px; min-width: 49px; border-radius: 14px; background: linear-gradient(145deg,rgba(37,140,255,.30),rgba(23,73,134,.27)); border: 1px solid rgba(79,166,255,.48); box-shadow: inset 0 1px 0 rgba(255,255,255,.10),0 5px 20px rgba(18,99,191,.12); color: #58b6ff; }
.guest-card-icon svg, .guest-summary-symbol svg, .guest-permission-icon svg, .guest-control-glyph svg,
.guest-key-invalid-icon svg, .guest-key-refresh svg, .guest-access-primary svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.guest-access-field { margin: 21px 0; }
.guest-access-field > span, .guest-created-link label > span { letter-spacing: .025em; text-transform: none; font-size: 13px; color: #d8e8f9; font-weight: 700; margin-bottom: 10px; }
.guest-access-field input[type="text"], .guest-created-link input {
  height: 49px; border-radius: 13px; border: 1px solid rgba(127,174,216,.27); background: rgba(5,19,34,.58); color: #edf7ff; padding: 12px 15px; font-size: 14px;
}
.guest-access-field input[type="text"]::placeholder { color: #718ba7; }
.guest-access-field input[type="text"]:focus { border-color: #489dff; }
.guest-duration-options { gap: 9px; }
.guest-duration-options button { padding: 12px 6px; border-radius: 13px; font: inherit; font-size: 12px; font-weight: 650; color: #d5e8f8; border: 1px solid rgba(134,177,218,.26); background: linear-gradient(135deg,rgba(42,84,121,.24),rgba(15,40,65,.5)); transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.guest-duration-options button.active { color: #fff; border-color: #439fff; background: linear-gradient(140deg,rgba(25,130,249,.50),rgba(22,84,159,.35)); box-shadow: inset 0 0 0 1px rgba(100,193,255,.17),0 6px 16px rgba(22,105,229,.14); }
.guest-duration-options button:disabled { opacity: .32; }
.guest-custom-expiry-display { background: rgba(5,19,34,.58); border-color: rgba(127,174,216,.27); color: #9ab3c9; }
.guest-duration-hint { color: #9bb1c8; font-size: 11.5px; line-height: 1.55; }
.guest-permission-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.guest-permission-grid label { min-height: 87px; box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 7px; padding: 14px 16px; cursor: pointer; border: 1px solid rgba(108,155,205,.23); background: linear-gradient(135deg,rgba(24,65,104,.45),rgba(10,31,54,.45)); border-radius: 15px; color: #dfedff; font-size: 13px; font-weight: 700; transition: border-color .2s ease,background .2s ease,transform .2s ease; }
.guest-permission-grid label:hover { border-color: rgba(102,182,252,.56); }
.guest-permission-grid label:has(input:checked) { border-color: rgba(47,151,255,.7); background: linear-gradient(140deg,rgba(25,115,220,.26),rgba(7,38,77,.5)); }
.guest-permission-grid label input { position: absolute; right: 13px; top: 13px; accent-color: #248dff; margin: 0; width: 17px; height: 17px; }
.guest-permission-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: rgba(35,125,210,.19); color: #50b2ff; }
.guest-permission-icon svg { width: 21px; height: 21px; }
.guest-access-primary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 14px; color: #fff; background: linear-gradient(115deg,#176be5,#329dff 56%,#1473ec); box-shadow: 0 10px 28px rgba(21,104,236,.31),inset 0 1px 0 rgba(255,255,255,.28); font-size: 14px; letter-spacing: .01em; }
.guest-access-primary svg { width: 19px; height: 19px; }
.guest-access-primary:not(:disabled):hover { filter: brightness(1.12); }
.guest-access-status { margin: 10px 0 0; font-size: 12px; color: #b7d3e9; line-height: 1.5; min-height: 0; }
.guest-access-status:empty { display: none; }
.guest-created-link { margin-top: 19px; padding-top: 20px; border-top: 1px solid rgba(122,170,221,.19); }
.guest-created-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.guest-created-heading strong { display: block; font-size: 15px; }
.guest-created-heading small { display: block; color: #9ab2c9; font-size: 11px; margin-top: 4px; line-height: 1.45; }
.guest-created-check { display: grid; place-items: center; min-width: 33px; width: 33px; height: 33px; border-radius: 50%; color: #56dfa2; background: rgba(44,192,123,.15); }
.guest-created-qr { border-color: rgba(114,161,208,.24); background: rgba(5,24,44,.44); }
.guest-created-qr canvas { box-sizing: content-box; }
.guest-created-qr small { color: #a0bbd1; }
.guest-created-actions button { min-width: 0; min-height: 40px; border: 1px solid rgba(76,160,247,.32); background: rgba(25,76,122,.36); color: #c2e2ff; border-radius: 11px; font-weight: 650; }
.guest-created-actions button:hover { border-color: rgba(97,189,255,.7); background: rgba(31,104,181,.36); }
/* Owner-side side panel - no fake statistics, only existing car artwork and real key list. */
.guest-owner-summary { min-height: 170px; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; padding: 23px; box-sizing: border-box; }
.guest-owner-summary::after { position: absolute; z-index: -1; content: ''; inset: 0; background: linear-gradient(90deg,rgba(5,19,35,.95) 0%,rgba(6,25,46,.83) 48%,rgba(8,32,59,.10) 100%); }
.guest-summary-art { position: absolute; z-index: -2; width: 76%; height: 100%; right: -8%; top: 0; overflow: hidden; }
.guest-summary-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; opacity: .8; }
.guest-summary-content { max-width: 65%; }
.guest-summary-symbol { display: grid; place-items: center; width: 36px; height: 36px; background: rgba(20,111,222,.22); border: 1px solid rgba(101,184,255,.36); color: #73c5ff; border-radius: 11px; margin-bottom: 8px; }
.guest-summary-content strong { display: block; font-size: 19px; }
.guest-summary-content p { margin: 5px 0 0; font-size: 12px; color: #b4cde5; line-height: 1.5; }
.guest-access-list-card { min-height: 94px; }
.guest-access-list-title { gap: 12px; align-items: center; }
.guest-access-list-toggle { gap: 12px; justify-content: flex-start; }
.guest-access-list-toggle > span:nth-child(2) { flex: 1; }
.guest-access-list-title .guest-card-icon { width: 42px; height: 42px; min-width: 42px; }
.guest-access-list-title strong { font-size: 17px; }
.guest-access-list-chevron { margin-left: auto; color: #9ccef8; }
.guest-access-list-refresh { background: rgba(31,100,181,.25) !important; border-color: rgba(70,159,255,.35) !important; color: #d0eaff !important; }
.guest-access-list-body { margin-top: 19px; padding-top: 15px; border-top: 1px solid rgba(122,170,221,.18); }
.guest-access-row { padding: 16px; gap: 12px; background: linear-gradient(130deg,rgba(24,67,108,.35),rgba(9,30,53,.36)); border-color: rgba(105,155,206,.22); border-radius: 15px; }
.guest-access-row.inactive { opacity: .68; }
.guest-access-row-title { flex-wrap: wrap; }
.guest-access-row-title strong { font-size: 14px; }
.guest-access-row-title span { background: rgba(54,196,138,.15); color: #80edbd; border: 1px solid rgba(87,204,153,.17); }
.guest-access-row small,.guest-access-row p { font-size: 11.5px; line-height: 1.55; }
.guest-access-row-actions { flex-wrap: wrap; }
.guest-access-row-actions button { min-height: 39px; font-weight: 650; font-size: 12px; }
.guest-access-copy { background: rgba(19,89,171,.24); border-color: rgba(71,159,252,.45); }
.guest-access-revoke { background: rgba(161,43,61,.12); border-color: rgba(245,113,138,.35); }
/* Shared Guest Key: a self-contained premium vehicle card. */
.guest-key-page { background: radial-gradient(ellipse at 54% -8%,rgba(37,117,220,.34),transparent 51%),linear-gradient(155deg,#071b35,#071425 55%,#050b16); }
.guest-key-shell { width: min(760px, calc(100% - 30px)); padding: max(24px,env(safe-area-inset-top)) 0 44px; }
.guest-key-brand { padding-bottom: 17px; margin-bottom: 24px; border-bottom: 1px solid rgba(126,185,239,.18); }
.guest-key-head { align-items: center; gap: 16px; margin-bottom: 20px; }
.guest-key-head .eyebrow { font-size: 11px; color: #6fbaff; font-weight: 760; letter-spacing: .12em; margin-bottom: 8px; text-transform: uppercase; }
.guest-key-head h1 { margin: 0; font-size: clamp(27px,4vw,35px); letter-spacing: -.04em; }
.guest-key-expiry { border: 1px solid rgba(78,165,255,.4); border-radius: 14px; padding: 11px 15px; background: rgba(22,81,153,.22); color: #c9e4ff !important; font-size: 12px; line-height: 1.5; white-space: normal; max-width: 200px; }
.guest-vehicle-hero { padding: 20px 20px 18px; position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(145deg,rgba(15,63,104,.70),rgba(5,24,43,.94)); }
.guest-vehicle-heading { position: relative; z-index: 2; }
.guest-vehicle-heading h2 { font-size: 21px; font-weight: 750; margin: 0 0 7px; letter-spacing: -.03em; }
#guestKeyOnline { font-size: 12px; font-weight: 650; }
#guestKeyOnline[data-online="true"] { color: #62e3ae; }
#guestKeyOnline[data-online="false"] { color: #ffb6a4; }
.guest-vehicle-image { display: block; position: relative; width: min(95%,650px); height: 194px; margin: -10px auto -8px; object-fit: contain; object-position: center; filter: drop-shadow(0 16px 18px rgba(0,5,15,.18)); pointer-events: none; }
.guest-key-stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; overflow: visible; border: none; box-shadow: none; margin: 0; backdrop-filter: none; background: transparent; }
.guest-key-stats > div { min-width: 0; padding: 14px 12px; border: 1px solid rgba(110,179,244,.25) !important; border-radius: 13px; background: rgba(11,43,72,.72); text-align: left; }
.guest-key-stats span { font-size: 11px; letter-spacing: 0; text-transform: none; color: #a8c6de; margin-bottom: 8px; }
.guest-key-stats strong { font-size: 19px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.guest-key-control-section { margin-top: 17px; padding: 20px; }
.guest-key-section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 17px; }
.guest-key-section-heading .guest-card-icon { height: 43px; width: 43px; min-width: 43px; }
.guest-key-section-heading strong { display: block; font-size: 19px; font-weight: 760; }
.guest-key-section-heading small { display: block; margin-top: 4px; color: #adc8df; font-size: 12px; }
.guest-key-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; border-radius: 0; }
.guest-key-control { display: flex; align-items: center; min-height: 96px; padding: 14px; gap: 12px; border-radius: 15px; border-color: rgba(77,148,223,.35); background: linear-gradient(130deg,rgba(26,86,144,.29),rgba(8,33,63,.5)); transition: border-color .2s ease,background .2s ease; }
.guest-key-control:hover:not(:disabled) { border-color: rgba(102,184,255,.7); background: linear-gradient(130deg,rgba(28,106,185,.36),rgba(12,45,82,.5)); }
.guest-key-control.is-active { border-color: rgba(61,154,248,.65); background: rgba(25,98,187,.23); }
.guest-key-control:disabled { opacity: .43; }
.guest-key-control .guest-control-glyph { display: grid; place-items: center; flex: 0 0 53px; width: 53px; height: 53px; border-radius: 13px; border: 1px solid rgba(47,148,255,.55); background: linear-gradient(145deg,rgba(23,137,255,.45),rgba(6,64,142,.3)); color: #6ac7ff; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); position: relative; z-index: 2; pointer-events: none; }
.guest-control-glyph svg { width: 25px; height: 25px; }
.guest-control-copy { min-width: 0; flex: 1; position: relative; z-index: 2; pointer-events: none; }
.guest-key-control strong { font-size: 15px; font-weight: 760; line-height: 1.3; }
.guest-key-control small { font-size: 11px; line-height: 1.4; color: #a6c1d7; }
.guest-control-chevron { flex: 0 0 auto; color: #b4d4ee; font-size: 22px; position: relative; z-index: 2; pointer-events: none; }
/* Press-hold visualization stays underneath the content; 900ms logic unchanged. */
.guest-key-control::before { z-index: 1; background: rgba(39,142,251,.28); }
.guest-key-control.hold-complete::before { background: rgba(65,183,255,.39); }
.guest-key-control.holding { border-color: #65b8ff; }
.guest-key-control-section .guest-access-status { padding: 0 3px; margin-top: 15px; }
.guest-key-refresh { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; margin-top: 14px; border-color: rgba(82,161,245,.28); background: rgba(15,60,105,.40); color: #d6ebff; font-weight: 650; }
.guest-key-refresh svg { width: 18px; height: 18px; }
.guest-key-refresh:hover { background: rgba(24,94,166,.44); }
.guest-key-invalid { margin-top: 20px; padding: 54px 24px; text-align: center; border-radius: 23px; }
.guest-key-invalid-icon { display: grid; place-items: center; margin: 0 auto 20px; width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle,rgba(197,74,101,.2),rgba(109,26,53,.07)); border: 1px solid rgba(235,108,136,.22); color: #ff889c; }
.guest-key-invalid-icon svg { width: 42px; height: 42px; }
.guest-key-invalid strong { display: block; font-size: 24px; letter-spacing: -.025em; }
.guest-key-invalid p { line-height: 1.65; color: #adc1d5; }
@media (max-width: 960px) {
  .guest-access-grid { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 15px; }
  .guest-access-card { padding: 19px; }
  .guest-access-shell { width: min(100% - 28px,960px); }
}
@media (max-width: 740px) {
  .guest-access-grid { grid-template-columns: 1fr; }
  .guest-owner-summary { min-height: 135px; }
  .guest-key-shell { width: min(100% - 24px,760px); }
  .guest-vehicle-image { height: 165px; }
}
@media (max-width: 490px) {
  .guest-access-shell { width: calc(100% - 22px); padding: 17px 0 32px; }
  .guest-access-head { gap: 11px; margin-bottom: 16px; }
  .guest-brand { font-size: 20px; }
  .guest-brand img { width: 29px; height: 29px; }
  .guest-page-heading > .eyebrow { margin-top: 20px; }
  .guest-access-head h2 { font-size: 30px; }
  .guest-access-card { padding: 17px; border-radius: 19px; }
  .guest-permission-grid { gap: 8px; }
  .guest-permission-grid label { padding: 12px; font-size: 12px; }
  .guest-duration-options { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
  .guest-duration-options button { font-size: 11px; padding: 11px 2px; }
  .guest-created-qr { grid-template-columns: 90px minmax(0,1fr); }
  .guest-created-qr canvas { width: 90px; height: 90px; }
  .guest-access-row { flex-wrap: wrap; }
  .guest-access-row-actions { width: 100%; }
  .guest-access-row-actions button { flex: 1; }
  .guest-owner-summary { min-height: 125px; }
  .guest-key-brand { margin-bottom: 17px; }
  .guest-key-head { align-items: flex-start; }
  .guest-key-head h1 { font-size: 27px; }
  .guest-key-expiry { max-width: 138px; padding: 9px 10px; font-size: 11px; }
  .guest-vehicle-hero,.guest-key-control-section { padding: 15px; border-radius: 19px; }
  .guest-vehicle-image { height: 132px; width: 100%; margin: -3px auto; }
  .guest-key-stats { gap: 7px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guest-key-stats > div { padding: 11px; }
  .guest-key-controls { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .guest-key-control { min-height: 110px; padding: 11px; gap: 8px; flex-wrap: wrap; align-content: center; }
  .guest-key-control .guest-control-glyph { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .guest-key-control .guest-control-glyph svg { width: 21px; height: 21px; }
  .guest-control-copy { flex: 1 1 calc(100% - 52px); }
  .guest-key-control strong { font-size: 13px; }
  .guest-control-chevron { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .guest-access-page *, .guest-key-page * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Neutralize generic card-button styling on the collapsible header only. */
.guest-access-list-title .guest-access-list-toggle { background: transparent !important; border: none !important; padding: 0 !important; box-shadow: none !important; }

/* Premium theme alignment v2: use Kim PWA's navy / teal surfaces instead of
 * a separate saturated blue backdrop. Fully presentation-only. */
.guest-access-page, .guest-key-page {
  --guest-accent: var(--accent, #35dfc1);
  --guest-bright: #70e4d1;
  --guest-fg: var(--text, #f5f9fc);
  --guest-muted: var(--text-secondary, #b2c1ce);
  --guest-outline: var(--border-soft, rgba(168,198,220,.11));
  --guest-card: linear-gradient(145deg,rgba(255,255,255,.045),transparent 38%),
    var(--surface-1,rgba(12,23,36,.96));
  background: radial-gradient(circle at 50% 5%, rgba(53,223,193,.105), transparent 31%),
    radial-gradient(circle at 92% 88%, rgba(76,125,184,.07), transparent 32%),
    linear-gradient(155deg,#07131f 0%,var(--app-bg,#071019) 55%,var(--app-bg-deep,#040a11) 100%);
  color: var(--guest-fg);
}
.guest-access-page::before, .guest-key-page::before {
  background-image: linear-gradient(rgba(255,255,255,.014) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.014) 1px,transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom,rgba(0,0,0,.3),transparent 75%);
  mask-image: linear-gradient(to bottom,rgba(0,0,0,.3),transparent 75%);
}
.guest-access-card, .guest-owner-summary, .guest-vehicle-hero,
.guest-key-control-section, .guest-key-invalid {
  border-color: var(--guest-outline);
  background: var(--guest-card);
  box-shadow: var(--shadow-card,0 18px 54px rgba(0,0,0,.28));
}
.guest-access-head .eyebrow, .guest-key-head .eyebrow { color: var(--guest-accent); }
.guest-brand .guest-brand-context {
  color: #c2f5ec;
  border-color: var(--accent-border,rgba(53,223,193,.29));
  background: var(--accent-soft,rgba(53,223,193,.13));
}
.guest-card-icon, .guest-summary-symbol, .guest-permission-icon {
  color: #7cead8;
  border-color: rgba(53,223,193,.3);
  background: rgba(53,223,193,.105);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}
.guest-duration-options button { border-color: var(--border-strong,rgba(168,198,220,.22)); background: var(--surface-soft,rgba(255,255,255,.045)); }
.guest-duration-options button.active {
  color: #d9fff6;
  border-color: var(--accent-border,rgba(53,223,193,.29));
  background: var(--accent-soft,rgba(53,223,193,.13));
  box-shadow: inset 0 0 0 1px rgba(53,223,193,.12);
}
.guest-permission-grid label {
  border-color: var(--border-soft,rgba(168,198,220,.11));
  background: var(--surface-soft,rgba(255,255,255,.045));
}
.guest-permission-grid label:has(input:checked) {
  border-color: var(--accent-border,rgba(53,223,193,.29));
  background: var(--accent-soft,rgba(53,223,193,.13));
}
.guest-permission-grid label input { accent-color: var(--accent-strong,#18bfa7); }
.guest-access-primary {
  color: #061c1c;
  background: linear-gradient(135deg,#48e7ca,#18bfa7);
  box-shadow: 0 10px 28px rgba(15,185,161,.19),inset 0 1px 0 rgba(255,255,255,.28);
}
.guest-access-row { border-color: var(--border-soft); background: var(--surface-soft); }
.guest-access-copy, .guest-access-list-refresh, .guest-created-actions button {
  border-color: var(--accent-border,rgba(53,223,193,.29)) !important;
  background: var(--accent-soft,rgba(53,223,193,.13)) !important;
  color: #bdf7eb !important;
}
.guest-access-revoke { color: var(--danger,#ff7c84); }
/* Keep the owner-side car subtle: a smaller silhouette and softer contrast
 * let the Guest Access / revoke message remain the visual focal point. */
.guest-owner-summary::after { background: linear-gradient(90deg,rgba(5,15,24,.96) 0%,rgba(5,15,24,.86) 42%,rgba(5,15,24,.30) 100%); }
.guest-summary-art { width: 65%; height: 86%; top: 7%; right: -4%; }
.guest-summary-art img {
  object-fit: contain;
  object-position: 57% center;
  opacity: .74;
  filter: brightness(.96) saturate(.80) drop-shadow(0 8px 10px rgba(0,0,0,.10));
}
.guest-key-expiry {
  border-color: var(--accent-border,rgba(53,223,193,.29));
  background: var(--accent-soft,rgba(53,223,193,.13));
  color: #bdf7eb !important;
}
.guest-vehicle-hero { isolation: isolate; }
.guest-vehicle-hero::before {
  content: '';
  position: absolute;
  inset: 14% 12% 22%;
  z-index: 0;
  background: radial-gradient(ellipse,rgba(53,223,193,.07),transparent 67%);
  pointer-events: none;
}
/* Transparent WebP - no mask, opaque background, or scenic frame. */
.guest-vehicle-image {
  height: 235px;
  width: min(100%,660px);
  object-fit: contain;
  margin: -10px auto -3px;
  -webkit-mask-image: none;
  mask-image: none;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.21));
}
.guest-key-stats > div {
  background: rgba(255,255,255,.038);
  border-color: var(--border-soft,rgba(168,198,220,.11)) !important;
}
.guest-key-control {
  border-color: var(--border-soft,rgba(168,198,220,.11));
  background: linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.025));
}
.guest-key-control:hover:not(:disabled) { border-color: var(--accent-border); background: var(--accent-soft); }
.guest-key-control.is-active { border-color: rgba(53,223,193,.4); background: rgba(53,223,193,.10); }
.guest-key-control .guest-control-glyph {
  color: #70e4d1;
  border-color: rgba(53,223,193,.32);
  background: rgba(53,223,193,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.guest-key-control::before { background: rgba(53,223,193,.15); }
.guest-key-control.hold-complete::before { background: rgba(53,223,193,.29); }
.guest-key-control.holding { border-color: rgba(53,223,193,.57); }
.guest-key-refresh { border-color: var(--accent-border); background: var(--accent-soft); color: #bdf7eb; }
.guest-key-refresh:hover { background: rgba(53,223,193,.2); }
@media (max-width: 740px) {
  .guest-vehicle-image { height: 196px; }
}
@media (max-width: 490px) {
  .guest-vehicle-image { height: 158px; margin: -3px auto 0; }
  .guest-summary-art { width: 70%; height: 84%; top: 8%; right: -9%; }
}

/* Guest Key compact layout: vehicle is the only headline, expiry stays inside
   the vehicle card, and all four permitted commands share a single row. */
.guest-key-brand { margin-bottom: 16px; padding-bottom: 12px; }
.guest-vehicle-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.guest-vehicle-summary { flex: 1 1 180px; min-width: 0; }
.guest-vehicle-heading .guest-key-expiry {
  position: relative;
  z-index: 2;
  display: inline-flex;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  padding: 7px 10px;
  margin: 0;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: right;
}
.guest-key-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.guest-key-control {
  min-width: 0;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  padding: 10px 5px;
}
.guest-key-control .guest-control-glyph {
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  border-radius: 10px;
}
.guest-key-control .guest-control-glyph svg { width: 20px; height: 20px; }
.guest-key-control .guest-control-copy { flex: 0 1 auto; width: 100%; min-width: 0; }
.guest-key-control strong { font-size: 12px; line-height: 1.2; overflow-wrap: normal; }
.guest-key-control small, .guest-control-chevron { display: none; }
@media (max-width: 490px) {
  .guest-key-brand { margin-bottom: 12px; padding-bottom: 11px; }
  .guest-vehicle-heading .guest-key-expiry { font-size: 10.5px; padding: 6px 9px; max-width: 100%; }
  .guest-key-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .guest-key-control {
    min-height: 82px;
    padding: 9px 2px;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .guest-key-control .guest-control-glyph {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
  .guest-key-control .guest-control-glyph svg { width: 18px; height: 18px; }
  .guest-key-control .guest-control-copy { flex: 0 1 auto; width: 100%; }
  .guest-key-control strong { font-size: 10.5px; line-height: 1.22; }
}
