/* Egen kod, idé från affectUI Permission Request (Pro), ingen kod tagen. Kostnad före godkännande och behörigheter punkt för punkt efter reactbits Agent Approval (betalt, bara idén). Textfärger från sidans tokens. */
.naprq {
  --kbd-pri: rgba(255,255,255,.14); --kbd-pri-t: rgba(255,255,255,.75); --solid: rgba(0,0,0,.88); --solid-h: rgba(0,0,0,.8); --on-solid: #fcfcfc; --hover: rgba(0,0,0,.06); --strike: rgba(0,0,0,.27); --stage: #FCFCFB; --on-fill: #fff; --wire: rgba(0,0,0,.16); --wire2: rgba(0,0,0,.08); --wire3: rgba(0,0,0,.18); --dotc: rgba(0,0,0,.12); --grid: rgba(0,0,0,.09); --rim: rgba(0,0,0,.07);
  --card: #fff;   --line: rgba(0,0,0,.06); --wash: rgba(0,0,0,.03); --ember: #D9601C; --ember-bg: rgba(217,96,28,.10);
  --ok: #1E7A4C; --ok-bg: rgba(30,122,76,.10); --warn: #8A5200; --warn-bg: rgba(178,106,0,.10); --bad: #B4322A; --bad-bg: rgba(180,50,42,.08);
  --sh: 0 0 0 .5px rgba(0,0,0,.06), 0 1px 1px -1px rgba(0,0,0,.1), 0 1px 2px 0 rgba(0,0,0,.05);
  --sh-h: 0 0 0 .5px rgba(0,0,0,.1), 0 1px 1px -1px rgba(0,0,0,.12), 0 1px 3px 0 rgba(0,0,0,.07);
  --focus: rgba(217,96,28,.4); --ease: cubic-bezier(.22,1,.36,1);
  box-sizing: border-box; container-type: inline-size; width: 100%; max-width: 380px;
  font-family: var(--sans); font-size: 13px; line-height: 20px; color: var(--ink); text-align: left; -webkit-font-smoothing: antialiased;
}
:where(.dark,[data-theme="dark"]) .naprq { --card: #1C1B1A; --line: rgba(255,255,255,.08); --wash: rgba(255,255,255,.04); --ember: #F08A4B; --ember-bg: rgba(217,96,28,.18); --ok: #3EC27A; --ok-bg: rgba(62,194,122,.14); --warn: #F0B232; --warn-bg: rgba(240,178,50,.14); --bad: #F2806C; --bad-bg: rgba(242,128,108,.14); --sh: 0 0 0 .5px rgba(255,255,255,.1), 0 1px 2px 0 rgba(0,0,0,.4); --sh-h: 0 0 0 .5px rgba(255,255,255,.16), 0 1px 2px 0 rgba(0,0,0,.4); --focus: rgba(240,138,75,.55); --kbd-pri: rgba(0,0,0,.08); --kbd-pri-t: rgba(0,0,0,.6); --solid: rgba(255,255,255,.9); --solid-h: rgba(255,255,255,.82); --on-solid: #161615; --hover: rgba(255,255,255,.08); --strike: rgba(255,255,255,.3); --stage: #161615; --on-fill: #161615; --wire: rgba(255,255,255,.2); --wire2: rgba(255,255,255,.1); --wire3: rgba(255,255,255,.2); --dotc: rgba(255,255,255,.14); --grid: rgba(255,255,255,.07); --rim: rgba(255,255,255,.08); color-scheme: dark; }

.naprq *, .naprq *::before, .naprq *::after { box-sizing: border-box; }
.naprq p { margin: 0; }
:where(.naprq) button { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(.naprq) svg { display: block; flex: none; }
.naprq button:focus-visible, .naprq-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.naprq-card:focus { outline: none; }

.naprq-card { background: var(--card); border-radius: 10px; box-shadow: var(--sh); overflow: hidden; }
.naprq[data-state="done"] .naprq-card, .naprq[data-state="denied"] .naprq-card { display: none; }

.naprq-head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px 0; }
.naprq-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--ember-bg); color: var(--ember); flex: none; }
.naprq-who { flex: 1; min-width: 0; }
.naprq-title { font-weight: 400; color: var(--ink-2); overflow-wrap: anywhere; }
.naprq-title b { font-weight: 500; color: var(--ink); }
.naprq-sub { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 18px; color: var(--grey); }
.naprq-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px 0 6px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); font-size: 12px; font-weight: 500; flex: none; }

.naprq-why { margin: 10px 16px 14px 16px !important; padding-left: 10px; border-left: 2px solid var(--line); color: var(--ink-2); overflow-wrap: anywhere; }

