.fo-keys .my-key-card {
  border:1px solid var(--fo-border-subtle);
  border-radius:20px;
  background:var(--fo-bg-surface);
  box-shadow:0 2px 8px rgb(18 24 38 / .05);
}
.fo-keys .my-key-card.open .my-key-head { border-end-start-radius:0; border-end-end-radius:0; }
.fo-keys .my-key-head:is(:hover,:active) { background:var(--fo-cabinet-hover); }
.fo-keys .my-key-meta .my-key-status[data-tone="danger"] {
  color:var(--fo-danger-text,#a52929);
  background:var(--fo-danger-bg,#fff1f1);
  padding:2px 7px;
  border-radius:999px;
}
.fo-keys .my-key-status[data-tone="danger"] .fo-status-dot { background:currentColor; }
.fo-keys .my-key-card .access-expander { transition-duration:330ms; }
.fo-keys .my-key-card .subscription-body {
  margin:0;
  padding:14px 12px 12px;
  border:0;
  border-top:1px solid var(--fo-border-subtle);
  border-radius:0;
  background:var(--fo-bg-surface);
}
.fo-keys .my-key-card .subscription-access { background:transparent; border:0; box-shadow:none; }
.fo-keys {
  --key-action-surface:var(--fo-bg-elevated,#fff);
  --key-action-border:var(--fo-border-interactive);
  --key-action-shadow:0 2px 6px rgb(18 24 38 / .05);
}
html body #app .fo-keys .my-keys-buy.fo-button,
.fo-keys .my-key-card .my-key-actions .fo-key-action--tile,
.fo-keys .my-key-management .subscription-setting {
  box-sizing:border-box;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  margin:0;
  border:1px solid var(--key-action-border);
  border-radius:12px;
  background:var(--key-action-surface);
  color:var(--fo-text-primary);
  text-align:center;
  box-shadow:var(--key-action-shadow);
}
.fo-keys .my-key-card .my-key-actions .fo-key-action--tile {
  width:100%;
  height:auto;
  min-height:44px;
  max-height:none;
}
.fo-keys .my-key-actions .fo-key-action-icon {
  flex:none;
  background:transparent;
  box-shadow:none;
}
.fo-keys .my-key-actions .fo-key-action-label { text-align:center; }
.fo-keys :is([data-key-install],[data-key-devices]) { --key-icon-color:#2673bc; }
.fo-keys :is([data-key-renew],.my-keys-buy) { --key-icon-color:#21814e; }
.fo-keys [data-key-antig] { --key-icon-color:#7852ae; }
.fo-keys :is(.fo-key-action-icon,.my-keys-buy > svg,[data-key-devices] > svg:first-child) {
  color:var(--key-icon-color,currentColor);
}
.fo-keys .fo-key-action-icon svg { color:inherit; }
html body #app .fo-keys .my-keys-buy.fo-button { min-height:36px; padding:5px 10px; font-size:12px; }
.fo-keys .my-key-card .my-key-actions [data-key-antig]:last-child:nth-child(odd) { grid-column:1/-1; }
.fo-keys .my-key-management {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.fo-keys .my-key-management .my-key-settings { display:contents; }
.fo-keys .my-key-management .subscription-renew-note { grid-column:1/-1; }
.fo-keys .my-key-management .subscription-setting {
  width:100%;
  height:auto;
  min-height:54px;
  padding:6px;
  font-size:12px;
}
.fo-keys .my-key-management .subscription-setting {
  justify-content:flex-start;
  padding-inline:9px;
  text-align:start;
}
.fo-keys .my-key-management .subscription-setting > span { flex:1 1 auto; text-align:start; min-width:0; }
.fo-keys .my-key-management .subscription-devices-toggle > svg:first-child { width:22px; height:22px; flex:none; }
.fo-keys .my-key-management .subscription-setting small { font-size:11px; }
.fo-keys .my-key-management .subscription-devices-toggle > svg:last-child { display:none; }
.fo-keys .my-key-management .subscription-switch { flex:none; margin:0; }

@media (hover:hover) {
  html body #app .fo-keys .my-keys-buy.fo-button:hover,
  .fo-keys .my-key-card .my-key-actions .fo-key-action--tile:hover,
  .fo-keys .my-key-management .subscription-setting:hover { background:var(--fo-cabinet-hover,var(--fo-bg-secondary)); }
}
@media (prefers-reduced-motion:no-preference) {
  .fo-keys :is(.fo-key-action-icon,.my-keys-buy > svg,[data-key-devices] > svg:first-child) {
    transition:transform 220ms cubic-bezier(.22,1,.36,1);
  }
  .fo-keys :is(button:hover,button:focus-visible) > :is(.fo-key-action-icon,svg:first-child) { transform:translateY(-1px) scale(1.08); }
  .fo-keys [data-key-renew]:is(:hover,:focus-visible) > .fo-key-action-icon { transform:rotate(-16deg); }
  .fo-keys button:active > :is(.fo-key-action-icon,svg:first-child) { transform:scale(.92); }
}
@media (prefers-reduced-motion:reduce) { .fo-keys .my-key-card .access-expander { transition:none; } }

#overlay-root .customer-device-dialog {
  box-sizing:border-box;
  width:min(100%,480px);
  max-height:min(82dvh,680px);
  padding:16px;
  overflow:auto;
  border:1px solid var(--fo-border-subtle);
  border-radius:22px;
  background:var(--fo-bg-elevated);
  color:var(--fo-text-primary);
  box-shadow:var(--fo-chat-shadow);
}
#overlay-root .customer-device-dialog .key-dialog-heading {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
}
.customer-device-dialog .key-dialog-heading h2 { margin:0; font-size:18px; }
.customer-device-dialog .key-dialog-heading p { margin:3px 0 0; color:var(--fo-text-secondary); font-size:12px; }
.customer-device-dialog .key-dialog-heading [data-close-modal] { margin-inline-start:auto; }
.customer-device-dialog .key-device-summary {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}
.customer-device-dialog .key-device-summary > span {
  display:grid;
  gap:4px;
  padding:10px;
  border-radius:12px;
  background:var(--fo-bg-secondary);
  border:1px solid var(--fo-border-subtle);
}
.customer-device-dialog .key-device-summary small { color:var(--fo-text-secondary); }
.customer-device-dialog .device-card {
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 0;
  border-bottom:1px solid var(--fo-border-subtle);
}
.customer-device-dialog .device-row-title { flex:1; min-width:0; display:grid; gap:3px; }
.customer-device-dialog .device-row-title small { color:var(--fo-text-secondary); overflow-wrap:anywhere; }
.customer-device-dialog .device-row-title small:empty { display:none; }
.customer-device-dialog :is(.key-device-symbol,.key-dialog-icon) svg { width:20px; height:20px; }
.customer-device-dialog .fo-device-art > i {
  background:transparent;
  box-shadow:none;
  border:1.5px solid currentColor;
  transform:none;
}
.customer-device-dialog .fo-device-art > i::after { display:none; }
.customer-device-dialog .fo-device-art[data-type="laptop"] > i::after {
  display:block;
  height:1px;
  top:calc(100% + 2px);
  left:-10%;
  width:120%;
  background:currentColor;
}
#overlay-root .customer-device-dialog .key-device-unlink,
#overlay-root .customer-device-dialog > footer > button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0;
  min-height:38px;
  padding:6px 12px;
  border:1px solid var(--fo-border-interactive);
  border-radius:11px;
  background:var(--fo-bg-surface);
  color:var(--fo-text-primary);
  box-shadow:none;
}
#overlay-root .customer-device-dialog .key-device-unlink,
#overlay-root .customer-device-dialog > footer > .key-dialog-danger {
  background:#bf3c43;
  border-color:#bf3c43;
  color:#fff;
  font-size:12px;
  font-weight:600;
}
#overlay-root .customer-device-dialog .key-device-unlink {
  flex:none;
  width:auto;
  gap:5px;
  padding:6px 9px;
}
#overlay-root .customer-device-dialog .key-device-unlink svg { width:15px; height:15px; color:inherit; }
#overlay-root .customer-device-dialog :is(.key-device-unlink,.key-dialog-danger):is(:hover,:active) {
  background:#a72d35;
  border-color:#a72d35;
  color:#fff;
}
#overlay-root .customer-device-dialog :is(.key-device-symbol,.key-device-symbol .fo-device-art) {
  background:none;
  box-shadow:none;
}
#overlay-root .customer-device-dialog .key-device-symbol::before,
#overlay-root .customer-device-dialog .fo-device-art::before,
#overlay-root .customer-device-dialog .fo-device-art::after { content:none; }
.customer-device-dialog > footer { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:14px; }

