/* TiCloud · InetAdmin — komponenty stron (B1–B17 z mapy strony). Źródło: kanwa makiet, ds/ticloud/components/bundle.css (wersja 64).
   Wartości wyłącznie z ticloud-tokens.css (var(--…)); prefiks klas: tc-. Fonty ładuje Canvas. */

.tc, .tc * { box-sizing: border-box; }
.tc { font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--surface-page); -webkit-font-smoothing: antialiased; }
.tc h1, .tc h2, .tc h3, .tc h4 { font-family: var(--font-heading); color: var(--brand-navy); margin: 0; line-height: 1.15; }
.tc h2 { font-size: 32px; font-weight: 800; }
.tc h3 { font-size: 24px; font-weight: 700; line-height: 1.2; }
.tc h4 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.tc p { margin: 0; }
.tc :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tc-on-dark :focus-visible, .tc .tc-on-dark :focus-visible { outline-color: var(--focus-on-dark); }
.tc-muted { color: var(--ink-muted); }
.tc-small { font-size: 14px; line-height: 1.5; }
.tc-caption { font-size: 12px; line-height: 1.5; font-weight: 500; color: var(--ink-muted); }
.tc-stack > * + * { margin-top: var(--space-3); }
.tc-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.tc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.tc-ico { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }

/* Przyciski */
.tc-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--tap-target); padding: 0 20px; border-radius: var(--radius-sm); border: 2px solid transparent; font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.tc-btn--primary { background: var(--action); color: var(--on-action); }
.tc-btn--primary:hover { background: var(--action-hover); }
.tc-btn--primary:active { background: var(--action-active); }
.tc-btn--secondary { background: var(--surface-card); color: var(--brand-navy); border-color: var(--brand-navy); }
.tc-btn--secondary:hover { background: var(--brand-blue-50); }
.tc-btn--ghost { background: transparent; color: var(--link); padding: 0 8px; }
.tc-btn--ghost:hover { color: var(--action-hover); text-decoration: underline; }
.tc-btn--on-dark { background: var(--neutral-0); color: var(--brand-navy); }
.tc-btn--on-dark:hover { background: var(--brand-blue-50); }
.tc-btn--on-dark-outline { background: transparent; color: var(--ink-on-dark); border-color: var(--ink-on-dark); }
.tc-btn--on-dark-outline:hover { background: var(--brand-navy-700); }
.tc-btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.tc-btn[disabled], .tc-btn[aria-disabled="true"] { background: var(--neutral-100); color: var(--neutral-600); border-color: var(--neutral-300); cursor: not-allowed; }
.tc-btn-note { display: block; margin-top: var(--space-2); font-size: 14px; color: var(--ink-muted); }
.tc-link { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.tc-link:hover { color: var(--action-hover); }
.tc-on-dark .tc-link { color: var(--link-on-dark); }

/* Etykiety funkcji (B16, TCL-D-09) — zawsze ikona i tekst */
.tc-label { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: var(--radius-full); font: 600 13px/20px var(--font-body); color: var(--ink); white-space: nowrap; }
.tc-label--ok { background: var(--success-bg); }
.tc-label--ok .tc-ico { color: var(--success); }
.tc-label--wip { background: var(--info-bg); }
.tc-label--wip .tc-ico { color: var(--info); }
.tc-label--plan { background: var(--neutral-100); }
.tc-label--plan .tc-ico { color: var(--neutral-600); }

/* Flagi widoczności — tylko strona wewnętrzna */
.tc-flag { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: var(--radius-full); border: 1.5px dashed currentColor; font: 600 12px/18px var(--font-body); background: var(--surface-card); white-space: nowrap; }
.tc-flag--ready { color: var(--success); }
.tc-flag--soon { color: var(--info); }
.tc-flag--hidden { color: var(--flag-hidden); }
.tc-flag--unconfirmed { color: var(--neutral-900); background: var(--warning-bg); border-color: var(--flag-unconfirmed); }
.tc-flag--unconfirmed .tc-ico { color: var(--flag-unconfirmed); }
.tc-flagged { position: relative; outline: 1.5px dashed var(--neutral-500); outline-offset: 4px; border-radius: var(--radius-md); }
.tc-flagged > .tc-flag { position: absolute; top: -12px; right: 8px; z-index: 1; }
.tc-public .tc-is-hidden, .tc-public .tc-is-unconfirmed, .tc-public .tc-flag, .tc-public .tc-internal { display: none !important; }
.tc-public .tc-flagged { outline: none; }
.tc-internal-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding: var(--space-2) var(--space-4); background: var(--warning-bg); border-bottom: 1px solid var(--neutral-200); font-size: 13px; }

