:root {
  color-scheme: light;
  --ink:#3b3b3b; --muted:#625d69; --paper:#f7f7f7; --card:#fff;
  --line:#e5ddec; --accent:#754ca5; --soft:#f2eafa; --brand:#8d67be;
  font:16px/1.5 "MuseoSansCycl",Arial,sans-serif;
}
:root[data-theme=dark] {
  color-scheme:dark;
  --ink:#f3eff7; --muted:#c3bbce; --paper:#16131c; --card:#211c29;
  --line:#423750; --accent:#d2b3f4; --soft:#35284a;
}
* { box-sizing:border-box }
body { margin:0; background:var(--paper); color:var(--ink) }
a { color:inherit; text-decoration:none }
button,input,textarea { font:inherit }
button { cursor:pointer }
:where(button,a,input,textarea):focus-visible { outline:3px solid var(--brand); outline-offset:3px }
[hidden] { display:none!important }
.wrap { max-width:1272px; padding-inline:36px; margin:auto }
.masthead { background:#17141d; color:#fff; border-bottom:1px solid #352d40 }
.bar { min-height:74px; display:flex; align-items:center; justify-content:space-between; gap:20px }
.brand { display:flex; align-items:center; gap:15px }
.brand img { display:block; width:192px; height:auto }
.brand small { border-left:1px solid #776b85; padding-left:15px; color:#e5dbef; font-size:.85rem; font-weight:500 }
nav { display:flex; align-items:center; gap:25px; font-size:.9rem }
nav a:hover, .footer a:hover { text-decoration:underline }
.plain { background:transparent; color:inherit; border:1px solid currentColor; border-radius:8px; padding:7px 12px }
.dashboard { display:grid; grid-template-columns:1.4fr 1fr; background:#17141d; color:#fff; border-radius:12px; margin-top:28px; overflow:hidden }
.intro { padding:40px; display:flex; flex-direction:column; justify-content:center; background:linear-gradient(90deg,#15111ad9,#15111a5e),url("/images/tild3334-3161-4537-a230-343062333635__1_.png") center/cover }
.country { text-transform:uppercase; letter-spacing:.19em; color:#ffb16c; font-size:.73rem; font-weight:750; margin:0 }
h1 { font-size:clamp(2.2rem,5vw,4.55rem); font-weight:800; line-height:.99; letter-spacing:-.045em; margin:12px 0 16px; max-width:580px }
.intro>p:not(.country) { color:#ece5f4; margin:0 0 22px }
.search { display:flex; gap:11px; align-items:center; max-width:480px; border-radius:10px; padding:3px 13px; background:#fff; color:#3b3b3b }
.search span { font-size:1.5rem; line-height:1 }
.search input { outline:none; width:100%; border:0; padding:10px 1px; background:transparent; color:inherit; min-width:0 }
.search:focus-within { outline:3px solid #d4aff9; outline-offset:2px }
.rates { background:var(--card); color:var(--ink); padding:34px 30px; border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:0 12px 12px 0 }
.rate-top,.rate-head,.rate-row { display:grid; grid-template-columns:1fr .8fr .8fr; align-items:center; gap:10px }
.rate-top { grid-template-columns:1fr auto; margin-bottom:19px }
.rate-top h2, .catalog h2, .dialog-head h2 { margin:0; letter-spacing:-.045em }
.rate-top a { text-decoration:underline; font-size:.8rem }
.rate-head { font-size:.75rem; text-transform:uppercase; color:var(--muted); font-weight:700; padding-bottom:5px }
.rate-row { border-top:1px solid var(--line); padding-block:7px; font-variant-numeric:tabular-nums }
.rate-row span:first-child { font-weight:750 }
.rates>small { color:var(--muted); font-size:.72rem }
.tool-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:18px 0 32px }
.tool-strip button { display:flex; align-items:center; gap:14px; text-align:left; border:1px solid var(--line); background:var(--card); color:var(--ink); padding:13px; border-radius:12px }
.tool-mark { background:var(--soft); color:var(--accent); width:42px; height:42px; flex:none; display:grid; place-items:center; border-radius:8px; font-size:1.5rem }
.tool-strip strong,.tool-strip small { display:block }
.tool-strip small,.details small,#count { color:var(--muted) }
.catalog-head { display:flex; align-items:baseline; justify-content:space-between; gap:10px }
.catalog h2 { font-size:2rem }
#count { margin:0; text-align:right }
.filters { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 24px }
.filters button { border:1px solid var(--line); border-radius:100px; padding:6px 13px; color:var(--ink); background:var(--card) }
.filters button[aria-pressed=true] { color:#fff; background:#754ca5; border-color:#754ca5 }
.group { margin-bottom:24px }
.group h3 { margin:0 0 9px; font-size:1.04rem }
.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px }
.card { display:flex; align-items:center; background:var(--card); border:1px solid var(--line); border-radius:10px; min-width:0 }
.card>a { min-width:0; flex:1; padding:11px 4px 11px 11px; display:flex; align-items:center; gap:10px }
.card:hover,.tool-strip button:hover { border-color:var(--accent) }
.mark { display:grid; place-items:center; width:36px; height:36px; flex:none; background:var(--soft); color:var(--accent); font-weight:800; font-size:.77rem; border-radius:8px }
.details { display:grid; min-width:0; line-height:1.32 }
.details small { margin-top:3px; font-size:.75rem }
.arrow { margin-left:auto; color:var(--accent) }
.favorite { flex:none; border:0; border-radius:8px; margin-right:3px; padding:4px 7px; background:transparent; color:var(--accent); font-size:1.25rem; line-height:1.2 }
.favorite:hover,.favorite[aria-pressed=true] { background:var(--soft) }
.empty { border:1px dashed var(--line); border-radius:12px; padding:20px; color:var(--muted) }
footer { margin-top:40px; border-top:1px solid var(--line) }
.footer { display:flex; flex-wrap:wrap; align-items:center; gap:18px; padding-block:22px; color:var(--muted); font-size:.88rem }
.footer-logo img { display:block; width:115px; height:auto }
dialog { color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:18px; width:min(470px,calc(100% - 28px)); padding:20px; box-shadow:0 22px 65px #0004 }
dialog::backdrop { background:#16101ec4 }
.dialog-head,.month,.calc-actions { display:flex; gap:10px; align-items:center; justify-content:space-between; margin-bottom:12px }
.close,.month button,.keys button,.days button { border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--ink); padding:5px 10px }
.close { font-size:1.4rem; line-height:1.2 }
.days,.keys { display:grid; gap:5px; margin-bottom:12px }
.days { grid-template-columns:repeat(7,1fr); text-align:center }
.days>span { font-size:.78rem; color:var(--muted) }
.days button { padding:4px 0 }
.days button[aria-pressed=true] { background:var(--soft); color:var(--accent); border-color:var(--accent) }
.days button.has-note::after { content:"·"; color:var(--accent); font-weight:900 }
.keys { grid-template-columns:repeat(6,1fr) }
.field { display:grid; gap:5px; margin:8px 0 12px }
.field input,.field textarea { width:100%; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:8px; padding:8px }
.primary { background:#754ca5; color:#fff; border:0; border-radius:8px; padding:8px 13px }
.feedback { color:var(--muted); margin:5px 0 0 }
#calc-result { display:block; min-height:25px; color:var(--accent); font-weight:750; overflow-wrap:anywhere }
.note-list { list-style:none; padding:0; margin:12px 0 0 }
.note-list li { display:flex; justify-content:space-between; gap:14px; align-items:start; padding:8px 0; border-top:1px solid var(--line) }
.note-list li span { white-space:pre-wrap; overflow-wrap:anywhere; min-width:0 }
@media(max-width:900px) { .wrap { padding-inline:22px } .intro,.rates { padding:26px } .cards { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media(max-width:660px) { .wrap { padding-inline:14px } .bar { flex-wrap:wrap; padding-block:12px; gap:8px } nav { gap:13px } .dashboard { grid-template-columns:1fr; margin-top:14px } .intro,.rates { padding:22px } .tool-strip { gap:6px } .tool-strip button { padding:7px; gap:6px; font-size:.75rem; flex-direction:column; align-items:start } .tool-strip small { display:none } .cards { grid-template-columns:1fr } .catalog h2 { font-size:1.6rem } #count { font-size:.78rem } .brand { gap:9px } .brand img { width:148px } .brand small { padding-left:9px } .rates { border-left:1px solid var(--line); border-top:4px solid var(--brand); border-radius:0 0 12px 12px } }

/* Resource logos use the existing card icon slot. */
.mark img { display:block; width:30px; height:30px; object-fit:contain }
.mark .icon-dark { display:none }
:root[data-theme=dark] .mark .icon-light { display:none }
:root[data-theme=dark] .mark .icon-dark { display:block }

.portal-contact { display:grid; gap:2px; flex:none; text-align:right; white-space:nowrap; line-height:1.35 }
.portal-contact a { font-weight:800; font-size:1.06rem }
.portal-contact a:hover { text-decoration:underline }
.portal-contact small { color:#e5dbef }
.account-bar,.account-actions,.catalog-tools,.save-status { display:flex; align-items:center; flex-wrap:wrap; gap:8px }
.account-bar { justify-content:space-between; margin-top:13px }
.account-actions strong { overflow-wrap:anywhere }
.save-status { color:var(--muted); font-size:.82rem }
.account-bar + .dashboard { margin-top:12px }
.catalog-tools { justify-content:flex-end }
.catalog-tools .plain { font-size:.84rem }
.policy-link { text-decoration:underline }
#register-form button { margin-top:10px }
#layout { width:min(630px,calc(100% - 28px)) }
#layout-list { max-height:52vh; overflow:auto; margin:10px 0 14px; padding:2px }
.layout-group h3 { margin:10px 0 5px; font-size:.94rem }
.layout-row,.management-record { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px 0; border-top:1px solid var(--line) }
.layout-row>span { min-width:0; overflow-wrap:anywhere }
.layout-controls { display:flex; flex:none; gap:4px }
.layout-controls button { border:1px solid var(--line); border-radius:6px; color:var(--ink); background:var(--paper); padding:4px 7px; font-size:.81rem }
.layout-controls button:disabled { opacity:.4; cursor:default }
.management { max-width:960px; padding-block:30px }
.management h1 { font-size:clamp(2rem,5vw,3.8rem) }
.management h2 { margin:0 0 5px; font-size:1.3rem }
.management-card { padding:16px; background:var(--card); border:1px solid var(--line); border-radius:12px; margin-bottom:12px }
.management-actions { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px }
.management-record div { display:grid; gap:2px; min-width:0 }
.management-record strong { overflow-wrap:anywhere }
.management-record a { color:var(--accent) }
.management-record small { color:var(--muted) }
.record-list { margin-top:10px }
.manual-form { display:grid; grid-template-columns:1fr 1fr auto; align-items:end; gap:10px }
.manual-form .field { margin:2px 0 0 }
.manual-form [role=status] { grid-column:1/-1 }
.activate-page { max-width:620px }
@media(max-width:1000px) { .masthead .bar { flex-wrap:wrap; gap:10px } .masthead .bar nav { order:3; padding-bottom:7px; flex-basis:100% } }
@media(max-width:480px) { .masthead .brand small { display:none } .portal-contact a { font-size:.89rem } .portal-contact small { font-size:.7rem } .catalog-head { align-items:flex-start; flex-direction:column } .catalog-tools { justify-content:flex-start } .manual-form { grid-template-columns:1fr } .manual-form button { justify-self:start } .management-record { flex-wrap:wrap } }

.phone-control { display:flex; align-items:center; gap:5px; min-width:0; border:1px solid var(--line); border-radius:8px; background:var(--paper); padding-left:9px }
.phone-control:focus-within { outline:3px solid var(--brand); outline-offset:2px }
.phone-prefix { font-weight:750; color:var(--ink); white-space:nowrap }
.field .phone-control input { border:0; padding-left:0; background:transparent; outline:0 }
.widget-form { margin-block:12px; border-block:1px solid var(--line); padding-block:10px }
.widget-form h3 { font-size:1.03rem; margin:0 0 5px }
.widget-fields { display:grid; grid-template-columns:1fr 1fr; gap:3px 12px }
.field select { width:100%; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:8px; padding:8px; font:inherit }
.widget-records { max-height:370px; overflow:auto }
.record-actions { display:flex!important; flex-wrap:wrap; gap:6px!important; flex-direction:row }
.delete-user { color:#a01d29; border-color:#a01d29 }
@media(max-width:480px) { .widget-fields { grid-template-columns:1fr } }

.password-control,.widget-icon-field { display:flex; align-items:center; gap:8px; min-width:0 }
.password-control input { flex:1; min-width:0 }
.password-control button { flex:none; font-size:.82rem }
.category-form { display:grid; align-items:end; grid-template-columns:minmax(0,1fr) auto; gap:8px; margin-block:10px }
.category-form .field { margin:0 }
.category-form [role=status] { grid-column:1/-1 }
.widget-icon-field img { width:40px; height:40px; padding:4px; object-fit:contain; background:var(--soft); border-radius:8px; flex:none }
.widget-icon-field .field { min-width:0; flex:1 }
.widget-icon-field input { box-sizing:border-box; overflow:hidden }
@media(max-width:420px) { .category-form { grid-template-columns:1fr } .category-form button { justify-self:start } }

.quick-launch { padding:15px; margin:0 0 24px; border:1px solid var(--line); border-radius:12px; background:var(--card) }
.quick-head { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:9px }
.quick-head h2 { margin:0; font-size:1.45rem; letter-spacing:-.035em }
.minsk-clock { margin:0; color:var(--muted); font-size:.88rem; white-space:nowrap }
.minsk-clock time { color:var(--ink); font-weight:800; font-variant-numeric:tabular-nums }
.quick-columns { display:grid; grid-template-columns:1fr 1fr; gap:12px 16px }
.quick-columns h3 { margin:0; font-size:.92rem }
.quick-links { margin:5px 0 0; padding:0; list-style:none }
.quick-links { display:flex; flex-wrap:wrap; gap:5px }
.quick-links li { display:flex; align-items:stretch; max-width:100%; border:1px solid var(--line); border-radius:8px; background:var(--paper) }
.quick-links a { min-width:0; color:var(--accent); font-weight:700; padding:5px 8px; line-height:1.3; overflow-wrap:anywhere }
.quick-links a:hover { text-decoration:underline }
.quick-links button { align-self:stretch; flex:none; background:transparent; border:0; border-left:1px solid var(--line); color:var(--muted); padding:0 7px }
.quick-columns .feedback { font-size:.84rem }
@media(max-width:500px) { .quick-columns { grid-template-columns:1fr } .quick-head h2 { font-size:1.18rem } }


/* VipLab: CTA to tax portals setup landing */
.setup-cta{margin:0.75rem 0 1rem;font-size:0.95rem;line-height:1.45}
.setup-cta a{color:#8d67be;font-weight:600;text-decoration:underline}
.setup-cta a:hover{opacity:0.85}
.group-note{margin:0 0 0.75rem;font-size:0.9rem;opacity:0.9}
.group-note a{color:#8d67be;text-decoration:underline}
