body { padding-bottom: 60px; }
.spacer { width: 40px; }
.view { display: grid; gap: 14px; padding-top: 14px; animation: fadeIn .3s ease; }
.view[hidden] { display: none; }
body[data-view="loading"] .view { display: none; }

.view > .script { font-size: 52px; line-height: .8; color: var(--accent); margin-top: 6px; }
.view h1 { font-size: clamp(34px, 9.5vw, 50px); font-weight: 300; line-height: 1; overflow-wrap: anywhere; }
.view h2.sub { font-size: 28px; font-weight: 300; margin-top: 6px; }
.lead { color: var(--ink-soft); font-weight: 300; line-height: 1.6; }
.note { color: var(--ink-soft); font-size: 13px; font-weight: 300; line-height: 1.6; }
.hint { color: var(--ink-soft); font-size: 13px; font-weight: 300; }
.err { color: #8b2c2a; font-size: 14px; min-height: 0; }
.err:empty { display: none; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.55); margin-top: 6px; }
.tab { height: 42px; border-radius: 999px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.tab.on { background: var(--ink); color: var(--bg); }

form { display: grid; gap: 10px; }
form[hidden] { display: none; }
.lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.pw { position: relative; }
.pw .field { padding-right: 64px; }
.show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: 10px; }
.linkbtn { justify-self: center; font-size: 14px; color: var(--ink-soft); text-decoration: underline; padding: 8px; }
.linkbtn[hidden] { display: none; }
.code-in { text-transform: uppercase; letter-spacing: .08em; }

/* código de recuperación */
.codebox {
  padding: 22px 16px;
  border-radius: 24px;
  background: #2a1416;
  color: #f2c14e;
  font-family: 'Courier New', monospace;
  font-size: clamp(19px, 5.4vw, 26px);
  letter-spacing: .08em;
  text-align: center;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin-top: 1px; }

/* con sesión */
.card { position: relative; padding: 26px 22px 22px; border-radius: 32px; background: #8b2c2a; color: #f6d6e3; overflow: hidden; }
.card .script { position: absolute; top: 26px; right: 20px; color: #f2c14e; font-size: 40px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: #f2c14e; color: #2a1416; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; text-transform: uppercase; margin-bottom: 16px; }
.mail { text-transform: none; font-size: clamp(16px, 4.6vw, 24px) !important; font-weight: 400 !important; }
.status { margin-top: 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.status.offline, .status.error { color: #f2c14e; opacity: 1; }
.count { font-size: 13px; opacity: .7; margin-top: 4px; }

.list { background: rgba(255,255,255,.55); border-radius: 24px; overflow: hidden; margin-top: 8px; }
.item { display: block; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item > summary, .item.link { display: grid; grid-template-columns: 1fr 16px; gap: 14px; align-items: center; width: 100%; padding: 16px 18px; text-align: left; cursor: pointer; list-style: none; }
.item > summary::-webkit-details-marker { display: none; }
.txt { display: grid; min-width: 0; }
.txt b { font-weight: 500; font-size: 15px; }
.txt small { color: var(--ink-soft); font-size: 13px; font-weight: 300; }
.chev { width: 9px; height: 9px; border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: rotate(-45deg); transition: transform .2s; }
details[open] > summary .chev { transform: rotate(45deg); }
.panel { display: grid; gap: 10px; padding: 0 18px 20px; animation: fadeIn .25s ease; }
.panel .pill { height: 46px; }

.danger { margin-top: 18px; }
.danger summary { cursor: pointer; font-size: 13px; color: var(--ink-soft); padding: 10px 6px; }
.danger .panel { padding: 6px 6px 0; }
.danger-btn { background: #8b2c2a; color: #fff; }