.customer-device-dialog .key-device-scroll,
.customer-device-dialog .customer-device-rejected {
  padding:12px;
  border:1px solid var(--fo-border-subtle);
  border-radius:15px;
  background:var(--fo-bg-surface);
}
.customer-device-dialog .customer-device-rejected { margin-top:10px; }
.customer-device-dialog :is(.key-device-scroll,.customer-device-rejected) > h3 {
  margin:0 0 4px;
  font-size:13px;
  font-weight:650;
}
.customer-device-dialog .device-card:last-child { border-bottom:0; }
.customer-device-dialog .key-device-symbol { flex:none; }
.customer-device-dialog .key-device-symbol .fo-device-art {
  width:36px;
  height:36px;
  margin:0;
}
@media (prefers-reduced-motion:no-preference) {
  #overlay-root .customer-device-dialog { animation:customer-device-appear 290ms cubic-bezier(.22,1,.36,1) both; }
  @keyframes customer-device-appear {
    from { opacity:0; translate:0 12px; }
    to { opacity:1; translate:0 0; }
  }
}

#overlay-root .key-renewal-form {
  box-sizing:border-box;
  width:min(100%,430px);
  padding:18px;
  border-radius:20px;
  background:var(--fo-bg-elevated);
}
.key-renewal-heading { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.key-renewal-heading h2,.key-renewal-heading p { margin:0; }
.key-renewal-heading p { color:var(--fo-text-secondary); font-size:12px; }
.key-renewal-heading [data-close-modal] { margin-inline-start:auto; }
.key-renewal-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:var(--fo-bg-secondary); }
.key-renewal-icon svg { width:21px; height:21px; }
.key-renewal-binding-note {
 display:grid;
 gap:5px;
 margin:14px 0;
 padding:12px;
 border:1px solid var(--fo-border-subtle);
 border-radius:12px;
 background:var(--fo-bg-secondary);
}
.key-renewal-binding-note span,.key-renewal-consent { color:var(--fo-text-secondary); font-size:12px; }
