/* Кабінет PapiLaunch. Кольори, шрифт і радіуси — з brand/styles/tokens.json. */
@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url('/assets/nunito-400.woff2') format('woff2'); }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url('/assets/nunito-600.woff2') format('woff2'); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url('/assets/nunito-700.woff2') format('woff2'); }
:root {
  --sky: #5A9FCB; --white: #FFFFFF; --mist: #EFF6FA; --ink: #153242; --deep: #2F6F96;
  --line: #D9E7F0; --soft: #5B7686; --bad: #A4332B; --bad-bg: #FBEDEB;
  --font: "Nunito", Arial, sans-serif; --r-panel: 16px; --r-button: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 16px/1.5 var(--font); overflow-wrap: anywhere; }
a { color: var(--deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 0 0 4px; }
h2 { font-size: 19px; line-height: 1.3; font-weight: 700; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.muted { color: var(--soft); }
.small { font-size: 14px; }
.pre { white-space: pre-line; }

.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1040px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.logo { display: block; height: 30px; }
.logo img { display: block; height: 30px; width: auto; }
.who { font-weight: 600; color: var(--deep); margin-right: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a, .linkbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--ink); }
.nav a:hover, .linkbtn:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tools form { margin: 0; }
.linkbtn { background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.linkbtn[aria-pressed="true"] { background: var(--mist); color: var(--deep); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 20px 64px; }
.head { margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 22px; }
.card + .card, .card + .two, .two + .card, .grid + .card, .card + .grid { margin-top: 16px; }
.two > .card + .card, .grid > .card + .card { margin-top: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--sky); }
a.card:active { transform: scale(.99); }
.card h2 a { color: inherit; text-decoration: none; }
.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.dark .muted { color: #B9D3E3; }

.kv { margin: 0; }
.kv > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--mist); }
.kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { color: var(--deep); }
.kv dd { margin: 0; font-weight: 700; text-align: right; }

.chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--mist); color: var(--deep); }
.chip.ok { background: #E3F1E6; color: #1F5D33; }
.chip.bad { background: var(--bad-bg); color: var(--bad); }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 12px 0; border-bottom: 1px solid var(--mist); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.rows li:first-child { padding-top: 0; }
.rows .main { font-weight: 700; }
.rows form { margin: 0; }
.rows form.inline { display: inline-block; margin-left: 6px; }
.gap-top { margin-top: 16px; }
.more { margin: 14px 0 0; }
form.after { margin-top: 10px; }
form.inline-block { display: inline-block; margin: 0; }
.dark .kv > div { border-color: rgba(255,255,255,.14); }
.dark .kv dt { color: #B9D3E3; }
.dark .btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.dark .btn.ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.dark .btn { background: var(--sky); color: var(--ink); }
.dark .btn:hover { background: #7DB6DB; color: var(--ink); }
.dark ul.plain { color: var(--white); }
form.sep { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

form.stack { display: grid; gap: 14px; margin: 0; }
label { display: grid; gap: 6px; font-weight: 600; }
label .hint { font-weight: 400; font-size: 14px; color: var(--soft); }
input[type="text"], input[type="password"], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid #C5D9E6; border-radius: var(--r-button);
}
input:focus, textarea:focus { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--deep); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 0; border-radius: var(--r-button);
  background: var(--deep); color: var(--white); font: 700 16px/1.25 var(--font); cursor: pointer; text-decoration: none; transition: background .15s ease, transform .1s ease; }
.btn:hover { background: #275E80; color: var(--white); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--white); color: var(--deep); box-shadow: inset 0 0 0 1.5px #C5D9E6; }
.btn.ghost:hover { background: var(--mist); color: var(--ink); }
.btn.sm { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.note { padding: 12px 16px; border-radius: var(--r-button); margin-bottom: 16px; font-weight: 600; background: #E3F1E6; color: #1F5D33; }
.note.err { background: var(--bad-bg); color: var(--bad); }

.log { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.log li { padding: 8px 0; border-bottom: 1px solid var(--mist); }
.log li:last-child { border-bottom: 0; }
.log code { font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.log .d { display: block; color: var(--soft); }

h2.sub { margin-top: 20px; }
.head.row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.head.row h1 { margin: 0; }
.head.row p:last-child { margin-bottom: 0; }
.narrow { max-width: 640px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.card > h2.sub:first-child { margin-top: 0; }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.sug { color: var(--sky); font-size: 12px; vertical-align: middle; }
ul.plain { margin: 0 0 12px; padding-left: 20px; }
ul.plain.bad { color: var(--bad); font-weight: 600; }
.card > .two { margin-top: 16px; }
.two + .two { margin-top: 16px; }
.ad { background: var(--white); color: var(--ink); border-radius: 12px; padding: 16px; }
.ad + .ad { margin-top: 12px; }
.ad p { margin: 0 0 10px; }
.ad p:last-child { margin-bottom: 0; }
.ad-n { font-size: 13px; font-weight: 700; color: var(--deep); text-transform: uppercase; letter-spacing: .04em; }
.ad-img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; margin: 0 0 10px; background: var(--mist); }
.ad-noimg { padding: 28px 12px; text-align: center; border-radius: 8px; background: var(--mist); color: var(--soft); font-size: 14px; }
.ad-h { font-weight: 700; font-size: 17px; }
.ad-d { color: var(--soft); font-size: 14px; }
.g-title { font-size: 19px; line-height: 1.3; color: #1a0dab; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dark ul.plain .muted { color: #B9D3E3; }
.ad-cta { display: inline-block; padding: 8px 16px; border-radius: 8px; background: var(--mist); color: var(--ink); font-weight: 700; font-size: 14px; }

.signin { max-width: 440px; margin: 12vh auto 0; padding: 0 20px; }
.signin .logo, .signin .logo img { height: 40px; }
.signin .card { margin-top: 24px; }

@media (max-width: 560px) {
  h1 { font-size: 24px; }
  .wrap { padding: 20px 14px 48px; }
  .card { padding: 18px; }
  .top-in { padding: 10px 14px; }
  .top-in { gap: 8px 10px; }
  .logo, .logo img { height: 26px; }
  .tools { order: 2; margin-left: auto; gap: 0; }
  .nav { order: 3; flex-basis: 100%; gap: 2px; }
  .nav a, .linkbtn { min-height: 40px; padding: 6px 10px; font-size: 15px; }
  .who { order: 4; flex-basis: 100%; margin: 0; font-size: 14px; }
  .kv dd { text-align: left; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Згорнуті інструкції в картках доступу. */
details.guide { margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--r-button); background: var(--mist); }
details.guide > summary { cursor: pointer; padding: 11px 14px; font-weight: 700; color: var(--deep); }
details.guide > summary:hover { color: var(--ink); }
details.guide[open] > summary { border-bottom: 1px solid var(--line); }
.guide-in { padding: 12px 14px 4px; font-size: 15px; }
.guide-in h3 { font-size: 15px; line-height: 1.3; margin: 4px 0 8px; }
.guide-in ol { margin: 0 0 12px; padding-left: 22px; }
.guide-in li { margin-bottom: 7px; }
.guide-in code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--white); padding: 1px 5px; border-radius: 6px; }
.guide-in .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; }
.guide-in form.stack { padding-bottom: 10px; }