/* Przełącznik segmentowy (okres, widok, filtr) */
.tc-seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--neutral-100); border-radius: var(--radius-sm); border: 1px solid var(--neutral-200); }
.tc-seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 4px; background: transparent; font: 600 14px/1 var(--font-body); color: var(--neutral-700); cursor: pointer; }
.tc-seg button[aria-pressed="true"], .tc-seg button[aria-selected="true"] { background: var(--surface-card); color: var(--brand-navy); box-shadow: 0 0 0 1px var(--neutral-300); }

/* Nagłówek (B1) */
.tc-header { display: flex; align-items: center; gap: var(--space-4); padding: 0 var(--space-4); min-height: 72px; background: var(--surface-card); border-bottom: 1px solid var(--border-subtle); }
.tc-header__logo img { height: 30px; width: auto; display: block; }
.tc-nav { display: flex; gap: 0; flex: 1 0 auto; }
.tc-nav a { display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap-target); padding: 0 7px; white-space: nowrap; border-radius: var(--radius-sm); color: var(--brand-navy); font-weight: 600; font-size: 15px; text-decoration: none; }
.tc-nav a:hover { background: var(--brand-blue-50); }
.tc-nav a[aria-current="page"] { color: var(--link); box-shadow: inset 0 -2px 0 var(--brand-blue); border-radius: 0; }
.tc-header__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.tc-header__actions .tc-btn--ghost { padding: 0 6px; }
.tc-header--mobile { padding: 0 var(--space-4); min-height: 60px; gap: var(--space-2); }
.tc-header--mobile .tc-header__logo { flex: 1; }
.tc-header--mobile .tc-header__logo img { height: 26px; }
.tc-iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: var(--tap-target); min-height: var(--tap-target); padding: 0 10px; border: 1px solid var(--neutral-300); border-radius: var(--radius-sm); background: var(--surface-card); color: var(--brand-navy); font: 600 14px/1 var(--font-body); cursor: pointer; }

/* Stopka (B2) */
.tc-footer { background: var(--surface-dark); color: var(--ink-on-dark); padding: var(--space-12) var(--space-6) var(--space-6); }
.tc-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-6); }
.tc-footer h4 { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--ink-on-dark); margin-bottom: var(--space-2); }
.tc-footer ul { list-style: none; margin: 0; padding: 0; }
.tc-footer li a { display: inline-block; padding: 4px 0; color: var(--ink-muted-on-dark); text-decoration: none; font-size: 14px; }
.tc-footer li a:hover { color: var(--ink-on-dark); text-decoration: underline; }
.tc-footer__base { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--brand-navy-800); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; font-size: 13px; color: var(--ink-muted-on-dark); }
.tc-footer__base img { height: 28px; width: auto; }

