/* profile.css — TW Intel console profile modal + eye toggles.
 * Reuses the app.css design tokens (navy, gold, ember, focus). Falls back to
 * literal values if loaded standalone (login page). */

.pw-wrap { position: relative; display: block; }
.pw-wrap > input { width: 100%; padding-right: 42px; }
.pw-eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 30px; height: 30px; padding: 0; border: 0; background: transparent;
  color: var(--muted, #5D6B80); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 6px;
}
.pw-eye:hover { color: var(--navy, #12233F); background: var(--paper-2, #EDF0F4); }
.pw-eye:focus-visible { outline: 2px solid var(--focus, #2E4A78); outline-offset: 1px; }
.pw-eye svg { width: 18px; height: 18px; }
.pw-eye.on .slash { display: inline !important; }

/* modal */
.pf-modal {
  position: fixed; inset: 0; z-index: 1200; display: none;
  background: rgba(11, 23, 40, .46); align-items: center; justify-content: center; padding: 24px;
}
.pf-modal.show { display: flex; }
.pf-sheet {
  width: 100%; max-width: 460px; background: var(--surface, #fff);
  border: 1px solid var(--line, #DCE0E6); border-radius: 10px;
  box-shadow: 0 24px 60px -28px rgba(11, 23, 40, .34); overflow: hidden;
  max-height: 90vh; overflow-y: auto;
}
.pf-hd {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--navy-deep, #0B1728), var(--navy, #12233F));
  color: #fff; padding: 16px 20px; border-bottom: 3px solid var(--gold, #D9B166);
}
.pf-hd h3 { margin: 0; font-family: var(--serif, 'Source Serif 4', Georgia, serif); font-size: 18px; font-weight: 600; }
.pf-x { border: 0; background: transparent; color: #C6D2E4; font-size: 18px; cursor: pointer; line-height: 1; padding: 4px; border-radius: 6px; }
.pf-x:hover { color: #fff; }

.pf-grid { padding: 18px 20px 6px; }
.pf-row { display: grid; grid-template-columns: 130px 1fr; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft, #EAEDF1); }
.pf-row:last-child { border-bottom: 0; }
.pf-k { font-size: 12px; font-weight: 600; color: var(--muted, #5D6B80); text-transform: uppercase; letter-spacing: .5px; }
.pf-v { font-size: 14px; color: var(--ink, #16202E); text-align: left; word-break: break-word; }

.pf-sec {
  margin: 8px 20px 0; padding: 14px 0 8px; border-top: 1px solid var(--line, #DCE0E6);
  font-size: 12px; font-weight: 700; color: var(--navy, #12233F); text-transform: uppercase; letter-spacing: .6px;
}
.pf-pw { padding: 4px 20px 20px; }
.pf-ff { margin-bottom: 14px; }
.pf-ff label { display: block; font-size: 12px; font-weight: 600; color: var(--muted, #5D6B80); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 6px; }
.pf-ff input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line, #DCE0E6); border-radius: 6px;
  font-family: inherit; font-size: 14px; color: var(--ink, #16202E); background: #FBFCFD; outline: none;
}
.pf-ff input:focus { border-color: var(--focus, #2E4A78); box-shadow: 0 0 0 3px var(--focus-ring, rgba(46, 74, 120, .16)); background: #fff; }

.pf-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.pf-otp-note { font-size: 13px; color: var(--muted, #5D6B80); line-height: 1.5; margin-bottom: 14px; }

.pf-msg { margin: 4px 0 12px; padding: 9px 12px; border-radius: 6px; font-size: 13px; }
.pf-msg.err { background: var(--ember-soft, #F6E4DD); border: 1px solid #E7BDAF; color: #8E3113; }
.pf-msg.ok { background: #E3F1E6; border: 1px solid #BFE0C6; color: #256A38; }
