/* CertAttestor — holder wallet */
.ca-hw{max-width:760px;margin:0 auto;padding:8px 0 40px;color:#14232B;
  font-family:"IBM Plex Sans",system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
.ca-hw *{box-sizing:border-box}
.ca-hw [hidden]{display:none !important}
.ca-hw-head{margin:8px 0 22px}
.ca-hw-head h1{font-family:"Archivo","IBM Plex Sans",sans-serif;font-weight:800;
  font-size:2rem;line-height:1.1;color:#0C3B42;margin:0 0 8px}
.ca-hw-head p{color:#5D6B6E;font-size:1.02rem;line-height:1.5;margin:0;max-width:60ch}
.ca-hw-eyebrow{font-family:"IBM Plex Mono",monospace;text-transform:uppercase;
  letter-spacing:.16em;font-size:.72rem;color:#B0842F;margin-bottom:8px}
.ca-hw-head-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.ca-hw-sub{color:#5D6B6E;font-size:.95rem;margin-top:4px}
.ca-hw-signout{color:#0C3B42;font-weight:600;text-decoration:none;font-size:.9rem;
  border:1px solid #dce4e3;border-radius:8px;padding:8px 14px;white-space:nowrap}
.ca-hw-signout:hover{border-color:#B0842F}

.ca-hw-card{background:#fff;border:1px solid #dce4e3;border-radius:14px;padding:22px 24px}
.ca-hw-formcard{max-width:460px}
.ca-hw-field{margin-bottom:14px}
.ca-hw-field label{display:block;font-weight:600;font-size:.9rem;margin-bottom:6px;color:#14232B}
.ca-hw-field input{width:100%;padding:12px 14px;border:1px solid #cdd8d6;border-radius:10px;
  font-size:1rem;font-family:inherit;color:#14232B;background:#fff}
.ca-hw-field input:focus{outline:none;border-color:#0C3B42;box-shadow:0 0 0 3px rgba(12,59,66,.12)}
.ca-hw-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:#0C3B42;color:#fff;border:0;border-radius:10px;padding:12px 20px;
  font-weight:700;font-size:.98rem;font-family:inherit;cursor:pointer;width:100%}
.ca-hw-btn:hover{background:#0f4650}
.ca-hw-btn:disabled{opacity:.6;cursor:default}
.ca-hw-btn.ghost{background:#fff;color:#0C3B42;border:1px solid #cdd8d6;width:auto;padding:12px 18px}
.ca-hw-btn.ghost:hover{border-color:#B0842F;background:#fff}
.ca-hw-fine{color:#5D6B6E;font-size:.82rem;line-height:1.5;margin:12px 0 0}
.ca-hw-msg{margin-top:14px;padding:12px 14px;border-radius:10px;font-size:.92rem;line-height:1.45}
.ca-hw-msg.ok{background:rgba(28,122,78,.09);color:#155e3c;border:1px solid rgba(28,122,78,.25)}
.ca-hw-msg.err{background:rgba(178,58,46,.08);color:#8c2c22;border:1px solid rgba(178,58,46,.25)}

.ca-hw-empty{color:#5D6B6E;text-align:center}

.ca-hw-list{display:flex;flex-direction:column;gap:12px;margin-bottom:22px}
.ca-hw-cred{display:flex;justify-content:space-between;align-items:stretch;gap:16px;
  background:#fff;border:1px solid #dce4e3;border-radius:14px;padding:18px 20px;
  border-left:4px solid #1C7A4E}
.ca-hw-cred.st-expired{border-left-color:#B0842F}
.ca-hw-cred.st-revoked{border-left-color:#B23A2E;opacity:.85}
.ca-hw-cred-link{text-decoration:none;color:inherit;align-items:center}
.ca-hw-cred-link:hover{border-color:#B0842F;box-shadow:0 6px 18px -12px rgba(8,30,34,.4)}
.ca-hw-kind{font-family:"IBM Plex Mono",monospace;text-transform:uppercase;letter-spacing:.12em;
  font-size:.68rem;color:#B0842F;margin-bottom:3px}
.ca-hw-type{font-family:"Archivo","IBM Plex Sans",sans-serif;font-weight:700;font-size:1.12rem;
  color:#14232B;line-height:1.25}
.ca-hw-meta{color:#5D6B6E;font-size:.86rem;margin-top:6px;display:flex;flex-wrap:wrap;gap:6px}
.ca-hw-cred-side{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:10px}
.ca-hw-badge{font-weight:700;font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;
  padding:5px 10px;border-radius:999px;white-space:nowrap}
.ca-hw-badge.b-valid{background:rgba(28,122,78,.12);color:#1C7A4E}
.ca-hw-badge.b-expired{background:rgba(176,132,47,.14);color:#8a6522}
.ca-hw-badge.b-revoked{background:rgba(178,58,46,.12);color:#B23A2E}
.ca-hw-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.ca-hw-a{font-size:.82rem;font-weight:600;color:#0C3B42;text-decoration:none;
  border:1px solid #dce4e3;border-radius:8px;padding:6px 10px;white-space:nowrap}
.ca-hw-a:hover{border-color:#0C3B42;background:#f3f6f5}

.ca-hw-share-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.ca-hw-share strong{font-family:"Archivo",sans-serif;font-size:1.05rem;color:#0C3B42}
.ca-hw-share-link{display:flex;gap:8px;margin-top:14px}
.ca-hw-share-link input{flex:1;padding:10px 12px;border:1px solid #cdd8d6;border-radius:9px;
  font-family:"IBM Plex Mono",monospace;font-size:.85rem;color:#14232B;background:#f8faf9}

/* toggle switch */
.ca-hw-switch{position:relative;display:inline-block;width:46px;height:26px;flex:0 0 auto}
.ca-hw-switch input{opacity:0;width:0;height:0;position:absolute}
.ca-hw-switch span{position:absolute;inset:0;background:#cdd8d6;border-radius:999px;transition:.2s;cursor:pointer}
.ca-hw-switch span::before{content:"";position:absolute;height:20px;width:20px;left:3px;top:3px;
  background:#fff;border-radius:50%;transition:.2s}
.ca-hw-switch input:checked+span{background:#1C7A4E}
.ca-hw-switch input:checked+span::before{transform:translateX(20px)}

@media(max-width:560px){
  .ca-hw-cred{flex-direction:column}
  .ca-hw-cred-side{flex-direction:row;align-items:center;justify-content:space-between}
  .ca-hw-cred-link{flex-direction:row;align-items:center}
}
