/* KumaAlert for Mac: customer area (/account/). Builds on /style.css tokens. */

.acct-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 1.6px; text-transform: uppercase; font-weight: 500;
  color: var(--accent-deep); background: var(--accent-glow);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 14px; margin-bottom: 18px;
}
.acct-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.acct-card {
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px 26px; margin-bottom: 16px;
}
.acct-card h2 { margin: 0 0 6px !important; font-size: 20px !important; }
.acct-card .lead { color: var(--mute); margin: 0 0 16px; font-size: 15px; }
.acct-card p:last-child { margin-bottom: 0; }

.acct-banner {
  border-radius: 14px; padding: 14px 18px; margin: 0 0 18px;
  font-size: 15px; font-weight: 600; line-height: 1.5;
  background: var(--accent-glow); color: var(--accent-deep);
  border: 1px solid rgba(15,143,86,0.18);
}
.acct-banner.warn { background: rgba(196,122,0,0.08); color: #8A5600; border-color: rgba(196,122,0,0.22); }
.acct-banner.bad { background: rgba(211,55,59,0.07); color: #A3262A; border-color: rgba(211,55,59,0.2); }

/* Buttons. .btn comes from style.css; these are the account variants. */
.acct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: none; cursor: pointer;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 14.5px; font-weight: 600;
  background: var(--ink); color: var(--paper) !important; text-decoration: none;
  transition: transform .15s ease, background .2s ease, opacity .2s ease;
}
.acct-btn:hover { background: #000; transform: translateY(-1px); opacity: 1 !important; }
.acct-btn:disabled { opacity: .5; cursor: default; transform: none; }
.acct-btn.ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line-strong); }
.acct-btn.ghost:hover { background: rgba(18,20,22,0.04); }
.acct-btn.small { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.acct-btn.danger { background: var(--down); }
.acct-btn.danger:hover { background: #B32A2E; }
.acct-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }

/* Signed-out */
ol.acct-steps { list-style: none !important; counter-reset: s; margin: 0 0 4px; padding: 0 !important; }
ol.acct-steps li { position: relative; padding: 6px 0 6px 40px; min-height: 30px; color: var(--ink-soft); font-size: 15.5px; }
ol.acct-steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.acct-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.acct-form input[type=email] {
  flex: 1 1 240px; min-width: 0; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  font: 500 15px 'Plus Jakarta Sans', system-ui, sans-serif;
}
.acct-form input[type=email]:focus { outline: 2px solid rgba(15,143,86,0.35); outline-offset: 1px; border-color: var(--accent); }
.acct-note { font-size: 14px; color: var(--mute); margin: 12px 0 0 !important; }
.acct-note.ok { color: var(--accent-deep); font-weight: 600; }

/* Licence card */
.lic-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lic-status {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase;
  background: var(--accent-glow); color: var(--accent-deep); border: 1px solid rgba(15,143,86,0.18);
}
.lic-status .pip { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lic-status.bad { background: rgba(211,55,59,0.07); color: #A3262A; border-color: rgba(211,55,59,0.2); }
.lic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lic-cell { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.lic-cell .l { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); }
.lic-cell .v { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 2px; }

/* Devices / orders lists */
ul.acct-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
ul.acct-list > li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--line); margin: 0 !important;
}
ul.acct-list > li:first-child { border-top: none; padding-top: 4px; }
.acct-item-main { min-width: 0; flex: 1 1 260px; }
.acct-item-title { font-weight: 700; color: var(--ink); font-size: 15.5px; overflow-wrap: anywhere; }
.acct-item-sub { font-size: 13.5px; color: var(--mute); overflow-wrap: anywhere; }
.acct-item-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--mute); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 8px;
}
.acct-links a { font-size: 14px; font-weight: 600; margin-left: 12px; }
.acct-empty { color: var(--mute); font-size: 15px; margin: 0 !important; }
.acct-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); }

.acct-notes {
  white-space: pre-line; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 4px;
  max-height: 260px; overflow-y: auto;
}
.acct-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; font-size: 14px; color: var(--mute); }
.acct-loading { color: var(--mute); font-size: 15px; }

@media (max-width: 600px) {
  .lic-grid { grid-template-columns: 1fr; }
  .acct-card { padding: 20px 18px; }
}
