.device-security-hero {
  position: relative;
  display: grid;
  min-height: 124px;
  padding: 24px 26px;
  overflow: hidden;
  align-items: center;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 18px;
  border: 1px solid #cbdcf3;
  border-radius: 20px;
  color: #eaf4ff;
  background: linear-gradient(125deg, #0b2345, #123a67 72%, #0d5066);
  box-shadow: 0 18px 42px rgba(28, 66, 112, .16);
}
.device-security-hero::after { content: ''; position: absolute; right: -70px; top: -110px; width: 250px; height: 250px; border: 1px solid rgba(110, 220, 232, .18); border-radius: 50%; box-shadow: 0 0 0 45px rgba(72, 173, 211, .035); pointer-events: none; }
.device-security-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(107, 232, 218, .34); border-radius: 17px; color: #a7fff2; background: rgba(43, 202, 184, .13); box-shadow: inset 0 0 20px rgba(57, 210, 198, .08); font-size: 23px; font-weight: 800; }
.device-security-hero h2 { margin: 0; color: #fff; font-size: 21px; letter-spacing: -.02em; }
.device-security-hero p { max-width: 690px; margin: 7px 0 0; color: rgba(221, 237, 255, .68); font-size: 13px; line-height: 1.7; }
.device-refresh-button { position: relative; z-index: 1; min-height: 40px; padding: 0 16px; border: 1px solid rgba(194, 225, 255, .28); border-radius: 11px; color: #e9f5ff; background: rgba(255,255,255,.08); cursor: pointer; font-weight: 650; }
.device-refresh-button:hover:not(:disabled) { border-color: rgba(134, 225, 231, .65); background: rgba(255,255,255,.13); }
.device-refresh-button:disabled { cursor: wait; opacity: .55; }
.device-list-status { margin: 18px 0 12px; padding: 13px 15px; border: 1px solid #dce6f1; border-radius: 12px; color: #718298; background: #f8fbff; font-size: 13px; }
.device-list-status[data-state="error"] { border-color: #f2c5cb; color: #a63d4d; background: #fff6f7; }
.device-list-status[data-state="ready"] { display: none; }
.device-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.login-device-card { position: relative; display: grid; min-width: 0; padding: 19px; grid-template-columns: 46px minmax(0,1fr); gap: 14px; border: 1px solid #d9e4ef; border-radius: 17px; background: linear-gradient(145deg,#fff,#f8fbff); box-shadow: 0 10px 28px rgba(44,75,110,.07); }
.login-device-card.is-current { border-color: #8fbae9; box-shadow: 0 13px 32px rgba(38, 105, 186, .12); }
.device-type-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; color: #1c69c9; background: linear-gradient(145deg,#eaf3ff,#e4fbf7); font-size: 20px; }
.device-card-main { min-width: 0; }
.device-card-title-row { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 10px; }
.device-card-title-row h3 { margin: 1px 0 0; overflow: hidden; color: #172b45; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.device-badges { display: flex; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
.device-badge { padding: 3px 7px; border: 1px solid #cdd9e6; border-radius: 999px; color: #61748a; background: #f7f9fc; font-size: 10px; font-weight: 700; white-space: nowrap; }
.device-badge.primary { border-color: #a9c8f7; color: #185fb7; background: #edf5ff; }
.device-badge.current { border-color: #9de1d5; color: #117664; background: #ebfbf7; }
.device-badge.online { border-color: #a9e5c7; color: #187149; background: #edfbf4; }
.device-platform { margin: 7px 0 0; color: #5f7288; font-size: 12px; }
.device-times { display: grid; margin: 13px 0 0; padding-top: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; border-top: 1px solid #e8eef5; }
.device-time span,.device-time strong { display: block; }
.device-time span { color: #8a9bad; font-size: 10px; }
.device-time strong { margin-top: 3px; color: #344a63; font-size: 11px; font-weight: 650; }
.device-actions { display: flex; margin-top: 14px; gap: 8px; flex-wrap: wrap; }
.device-action { min-height: 34px; padding: 0 12px; border: 1px solid #cddbea; border-radius: 9px; color: #315b88; background: #fff; cursor: pointer; font-size: 11px; font-weight: 650; }
.device-action:hover:not(:disabled) { border-color: #6ca5e8; color: #0c5bb7; background: #f2f7ff; }
.device-action.danger { border-color: #f1c7cc; color: #b33748; }
.device-action.danger:hover:not(:disabled) { border-color: #e88692; background: #fff5f6; }
.device-action:disabled { cursor: wait; opacity: .5; }
.device-security-note { display: flex; margin-top: 16px; padding: 14px 17px; align-items: center; gap: 12px; border: 1px solid #dce6f0; border-radius: 13px; color: #728499; background: #f7fafc; font-size: 12px; }
.device-security-note strong { flex: 0 0 auto; color: #344e6b; }
.device-empty { grid-column: 1 / -1; padding: 52px 20px; border: 1px dashed #cad8e6; border-radius: 17px; color: #7b8da2; background: #fafcff; text-align: center; }
.device-empty strong,.device-empty span { display: block; }
.device-empty strong { color: #334b66; font-size: 16px; }
.device-empty span { margin-top: 6px; font-size: 12px; }

@media (max-width: 980px) { .device-card-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .device-security-hero { padding: 20px; grid-template-columns: 44px minmax(0,1fr); }
  .device-security-icon { width: 44px; height: 44px; }
  .device-security-hero h2 { font-size: 17px; }
  .device-refresh-button { grid-column: 1 / -1; width: 100%; }
  .login-device-card { padding: 15px; grid-template-columns: 40px minmax(0,1fr); }
  .device-type-icon { width: 40px; height: 40px; }
  .device-card-title-row { align-items: stretch; flex-direction: column; }
  .device-badges { justify-content: flex-start; }
  .device-times { grid-template-columns: 1fr; }
  .device-action { flex: 1 1 auto; }
  .device-security-note { align-items: flex-start; flex-direction: column; }
}