/* Karta planu (B3, W1) */
.tc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.tc-plan { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.tc-plan__name { font: 700 22px/1.2 var(--font-heading); color: var(--brand-navy); }
.tc-plan__for { font-size: 14px; color: var(--ink-muted); }
.tc-plan__lead { font: 800 32px/1 var(--font-heading); color: var(--brand-navy); }
.tc-plan__lead small { display: block; font: 500 14px/1.4 var(--font-body); color: var(--ink-muted); margin-top: 4px; }
.tc-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.tc-plan li { display: flex; gap: 8px; }
.tc-plan li .tc-ico { color: var(--brand-blue); margin-top: 3px; }
.tc-plan__price { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.tc-price { font: 700 32px/1.1 var(--font-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.tc-price small { font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.tc-renew { font-size: 14px; color: var(--ink-muted); }
.tc-renew strong { color: var(--ink); }
.tc-plan--enterprise { background: var(--brand-blue-50); border-color: var(--brand-blue-200); box-shadow: none; }

/* Tabele (B4, B12) */
.tc-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-card); }
.tc-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tc-table caption { text-align: left; padding: var(--space-3) var(--space-4); font-size: 14px; color: var(--ink-muted); caption-side: bottom; }
.tc-table th, .tc-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.tc-table thead th { background: var(--surface-section); color: var(--brand-navy); font-weight: 700; white-space: nowrap; }
.tc-table tbody th { font-weight: 600; color: var(--neutral-700); position: sticky; left: 0; background: var(--surface-card); min-width: 150px; }
.tc-table tr:last-child td, .tc-table tr:last-child th { border-bottom: 0; }

/* Listy W cenie (B5) i bloki (B6, B7) */
.tc-checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-2) var(--space-6); }
.tc-checklist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.tc-checklist li > span:first-child { flex: 1 1 160px; }
.tc-card { padding: var(--space-6); background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.tc-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.tc-split ul { margin: var(--space-3) 0 0; padding-left: 20px; display: grid; gap: 6px; }
.tc-split .tc-card--us { background: var(--brand-blue-50); border-color: var(--brand-blue-200); }

/* Baner (B8), FAQ (B9), CTA (B10) */
.tc-banner { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; padding: var(--space-6); background: var(--surface-tint); border-radius: var(--radius-lg); }
.tc-banner .tc-link { color: var(--link-on-tint); }
.tc-faq { border-top: 1px solid var(--border-subtle); }
.tc-faq details { border-bottom: 1px solid var(--border-subtle); }
.tc-faq summary { list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; min-height: var(--tap-target); padding: 12px 0; font-weight: 600; color: var(--brand-navy); cursor: pointer; }
.tc-faq summary::-webkit-details-marker { display: none; }
.tc-faq summary::after { content: "+"; font: 700 22px/1 var(--font-body); color: var(--brand-blue); }
.tc-faq details[open] summary::after { content: "–"; }
.tc-faq details > div { padding: 0 0 var(--space-4); color: var(--ink-muted); max-width: 70ch; }
.tc-cta { padding: var(--space-12) var(--space-6); background: var(--surface-dark); color: var(--ink-on-dark); border-radius: var(--radius-lg); text-align: center; }
.tc-cta h2 { color: var(--ink-on-dark); }
.tc-cta p { color: var(--ink-muted-on-dark); margin: var(--space-3) auto var(--space-6); max-width: 52ch; }
.tc-cta .tc-btn-note { color: var(--ink-muted-on-dark); }

/* Ilustracja panelu (B11, TCL-D-07) */
.tc-panel { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); background: var(--surface-page); box-shadow: var(--shadow-raised); display: grid; grid-template-columns: 190px 1fr; min-height: 320px; font-size: 13px; }
.tc-panel__side { background: var(--surface-card); border-right: 1px solid var(--border-subtle); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.tc-panel__side img { height: 22px; width: auto; margin: 0 6px 12px; }
.tc-panel__side span { padding: 7px 8px; border-radius: var(--radius-sm); color: var(--neutral-700); font-weight: 500; }
.tc-panel__side span[aria-current] { background: var(--brand-blue-50); color: var(--brand-blue-hover); font-weight: 700; }
.tc-panel__main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.tc-panel__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tc-panel__cards > div { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 10px 12px; }
.tc-panel__cards b { display: block; font-size: 12px; color: var(--ink-muted); font-weight: 600; margin-bottom: 4px; }
.tc-panel__caption { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: var(--space-2); }

/* Formularze (B13, B14, B15, B17) */
.tc-field { display: grid; gap: 6px; }
.tc-field label, .tc-field legend { font: 600 14px/1.4 var(--font-body); color: var(--neutral-700); }
.tc-input, .tc-select, .tc-textarea { width: 100%; min-height: var(--tap-target); padding: 10px 12px; border: 1.5px solid var(--border-control); border-radius: var(--radius-sm); background: var(--surface-card); font: 400 16px/1.4 var(--font-body); color: var(--ink); }
.tc-textarea { min-height: 112px; resize: vertical; }
.tc-input[aria-invalid="true"] { border-color: var(--error); }
.tc-help { font-size: 14px; color: var(--ink-muted); }
.tc-error { display: flex; gap: 6px; font-size: 14px; color: var(--error); font-weight: 600; }
.tc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.tc-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand-blue); }
.tc-success { display: flex; gap: 10px; padding: var(--space-4); border-radius: var(--radius-sm); background: var(--success-bg); color: var(--ink); }
.tc-success .tc-ico { color: var(--success); margin-top: 3px; }
.tc-result { padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-tint); }
.tc-domain { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tc-domain .tc-input { flex: 1 1 220px; }

/* Szablon maila */
.tc-mail { max-width: 600px; margin: 0 auto; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }
.tc-mail__head { padding: 20px 24px; border-bottom: 1px solid var(--border-subtle); }
.tc-mail__head img { height: 28px; width: auto; display: block; }
.tc-mail__body { padding: 24px; display: grid; gap: 14px; }
.tc-mail__foot { padding: 18px 24px; background: var(--surface-dark); color: var(--ink-muted-on-dark); font-size: 12px; line-height: 1.6; }
.tc-mail__foot a { color: var(--link-on-dark); }

/* Nagłówek: desktop od 1180 px, poniżej wersja telefonu. */
@media (max-width: 1179px) { .tc-header:not(.tc-header--mobile):not(.tc-demo) { display: none; } }
@media (min-width: 1180px) { .tc-header--mobile:not(.tc-demo) { display: none; } }

@media (max-width: 640px) {
  .tc h2 { font-size: 26px; }
  .tc-panel { grid-template-columns: 1fr; }
  .tc-panel__side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .tc-panel__side img { display: none; }
}
