/* 72godziny — shared design tokens, UX 3.5. Loaded last in every view.
   Geometry overrides intentionally supersede legacy app CSS. Print unchanged. */
:root { --ui-radius-control: 12px; --ui-radius-card: 18px; --ui-radius-icon: 10px; --ui-radius-pill: 999px; --ui-card-inset:20px; --ui-accent-height:3px; }
@media screen {
  :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.btn, a.button, .guide-cta, .org-primary, .org-secondary, .portal-alert, .portal-menu, .urgent, .community-entry-cta, .showcase__main-cta, .showcase__secondary, .showcase__panel-cta, .portal-house-links a, .content30-nav a, .side-link, .choice__surface, .choice, .full-task__choices span, .v45-task fieldset label>span, .v48-task-options label>span, .full-task__action, .full-task__external, .v48-task-external, .result-jumpnav button, .home-focus__cta, .facts-form button) {border-radius:var(--ui-radius-control)!important;}
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="color"]), select, textarea, .numeric-field, .water-input, .counter-control) {border-radius:var(--ui-radius-control)!important;}
  :is(.intro-preview, .preview-task, .water-result-panel, .domain-card, .trust-list>div, .community-entry, .first-decision, .quick-path, .guide-cards a, .guide-note, .content-fact, .content-profiles section, .content-faq details, .org-grid article, .org-doc, .org-note, .org-main details, .panel, .feature, .metric, .question, .object-card, .task, .empty, .cta-band, .hero-picture, .hero-caption, .info, .warning, .success, .result-overview, .result-overview__item, .action-card, .extra-checks, .extra-grid article, .all-good, .area-preview__item, .status-summary, .check-card, .extra-card, .domain-ready, .result-jumpnav, .result-group, .prepared-card, .progress-compact, .water-fact, .audit-count, .validation, .recommendation, .recommendation__first, .full-task, .home-focus, .home-focus__surface, .home-full-plan, .full-plan-home__hero, .full-plan-home__list, .v45-focus-card, .v45-continue, .v45-need-row, .v45-task, .v45-calm, .v48-start__example, .v48-module-items, .v48-subarea-list, .v48-question .question-main, .v49-result-row, .v49-continue-row, .home-domain-preview, .v49-stock, .v49-all-tasks) {border-radius:var(--ui-radius-card)!important;}
  :is(.preview-symbol, .domain-symbol, .feature .icon, .action-card__icon, .area-preview__item>span, .status-summary__icon, .check-card__icon, .domain-card__icon, .extra-card__icon, .prepared-card>span, .domain-detail__icon, .extra-sheet__intro>span, .domain-pill>span, .full-module__icon, .v45-continue__icon, .v45-module-row__icon, .v48-example-row__icon, .v48-module-hero__icon, .v49-result-row__icon, .v49-continue-row__icon, .home-domain-symbol, .context-icon, .v61-number, .v45-module-hero>span) {border-radius:var(--ui-radius-icon)!important;}
  :is(.hero-house__point, .sheet__close, .choice__mark--radio, .result-icon, .dot, .result-group__symbol):is(.hero-house__point, .sheet__close, .choice__mark--radio, .result-icon, .dot, .result-group__symbol) {border-radius:50%!important;}
  :is(.tag, .task__tag, .progress-pill, .status-badge, .v45-status, .v49-result-state, .preview-example, .sheet__handle, .progress-track__segment, .progress-track--single) {border-radius:var(--ui-radius-pill)!important;}
  .progress-track__segment i {border-radius:inherit!important;}
  :is(button,a,input,select,textarea,summary):focus-visible {outline-offset:3px;}
  .choice__mark--check {border-radius:5px!important;}
}

/* UX 3.6 — shared eight-domain card pattern. Home links remain links; community summaries remain static. */
@media screen {
  .home-page .domains-grid, .domain-overview {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
  .home-page .domains-grid .domain-card, .domain-overview .domain-card {position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;min-height:192px;padding:20px;background:#fff;color:#14213a;border:1px solid #dbe2e9;border-radius:var(--ui-radius-card);box-shadow:none;text-decoration:none;overflow-wrap:break-word;}
  .home-page .domains-grid .domain-card::before, .domain-overview .domain-card::before {content:"";position:absolute;display:block;left:var(--ui-card-inset);right:var(--ui-card-inset);top:0;height:var(--ui-accent-height);border-radius:0 0 4px 4px;background:var(--domain-accent);}
  .home-page .domains-grid .domain-symbol, .domain-overview .domain-symbol {display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:var(--ui-radius-icon);margin:4px 0 0;background:var(--domain-accent);color:#fff;box-shadow:none;}
  .home-page .domains-grid .domain-icon, .domain-overview .domain-icon {display:block;width:24px;height:24px;flex:none;}
  .home-page .domains-grid .domain-card strong, .domain-overview .domain-card strong {display:block;font-size:17px;font-weight:700;line-height:1.25;letter-spacing:-.015em;align-self:auto;color:#14213a;}
  .home-page .domains-grid .domain-desc, .domain-overview .domain-desc {display:block;font-size:14px;line-height:1.45;color:#46576d;align-self:auto;}
  .home-page .domains-grid .domain-meta, .domain-overview .domain-meta {display:block;margin:auto 0 0;font-size:13px;font-weight:700;line-height:1.35;color:#1457bd;align-self:auto;}
  .home-page .domains-grid .domain-meta::before, .domain-overview .domain-meta::before {display:none;}
  .domain-overview .domain-meta {color:#46576d;font-weight:600;}
  .domain-overview .community-domain-card {cursor:default;}
  .home-page .domains-grid .domain-card[data-domain="energy"] .domain-symbol, .home-page .domains-grid .domain-card[data-domain="food"] .domain-symbol, .domain-overview .domain-card[data-domain="power"] .domain-symbol, .domain-overview .domain-card[data-domain="heat"] .domain-symbol {color:#202923;}
  .home-page .domains-grid .domain-card:hover {border-color:var(--domain-accent);box-shadow:0 8px 20px #142e5414;}
  @media (max-width:1020px) {.home-page .domains-grid, .domain-overview {grid-template-columns:repeat(2,minmax(0,1fr));}}
  @media (max-width:767px) {
    .home-page .domains-grid, .domain-overview {gap:10px;}
    .home-page .domains-grid .domain-card, .domain-overview .domain-card {min-height:180px;padding:14px;gap:9px;}
    .home-page .domains-grid .domain-card::before, .domain-overview .domain-card::before {left:var(--ui-card-inset);right:var(--ui-card-inset);}
    .home-page .domains-grid .domain-card strong, .domain-overview .domain-card strong {font-size:15px;}
    .home-page .domains-grid .domain-desc, .domain-overview .domain-desc {font-size:13px;}
    .home-page .domains-grid .domain-meta, .domain-overview .domain-meta {font-size:12px;}
    .home-page .domains-grid .domain-symbol, .domain-overview .domain-symbol {width:38px;height:38px;}
  }
}

@media screen and (max-width:767px){:root{--ui-card-inset:14px;}}
