/* nola-account: Claude Design "Nola Kids v2" screens. Loaded after nola.css.
 * Login/OTP/signup (r18, r26), account shell and overview (r19, r22), wallet (r20), referrals (r21),
 * settings and children (r26), addresses (r27), and the remaining account lists.
 * Rules are scoped to .nk-account-page, .nk-auth-page and .nk-form-shell-page. */

/* Shared helpers */
:is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .nk-show-mobile { display: none !important; }
:is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .nk-btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
:is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .nk-btn-dark { border-color: var(--ink); background: var(--ink); color: var(--bg); }
:is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .nk-btn-dark:hover { border-color: var(--btn); background: var(--btn); color: var(--on-btn); }
:is(.nk-account-page, .nk-form-shell-page) .nk-btn-danger { border-color: var(--red); background: var(--red); color: #fff; }
:is(.nk-account-page, .nk-form-shell-page) .nk-pill-xs { padding: 2px 9px; font-size: 12px; }
:is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .nk-muted-text { font-size: 14px; font-weight: 600; line-height: 1.9; color: var(--muted); }
.nk-account-page .nk-notice { line-height: 1.9; }
.nk-account-page .nk-mono, .nk-account-page .nk-order-number { font-family: ui-monospace, 'SFMono-Regular', Menlo, 'Courier New', monospace; }
.nk-account-page .nk-ok-text { color: var(--green); }
.nk-account-page .nk-nowrap { white-space: nowrap; }
:is(.nk-account-page, .nk-form-shell-page) .nk-avatar {
  display: flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; overflow: hidden;
  border-radius: 999px; background: var(--soft); color: var(--accent-dark); font-size: 21px; font-weight: 600; line-height: 1;
}
:is(.nk-account-page, .nk-form-shell-page) .nk-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nk-account-page .nk-avatar.is-sm { width: 44px; height: 44px; font-size: 17px; }
:is(.nk-account-page, .nk-form-shell-page) .nk-avatar.is-lg { width: 76px; height: 76px; font-size: 28px; }
.nk-account-page .nk-avatar.is-tint { background: var(--tint); }
.nk-account-page .nk-status {
  display: inline-flex; align-items: center; flex: none; padding: 6px 14px; border-radius: 999px; background: var(--tint);
  color: var(--accent-dark); font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.nk-account-page .nk-status.is-done { background: color-mix(in oklab, var(--green) 13%, var(--surface)); color: var(--green); }
.nk-account-page .nk-status.is-returned { background: color-mix(in oklab, var(--red) 10%, var(--surface)); color: var(--red); }
.nk-account-page .nk-status.is-muted { background: var(--soft); color: var(--muted); }

/* Account shell */
.nk-account-page main > .messages { max-width: 1440px; padding-inline: var(--gutter); }
.nk-account { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1440px; margin: 0 auto; padding: 32px var(--gutter) 56px; }
.nk-account-nav {
  position: sticky; top: 100px; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 22px;
  border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); background: var(--surface);
}
.nk-account-profile { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nk-account-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nk-account-who b { overflow: hidden; font-size: 17px; font-weight: 600; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.nk-account-who span { font-size: 14px; font-weight: 600; color: var(--muted); text-align: right; }
.nk-wallet-chip { display: none; }
.nk-account-nav .account-menu { display: flex; flex-direction: column; gap: 2px; }
.nk-account-nav .account-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 14px;
  border-radius: 12px; color: var(--ink); font-size: 14px; font-weight: 600; transition: background-color .15s ease-out;
}
.nk-account-nav .account-menu a:hover { background: var(--soft); }
.nk-account-nav .account-menu a[aria-current] { background: var(--tint); color: var(--accent-dark); }
.nk-nav-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--accent-dark); color: var(--on-accent); font-size: 12px; font-weight: 600;
}
.nk-nav-meta { display: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-nav-group { margin: 10px 14px 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.nk-logout { margin: 8px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.nk-logout button {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px;
  background: none; color: var(--red); font: 600 14px/1.4 var(--font); text-align: right; cursor: pointer;
}
.nk-logout button:hover { background: color-mix(in oklab, var(--red) 8%, var(--surface)); }
.nk-account-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.nk-account-page .nk-account-head { display: flex; flex-direction: column; gap: 6px; }
.nk-account-page .nk-account-head.is-split { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.nk-account-page .nk-account-head p { max-width: 720px; font-size: 14px; font-weight: 600; line-height: 1.9; color: var(--muted); }
.nk-account-page .nk-account-head p a { color: var(--accent-dark); }
:is(.nk-account-page, .nk-form-shell-page) .nk-account-title { font-size: 28px; font-weight: 600; line-height: 1.4; }
.nk-account-page .nk-panel { overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); background: var(--surface); }
.nk-account-page .nk-panel-pad { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; }
.nk-account-page .nk-panel h2 { font-size: 17px; font-weight: 600; line-height: 1.5; }
.nk-account-page .nk-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.nk-account-page .nk-panel-head.is-plain { padding: 0; border: 0; }
.nk-account-page .nk-panel-head > span { display: flex; flex-direction: column; gap: 3px; }
.nk-account-page .nk-panel-head small { font-size: 14px; font-weight: 600; line-height: 1.7; color: var(--muted); }
.nk-account-page .nk-panel-head small a { color: var(--accent-dark); }

/* Overview */
.nk-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nk-stat-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nk-stat { display: flex; flex-direction: column; gap: 5px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); }
a.nk-stat:hover { border-color: var(--accent); }
.nk-stat > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-stat b { font-size: 21px; font-weight: 600; line-height: 1.5; }
.nk-stat small { font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-stat small.is-accent { color: var(--accent-dark); }
.nk-account-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.nk-mini-address { display: flex; flex-direction: column; gap: 4px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.nk-mini-address.is-default { border: 1.5px solid var(--accent); }
.nk-mini-address > span:first-child { display: flex; align-items: center; gap: 8px; }
.nk-mini-address b { font-size: 14px; font-weight: 600; }
.nk-mini-address > span:last-child { font-size: 14px; font-weight: 600; line-height: 1.8; color: var(--muted); }
.nk-ledger-line { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.7; }
.nk-ledger-line:last-child { padding-bottom: 0; border-bottom: 0; }
.nk-ledger-line b { flex: none; font-weight: 600; }
.nk-ledger-line.is-credit, .nk-ledger-line.is-credit b { color: var(--green); }

/* Orders (row on desktop, card on phones) */
.nk-order-rows, .nk-order-list { display: flex; flex-direction: column; }
.nk-order-list { overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); background: var(--surface); }
.nk-order-card { padding: 16px 24px; border-bottom: 1px solid var(--line); }
.nk-order-card:last-child { border-bottom: 0; }
.nk-order-head { display: flex; align-items: center; gap: 16px; }
.nk-order-number { width: 120px; flex: none; color: var(--ink); font-size: 14px; font-weight: 600; text-align: right; }
.nk-order-meta { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-order-total { width: 150px; flex: none; font-size: 14px; font-weight: 600; text-align: left; white-space: nowrap; }
.nk-order-total span { font-weight: 600; }
.nk-order-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.nk-order-progress { margin: 8px 136px 0 0; max-width: 420px; }
.nk-order-track { position: relative; display: block; height: 5px; border-radius: 999px; background: var(--soft); }
.nk-order-fill { position: absolute; top: 0; right: 0; bottom: 0; width: 16%; border-radius: 999px; background: var(--accent); }
.nk-order-fill.is-confirmed { width: 40%; }
.nk-order-fill.is-shipped { width: 66%; }
.nk-order-progress ol { display: flex; justify-content: space-between; margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.nk-order-progress li[aria-current] { color: var(--accent-dark); }
.nk-order-actions { display: flex; gap: 8px; margin: 10px 136px 0 0; }
.nk-order-actions form { margin: 0; }
.nk-order-actions .nk-btn { min-height: 40px; padding: 0 18px; background: var(--bg); font-size: 14px; }
.nk-segment-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nk-segment-tabs::-webkit-scrollbar { display: none; }
.nk-segment-tabs a {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 40px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600;
}
.nk-segment-tabs a[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--bg); }

/* Wallet */
.nk-wallet { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
.nk-wallet-side { display: flex; flex-direction: column; gap: 14px; }
.nk-wallet-card {
  display: flex; flex-direction: column; gap: 24px; padding: 26px; border-radius: calc(var(--r) + 8px); color: var(--on-accent);
  background: linear-gradient(145deg, color-mix(in oklab, var(--ink) 80%, var(--accent)), var(--ink));
}
.nk-wallet-card-head, .nk-wallet-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nk-wallet-card-head b { font-size: 17px; font-weight: 600; }
.nk-wallet-mark { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; background: color-mix(in oklab, var(--on-accent) 22%, transparent); font: 400 17px/1 var(--lat); }
.nk-wallet-balance { display: flex; flex-direction: column; gap: 4px; }
.nk-wallet-balance > span { font-size: 14px; font-weight: 600; opacity: .85; }
.nk-wallet-balance strong { font-size: 40px; font-weight: 600; line-height: 1.3; }
.nk-wallet-balance small { font-size: 17px; font-weight: 600; opacity: .85; }
.nk-wallet-card-foot { flex-wrap: wrap; font-size: 14px; font-weight: 600; opacity: .9; }
.nk-wallet-quick { display: none; gap: 8px; }
.nk-wallet-quick a { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; background: color-mix(in oklab, var(--on-accent) 22%, transparent); color: var(--on-accent); font-size: 14px; font-weight: 600; }
.nk-account-page .nk-topup { border-radius: var(--r); padding: 18px 20px; }
.nk-account-page .nk-topup h2 { font-size: 14px; }
.nk-topup-presets { display: flex; gap: 8px; }
.nk-topup-presets .nk-chip { flex: 1; justify-content: center; min-height: 44px; cursor: pointer; font-family: var(--font); }
.nk-topup .nk-btn-dark { min-height: 48px; font-size: 14px; }
.nk-transactions .nk-panel-head { padding: 17px 22px; }
.nk-transaction { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); color: var(--ink); }
.nk-transaction:last-of-type { border-bottom: 0; }
a.nk-transaction:hover { background: var(--bg); }
.nk-tx-sign { display: flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 999px; background: var(--soft); color: var(--muted); font-weight: 600; }
.nk-tx-sign.is-credit { background: color-mix(in oklab, var(--green) 13%, var(--surface)); color: var(--green); }
.nk-tx-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.nk-tx-text b, .nk-tx-amount b { font-size: 14px; font-weight: 600; line-height: 1.6; }
.nk-tx-text small, .nk-tx-amount small { font-size: 12px; font-weight: 600; color: var(--muted); }
.nk-tx-amount { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: left; }
.nk-tx-amount.is-credit b { color: var(--green); }
.nk-transactions .nk-pagination { padding: 12px 0 16px; }

/* Referrals */
.nk-referral { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.nk-referral-main { display: flex; flex-direction: column; gap: 24px; }
.nk-referral-intro { display: flex; flex-direction: column; gap: 8px; }
.nk-eyebrow { font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.nk-referral-intro h1 { font-size: 40px; font-weight: 600; line-height: 1.35; }
.nk-referral-intro p { font-size: 17px; line-height: 2; color: var(--muted); }
.nk-referral-code { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 18px 22px; border: 1.5px dashed var(--accent); border-radius: var(--r); background: var(--surface); }
.nk-referral-code-text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 180px; }
.nk-referral-code-text label, .nk-referral-code-text > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.nk-referral-code-text input, .nk-referral-code-text b {
  min-height: 0; height: auto; padding: 0; border: 0; background: none; color: var(--ink);
  font: 600 21px/1.5 ui-monospace, 'SFMono-Regular', Menlo, 'Courier New', monospace; letter-spacing: 3px; text-align: right;
}
.nk-referral-code-text b { font-family: var(--font); letter-spacing: normal; font-size: 17px; }
.nk-referral-code .nk-btn { flex: none; font-size: 14px; white-space: nowrap; }
.nk-referral-code .nk-btn-outline { background: var(--bg); }
.nk-referral-link { display: flex; flex-direction: column; gap: 6px; }
.nk-referral-link label { font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-referral-link > div { display: flex; gap: 8px; }
.nk-referral-link input { min-height: 44px; height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
.nk-referral-link .nk-btn { flex: none; font-size: 14px; }
.nk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.nk-steps li { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); counter-increment: step; }
.nk-steps li::before { content: counter(step, persian); font-size: 17px; font-weight: 600; color: var(--accent-dark); }
.nk-steps b { font-size: 14px; font-weight: 600; }
.nk-steps span { font-size: 14px; font-weight: 600; line-height: 1.8; color: var(--muted); }
.nk-invitations .nk-tint-pill { flex: none; }
.nk-invite { display: flex; align-items: center; gap: 13px; padding: 15px 24px; border-bottom: 1px solid var(--line); }
.nk-invite:last-child { border-bottom: 0; }
.nk-invite .nk-avatar { background: var(--tint-strong); }
.nk-invite.is-pending .nk-avatar { background: var(--soft); color: var(--muted); }
.nk-invite-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.nk-invite-text b { font-size: 14px; font-weight: 600; }
.nk-invite-text small { font-size: 12px; font-weight: 600; color: var(--muted); }
.nk-invite-reward { flex: none; font-size: 14px; font-weight: 600; color: var(--green); }

/* Addresses */
.nk-address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.nk-address { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.nk-address.is-default { padding: 17px 19px; border: 2px solid var(--accent); }
.nk-address-title { display: flex; align-items: center; gap: 8px; }
.nk-address-title h2 { font-size: 17px; font-weight: 600; line-height: 1.5; }
.nk-address > p { font-size: 14px; font-weight: 600; line-height: 1.9; color: var(--muted); }
.nk-address > p.nk-address-recipient { color: var(--ink); }
.nk-address-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-top: 2px; padding-top: 4px; border-top: 1px dashed var(--line); }
.nk-address-actions a, .nk-address-actions button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--accent-dark); font: 600 14px/1.4 var(--font); cursor: pointer;
}
.nk-address-actions form { margin: 0; }
.nk-address-actions .is-danger { margin-right: auto; color: var(--red); }
.nk-address-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px;
  border: 1px dashed var(--line); border-radius: var(--r); color: var(--accent-dark); font-size: 14px; font-weight: 600;
}
.nk-address-add > span { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: var(--tint); font-size: 21px; }
.nk-address-add:hover { border-color: var(--accent); background: var(--surface); }
.nk-account-bar .nk-bar-add { font-size: 21px; font-weight: 600; color: var(--accent-dark); }
.nk-page-bar-spacer { width: 44px; flex: none; }

/* Forms (profile, address, child, generic) */
:is(.nk-account-page, .nk-form-shell-page) .nk-form-page { display: flex; flex-direction: column; gap: 24px; }
:is(.nk-account-page, .nk-form-shell-page) .nk-form-card {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); background: var(--surface);
}
:is(.nk-account-page, .nk-form-shell-page) .nk-form-card > :is(h2, .form-errors, .nk-form-actions, .form-field:has(textarea), .checkbox-field, .form-field:has(input[type=file]), .form-field:has(.radio-group), p) { grid-column: 1 / -1; }
:is(.nk-account-page, .nk-form-shell-page) .nk-form-card > h2 { font-size: 17px; font-weight: 600; }
/* Short forms (one or two fields) read better in a single column. */
:is(.nk-account-page, .nk-form-shell-page) .nk-form-card:not(:has(> .form-field ~ .form-field ~ .form-field)) { grid-template-columns: minmax(0, 1fr); }
:is(.nk-account-page, .nk-form-shell-page) .nk-form-card .form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
:is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .form-field > label,
:is(.nk-account-page, .nk-form-shell-page) .radio-group legend { font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--muted); }
:is(.nk-account-page, .nk-form-shell-page) .form-field :is(input:not([type=checkbox], [type=radio], [type=file]), select) {
  min-height: 48px; height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); font-size: 14px; font-weight: 600;
}
:is(.nk-account-page, .nk-form-shell-page) .form-field textarea { min-height: 96px; padding: 12px 15px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.9; }
:is(.nk-account-page, .nk-form-shell-page) .form-field :is(input, select, textarea):focus { border-color: var(--accent); outline: 2px solid color-mix(in oklab, var(--accent) 35%, transparent); outline-offset: 0; }
:is(.nk-account-page, .nk-form-shell-page) .form-field input:disabled { background: var(--soft); color: var(--ink); opacity: 1; cursor: not-allowed; }
:is(.nk-account-page, .nk-form-shell-page) .form-field .help-text { font-size: 12px; font-weight: 600; line-height: 1.7; color: var(--muted); }
:is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .field-errors, :is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .form-errors { font-size: 14px; font-weight: 600; line-height: 1.8; color: var(--red); }
:is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) :is(.field-errors, .form-errors) ul { margin: 0; padding: 0; list-style: none; }
:is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .has-error :is(input, select, textarea) { border-color: var(--red); }
:is(.nk-account-page, .nk-form-shell-page) .required { color: var(--red); }
:is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .checkbox-field { position: relative; display: flex; flex-direction: row !important; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
:is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .checkbox-field input[type=checkbox] {
  flex: none; width: 20px; height: 20px; min-height: 20px; margin: 4px 0 0; border-radius: 6px; accent-color: var(--accent-dark);
}
:is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .checkbox-field > label { flex: 1; min-width: 0; color: var(--muted); cursor: pointer; }
:is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .checkbox-field > :is(.field-errors, .help-text) { flex-basis: 100%; }
:is(.nk-account-page, .nk-form-shell-page) .radio-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
:is(.nk-account-page, .nk-form-shell-page) .radio-group legend { width: 100%; margin-bottom: 6px; }
:is(.nk-account-page, .nk-form-shell-page) .radio-group label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; }
:is(.nk-account-page, .nk-form-shell-page) .radio-group label:has(input:checked) { border-color: var(--accent-dark); background: var(--tint); color: var(--accent-dark); }
:is(.nk-account-page, .nk-form-shell-page) .radio-group > div { display: contents; }
:is(.nk-account-page, .nk-form-shell-page) .form-field input[type=file] { font-size: 14px; }
:is(.nk-account-page, .nk-form-shell-page) .form-field input[type=file]::file-selector-button {
  min-height: 40px; margin-inline-end: 12px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: 600 14px var(--font); cursor: pointer;
}
:is(.nk-account-page, .nk-form-shell-page) .nk-form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.nk-form-shell { max-width: 720px; margin: 0 auto; padding: 32px var(--gutter) 56px; }
/* Profile photo row, as in the design's personal-info card */
.nk-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nk-form-profile .form-field.nk-avatar-field { order: -1; }
.nk-form-profile .form-errors { order: -2; }
.nk-avatar-field:focus-within label.nk-btn { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.nk-avatar-field { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 10px 24px !important; }
.nk-avatar-field > label:not(.nk-btn) { flex-basis: 100%; order: -2; }
.nk-avatar-field > .nk-avatar-preview { order: -1; }
.nk-avatar-field > label.nk-btn { flex: none; }
.nk-avatar-field > :not(label, .nk-avatar-preview, input) { flex: 1; min-width: 200px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-avatar-field a { color: var(--accent-dark); }
/* Address form: grouped like the design — map, province/city, street, plate/unit/postal code, label, recipient */
.nk-form-address .nk-form-card { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nk-form-address .nk-form-card > * { grid-column: 1 / -1; }
.nk-form-address .form-field:has(#id_province) { order: 2; grid-column: span 3; }
.nk-form-address .form-field:has(#id_city) { order: 3; grid-column: span 3; }
.nk-form-address .form-field:has(#id_street) { order: 4; }
.nk-form-address .form-field:has(#id_building) { order: 5; grid-column: span 2; }
.nk-form-address .form-field:has(#id_unit) { order: 6; grid-column: span 2; }
.nk-form-address .form-field:has(#id_postal_code) { order: 7; grid-column: span 2; }
.nk-form-address .form-field:has(#id_label) { order: 8; }
.nk-form-address .form-field:has(#id_recipient) { order: 9; grid-column: span 3; }
.nk-form-address .form-field:has(#id_phone) { order: 10; grid-column: span 3; }
.nk-form-address .form-field:has(#id_latitude) { order: 11; grid-column: span 3; }
.nk-form-address .form-field:has(#id_longitude) { order: 12; grid-column: span 3; }
.nk-form-address .form-field:has(#id_is_default) { order: 13; }
.nk-form-address .form-errors { order: 0; }
.nk-form-address .nk-form-card > button[type=button], .nk-form-address .map-tools, .nk-form-address .address-map { order: 1; }
.nk-form-address .nk-form-card > button[type=button] {
  min-height: 44px; border: 1px dashed var(--accent); border-radius: 12px; background: var(--tint); color: var(--accent-dark); font: 600 14px/1.4 var(--font);
}
.nk-form-address .address-map { height: 240px; border-radius: 14px; }
.nk-form-address .map-tools { margin: 0; }
.nk-form-address .nk-form-actions { order: 20; }
.nk-form-address .street-field textarea, .nk-form-address #id_street { min-height: 48px; height: 48px; resize: none; }
.nk-label-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.nk-label-chips .nk-chip { min-height: 40px; padding: 0 16px; cursor: pointer; font-family: var(--font); }
.nk-label-chips .nk-chip[aria-pressed="true"] { border-color: var(--btn); background: var(--btn); color: var(--on-btn); }
/* Switch look for single on/off checkboxes in account forms */
:is(.nk-account-page, .nk-form-shell-page) .nk-form-card .checkbox-field:has(#id_is_default) { flex-direction: row-reverse !important; justify-content: space-between; align-items: center; min-height: 44px; }
:is(.nk-account-page, .nk-form-shell-page) .nk-form-card .checkbox-field:has(#id_is_default) > label { color: var(--ink); }
.nk-account-page .checkbox-field #id_is_default, .nk-account-page .nk-switch-line input[type=checkbox] {
  position: relative; flex: none; width: 44px; height: 26px; min-height: 26px; margin: 0; border-radius: 999px; background: var(--line);
  appearance: none; -webkit-appearance: none; cursor: pointer; transition: background-color .15s ease-out;
}
.nk-account-page .checkbox-field #id_is_default::after, .nk-account-page .nk-switch-line input[type=checkbox]::after {
  content: ''; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; transition: transform .15s ease-out;
}
.nk-account-page .checkbox-field #id_is_default:checked, .nk-account-page .nk-switch-line input[type=checkbox]:checked { background: var(--btn); }
.nk-account-page .checkbox-field #id_is_default:checked::after, .nk-account-page .nk-switch-line input[type=checkbox]:checked::after { transform: translateX(-18px); }

/* Settings */
.nk-profile-row { display: flex; align-items: center; gap: 24px; }
.nk-profile-text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.nk-profile-text b { font-size: 17px; font-weight: 600; }
.nk-profile-text > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-child-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nk-child { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.nk-child > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.nk-child-text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.nk-child-text :is(b, h2) { font-size: 14px; font-weight: 600; line-height: 1.6; }
.nk-child-text small { font-size: 14px; font-weight: 600; line-height: 1.7; color: var(--muted); }
.nk-settings-subtitle { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-switch-list { display: flex; flex-direction: column; }
.nk-switch-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.nk-switch-list .nk-switch-line:last-child { border-bottom: 0; }
.nk-switch-line > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.nk-switch-line b { font-size: 14px; font-weight: 600; }
.nk-switch-line small { font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-switch-line .nk-switch { display: none; }
.nk-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.nk-inline-actions .nk-link-button { color: var(--muted); font-size: 14px; font-weight: 600; }
.nk-settings-links { display: flex; flex-direction: column; }
.nk-settings-links .nk-group-label { padding: 16px 20px 6px; font-size: 14px; color: var(--muted); }
.nk-settings-links > :is(a, button) {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 12px 20px;
  border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: right; cursor: pointer;
}
.nk-settings-links > :is(a, button):hover { background: var(--bg); }
.nk-settings-links > :is(a, button) > span { display: flex; flex-direction: column; gap: 2px; }
.nk-settings-links b { font-size: 14px; font-weight: 600; }
.nk-settings-links small { font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-settings-links .is-danger b { color: var(--red); }
.nk-settings-links .icon, .nk-list-row.is-link > .icon { flex: none; width: 16px; height: 16px; color: var(--muted); transform: scaleX(-1); }

/* Children */
.nk-child-grid.is-roomy { gap: 14px; }
.nk-child-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); background: var(--surface); }
.nk-child-card .nk-child { padding: 0; border: 0; background: none; }
.nk-child-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.nk-child-actions > a:not(.nk-btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.nk-child-actions .is-danger { margin-right: auto; color: var(--red) !important; }
.nk-child-history { border-top: 1px dashed var(--line); }
.nk-child-history summary { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.nk-child-history ul { margin: 0; padding: 0 0 4px; list-style: none; }
.nk-child-history li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-child-history li b { color: var(--ink); font-weight: 600; }
.nk-form-child { margin-top: 0; }

/* Lists: notifications, restocks, support, withdrawals */
.nk-list-panel { display: flex; flex-direction: column; }
.nk-list-row { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--line); color: var(--ink); }
.nk-list-row:last-child { border-bottom: 0; }
.nk-list-row.is-link:hover { background: var(--bg); }
.nk-list-text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.nk-list-text :is(h2, h3) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px !important; font-weight: 600; line-height: 1.7; }
.nk-list-text h2 a { color: var(--ink); }
.nk-list-text p { font-size: 14px; font-weight: 600; line-height: 1.9; color: var(--muted); }
.nk-list-text time { font-size: 12px; font-weight: 600; color: var(--muted); }
.nk-list-text .nk-status { align-self: flex-start; padding: 4px 12px; font-size: 12px; }
.nk-list-dot { flex: none; align-self: flex-start; width: 8px; height: 8px; margin-top: 10px; border-radius: 999px; background: transparent; }
.nk-list-row.is-unread .nk-list-dot { background: var(--accent-dark); }
.nk-list-row form { margin: 0; }
.nk-list-thumb { flex: none; width: 52px; height: 62px; border-radius: 10px; background: var(--soft); object-fit: cover; }
.nk-list-empty { padding: 16px 24px; }
.nk-empty.is-compact { padding: 24px; }
.nk-thread { display: flex; flex-direction: column; gap: 10px; }
.nk-bubble { display: flex; flex-direction: column; gap: 4px; max-width: 78%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: var(--surface); }
.nk-bubble.is-staff { align-self: flex-end; border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); border-radius: 18px 18px 6px 18px; background: var(--tint); }
.nk-bubble b { font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.nk-bubble p { font-size: 14px; font-weight: 600; line-height: 1.9; }
.nk-bubble time { font-size: 12px; font-weight: 600; color: var(--muted); }
.nk-account-page .nk-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.nk-account-page .nk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nk-account-page .nk-table :is(th, td) { padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 600; text-align: right; white-space: nowrap; }
.nk-account-page .nk-table th { background: var(--bg); color: var(--muted); }
.nk-account-page .nk-table tr:last-child td { border-bottom: 0; }
.nk-confirm { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 520px; margin: 0 auto; padding: 32px 24px; border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); background: var(--surface); text-align: center; }
.nk-confirm h1 { font-size: 21px; font-weight: 600; }
.nk-confirm p { font-size: 14px; font-weight: 600; line-height: 1.9; color: var(--muted); }
.nk-confirm .nk-empty-icon.is-danger { width: 72px; height: 72px; background: color-mix(in oklab, var(--red) 10%, var(--surface)); color: var(--red); }
.nk-confirm form { margin: 0; }

/* Auth: login, OTP and signup */
.nk-auth-page .nk-footer { margin-top: 0; }
.nk-auth {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 640px; max-width: 1440px; margin: 32px auto 56px;
  overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--r) + 8px); background: var(--bg);
}
.nk-auth-panel { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 60px 72px; }
.nk-auth-panel.is-compact { gap: 16px; padding: 52px 72px; }
.nk-auth-brand { display: flex; align-items: center; align-self: flex-start; gap: 11px; color: var(--ink); }
.nk-auth-brand .nk-monogram { width: 44px; height: 44px; font-size: 21px; }
.nk-auth-brand b { font: 400 17px/1 var(--lat); letter-spacing: .2em; }
.nk-auth-intro { display: flex; flex-direction: column; gap: 8px; }
.nk-auth-intro h1 { font-size: 28px; font-weight: 600; line-height: 1.4; }
.nk-auth-intro p { font-size: 17px; line-height: 1.9; color: var(--muted); }
.nk-auth-panel.is-compact .nk-auth-intro p { font-size: 14px; }
.nk-auth-intro p a { color: var(--accent-dark); font-weight: 600; }
.nk-auth-form { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; border: 0; background: none; }
.nk-auth-form .form-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.nk-auth-page .nk-auth-form .form-field > label { color: var(--ink); }
.nk-auth-form .form-field input:not([type=checkbox]) {
  min-height: 56px; height: 56px; padding: 0 18px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface);
  color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: 1px;
}
.nk-auth-form .form-field input:not([type=checkbox]):focus { border-color: var(--accent); outline: none; }
.nk-auth-panel.is-compact .form-field > label { color: var(--muted); }
.nk-auth-panel.is-compact .form-field input:not([type=checkbox]) { min-height: 48px; height: 48px; padding: 0 15px; border-width: 1px; border-radius: 12px; font-size: 14px; letter-spacing: normal; }
.nk-auth-submit { width: 100%; min-height: 54px; }
.nk-auth-note, .nk-auth-switch { font-size: 14px; font-weight: 600; line-height: 1.9; color: var(--muted); }
.nk-auth-note a, .nk-auth-switch a { color: var(--accent-dark); }
.nk-auth-switch, .nk-auth-note.is-center { text-align: center; }
.nk-auth-art { position: relative; min-height: 100%; background: var(--soft); }
.nk-auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nk-auth-back { display: none !important; }
/* One-time code boxes mirror a single real input */
.nk-otp-boxes { position: relative; display: flex; justify-content: center; gap: 10px; padding: 8px 0; direction: ltr; cursor: text; }
.nk-otp-box {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 60px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); font-size: 21px; font-weight: 600;
}
.nk-otp-box:not(.is-filled) { background: var(--bg); }
.nk-otp-box.is-active { border: 2px solid var(--accent); background: var(--surface); }
.nk-otp-box.is-active:not(.is-filled)::after { content: ''; width: 2px; height: 24px; background: var(--accent); animation: nk-caret 1s steps(1) infinite; }
@keyframes nk-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nk-otp-box.is-active::after { animation: none; } }
.nk-auth-form .nk-otp-boxes input.otp-input {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; background: transparent;
  color: transparent; caret-color: transparent; opacity: 0.01; font-size: 16px; letter-spacing: 0; cursor: text;
}
.nk-otp .form-field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nk-otp-resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin: 0; }
.nk-otp-resend button { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--accent-dark); font: 600 14px/1.4 var(--font); cursor: pointer; }
.nk-otp-resend button:disabled { color: var(--muted); cursor: default; }
.nk-otp-resend span { font-size: 14px; font-weight: 600; color: var(--muted); }

/* Tablet */
@media (max-width: 1200px) {
  .nk-account { grid-template-columns: 250px minmax(0, 1fr); }
  .nk-wallet, .nk-referral { grid-template-columns: minmax(0, 1fr); }
  .nk-order-meta { display: none; }
  .nk-order-progress, .nk-order-actions { margin-right: 136px; }
  .nk-auth-panel, .nk-auth-panel.is-compact { padding: 48px 44px; }
}
@media (max-width: 900px) {
  .nk-stat-grid, .nk-account-duo, .nk-steps { grid-template-columns: minmax(0, 1fr); }
  .nk-address-grid, .nk-child-grid { grid-template-columns: minmax(0, 1fr); }
  .nk-auth { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-inline: var(--gutter); }
  .nk-auth-art { display: none; }
}

/* Phones: account menu on the account home, page bar on sub-pages, design card layouts */
@media (max-width: 800px) {
  :is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .nk-hide-mobile { display: none !important; }
  :is(.nk-account-page, .nk-auth-page, .nk-form-shell-page) .nk-show-mobile { display: flex !important; }
  /* The page bar shows the title on phones; headings stay available to assistive technology. */
  .nk-account-page .nk-form-page .nk-account-head h1,
  .nk-account-page:not(.nk-account-home) .nk-account-main > .nk-account-head .nk-account-title,
  .nk-account-page h1.nk-account-title.nk-hide-mobile {
    display: block !important; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .nk-account { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px var(--gutter) 28px; }
  .nk-account-page:not(.nk-account-home) .nk-account-nav { display: none; }
  .nk-account-page:not(.nk-account-home) .nk-account-main > .nk-account-head:not(:has(p, .nk-btn, form, a)) { position: absolute; }
  .nk-account-main { gap: 12px; }
  /* Account home menu (r22) */
  .nk-account-home .nk-account-nav { position: static; gap: 9px; padding: 0; border: 0; background: none; }
  .nk-account-home .nk-account-profile { gap: 13px; margin: 0 calc(-1 * var(--gutter)) 3px; padding: 0 var(--gutter) 12px; }
  .nk-account-home .nk-avatar { width: 58px; height: 58px; }
  .nk-account-home .nk-account-who { flex: 1; gap: 3px; }
  .nk-account-home .nk-wallet-chip { display: inline-flex; flex: none; padding: 7px 13px; font-size: 12px; }
  .nk-account-home .account-menu { gap: 9px; }
  .nk-account-home .account-menu a {
    min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); line-height: 1.6;
  }
  .nk-account-home .account-menu a[aria-current] { display: none; }
  .nk-account-home .account-menu a::after { content: '‹'; margin-right: 2px; color: var(--muted); font-size: 17px; }
  .nk-account-home .account-menu a [data-nav-label] { flex: 1; }
  .nk-account-home .nk-nav-meta { display: inline; }
  .nk-account-home .nk-nav-group { margin: 6px 4px 0; font-size: 14px; }
  .nk-account-home .nk-logout { margin: 0; padding: 0; border: 0; }
  .nk-account-home .nk-logout button { min-height: 52px; padding: 14px 16px; border: 1px solid color-mix(in oklab, var(--red) 30%, var(--line)); border-radius: var(--r); background: var(--surface); }
  .nk-account-home .nk-account-main { margin-top: 12px; gap: 12px; }
  .nk-account-home .nk-account-title { font-size: 21px; }
  .nk-stat { padding: 14px 16px; }
  .nk-stat b { font-size: 17px; }
  .nk-account-page .nk-panel { border-radius: calc(var(--r) + 4px); }
  .nk-account-page .nk-panel-head { padding: 14px 16px; }
  .nk-account-page .nk-panel-pad { padding: 16px; }
  /* Orders as cards (r22) */
  .nk-order-list { gap: 11px; overflow: visible; border: 0; background: none; }
  .nk-order-rows { gap: 0; }
  .nk-order-card {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 11px 0; align-items: center; padding: 15px 16px;
    border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); background: var(--surface);
  }
  .nk-order-rows .nk-order-card { border-width: 0 0 1px; border-radius: 0; }
  .nk-order-rows .nk-order-card:last-child { border-bottom: 0; }
  .nk-order-card.is-settled { opacity: .92; }
  .nk-order-head { display: contents; }
  .nk-order-number { grid-column: 1; grid-row: 1; width: auto; }
  .nk-order-head .nk-status { grid-column: 2; grid-row: 1; justify-self: end; padding: 5px 12px; font-size: 12px; }
  .nk-order-meta { display: block; grid-column: 1; grid-row: 3; font-size: 12px; }
  .nk-order-total { grid-column: 2; grid-row: 3; width: auto; }
  .nk-order-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nk-order-head .nk-status, .nk-order-total { margin-right: 12px; }
  .nk-order-card:has(.nk-order-progress) .nk-order-meta,
  .nk-order-card:has(.nk-order-progress) .nk-order-total { margin-right: 0; padding: 10px 0 0 12px; border-top: 1px dashed var(--line); }
  .nk-order-card:has(.nk-order-progress) .nk-order-total { padding-left: 0; }
  .nk-order-progress, .nk-order-actions { grid-column: 1 / -1; grid-row: 2; max-width: none; margin: 0; }
  .nk-order-actions { grid-row: 4; }
  .nk-order-card:has(.nk-order-actions) .nk-order-meta, .nk-order-card:has(.nk-order-actions) .nk-order-total { grid-row: 2; }
  .nk-order-actions > * { flex: 1; }
  .nk-order-actions .nk-btn { width: 100%; }
  .nk-segment-tabs a { flex: 1 0 auto; min-width: 88px; }
  /* Wallet (r20 mobile) */
  .nk-wallet-card { gap: 12px; padding: 20px; border-radius: calc(var(--r) + 6px); }
  .nk-wallet-card-head, .nk-wallet-card-foot { display: none; }
  .nk-wallet-balance > span { font-size: 12px; }
  .nk-wallet-balance strong { font-size: 28px; }
  .nk-wallet-balance small { font-size: 14px; }
  .nk-wallet-quick { display: flex; }
  .nk-account-page .nk-topup { display: none; }
  .nk-transactions { border-radius: var(--r) !important; }
  .nk-transactions .nk-panel-head { display: none; }
  .nk-transaction { gap: 11px; padding: 12px 15px; }
  .nk-tx-sign { width: 32px; height: 32px; font-size: 14px; }
  .nk-tx-text small, .nk-tx-amount small { display: none; }
  /* Referrals */
  .nk-referral { gap: 16px; }
  .nk-referral-intro h1 { font-size: 28px; }
  .nk-referral-intro p { font-size: 14px; }
  .nk-referral-code { padding: 16px; }
  .nk-referral-code .nk-btn { flex: 1; }
  .nk-invite { padding: 13px 16px; }
  /* Addresses (r27 mobile) */
  .nk-address-grid { gap: 12px; }
  .nk-address-add { display: none; }
  .nk-address-grid:not(:has(.nk-address)) .nk-address-add { display: flex; }
  /* Forms */
  :is(.nk-account-page, .nk-form-shell-page) .nk-form-card { gap: 12px; padding: 16px; border-radius: calc(var(--r) + 4px); }
  :is(.nk-account-page, .nk-form-shell-page) .form-field :is(input:not([type=checkbox], [type=radio], [type=file]), select, textarea) { font-size: 16px; }
  .nk-form-address .nk-form-card { gap: 12px 10px; padding: 0; border: 0; background: none; }
  .nk-form-address .form-field:has(#id_building), .nk-form-address .form-field:has(#id_unit) { grid-column: span 2; }
  .nk-form-address .form-field:has(#id_postal_code) { grid-column: span 2; }
  .nk-form-address .address-map { height: 210px; margin: 0 calc(-1 * var(--gutter)); border-width: 1px 0; border-radius: 0; }
  :is(.nk-account-page, .nk-form-shell-page) .nk-form-actions { flex-direction: column-reverse; align-items: stretch; }
  :is(.nk-account-page, .nk-form-shell-page) .nk-form-actions .nk-btn { width: 100%; min-height: 52px; }
  :is(.nk-account-page, .nk-form-shell-page) .nk-form-actions .nk-btn-outline { min-height: 44px; }
  .nk-form-shell { padding: 16px var(--gutter) 32px; }
  /* Settings (r26 mobile) */
  .nk-settings-profile { padding: 4px 2px !important; border: 0 !important; background: none !important; }
  .nk-profile-row { gap: 14px; }
  .nk-profile-row .nk-avatar { width: 64px; height: 64px; font-size: 21px; }
  .nk-profile-row .nk-btn { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--accent-dark); }
  .nk-settings-form { padding: 0 !important; overflow: visible !important; border: 0 !important; background: none !important; }
  .nk-settings-form > h2, .nk-settings-subtitle { padding: 0 4px; font-size: 14px !important; color: var(--muted); }
  .nk-switch-list { border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); background: var(--surface); }
  .nk-switch-line { padding: 14px 16px; }
  .nk-settings-form .nk-form-actions .nk-btn { width: 100%; min-height: 52px; }
  .nk-settings-links { border-radius: calc(var(--r) + 4px) !important; }
  .nk-settings-links > :is(a, button) { padding: 14px 16px; }
  .nk-settings-links .nk-group-label { padding: 14px 16px 4px; }
  .nk-list-row { gap: 11px; padding: 14px 16px; }
  .nk-bubble { max-width: 92%; }
  /* Auth (r18, r26 mobile) */
  body.nk-auth-page .nk-header .nk-header-row, body.nk-auth-page .nk-header .nk-mobile-search { display: none; }
  body.nk-auth-page .nk-header { border-bottom: 0; }
  body.nk-auth-page .mobile-bottom-nav.nk-tabbar { display: none; }
  body.nk-auth-page .nk-footer { display: none; }
  .nk-auth { margin: 0; border: 0; border-radius: 0; }
  .nk-auth-panel, .nk-auth-panel.is-compact { justify-content: flex-start; gap: 14px; padding: 22px 22px 30px; }
  .nk-auth-panel.nk-otp { gap: 24px; padding: 10px 24px 40px; }
  .nk-otp .nk-auth-brand { display: none; }
  .nk-auth-back { display: flex !important; align-self: flex-start; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
  .nk-auth-back .icon { width: 17px; height: 17px; }
  .nk-auth-intro { gap: 7px; }
  .nk-auth-intro h1 { font-size: 21px; }
  .nk-auth-intro p { font-size: 14px; font-weight: 600; }
  .nk-auth-panel.is-compact .nk-auth-intro p { font-weight: 400; }
  .nk-auth-form .form-field input:not([type=checkbox]) { font-size: 16px; }
  .nk-auth-submit { min-height: 52px; }
  .nk-otp-boxes { gap: 8px; }
  .nk-otp-box { width: 48px; height: 58px; }
}
@media (max-width: 360px) {
  .nk-otp-box { width: 42px; height: 52px; }
  .nk-otp-boxes { gap: 6px; }
}
