/* IPortal — styles. Same visual family as Idesk: white page, Inter, soft rounded cards,
   indigo pill selectors, tinted icon squares, red/green change pills. Light only, by choice. */
:root {
  --bg: #ffffff;
  --panel: #f3f4f7;
  --panel-2: #f8f9fb;
  --fg: #111827;
  --fg-2: #374151;
  --muted: #6b7280;
  --line: #eceef2;
  --border: #e5e7eb;
  --indigo: #5b5bd6;
  --indigo-press: #4a4ac2;
  --indigo-soft: #eef0fb;
  --indigo-bar: #a9aaef;
  --green: #12a150;
  --green-soft: #e3f6ea;
  --green-ink: #0d7a3c;
  --red: #e5484d;
  --red-soft: #fdecec;
  --red-ink: #c42b30;
  --red-bar: #f1a1a4;
  --orange: #f08c3a;
  --orange-soft: #fdf1e6;
  --orange-ink: #b45d14;
  --blue: #3b6fe0;
  --blue-soft: #e8effd;
  --white: #ffffff;
  --scrim: rgba(17, 24, 39, .38);
  --stage: #eef0f3;
  --r-card: 20px;
  --r-ctl: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 10px rgba(16, 24, 40, .04);
  --shadow-pop: 0 12px 32px rgba(16, 24, 40, .14);
  --sans: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--indigo); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
.mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--fg); text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.login-top { max-width: 1080px; width: 100%; margin: 0 auto; padding-block: 22px; display: flex; align-items: center; gap: 16px; }
.login-top .note { margin-left: auto; background: var(--panel); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; }
.login-main { flex: 1; max-width: 1080px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding-block: 24px 48px; }
.login-copy .cap { color: var(--muted); font-size: 13px; }
.login-copy h1 { font-size: 38px; line-height: 1.12; margin-top: 8px; max-width: 520px; }
.login-copy p { color: var(--muted); font-size: 15.5px; max-width: 480px; margin: 14px 0 0; }
.roles { display: grid; gap: 10px; margin-top: 26px; max-width: 480px; }
.role-row { display: flex; gap: 12px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.role-row b { display: block; font-size: 14px; }
.role-row small { color: var(--muted); font-size: 12.5px; }
.ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--indigo-soft); color: var(--indigo); }
.ico svg { width: 18px; height: 18px; }
.ico.green { background: var(--green-soft); color: var(--green); }
.ico.orange { background: var(--orange-soft); color: var(--orange-ink); }
.ico.red { background: var(--red-soft); color: var(--red); }
.login-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 28px; width: 100%; max-width: 420px; justify-self: end; }
.login-card h2 { font-size: 22px; }
.login-card .sub { color: var(--muted); margin: 6px 0 22px; }
.demo { margin-top: 22px; background: var(--panel); border-radius: 14px; padding: 12px; }
.demo-title { font-size: 12px; color: var(--muted); margin: 0 4px 6px; }
.demo button { display: flex; justify-content: space-between; gap: 10px; width: 100%; background: none; border: 0; padding: 8px; cursor: pointer; border-radius: 8px; text-align: left; font-size: 13.5px; }
.demo button:hover { background: var(--bg); }
.demo button span:last-child { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--fg-2); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-ctl);
  background: var(--panel); outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--indigo); background: var(--bg); box-shadow: 0 0 0 3px rgba(91, 91, 214, .14); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-error { color: var(--red-ink); background: var(--red-soft); border-radius: var(--r-ctl); padding: 9px 12px; font-size: 13px; margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--fg);
  font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--panel); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-press); border-color: var(--indigo-press); }
.btn-danger { color: var(--red-ink); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red-soft); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; height: 42px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--indigo); cursor: pointer; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }

/* ---------- App header + tabs ---------- */
.app { min-height: 100vh; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.hdr { padding-block: 18px 0; }
.hdr-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hdr-divider { width: 1px; height: 38px; background: var(--border); }
.hdr-title { min-width: 0; }
.hdr-title .cap { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-title b { display: block; font-size: 20px; letter-spacing: -.015em; }
.hdr .spacer { flex: 1; }
.who-chip { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 999px; padding: 5px 6px 5px 5px; }
.who-chip .av { width: 30px; height: 30px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo); font-weight: 600; font-size: 12px; display: grid; place-items: center; }
.who-chip .nm { font-size: 13px; line-height: 1.2; padding-right: 4px; }
.who-chip .nm small { display: block; color: var(--muted); font-size: 11.5px; }
.who-chip .btn { height: 30px; background: var(--bg); border-color: var(--bg); }
.tabs-bar { margin-top: 16px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  color: var(--fg-2); text-decoration: none; font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.tabs a svg { width: 16px; height: 16px; color: var(--muted); }
.tabs a:hover { background: var(--panel); }
.tabs a.active { background: var(--indigo); color: var(--white); }
.tabs a.active svg { color: var(--white); }
.tabs .sep { width: 1px; background: var(--border); margin: 6px 8px; flex: none; }
.content { padding-block: 22px 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 720px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px 20px 12px; }
.panel-head h3 { font-size: 16px; letter-spacing: -.01em; }
.panel-head small { color: var(--muted); font-size: 12.5px; text-align: right; }
.panel-body { padding: 6px 20px 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mb { margin-bottom: 16px; }
.section-title { font-size: 17px; margin: 28px 0 12px; }

.kpi { padding: 18px 20px; text-decoration: none; color: inherit; display: block; }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi .label { font-size: 14px; color: var(--fg-2); font-weight: 500; }
.kpi .value { font-size: 22px; font-weight: 700; margin-top: 14px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi .value.sm { font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.kpi .foot { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
a.kpi:hover { border-color: var(--indigo-bar); }
.region-card { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.region-card:hover { border-color: var(--indigo-bar); }
.region-card.on { border-color: var(--indigo); box-shadow: 0 0 0 1px var(--indigo) inset, var(--shadow); background: var(--indigo-soft); }
.region-card .kpi-top .tag { margin-left: auto; }
.region-card .bar { margin-top: 12px; }

.callout { padding: 16px 18px; border-radius: 16px; display: flex; gap: 12px; align-items: flex-start; }
.callout .label { font-size: 12.5px; font-weight: 500; }
.callout .name { font-weight: 700; margin-top: 2px; font-size: 16px; letter-spacing: -.01em; }
.callout .meta { font-size: 12.5px; margin-top: 2px; }
.callout.best { background: var(--green-soft); color: var(--green-ink); }
.callout.least { background: var(--red-soft); color: var(--red-ink); }
.callout .ico { background: var(--bg); }
.callout.best .ico { color: var(--green); }
.callout.least .ico { color: var(--red); }

/* ---------- Filters / pills ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 12px 14px; }
.filters label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.filters select.input { width: auto; height: 36px; min-width: 150px; }
.seg { display: inline-flex; gap: 2px; background: var(--panel); border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 0 14px; height: 30px; border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--fg-2); }
.seg button:hover { color: var(--fg); }
.seg button.on { background: var(--indigo); color: var(--white); box-shadow: 0 1px 2px rgba(16, 24, 40, .15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 0; background: var(--panel); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 13.5px; display: inline-flex; gap: 8px; align-items: center; color: var(--fg-2); }
.chip small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--indigo-soft); }
.chip.on { background: var(--indigo); color: var(--white); }
.chip.on small { color: rgba(255, 255, 255, .78); }

.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; vertical-align: middle; white-space: nowrap; }
.tag-PO { background: var(--blue-soft); color: var(--blue); }
.tag-BO { background: var(--orange-soft); color: var(--orange-ink); }
.tag-DED { background: var(--red-soft); color: var(--red-ink); }
.tag-PROMO { background: var(--green-soft); color: var(--green-ink); }
.tag-best { background: var(--green-soft); color: var(--green-ink); }
.tag-least { background: var(--red-soft); color: var(--red-ink); }

/* ---------- Ranking list ---------- */
.rank { list-style: none; margin: 0; padding: 0 12px 12px; }
.rank li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 8px; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank .n { width: 30px; height: 30px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo); font-size: 12px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.rank li.least .n { background: var(--red-soft); color: var(--red-ink); }
.rank .nm { font-weight: 500; overflow-wrap: anywhere; }
.rank .nm .tag { margin-left: 6px; }
.rank .sb { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.bar { height: 6px; background: var(--panel); border-radius: 3px; margin-top: 7px; overflow: hidden; max-width: 260px; }
.bar i { display: block; height: 100%; background: var(--indigo-bar); border-radius: 3px; }
.rank li.least .bar i { background: var(--red-bar); }
.rank .v { text-align: right; font-variant-numeric: tabular-nums; }
.rank .v b { display: block; font-weight: 600; }
.rank .v small { color: var(--muted); font-size: 12px; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; padding: 0 12px 12px; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 500; padding: 10px 12px; background: var(--panel); white-space: nowrap; }
.tbl th:first-child { border-radius: 10px 0 0 10px; }
.tbl th:last-child { border-radius: 0 10px 10px 0; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--panel-2); }
.tbl .r { text-align: right; }
.tbl .actions { text-align: right; white-space: nowrap; }
.tbl .actions .btn + .btn { margin-left: 6px; }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 16px 20px 12px; flex-wrap: wrap; }
.toolbar .input { max-width: 280px; height: 36px; }

/* ---------- Upload ---------- */
.steps { counter-reset: step; }
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.step-title::before { counter-increment: step; content: counter(step); width: 24px; height: 24px; border-radius: 50%; background: var(--indigo); color: var(--white); display: grid; place-items: center; font-size: 12px; }
.type-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.type-card { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: var(--bg); text-align: left; display: flex; gap: 10px; align-items: center; }
.type-card b { display: block; font-size: 13.5px; }
.type-card small { color: var(--muted); font-size: 12px; }
.type-card:hover { border-color: var(--indigo-bar); }
.type-card.on { border-color: var(--indigo); box-shadow: 0 0 0 1px var(--indigo) inset; background: var(--indigo-soft); }
.type-card .ico { width: 32px; height: 32px; }
.cols { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cols code { font-family: var(--sans); font-size: 12px; background: var(--panel); padding: 3px 9px; border-radius: 999px; color: var(--fg-2); }
.cols code.req { background: var(--indigo-soft); color: var(--indigo); font-weight: 500; }
.drop { display: block; border: 1.5px dashed var(--border); border-radius: 16px; padding: 32px 20px; text-align: center; background: var(--panel-2); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--indigo); background: var(--indigo-soft); }
.drop .ico { margin: 0 auto 10px; }
.drop b { display: block; font-size: 15px; }
.drop small { color: var(--muted); }
.problems { max-height: 220px; overflow: auto; background: var(--red-soft); border-radius: 12px; padding: 10px 14px; margin: 0; list-style: none; font-size: 13px; color: var(--red-ink); }
.problems li + li { margin-top: 4px; }
.ok-note { background: var(--green-soft); color: var(--green-ink); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.publish-bar { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- Modal / toast ---------- */
.overlay { position: fixed; inset: 0; background: var(--scrim); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal { background: var(--bg); border-radius: var(--r-card); width: 100%; max-width: 520px; box-shadow: var(--shadow-pop); }
.modal.wide { max-width: 920px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 8px; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 12px 22px 18px; }
.modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.x-btn { background: var(--panel); border: 0; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.toasts { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--fg); color: var(--white); padding: 11px 16px; border-radius: 12px; font-size: 13.5px; box-shadow: var(--shadow-pop); max-width: 360px; animation: tin .2s ease; }
.toast.error { background: var(--red-ink); }
@keyframes tin { from { transform: translateY(6px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---------- Paper document (a white sheet on purpose) ---------- */
.paper-stage { background: var(--stage); border-radius: 16px; padding: 28px 16px; overflow-x: auto; }
.paper {
  background: #fff; color: #16181d; width: 210mm; max-width: 100%; margin: 0 auto;
  padding: 16mm 15mm 14mm; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 10px 30px rgba(0,0,0,.08);
  font-family: var(--sans); font-size: 11.5px; line-height: 1.45;
}
.pp-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 14px; border-bottom: 2px solid #16181d; }
.pp-co b { display: block; font-size: 17px; letter-spacing: -.01em; }
.pp-co div { color: #4a4f58; }
.pp-title { text-align: right; }
.pp-title h2 { font-size: 20px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
.pp-title table { margin-left: auto; margin-top: 6px; border-collapse: collapse; }
.pp-title td { padding: 1px 0 1px 12px; text-align: right; }
.pp-title td:first-child { color: #6a707a; text-transform: uppercase; font-size: 10px; letter-spacing: .06em; }
.pp-title td:last-child { font-family: var(--mono); font-weight: 500; }
.pp-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.pp-box { border: 1px solid #cfd3da; padding: 9px 11px; }
.pp-box .lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: .09em; color: #6a707a; margin-bottom: 3px; }
.pp-box b { display: block; font-size: 12.5px; }
.pp-box div { color: #3a3f48; }
.pp-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.pp-table thead { display: table-header-group; }
.pp-table th { background: #f0f1f4; border: 1px solid #cfd3da; padding: 6px 7px; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; text-align: left; font-weight: 600; }
.pp-table td { border: 1px solid #cfd3da; padding: 5px 7px; vertical-align: top; }
.pp-table tr { page-break-inside: avoid; }
.pp-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-table .c { text-align: center; }
.pp-table .code { font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
.pp-table tfoot td { font-weight: 600; background: #fafbfc; }
.pp-sum { display: flex; justify-content: flex-end; margin-top: 10px; }
.pp-sum table { border-collapse: collapse; min-width: 260px; }
.pp-sum td { padding: 4px 8px; border-bottom: 1px solid #e3e5ea; }
.pp-sum td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.pp-sum tr.grand td { border-top: 2px solid #16181d; border-bottom: 0; font-weight: 700; font-size: 13px; padding-top: 6px; }
.pp-note { margin-top: 14px; color: #3a3f48; font-size: 10.5px; border-left: 3px solid #cfd3da; padding-left: 9px; }
.pp-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; }
.pp-sign div { border-top: 1px solid #16181d; padding-top: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #4a4f58; }
.pp-foot { margin-top: 26px; display: flex; justify-content: space-between; font-size: 9.5px; color: #8a909a; border-top: 1px solid #e3e5ea; padding-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .login-main { grid-template-columns: 1fr; gap: 28px; }
  .login-card { justify-self: stretch; max-width: none; }
  .login-copy h1 { font-size: 28px; }
  .hdr-divider { display: none; }
  .who-chip .nm { display: none; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .paper:not(.pdf) { padding: 18px 14px; font-size: 10.5px; }
  .paper:not(.pdf) .pp-head { flex-direction: column; }
  .paper:not(.pdf) .pp-title { text-align: left; }
  .paper:not(.pdf) .pp-title table { margin-left: 0; }
  .paper:not(.pdf) .pp-title td { text-align: left; padding: 1px 12px 1px 0; }
  .paper:not(.pdf) .pp-parties { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .g4 { grid-template-columns: 1fr; }
  .hdr-title b { font-size: 17px; }
  .logo span { display: none; }
}
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--fg-2); margin: 2px 0 16px; cursor: pointer; }
.check input { margin-top: 3px; }