.naprq-what { padding: 12px 16px 12px; border-top: .5px solid var(--line); }
.naprq-label { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; color: var(--grey); }
.naprq-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; box-shadow: var(--sh); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.naprq-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.naprq-list li { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 30px; color: var(--ink); }
.naprq-list li > svg { color: var(--ok); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.naprq svg path, .naprq svg rect, .naprq svg circle { vector-effect: non-scaling-stroke; }
.naprq-list li.is-no { color: var(--grey); }
.naprq-list li.is-no > svg { color: var(--grey); }
.naprq-cost { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-top: .5px solid var(--line); }
.naprq-cost .naprq-amt { font-family: var(--mono); font-size: 18px; line-height: 24px; font-weight: 500; }
.naprq-fee { margin-left: auto; font-size: 12px; color: var(--grey); }
.naprq-scope svg, .naprq-line-ic svg, .naprq-phone svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.naprq-list li > span:first-of-type { flex: 1; min-width: 0; }
.naprq-acct { color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.naprq-amt { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.naprq-mono { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

.naprq-foot { padding: 12px 16px 14px; border-top: .5px solid var(--line); }
.naprq-scope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; border-radius: 8px; background: var(--wash); }
.naprq-scope button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 28px; padding: 4px 6px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--grey); transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.naprq-scope button:hover { color: var(--ink); }
.naprq-scope button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh); }
.naprq-scope button[aria-disabled="true"] { color: var(--grey); cursor: not-allowed; }
.naprq-hint { margin-top: 8px !important; font-size: 12px; line-height: 18px; color: var(--grey); min-height: 18px; }
.naprq-hint[data-flash] { color: var(--warn); }

.naprq-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.naprq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 28px; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; line-height: 20px; white-space: nowrap; transition: background-color 140ms ease, box-shadow 140ms ease, transform 160ms var(--ease); }
:where(.naprq) .naprq-btn { background: var(--card); box-shadow: var(--sh); color: var(--ink); }
.naprq-btn:hover { box-shadow: var(--sh-h); }
.naprq-btn:active { transform: scale(.97); }
:where(.naprq) .naprq-btn--pri { background: var(--solid); box-shadow: none; color: var(--on-solid); }
.naprq-btn--pri:hover { background: var(--solid-h); box-shadow: none; }
.naprq-btn kbd { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 4px; background: var(--wash); box-shadow: inset 0 0 0 .5px var(--line); font-family: var(--sans); font-size: 12px; line-height: 1; color: var(--grey); }
.naprq-btn--pri kbd { background: var(--kbd-pri); box-shadow: none; color: var(--kbd-pri-t); }

/* BankID */
.naprq-bank { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: .5px solid var(--line); }
.naprq-bank[hidden], .naprq-foot[hidden] { display: none; }
.naprq-phone { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--ink); }
.naprq-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.naprq-ring circle { stroke: var(--ember); stroke-dasharray: 100; stroke-dashoffset: 100; }
.naprq-bank[data-run] .naprq-ring circle { animation: naprq-sign 2200ms linear forwards; }
.naprq-bank[data-signed] .naprq-ring circle { stroke: var(--ok); stroke-dashoffset: 0; animation: none; }
.naprq-bank[data-signed] .naprq-phone { color: var(--ok); }
.naprq-bank-text { flex: 1; min-width: 0; }
.naprq-bank-title { font-weight: 500; color: var(--ink); }
.naprq-bank-sub { font-size: 12px; line-height: 18px; color: var(--grey); overflow-wrap: anywhere; }
.naprq-bank[data-in] { animation: naprq-in 320ms var(--ease) both; }

/* Hopfälld rad */
.naprq-line { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px 8px 14px; border-radius: 10px; background: var(--card); box-shadow: var(--sh); }
.naprq-line[hidden] { display: none; }
.naprq-line[data-in] { animation: naprq-in 360ms var(--ease) both; }
.naprq-line-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none; }
.naprq[data-state="done"] .naprq-line-ic { background: var(--ok-bg); color: var(--ok); }
.naprq[data-state="denied"] .naprq-line-ic { background: var(--wash); color: var(--grey); }
.naprq-line-text { flex: 1; min-width: 0; }
.naprq-line-title { font-weight: 500; color: var(--ink); }
.naprq-line-meta { font-size: 12px; line-height: 18px; color: var(--grey); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

@keyframes naprq-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes naprq-sign { to { stroke-dashoffset: 0; } }

@container (max-width: 350px) {
  .naprq-head { padding: 12px 14px 0; }
  .naprq-why { margin: 10px 14px 12px 14px !important; }
  .naprq-what, .naprq-foot, .naprq-bank { padding-left: 14px; padding-right: 14px; }
  .naprq-btn kbd { display: none; }
}
@media (pointer: coarse) {
  .naprq-btn { min-height: 36px; }
  .naprq-btn kbd { display: none; }
  .naprq-scope button { min-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .naprq-line[data-in], .naprq-bank[data-in] { animation: none; }
  .naprq-bank[data-run] .naprq-ring circle { animation: none; stroke-dashoffset: 0; }
}
