    :root {
      --navy: #173d49;
      --navy-2: #214f5c;
      --teal: #00aeb5;
      --teal-dark: #087f86;
      --yellow: #f4cc57;
      --ink: #183f4a;
      --muted: #6f858c;
      --page: #f2f6f3;
      --morse-soft: #dff5f2;
      --caesar: #6b5bc7;
      --caesar-soft: #eeebff;
      --base: #cc7426;
      --base-soft: #fff0df;
      --sidebar-width: 282px;
      --sidebar-closed: 78px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
    button, textarea, input, select { font: inherit; }
    button, .tool-link { -webkit-tap-highlight-color: transparent; }
    button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(0,174,181,.32); outline-offset: 2px; }
    [hidden] { display: none !important; }

    .sidebar {
      position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar-width);
      display: flex; flex-direction: column; padding: 24px 16px;
      background: var(--navy); color: white; transition: width .22s ease, transform .22s ease;
    }
    .brand { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 8px; color: white; text-decoration: none; overflow: hidden; }
    .logo { position: relative; flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px 15px 15px 5px; background: var(--teal); font-family: ui-monospace, monospace; font-size: 18px; font-weight: 900; transform: rotate(-2deg); }
    .logo i { color: var(--yellow); font-style: normal; }
    .brand-text { min-width: 175px; white-space: nowrap; }
    .brand-text strong, .brand-text small { display: block; }
    .brand-text strong { font-size: 21px; letter-spacing: -.5px; }
    .brand-text small { margin-top: 4px; color: #a9c4cb; font-size: 10px; }

    .sidebar-toggle {
      position: absolute; top: 31px; right: -14px; width: 29px; height: 29px; border: 3px solid var(--page); border-radius: 50%;
      display: grid; place-items: center; background: var(--yellow); color: var(--navy); font-weight: 1000; cursor: pointer; box-shadow: 0 3px 10px rgba(23,61,73,.18);
    }
    .sidebar-toggle span { transform: translateX(-1px); transition: transform .2s ease; }
    .nav-caption { margin: 32px 10px 10px; color: #789da8; font-size: 10px; font-weight: 900; letter-spacing: 1.7px; white-space: nowrap; }
    .nav-section { margin-bottom: 9px; border-radius: 15px; background: rgba(255,255,255,.035); overflow: hidden; }
    .nav-section.open { background: var(--navy-2); }
    .nav-heading { width: 100%; min-height: 54px; padding: 8px; border: 0; display: grid; grid-template-columns: 38px 1fr 18px; align-items: center; gap: 9px; background: transparent; color: #e4eef0; text-align: left; cursor: pointer; }
    .nav-heading strong { font-size: 13px; line-height: 1.25; }
    .nav-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--teal); color: white; font: 900 12px ui-monospace, monospace; }
    .nav-icon.how-icon { background: #bc5e7d; font-size: 16px; }
    .nav-icon.gold { background: #c99c29; font-size: 16px; }
    .nav-arrow { color: #9bb8bf; font-size: 17px; text-align: center; }
    .tool-links { display: grid; gap: 2px; padding: 0 9px 10px 54px; }
    .tool-link { min-height: 36px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: #bad0d5; text-align: left; font-size: 11px; font-weight: 750; cursor: pointer; }
    .tool-link:hover { background: rgba(255,255,255,.07); color: white; }
    .tool-link.active { background: #32606d; color: white; }
    .future-note { margin: -3px 12px 12px 55px; color: #9fb9bf; font-size: 10px; line-height: 1.45; }
    .main { min-height: 100vh; margin-left: var(--sidebar-width); transition: margin-left .22s ease; }
    .topbar { min-height: 68px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dce6e3; background: rgba(242,246,243,.96); }
    .crumbs { color: #87999e; font-size: 11px; }
    .crumbs strong { color: var(--ink); }
    .header-contact { width: 42px; height: 42px; margin-left: auto; border: 1px solid #d5e3e5; border-radius: 12px; display: grid; place-items: center; background: white; color: var(--teal-dark); transition: transform .15s ease, border-color .15s ease, background .15s ease; }
    .header-contact:hover { border-color: var(--teal); background: #eaf8f7; transform: translateY(-1px); }
    .header-contact svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
    .top-label { padding: 7px 12px; border-radius: 999px; background: #dcefed; color: var(--teal-dark); font-size: 10px; font-weight: 850; }
    .mobile-menu { display: none; border: 0; border-radius: 9px; background: var(--navy); color: white; padding: 9px 12px; font-weight: 800; cursor: pointer; }
    .mobile-menu-button, .mobile-menu-close, .mobile-menu-overlay { display: none; }
    .content { width: min(1080px, calc(100% - 64px)); margin: 0 auto; padding: 48px 0 56px; }
    .site-footer { width:min(1080px,calc(100% - 64px)); margin:0 auto; padding:20px 0 28px; border-top:1px solid #dce6e8; display:flex; justify-content:space-between; gap:16px; color:#7c9096; font-size:9px; }
    .site-footer strong { color:#526e77; }
    .intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
    .eyebrow { color: var(--teal-dark); font-size: 10px; font-weight: 950; letter-spacing: 1.7px; text-transform: uppercase; }
    h1 { margin: 9px 0 7px; color: var(--navy); font-size: clamp(34px, 5vw, 50px); line-height: 1; letter-spacing: -2px; }
    .intro p { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
    .intro-mark { flex: 0 0 auto; padding: 13px 17px; border-radius: 14px; color: var(--teal-dark); background: var(--morse-soft); font: 900 21px ui-monospace, monospace; transform: rotate(-2deg); }

    .tool-surface { overflow: hidden; border-radius: 24px; background: var(--morse-soft); }
    .tool-page.caesar .tool-surface { background: var(--caesar-soft); }
    .tool-page.bases .tool-surface { background: var(--base-soft); }
    .tool-page.caesar .eyebrow { color: var(--caesar); }
    .tool-page.bases .eyebrow { color: var(--base); }
    .tool-page.caesar .intro-mark { color: var(--caesar); background: #e3dfff; }
    .tool-page.bases .intro-mark { color: var(--base); background: #ffe5c6; }
    .tool-toolbar { min-height: 66px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
    .tabs { display: flex; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.52); }
    .tabs button { padding: 9px 15px; border: 0; border-radius: 9px; background: transparent; color: #60777e; font-size: 11px; font-weight: 850; cursor: pointer; }
    .tabs button.active { background: var(--navy); color: white; }
    .tool-page.caesar .tabs button.active { background: var(--caesar); }
    .plain-button { padding: 8px 10px; border: 0; background: transparent; color: #667d84; font-size: 11px; font-weight: 800; cursor: pointer; }
    .plain-button:disabled { opacity: .35; cursor: default; }
    .editor { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(255,255,255,.45); }
    .editor-panel { min-width: 0; min-height: 280px; padding: 25px; display: flex; flex-direction: column; background: rgba(255,255,255,.38); }
    .editor-panel.output { background: rgba(255,255,255,.20); }
    .field-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: var(--navy); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; }
    .counter, .base-tag { color: #7c9197; font-size: 9px; font-weight: 750; text-transform: none; letter-spacing: 0; }
    textarea, .number-input { width: 100%; flex: 1; border: 0; outline: 0; resize: none; background: transparent; color: var(--navy); font-size: 24px; line-height: 1.55; font-weight: 700; }
    textarea::placeholder, .number-input::placeholder { color: #9db7b6; }
    .result { flex: 1; min-height: 130px; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--teal-dark); font-size: 24px; line-height: 1.55; font-weight: 800; }
    .result.placeholder { color: #91aaa9 !important; font-family: inherit !important; font-size: 19px !important; font-weight: 650; letter-spacing: 0 !important; }
    .morse-result { font-family: ui-monospace, monospace; letter-spacing: 1px; }
    .caesar-result { color: var(--caesar); }
    .base-result { color: var(--base); font-family: ui-monospace, monospace; font-size: 30px; }
    .hint { min-height: 16px; margin: 8px 0 0; color: #6c8589; font-size: 10px; }
    .warning { color: #a34e23; font-weight: 750; }
    .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
    .action { min-height: 39px; padding: 0 14px; border: 0; border-radius: 10px; background: rgba(255,255,255,.75); color: var(--navy); font-size: 10px; font-weight: 900; cursor: pointer; }
    .action.primary { background: var(--teal); color: white; }
    .tool-page.caesar .action.primary { background: var(--caesar); }
    .tool-page.bases .action.primary { background: var(--base); }
    .action:disabled { opacity: .4; cursor: default; }
    .swap { position: absolute; z-index: 2; left: 50%; top: 50%; width: 42px; height: 42px; border: 4px solid var(--morse-soft); border-radius: 50%; background: var(--navy); color: white; transform: translate(-50%,-50%); font-size: 18px; font-weight: 900; cursor: pointer; }
    .tool-page.caesar .swap { border-color: var(--caesar-soft); background: var(--caesar); }
    .tool-page.bases .swap { border-color: var(--base-soft); background: var(--base); }
    .options { min-height: 62px; padding: 12px 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
    .options-label { color: #698087; font-size: 10px; font-weight: 800; }
    .chip { padding: 7px 11px; border: 0; border-radius: 999px; background: rgba(255,255,255,.62); color: #4f6870; font-size: 10px; font-weight: 750; cursor: pointer; }
    .speed { margin-left: auto; color: #698087; font-size: 10px; }
    .speed select { margin-left: 5px; padding: 6px 8px; border: 0; border-radius: 8px; background: rgba(255,255,255,.7); color: var(--navy); }

    .settings { padding: 16px 22px; display: grid; grid-template-columns: auto 1fr 66px auto; align-items: center; gap: 13px; color: #5e7278; font-size: 11px; font-weight: 850; }
    .settings input[type="range"] { width: 100%; accent-color: var(--caesar); }
    .settings input[type="number"] { width: 66px; padding: 8px; border: 0; border-radius: 9px; background: rgba(255,255,255,.7); color: var(--caesar); text-align: center; font-weight: 900; }
    .shift-preview { padding: 8px 11px; border-radius: 9px; background: rgba(255,255,255,.55); color: var(--caesar); font: 900 12px ui-monospace, monospace; }
    .base-selectors { padding: 20px 24px; display: grid; grid-template-columns: 1fr 44px 1fr; align-items: end; gap: 15px; }
    .select-field { display: grid; gap: 7px; }
    .select-field label { color: #7c633e; font-size: 10px; font-weight: 900; text-transform: uppercase; }
    .select-field select { width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255,255,255,.68); color: var(--navy); font-size: 12px; font-weight: 850; }
    .base-swap { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--base); color: white; font-size: 18px; font-weight: 900; cursor: pointer; }
    .number-input { min-height: 125px; font-family: ui-monospace, monospace; font-size: 30px; text-transform: uppercase; }

    .help-strip { margin-top: 18px; padding: 18px 22px; border-radius: 18px; display: flex; align-items: flex-start; gap: 18px; background: #e7eeeb; color: #6e8288; font-size: 11px; line-height: 1.55; }
    .help-strip strong { color: var(--navy); }
    .help-strip code { padding: 2px 5px; border-radius: 5px; background: rgba(255,255,255,.7); color: var(--teal-dark); font-weight: 900; }
    .alphabet { margin-top: 12px; display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; }
    .alphabet span { padding: 7px 3px; border-radius: 7px; background: rgba(255,255,255,.5); color: var(--navy); text-align: center; font: 800 9px ui-monospace, monospace; }

    body.sidebar-collapsed .sidebar { width: var(--sidebar-closed); padding-inline: 10px; }
    body.sidebar-collapsed .main { margin-left: var(--sidebar-closed); }
    body.sidebar-collapsed .brand { padding-inline: 5px; }
    body.sidebar-collapsed .brand-text, body.sidebar-collapsed .nav-caption, body.sidebar-collapsed .nav-heading strong,
    body.sidebar-collapsed .nav-arrow, body.sidebar-collapsed .tool-links, body.sidebar-collapsed .future-note { display: none; }
    body.sidebar-collapsed .nav-heading { display: block; padding: 7px; }
    body.sidebar-collapsed .nav-section { background: transparent; overflow: visible; }
    body.sidebar-collapsed .sidebar-toggle span { transform: rotate(180deg) translateX(-1px); }

    @media (max-width: 760px) {
      .sidebar { width: min(282px, calc(100vw - 42px)); transform: translateX(-110%); box-shadow: 15px 0 35px rgba(14,45,55,.22); }
      .main, body.sidebar-collapsed .main { margin-left: 0; }
      body.menu-open .sidebar { transform: translateX(0); }
      body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 15; background: rgba(12,39,47,.36); }
      body.menu-open .sidebar { z-index: 20; }
      .sidebar-toggle { right: 13px; border-color: var(--navy); }
      .sidebar-toggle span { transform: rotate(180deg); }
      body.sidebar-collapsed .sidebar { width: min(282px, calc(100vw - 42px)); padding-inline: 16px; }
      body.sidebar-collapsed .brand-text, body.sidebar-collapsed .nav-caption, body.sidebar-collapsed .nav-heading strong,
      body.sidebar-collapsed .nav-arrow, body.sidebar-collapsed .tool-links, body.sidebar-collapsed .future-note { display: initial; }
      body.sidebar-collapsed .nav-heading { display: grid; padding: 8px; }
      .mobile-menu { display: inline-flex; }
      .topbar { min-height: 60px; padding: 0 16px; }
      .crumbs { display: none; }
      .content { width: calc(100% - 28px); padding: 32px 0 42px; }
      .intro-mark { display: none; }
      .editor { grid-template-columns: 1fr; }
      .editor-panel { min-height: 235px; }
      .swap { top: 50%; transform: translate(-50%,-50%) rotate(90deg); }
      .settings { grid-template-columns: auto 1fr 60px; }
      .shift-preview { grid-column: 1 / -1; justify-self: end; }
      .alphabet { grid-template-columns: repeat(7, 1fr); }
    }

    @media (max-width: 480px) {
      h1 { font-size: 35px; }
      .tool-toolbar { align-items: flex-start; }
      .tabs { flex: 1; }
      .tabs button { flex: 1; padding-inline: 8px; }
      .editor-panel { padding: 21px 18px; }
      textarea, .result { font-size: 21px; }
      .actions .action { flex: 1; }
      .speed { width: 100%; margin-left: 0; text-align: right; }
      .base-selectors { grid-template-columns: 1fr; }
      .base-swap { justify-self: center; transform: rotate(90deg); }
      .help-strip { flex-direction: column; gap: 6px; }
    }

    /* Vizuální styl původní verze */
    :root { --navy: #183947; --teal: #00aeb5; --teal-dark: #008f97; --ink: #173641; --muted: #6d7f86; --page: #f4f7f7; }
    body { background: var(--page); font-family: "Trebuchet MS", "Avenir Next", Avenir, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
    .sidebar { width: 285px; padding: 30px 20px 24px; overflow: hidden; background: var(--navy); transform: none; box-shadow: none; }
    .brand { flex-shrink: 0; gap: 12px; min-height: 47px; padding: 0 9px 34px; }
    .brand-text { min-width: 0; }
    .brand-text strong { display: block; font-size: 23px; line-height: 1; letter-spacing: -.7px; white-space: nowrap; }
    .brand-text small { display: block; margin-top: 6px; color: #9fc0c9; font-size: 10px; letter-spacing: .25px; }
    .logo-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 47px; height: 47px; color: white; font-family: ui-monospace, monospace; font-weight: 900; }
    .logo-mark::before { content: ""; position: absolute; inset: 0; border-radius: 15px 15px 15px 5px; background: var(--teal); transform: rotate(-3deg); }
    .logo-bracket, .logo-cursor { position: relative; z-index: 1; font-size: 19px; line-height: 1; }
    .logo-cursor { margin: 0 -1px; color: var(--yellow); transform: translateY(-2px); }
    .sidebar-toggle, .mobile-menu { display: none !important; }
    .nav-caption { flex-shrink: 0; margin: 0; padding: 0 12px 12px; }
    .sidebar nav { flex: 1; min-height: 0; padding-right: 5px; display: grid; align-content: start; gap: 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #557782 transparent; }
    .sidebar nav::-webkit-scrollbar { width: 6px; }
    .sidebar nav::-webkit-scrollbar-thumb { border-radius: 99px; background: #557782; }
    .nav-section { margin: 0; padding: 7px; border-radius: 15px; background: transparent; overflow: visible; }
    .nav-section.open { background: #244a58; }
    .nav-heading { min-height: 48px; padding: 3px; grid-template-columns: 36px 1fr auto; gap: 10px; }
    .nav-heading strong { font-size: 13px; }
    .nav-icon { width: 34px; height: 34px; border-radius: 10px; }
    .tool-links { position: relative; display: grid; gap: 2px; padding: 3px 0 2px 29px; margin: 2px 0 4px 16px; }
    .tool-links::before { content: ""; position: absolute; left: 3px; top: 0; bottom: 5px; width: 1px; background: #3b6370; }
    .tool-link { position: relative; min-height: 34px; padding: 5px 8px; border-radius: 8px; color: #bfd1d5; font-size: 11px; font-weight: 700; }
    .tool-link::before { content: ""; position: absolute; left: -26px; width: 20px; height: 1px; background: #3b6370; }
    .tool-link.active { background: #315866; }
    .tool-link.active::after { content: ""; position: absolute; right: 8px; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
    .tool-subcaption { display: block; padding: 10px 8px 4px; color: #88a7ae; font-size: 8px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase; }
    .future-note { margin: -2px 9px 7px 49px; }
    .main { margin-left: 285px; }
    .topbar { height: 72px; min-height: 72px; padding: 0 42px; justify-content: flex-start; border-bottom: 1px solid #dce6e9; background: rgba(255,255,255,.94); }
    .crumbs { display: block; color: #8a989d; font-size: 11px; }
    .crumbs strong { color: #45616b; }
    .mobile-brand { display: none; }
    .content { width: min(1160px, calc(100% - 72px)); padding: 46px 0 34px; }
    .intro { align-items: center; margin-bottom: 30px; }
    .eyebrow, .tool-page.caesar .eyebrow, .tool-page.bases .eyebrow { color: var(--teal-dark); }
    h1 { margin: 10px 0 8px; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; }
    .intro p { font-size: 15px; line-height: 1.65; }
    .intro-mark, .tool-page.caesar .intro-mark, .tool-page.bases .intro-mark { padding: 13px 17px; border-radius: 15px; background: #dff5f3; color: var(--teal-dark); }

    .tool-about { margin: -8px 0 20px; padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 1px solid #d9e5e7; border-radius: 18px; background: #f8fbfb; box-shadow: 0 8px 24px rgba(24,57,71,.045); }
    .tool-about > div, .tool-about > div:first-child, .tool-about > div:last-child { min-width: 0; padding: 16px 17px 17px; border: 1px solid #e0e8ea; border-radius: 13px; background: white; box-shadow: inset 0 3px 0 var(--tool-accent, var(--teal)); }
    .tool-about > div + div { border-left: 1px solid #e0e8ea; }
    .tool-about strong { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--teal-dark); font-size: 10px; font-weight: 900; letter-spacing: .85px; text-transform: uppercase; }
    .tool-about strong::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--tool-accent, var(--teal)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tool-accent, var(--teal)) 14%, transparent); }
    .tool-about p { margin: 0; color: #657b83; font-size: 11px; line-height: 1.62; }
    .tool-about b { color: #45616b; }

    .tool-surface, .tool-page.caesar .tool-surface, .tool-page.bases .tool-surface { border: 1px solid #e0e8ea; border-radius: 22px; background: white; box-shadow: 0 12px 32px rgba(24,57,71,.07); }
    .tool-toolbar { min-height: 68px; padding: 12px 20px; border-bottom: 1px solid #dce6e9; }
    .toolbar-title { color: var(--navy); font-size: 12px; }
    .tabs { gap: 5px; background: #eff4f4; }
    .tabs button { color: #7b8c92; }
    .tabs button.active, .tool-page.caesar .tabs button.active { background: white; color: var(--navy); box-shadow: 0 2px 7px rgba(35,70,80,.1); }
    .editor { gap: 0; background: white; }
    .editor-panel { min-height: 300px; padding: 24px 26px; background: white; }
    .editor-panel:first-child { border-right: 1px solid #dce6e9; }
    .editor-panel.output { background: #fbfdfd; }
    textarea, .number-input { color: var(--navy); font-size: 25px; }
    textarea::placeholder, .number-input::placeholder { color: #c8d1d4; }
    .result, .caesar-result, .base-result { color: var(--teal-dark); font-size: 25px; }
    .result.placeholder { color: #c8d1d4 !important; }
    .action { border: 1px solid #cfdcdf; background: white; color: #59727b; }
    .action.primary, .tool-page.caesar .action.primary, .tool-page.bases .action.primary { border-color: var(--teal); background: var(--teal); color: white; box-shadow: 0 5px 12px rgba(0,174,181,.18); }
    .swap, .tool-page.caesar .swap, .tool-page.bases .swap { border: 1px solid #d6e3e5; background: white; color: var(--teal-dark); box-shadow: 0 4px 12px rgba(35,70,80,.12); }
    .static-arrow { display: grid; place-items: center; cursor: default; }
    .dual-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0; line-height: .62; }
    .dual-arrow span { display: block; height: 11px; font-size: 16px; }
    .field-meta { display: inline-flex; align-items: center; gap: 12px; }
    .field-meta .plain-button { padding: 3px 0 3px 8px; }
    .options { min-height: 60px; padding: 12px 24px; border-top: 1px solid #dce6e9; background: #fbfcfc; }
    .chip { border: 1px solid #dce6e8; background: white; }
    .speed select { border: 1px solid #dce6e8; background: white; }
    .settings { min-height: 74px; padding: 14px 24px; border-top: 1px solid #dce6e9; background: #fbfcfc; }
    .settings input[type="range"] { accent-color: var(--teal); }
    .settings input[type="number"] { border: 1px solid #d6e1e4; background: white; color: var(--teal-dark); }
    .shift-preview { background: #e9faf9; color: var(--teal-dark); }

    .base-selectors { padding: 22px 26px; border-bottom: 1px solid #dce6e9; background: #f1fafa; }
    .select-field { position: relative; gap: 8px; }
    .select-field label { color: #607980; }
    .select-field::after { content: "⌄"; position: absolute; right: 15px; bottom: 13px; color: var(--teal-dark); font-size: 16px; pointer-events: none; }
    .select-field select { min-height: 50px; padding: 0 42px 0 15px; appearance: none; border: 1px solid #cfe1e2; border-radius: 12px; background: white; color: var(--navy); font-size: 13px; box-shadow: 0 3px 10px rgba(24,57,71,.04); }
    .base-swap { border: 1px solid var(--teal); background: white; color: var(--teal-dark); box-shadow: 0 3px 9px rgba(0,174,181,.12); }
    .number-input { flex: 0 0 auto; min-height: 0; height: auto; padding: 0; align-self: flex-start; line-height: 1.4; }
    .base-result { min-height: 0; line-height: 1.4; }
    .help-strip { display: grid; grid-template-columns: 36px minmax(0,1fr); column-gap: 14px; row-gap: 3px; border: 1px solid #bcd9ec; background: #edf7fd; color: #52758b; box-shadow: 0 7px 20px rgba(51,118,157,.06); }
    .help-strip::before { content: "i"; grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #397fa8; color: white; font: 950 17px/1 Georgia, serif; }
    .help-strip strong, .help-strip span { grid-column: 2; }
    .help-strip strong { color: #255f82; font-size: 11px; }
    .help-strip span { font-size: 11px; line-height: 1.6; }
    .help-strip.note-warning { border-color: #e4b0a9; background: #fff0ee; color: #814943; box-shadow: 0 7px 20px rgba(191,85,77,.07); }
    .help-strip.note-warning::before { content: "!"; background: #bf554d; font-family: inherit; }
    .help-strip.note-warning strong { color: #9f3e37; }
    .help-strip.note-insight { border-color: #aed8c4; background: #edf9f3; color: #497461; box-shadow: 0 7px 20px rgba(54,139,101,.06); }
    .help-strip.note-insight::before { content: "✓"; background: #3d936d; font-family: inherit; font-size: 15px; }
    .help-strip.note-insight strong { color: #287451; }

    .learning-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; margin-top: 20px; }
    .info-card { padding: 24px; border: 1px solid #e0e8ea; border-radius: 18px; background: white; }
    .card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
    .card-title.compact { margin-bottom: 15px; }
    .card-title h2 { margin: 0; color: var(--navy); font-size: 16px; }
    .card-title p { margin: 3px 0 0; color: #92a0a5; font-size: 10px; }
    .title-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #e7f8f7; color: var(--teal-dark); font-weight: 900; }
    .title-icon.alphabet-icon { background: #fff4d2; color: #9a7015; font-size: 13px; }
    .rules { display: grid; gap: 7px; }
    .rules > div { min-height: 54px; padding: 7px 12px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; border-radius: 11px; background: #f7f9f9; }
    .rule-number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--teal-dark); font-size: 10px; font-weight: 900; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
    .rules p { margin: 0; color: #8a999e; font-size: 9px; line-height: 1.35; }
    .rules p strong { color: #45616b; font-size: 11px; }
    .morse-symbol { min-width: 54px; color: var(--teal-dark); font-family: ui-monospace, monospace; font-size: 27px; text-align: center; }
    .morse-symbol.dash { letter-spacing: -8px; }
    .morse-symbol.slash { color: #c19a2b; font-size: 20px; letter-spacing: 1px; }
    .alphabet-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
    .alphabet-grid span { min-height: 42px; padding: 5px 2px; display: grid; place-items: center; border-radius: 8px; background: #f5f8f8; color: var(--teal-dark); text-align: center; font: 800 9px/1.45 ui-monospace, monospace; }
    .alphabet-grid span::first-line { color: var(--navy); font-size: 11px; }

    .key-row { min-height: 76px; padding: 14px 24px; display: grid; grid-template-columns: auto minmax(180px, 340px) 1fr; align-items: center; gap: 14px; border-bottom: 1px solid #dce6e9; background: #f7fbfb; }
    .key-row label { color: var(--navy); font-size: 11px; font-weight: 900; }
    .key-row input { width: 100%; min-height: 43px; padding: 0 13px; border: 1px solid #cfe1e2; border-radius: 10px; outline: 0; background: white; color: var(--teal-dark); font-size: 15px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
    .key-row span { color: #8a999e; font-size: 10px; }

    .coding-lab { overflow: hidden; }
    .coding-input-row { padding: 20px 24px; display: grid; grid-template-columns: 1fr auto; gap: 9px 16px; border-bottom: 1px solid #dce6e9; background: #f4fbfa; }
    .coding-input-row > label { color: var(--navy); font-size: 9px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
    .coding-input-row textarea { grid-column: 1 / -1; min-height: 76px; padding: 13px 15px; border: 1px solid #cfe1e2; border-radius: 12px; resize: vertical; background: white; color: var(--navy); font-size: 18px; }
    .coding-input-row > div { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
    .coding-output-block { min-height: 150px; padding: 22px 24px; background: white; }
    .coding-output-block > span, .coding-reference > div:first-child strong, .coding-reference > div:first-child small { display: block; }
    .coding-output-block > span { margin-bottom: 14px; color: #819298; font-size: 8px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
    .polish-output { min-height: 84px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
    .polish-symbol { position: relative; width: 52px; height: 52px; flex: 0 0 auto; border: 0 solid var(--teal-dark); }
    .polish-symbol i { position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-dark); transform: translate(-50%,-50%); }
    .polish-dot-0 i { left: 22%; } .polish-dot-1 i { left: 50%; } .polish-dot-2 i { left: 78%; }
    .polish-cell-0 { border-right-width: 3px; border-bottom-width: 3px; }
    .polish-cell-1 { border-right-width: 3px; border-bottom-width: 3px; border-left-width: 3px; }
    .polish-cell-2 { border-bottom-width: 3px; border-left-width: 3px; }
    .polish-cell-3 { border-top-width: 3px; border-right-width: 3px; border-bottom-width: 3px; }
    .polish-cell-4 { border-width: 3px; }
    .polish-cell-5 { border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; }
    .polish-cell-6 { border-top-width: 3px; border-right-width: 3px; }
    .polish-cell-7 { border-top-width: 3px; border-right-width: 3px; border-left-width: 3px; }
    .polish-cell-8 { border-top-width: 3px; border-left-width: 3px; }
    .polish-word-gap { width: 24px; height: 52px; flex: 0 0 auto; border-left: 2px dashed #bfd5d5; }
    .coding-reference { padding: 20px 24px; border-top: 1px solid #dce6e9; display: grid; grid-template-columns: 180px 1fr; gap: 20px; background: #fbfdfd; }
    .coding-reference > div:first-child strong { color: var(--navy); font-size: 11px; }
    .coding-reference > div:first-child small { margin-top: 6px; color: #84959a; font-size: 8px; line-height: 1.5; }
    .polish-key { width: min(100%, 570px); min-height: 270px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); background: white; }
    .polish-key-cell { min-width: 0; padding: 12px 8px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; border-right: 2px solid var(--teal-dark); border-bottom: 2px solid var(--teal-dark); }
    .polish-key-cell:nth-child(3n) { border-right: 0; }
    .polish-key-cell:nth-child(n+7) { border-bottom: 0; }
    .polish-key-cell span { display: grid; place-items: center; color: var(--navy); font-size: 13px; font-weight: 900; }

    .flags-output { min-height: 94px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
    .flag-card { min-width: 56px; display: grid; justify-items: center; gap: 6px; }
    .flag-card > b { color: var(--navy); font-size: 9px; }
    .signal-flag { position: relative; width: 50px; height: 42px; overflow: hidden; border: 1px solid rgba(18,45,55,.16); box-shadow: 0 3px 8px rgba(24,57,71,.09); }
    .flag-card.space { min-width: 20px; }
    .flags-alphabet { display: grid; grid-template-columns: repeat(13, 1fr); gap: 8px 5px; }
    .flags-alphabet .flag-card { min-width: 0; }
    .flags-alphabet .signal-flag { width: 38px; height: 32px; }
    .flag-a { clip-path: polygon(0 0,100% 0,72% 50%,100% 100%,0 100%); background: linear-gradient(90deg,#fff 0 50%,#2468b3 50%); }
    .flag-b { clip-path: polygon(0 0,100% 0,72% 50%,100% 100%,0 100%); background: #df3038; }
    .flag-c { background: linear-gradient(#2468b3 0 20%,#fff 20% 40%,#df3038 40% 60%,#fff 60% 80%,#2468b3 80%); }
    .flag-d { background: linear-gradient(#f4d43f 0 33%,#2468b3 33% 67%,#f4d43f 67%); }
    .flag-e { background: linear-gradient(#2468b3 0 50%,#df3038 50%); }
    .flag-f { background: #fff; } .flag-f::after { content:""; position:absolute; inset:8px 11px; background:#df3038; transform:rotate(45deg); }
    .flag-g { background: repeating-linear-gradient(90deg,#f4d43f 0 14%,#2468b3 14% 28%); }
    .flag-h { background: linear-gradient(90deg,#fff 0 50%,#df3038 50%); }
    .flag-i { background:#f4d43f; } .flag-i::after { content:""; position:absolute; width:18px; height:18px; left:50%; top:50%; border-radius:50%; background:#111; transform:translate(-50%,-50%); }
    .flag-j { background: linear-gradient(#2468b3 0 33%,#fff 33% 67%,#2468b3 67%); }
    .flag-k { background: linear-gradient(90deg,#f4d43f 0 50%,#2468b3 50%); }
    .flag-l { background: conic-gradient(#f4d43f 0 25%,#111 0 50%,#f4d43f 0 75%,#111 0); }
    .flag-m { background: conic-gradient(from 45deg,#2468b3 0 12.5%,#fff 0 37.5%,#2468b3 0 62.5%,#fff 0 87.5%,#2468b3 0); }
    .flag-n { background: conic-gradient(#2468b3 0 25%,#fff 0 50%,#2468b3 0 75%,#fff 0); background-size: 20px 16px; }
    .flag-o { background: linear-gradient(135deg,#f4d43f 0 50%,#df3038 50%); }
    .flag-p { background:#2468b3; } .flag-p::after { content:""; position:absolute; inset:9px 12px; background:#fff; }
    .flag-q { background:#f4d43f; }
    .flag-r { background:linear-gradient(90deg,transparent 38%,#f4d43f 38% 62%,transparent 62%),linear-gradient(transparent 34%,#f4d43f 34% 66%,transparent 66%),#df3038; }
    .flag-s { background:#fff; } .flag-s::after { content:""; position:absolute; inset:9px 12px; background:#2468b3; }
    .flag-t { background:linear-gradient(90deg,#df3038 0 33%,#fff 33% 67%,#2468b3 67%); }
    .flag-u { background:conic-gradient(#df3038 0 25%,#fff 0 50%,#df3038 0 75%,#fff 0); }
    .flag-v { background:conic-gradient(from 45deg,#fff 0 12.5%,#df3038 0 37.5%,#fff 0 62.5%,#df3038 0 87.5%,#fff 0); }
    .flag-w { background:#2468b3; } .flag-w::before { content:""; position:absolute; inset:6px 8px; background:#fff; } .flag-w::after { content:""; position:absolute; inset:13px 17px; background:#df3038; }
    .flag-x { background:linear-gradient(90deg,transparent 39%,#2468b3 39% 61%,transparent 61%),linear-gradient(transparent 36%,#2468b3 36% 64%,transparent 64%),#fff; }
    .flag-y { background:repeating-linear-gradient(135deg,#f4d43f 0 7px,#df3038 7px 14px); }
    .flag-z { background:conic-gradient(from 45deg,#f4d43f 0 25%,#2468b3 0 50%,#df3038 0 75%,#111 0); }

    .t9-lab { overflow: hidden; }
    .t9-workspace { display: grid; grid-template-columns: 1fr 340px; min-height: 430px; }
    .t9-editor { padding: 34px; display: grid; align-content: center; gap: 10px; background: white; }
    .t9-editor > label, .t9-editor > span, .t9-candidates > span { color: #7e9096; font-size: 8px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
    .t9-editor > input { width: 100%; padding: 13px 15px; border: 1px solid #cfe1e2; border-radius: 11px; outline: 0; color: var(--navy); font-size: 20px; font-weight: 800; text-transform: uppercase; }
    .t9-editor > span { margin-top: 14px; }
    .t9-editor > strong { min-height: 46px; color: var(--teal-dark); font: 900 30px ui-monospace, monospace; letter-spacing: 5px; overflow-wrap: anywhere; }
    .t9-candidates { margin-top: 15px; padding: 15px; border-radius: 12px; background: #eff8f7; }
    .t9-candidates > div { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
    .t9-candidates b { min-width: 42px; padding: 7px 10px; border-radius: 7px; background: white; color: var(--teal-dark); font-size: 18px; text-align: center; }
    .t9-candidates small { align-self: center; color: #73888e; font-size: 8px; line-height: 1.4; }
    .t9-candidates em { color: #809297; font-size: 9px; font-style: normal; }
    .t9-keypad { padding: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: center; border-left: 1px solid #dce6e9; background: #f4f8f8; }
    .t9-keypad button { aspect-ratio: 1.08; border: 1px solid #d6e2e4; border-radius: 14px; display: grid; place-content: center; gap: 3px; background: white; color: var(--navy); cursor: pointer; box-shadow: 0 3px 8px rgba(24,57,71,.05); }
    .t9-keypad button:hover, .t9-keypad button.active { border-color: var(--teal); background: #e9f9f8; transform: translateY(-1px); }
    .t9-keypad b { font-size: 19px; } .t9-keypad small { color: #788c92; font-size: 8px; font-weight: 900; letter-spacing: .8px; }

    .nato-output { min-height: 96px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 9px; }
    .nato-speech-bar { padding: 13px 20px; border-bottom: 1px solid #dce6e9; display: grid; grid-template-columns: minmax(260px,1fr) auto; align-items: center; gap: 18px; background: #f2faf9; }
    .nato-speech-bar label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px; color: var(--navy); font-size: 8px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
    .nato-speech-bar output { color: var(--teal-dark); font-size: 9px; }
    .nato-speech-bar input { grid-column: 1 / -1; width: 100%; accent-color: var(--teal); }
    .nato-speech-bar > small { max-width: 250px; color: #70868b; font-size: 8px; line-height: 1.45; }
    .nato-token { min-width: 94px; padding: 10px 12px; border: 1px solid #d3e3e4; border-radius: 11px; display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 8px; background: #f2faf9; color: var(--navy); text-align: left; cursor: pointer; }
    .nato-token:hover { border-color: var(--teal); background: #e7f7f5; transform: translateY(-1px); }
    .nato-token b { width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; background: var(--teal); color: white; font-size: 10px; }
    .nato-token span { font-size: 10px; font-weight: 900; }
    .nato-word-gap { min-width: 18px; padding-top: 12px; color: #9ab0b4; font-size: 18px; font-weight: 900; text-align: center; }
    .nato-alphabet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
    .nato-token.compact { min-width: 0; padding: 7px; grid-template-columns: 22px 1fr; gap: 6px; }
    .nato-token.compact b { width: 22px; height: 22px; font-size: 8px; }
    .nato-token.compact span { font-size: 8px; overflow-wrap: anywhere; }

    /* Braillovo písmo */
    .braille-intro-mark { font-size: 21px; letter-spacing: 4px; }
    .braille-output-block { min-height: 190px; }
    .braille-output { min-height: 102px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 11px 8px; }
    .braille-output em { color: #84969b; font-size: 11px; font-style: normal; }
    .braille-token { min-width: 52px; padding: 8px 7px 7px; border: 1px solid #d5e3e4; border-radius: 11px; display: grid; justify-items: center; gap: 5px; background: #f7fbfb; color: var(--navy); }
    .braille-token > span { width: 28px; height: 43px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3,1fr); gap: 4px 7px; }
    .braille-token i { width: 9px; height: 9px; align-self: center; justify-self: center; border: 1px solid #b9cccf; border-radius: 50%; background: white; }
    .braille-token i:nth-child(1) { grid-column:1;grid-row:1; } .braille-token i:nth-child(2) { grid-column:1;grid-row:2; } .braille-token i:nth-child(3) { grid-column:1;grid-row:3; }
    .braille-token i:nth-child(4) { grid-column:2;grid-row:1; } .braille-token i:nth-child(5) { grid-column:2;grid-row:2; } .braille-token i:nth-child(6) { grid-column:2;grid-row:3; }
    .braille-token i.on { border-color: var(--teal-dark); background: var(--teal-dark); box-shadow: 0 2px 5px rgba(0,143,151,.22); }
    .braille-token > b { max-width: 74px; overflow-wrap: anywhere; color: #536d76; font-size: 8px; line-height: 1.15; text-align: center; }
    .braille-token.prefix { border-color: #e4d6a8; background: #fff9e6; }
    .braille-token.prefix i.on { border-color: #b98718; background: #d9a82f; }
    .braille-token.digit { border-color: #dcd5ef; background: #f8f6ff; }
    .braille-token.digit i.on { border-color: #6c57b5; background: #7461bf; }
    .braille-word-gap { width: 20px; height: 78px; border-left: 2px dashed #c4d5d7; }
    .braille-output-note { margin: 12px 0 0; color: #71878d; font-size: 10px; line-height: 1.5; }
    .braille-learn { padding: 22px 24px; border-top: 1px solid #dce6e9; display: grid; grid-template-columns: 220px 1fr; gap: 24px; background: #fbfdfd; }
    .braille-cell-guide { padding: 20px; border: 1px solid #d7e5e6; border-radius: 15px; background: white; }
    .braille-cell-guide > span, .braille-alphabet-wrap header strong { color: var(--teal-dark); font-size: 9px; font-weight: 950; letter-spacing: .7px; text-transform: uppercase; }
    .braille-large-cell { width: 102px; height: 142px; margin: 18px auto; padding: 13px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3,1fr); gap: 10px 18px; border: 2px solid #d6e4e5; border-radius: 18px; background: #f5f9f9; }
    .braille-large-cell i { display: grid; place-items: center; border: 2px solid #afc4c7; border-radius: 50%; background: white; color: #789097; font-size: 10px; font-style: normal; font-weight: 900; transition: background .14s ease,color .14s ease,transform .14s ease; }
    .braille-large-cell i.on { border-color: var(--teal-dark); background: var(--teal-dark); color: white; transform: scale(1.08); box-shadow: 0 4px 9px rgba(0,143,151,.2); }
    .braille-cell-guide > strong { display: block; color: var(--navy); font-size: 11px; }
    .braille-cell-guide > p { margin: 6px 0 0; color: #72868c; font-size: 10px; line-height: 1.5; }
    .braille-alphabet-wrap header small { display: block; margin-top: 5px; color: #7b8f94; }
    .braille-alphabet { margin-top: 14px; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; }
    .braille-token.compact { min-width: 0; padding: 7px 3px 6px; }
    .braille-token.compact > span { width: 22px; height: 34px; gap: 3px 5px; }
    .braille-token.compact i { width: 7px; height: 7px; }
    .braille-token.compact > b { font-size: 9px; }
    .braille-reference { padding:0 24px 22px; display:grid; grid-template-columns:1.35fr .65fr; gap:12px; background:#fbfdfd; }
    .braille-reference > section { padding:17px; border:1px solid #d7e5e6; border-radius:14px; background:white; }
    .braille-reference header strong { color:var(--teal-dark); font-size:10px; }
    .braille-reference header small { display:block; margin-top:4px; color:#768b90; font-size:8px; line-height:1.45; }
    .braille-prefix-grid { margin-top:12px; display:grid; grid-template-columns:1fr 1fr; gap:7px; }
    .braille-prefix-grid article { padding:9px; border:1px solid #e4d9b5; border-radius:10px; display:grid; grid-template-columns:30px 1fr; align-items:center; gap:9px; background:#fffaf0; }
    .braille-prefix-grid b { color:#806218; font-size:8px; }
    .braille-prefix-grid p { margin:2px 0 0; color:#8f8059; font-size:7px; line-height:1.35; }
    .braille-static-cell { width:28px; height:42px; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:repeat(3,1fr); gap:3px 6px; }
    .braille-static-cell i { width:8px; height:8px; align-self:center; justify-self:center; border:1px solid #cfbf8c; border-radius:50%; background:white; }
    .braille-static-cell i:nth-child(1),.braille-static-cell i:nth-child(2),.braille-static-cell i:nth-child(3){grid-column:1}.braille-static-cell i:nth-child(1){grid-row:1}.braille-static-cell i:nth-child(2){grid-row:2}.braille-static-cell i:nth-child(3){grid-row:3}.braille-static-cell i:nth-child(4),.braille-static-cell i:nth-child(5),.braille-static-cell i:nth-child(6){grid-column:2}.braille-static-cell i:nth-child(4){grid-row:1}.braille-static-cell i:nth-child(5){grid-row:2}.braille-static-cell i:nth-child(6){grid-row:3}
    .braille-static-cell i.on { border-color:#b98718; background:#d9a82f; }
    .braille-number-grid { margin-top:12px; display:grid; grid-template-columns:repeat(5,1fr); gap:5px; }
    .braille-number-grid .braille-token { padding-inline:2px; }
    .braille-rules { margin-top: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
    .braille-rules article { padding: 17px 18px; border: 1px solid #d5e6e5; border-radius: 14px; background: white; box-shadow: 0 7px 18px rgba(24,57,71,.05); }
    .braille-rules b { color: var(--teal-dark); font-size: 11px; }
    .braille-rules p { margin: 7px 0 0; color: #6f858b; font-size: 10px; line-height: 1.58; }

    .ascii-surface { overflow: visible; }
    .ascii-toolbar { min-height: 88px; padding: 16px 24px; display: grid; grid-template-columns: auto minmax(240px, 1fr) auto; align-items: center; gap: 16px; border-bottom: 1px solid #dce6e9; background: #f7fbfb; border-radius: 22px 22px 0 0; }
    .ascii-toolbar > label { color: var(--navy); font-size: 11px; font-weight: 900; }
    .ascii-toolbar > strong { min-width: 72px; color: var(--teal-dark); font-size: 10px; text-align: right; }
    .ascii-search-wrap { position: relative; }
    .ascii-search-wrap span { position: absolute; left: 14px; top: 50%; color: #8ea5aa; transform: translateY(-53%); font-size: 20px; }
    .ascii-search-wrap input { width: 100%; min-height: 46px; padding: 0 15px 0 42px; border: 1px solid #cfe1e2; border-radius: 12px; outline: 0; background: white; color: var(--navy); font-size: 13px; }
    .ascii-search-wrap input::placeholder { color: #a5b4b8; }
    .ascii-table-wrap { max-height: 590px; overflow: auto; border-radius: 0 0 22px 22px; }
    .ascii-table { width: 100%; border-collapse: collapse; background: white; font-size: 12px; }
    .ascii-table th { position: sticky; top: 0; z-index: 2; padding: 13px 16px; background: #edf5f4; color: #637a81; text-align: left; font-size: 9px; letter-spacing: .7px; text-transform: uppercase; }
    .ascii-table td { padding: 11px 16px; border-top: 1px solid #edf1f1; color: #63777d; }
    .ascii-table tbody tr:hover { background: #f3fbfa; }
    .ascii-char { width: 86px; color: var(--navy) !important; font: 900 14px ui-monospace, monospace; }
    .ascii-code { color: var(--teal-dark) !important; font: 800 12px ui-monospace, monospace; white-space: nowrap; }
    .ascii-control { display: inline-block; min-width: 42px; padding: 4px 6px; border-radius: 6px; background: #edf5f4; color: #547078; font-size: 9px; text-align: center; }
    .ascii-empty { padding: 42px !important; color: #8da0a5 !important; text-align: center; }

    .qr-intro-mark { font-size: 16px; letter-spacing: 1px; }
    .qr-steps { padding: 14px 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-bottom: 1px solid #e0e8ea; background: #f7fbfb; }
    .qr-steps button { min-height: 48px; padding: 7px 10px; border: 0; border-radius: 10px; display: flex; align-items: center; gap: 9px; background: transparent; color: #75898f; text-align: left; font-size: 10px; font-weight: 900; cursor: pointer; }
    .qr-steps button b { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #e6eeee; color: #6c8187; font-size: 10px; }
    .qr-steps button.active { background: white; color: var(--navy); box-shadow: 0 2px 8px rgba(24,57,71,.1); }
    .qr-steps button.active b { background: var(--teal); color: white; }
    .qr-workspace { display: grid; grid-template-columns: minmax(390px, .95fr) 1.05fr; min-height: 560px; }
    .qr-visual-column { padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #eef5f4; }
    .qr-code-frame { width: min(100%, 430px); padding: 42px; background: white; box-shadow: 0 10px 28px rgba(24,57,71,.09); }
    .qr-grid { aspect-ratio: 1; display: grid; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr); gap: 1px; background: white; }
    .qr-cell { position: relative; min-width: 0; background: #edf2f2; transition: background .16s ease, opacity .16s ease, transform .16s ease; }
    .qr-cell.finder.on { background: #142f39; } .qr-cell.finder.off, .qr-cell.separator { background: white; }
    .qr-cell.timing.on { background: var(--teal-dark); } .qr-cell.timing.off { background: white; }
    .qr-cell.format { background: #dce6e7; }
    .qr-cell.dark-module { background: #142f39; }
    .qr-cell.message.on { background: #178fa0; } .qr-cell.message.off { background: #d9eff0; box-shadow: inset 0 0 0 1px #9bcbd0; }
    .qr-cell.padding.on { background: #647d84; } .qr-cell.padding.off { background: #e3e9e9; }
    .qr-cell.repair.on { background: #d3a62e; } .qr-cell.repair.off { background: #fff1bd; box-shadow: inset 0 0 0 1px #e5ca70; }
    .qr-cell.unrevealed { background: #edf2f2 !important; box-shadow: none !important; }
    .qr-grid.qr-final .qr-cell.on { background: #102d37 !important; box-shadow: none !important; }
    .qr-grid.qr-final .qr-cell.off { background: white !important; box-shadow: none !important; }
    .qr-cell.damaged { background: #f8d8d1 !important; box-shadow: inset 0 0 0 1px #c75a48 !important; }
    .qr-cell.damaged::before, .qr-cell.damaged::after { content: ""; position: absolute; left: 46%; top: 8%; width: 2px; height: 84%; background: #c75a48; transform: rotate(45deg); }
    .qr-cell.damaged::after { transform: rotate(-45deg); }
    .qr-legend { width: min(100%, 430px); margin-top: 17px; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 14px; color: #71868c; font-size: 8px; }
    .qr-legend span { display: inline-flex; align-items: center; gap: 5px; }
    .qr-legend i { width: 10px; height: 10px; border-radius: 2px; }
    .qr-legend i.finder { background: #142f39; } .qr-legend i.timing { background: var(--teal-dark); } .qr-legend i.message { background: #178fa0; } .qr-legend i.padding { background: #7b8d92; } .qr-legend i.repair { background: #d3a62e; }
    .qr-explanation { padding: 44px 40px; border-left: 1px solid #e0e8ea; background: white; }
    .qr-step-number { color: var(--teal-dark); font-size: 9px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
    .qr-explanation h2 { margin: 8px 0 10px; color: var(--navy); font-size: 24px; }
    .qr-explanation > p { margin: 0; color: #6f8389; font-size: 12px; line-height: 1.65; }
    .qr-explanation > ul { margin: 20px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }
    .qr-explanation > ul li { position: relative; padding-left: 20px; color: #71858b; font-size: 10px; line-height: 1.5; }
    .qr-explanation > ul li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
    .qr-bit-box { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
    .qr-bit-box > div { padding: 9px 10px; border-radius: 9px; background: #f1f7f7; }
    .qr-bit-box span, .qr-bit-box code { display: block; }
    .qr-bit-box span { margin-bottom: 4px; color: #84969b; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .qr-bit-box code { color: var(--teal-dark); font-size: 11px; font-weight: 900; letter-spacing: .7px; }
    .qr-reveal-control { margin-top: 21px; padding: 15px; border-radius: 12px; background: #f1f7f7; }
    .qr-reveal-control label { display: flex; justify-content: space-between; gap: 10px; color: #5f767d; font-size: 9px; font-weight: 900; }
    .qr-reveal-control input { width: 100%; margin: 13px 0 7px; accent-color: var(--teal); }
    .qr-reveal-control p { margin: 0; color: #829398; font-size: 9px; line-height: 1.45; }
    .qr-concept-detail { margin-top: 20px; padding: 16px 17px; border: 1px solid #d8d0ef; border-radius: 13px; background: #f8f6ff; box-shadow: inset 3px 0 0 #7461bf; }
    .qr-concept-detail > strong, .qr-concept-detail > div > strong { display: block; color: #5e4ba3; font-size: 11px; }
    .qr-concept-detail p { margin: 7px 0 0; color: #665f78; font-size: 10px; line-height: 1.62; }
    .qr-concept-detail p b { color: #4f426f; }
    .qr-concept-detail code { padding: 2px 5px; border-radius: 5px; background: white; color: #5f4da2; font: 850 9px ui-monospace, monospace; }
    .qr-mask-detail { display: grid; gap: 11px; }
    .qr-mask-detail > div { padding: 13px 14px; border-radius: 10px; background: white; }
    .qr-capacity-line { margin-top: 12px; display: grid; grid-template-columns: 6fr 10fr 10fr; overflow: hidden; border-radius: 8px; color: white; font-size: 8px; font-weight: 900; text-align: center; }
    .qr-capacity-line span { min-width: 0; padding: 7px 4px; }
    .qr-capacity-line .message { background: #178fa0; }
    .qr-capacity-line .padding { background: #75898f; }
    .qr-capacity-line .repair { background: #d3a62e; color: #47370f; }
    .qr-capacity-line b { color: inherit; }
    .qr-long-bits { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
    .qr-long-bits span { padding: 7px 8px; border: 1px solid #e0dbef; border-radius: 8px; display: grid; gap: 3px; background: white; }
    .qr-long-bits b { color: #887cae; font-size: 8px; text-transform: uppercase; }
    .qr-long-bits code { padding: 0; background: transparent; font-size: 8px; }
    .qr-damage-lab { margin-top: 20px; padding: 17px; border: 1px solid #d8d0ef; border-radius: 14px; background: #f8f6ff; }
    .qr-damage-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
    .qr-damage-heading strong { color: #514284; font-size: 12px; }
    .qr-damage-heading p { margin: 5px 0 0; color: #746d87; font-size: 9px; line-height: 1.5; }
    .qr-damage-heading > span { flex: 0 0 auto; padding: 7px 9px; border-radius: 8px; background: #7461bf; color: white; font-size: 9px; font-weight: 900; }
    .qr-level-options { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .qr-level-options button { min-width: 0; padding: 10px 4px 9px; border: 1px solid #ded9ed; border-radius: 10px; display: grid; gap: 2px; background: white; color: #716987; text-align: center; cursor: pointer; }
    .qr-level-options button b { color: #4e416f; font-size: 16px; }
    .qr-level-options button span { font-size: 8px; font-weight: 800; }
    .qr-level-options button em { color: #8a7db2; font-size: 9px; font-style: normal; font-weight: 900; }
    .qr-level-options button.active { border-color: #7461bf; background: #7461bf; box-shadow: 0 5px 12px rgba(116,97,191,.2); }
    .qr-level-options button.active b, .qr-level-options button.active span, .qr-level-options button.active em { color: white; }
    .qr-damage-controls { margin-top: 12px; padding: 13px; border-radius: 11px; background: white; }
    .qr-damage-controls > label { display: flex; justify-content: space-between; gap: 12px; color: #5f5773; font-size: 10px; font-weight: 900; }
    .qr-damage-controls > input { width: 100%; margin: 13px 0 10px; accent-color: #c75a48; cursor: pointer; }
    .qr-damage-patterns { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
    .qr-damage-patterns > span { margin-right: 3px; color: #817991; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .qr-damage-patterns button { padding: 6px 8px; border: 1px solid #ded9e8; border-radius: 8px; background: #faf9fd; color: #6e667c; font-size: 8px; font-weight: 900; cursor: pointer; }
    .qr-damage-patterns button.active { border-color: #c75a48; background: #fff0ed; color: #a54435; }
    .qr-damage-status { margin-top: 11px; padding: 11px 12px; border-radius: 10px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; }
    .qr-damage-status > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 950; }
    .qr-damage-status strong { display: block; font-size: 10px; }
    .qr-damage-status p { margin: 3px 0 0; font-size: 9px; line-height: 1.45; }
    .qr-damage-status.safe { background: #e9f5ee; color: #28724f; }
    .qr-damage-status.safe > span { background: #cce8d7; }
    .qr-damage-status.danger { background: #fdeae6; color: #a34234; }
    .qr-damage-status.danger > span { background: #f5ccc4; }
    .qr-damage-status.neutral { background: #edf2f6; color: #5b7180; }
    .qr-damage-status.neutral > span { background: #dbe5eb; }
    .qr-damage-reset { margin-top: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: #e9e4f6; color: #5f4da2; font-size: 8px; font-weight: 900; cursor: pointer; }
    .qr-damage-note { margin: 11px 0 0; color: #746d87; font-size: 9px; line-height: 1.5; }

    .barcode-intro-mark { font-size: 15px; letter-spacing: 2px; }
    .barcode-workspace { grid-template-columns: 1.15fr .85fr; }
    .barcode-visual-column { padding-inline: 24px; }
    .barcode-code-frame { width: min(100%, 560px); padding: 34px 35px 24px 55px; background: white; box-shadow: 0 10px 28px rgba(24,57,71,.09); }
    .barcode-grid { height: 220px; display: grid; grid-template-columns: repeat(95, 1fr); align-items: start; background: white; }
    .barcode-module { height: 82%; min-width: 0; background: white; transition: background .14s ease, height .14s ease; }
    .barcode-module.guard { height: 94%; }
    .barcode-module.guard.on { background: #142f39; }
    .barcode-module.left.on { background: #178fa0; }
    .barcode-module.right.on { background: #bc5e7d; }
    .barcode-module.unrevealed { background: #edf2f2 !important; height: 82%; }
    .barcode-grid.barcode-final .barcode-module.on { background: #111 !important; }
    .barcode-grid.barcode-final .barcode-module.off { background: white !important; }
    .barcode-digits { margin-top: 14px; display: flex; justify-content: center; gap: 22px; color: #172f38; font: 800 18px/1 ui-monospace, monospace; letter-spacing: 4px; white-space: nowrap; }
    .barcode-legend { width: min(100%, 560px); }
    .barcode-legend i.guard { background: #142f39; }
    .barcode-legend i.left { background: #178fa0; }
    .barcode-legend i.right { background: #bc5e7d; }
    .barcode-check-box { margin-top: 20px; padding: 15px; border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; background: #f1f7f7; }
    .barcode-check-box > div { padding: 10px; border-radius: 9px; background: white; }
    .barcode-check-box span, .barcode-check-box strong { display: block; }
    .barcode-check-box span { color: #84969b; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .barcode-check-box strong { margin-top: 5px; color: var(--teal-dark); font: 900 13px ui-monospace, monospace; }
    .barcode-set-card p { margin: 7px 0 0; color: #71858b; font-size: 9px; line-height: 1.45; }
    .barcode-read-box { margin-top: 20px; display: grid; gap: 7px; }
    .barcode-read-box > div { padding: 12px 14px; border-radius: 11px; display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; background: #f1f7f7; }
    .barcode-read-box strong { color: var(--teal-dark); font: 900 13px ui-monospace, monospace; }
    .barcode-read-box p { margin: 0; color: #71858b; font-size: 9px; line-height: 1.5; }
    .barcode-read-box .database-row { background: #fff7db; }
    .barcode-read-box .database-row strong { color: #8c6813; }
    .barcode-tables { padding: 32px; border-top: 1px solid #dce7e8; background: #f7fbfb; }
    .barcode-tables-head { max-width: 780px; }
    .barcode-tables-head span { color: #bc5e7d; font-size: 9px; font-weight: 950; letter-spacing: 1px; text-transform: uppercase; }
    .barcode-tables-head h3 { margin: 7px 0 8px; color: var(--navy); font-size: 24px; }
    .barcode-tables-head p { margin: 0; color: #6f8389; font-size: 11px; line-height: 1.65; }
    .barcode-why-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
    .barcode-why-grid > div { padding: 15px; border-radius: 12px; background: white; }
    .barcode-why-grid b { width: 25px; height: 25px; margin-bottom: 9px; border-radius: 8px; display: grid; place-items: center; background: #dff5f2; color: var(--teal-dark); font-size: 10px; }
    .barcode-why-grid strong { display: block; color: var(--navy); font-size: 11px; }
    .barcode-why-grid p { margin: 6px 0 0; color: #74878d; font-size: 9px; line-height: 1.55; }
    .barcode-example-line { margin-top: 12px; padding: 13px 16px; border-radius: 11px; background: #fff3cb; color: #795e19; font-size: 10px; line-height: 1.55; }
    .barcode-example-line code { color: #795e19; font-weight: 950; }
    .barcode-table-grid { margin-top: 22px; display: grid; grid-template-columns: .78fr 1.22fr; align-items: start; gap: 16px; }
    .barcode-table-card { min-width: 0; overflow: hidden; border: 1px solid #dce6e8; border-radius: 15px; background: white; }
    .barcode-table-card header { padding: 16px 18px; border-bottom: 1px solid #e4ebec; }
    .barcode-table-card h4 { margin: 0; color: var(--navy); font-size: 14px; }
    .barcode-table-card header p { margin: 6px 0 0; color: #7c8f94; font-size: 9px; line-height: 1.5; }
    .barcode-table-wrap { overflow-x: auto; }
    .barcode-edu-table { width: 100%; border-collapse: collapse; font-size: 10px; }
    .barcode-edu-table th { padding: 10px 12px; background: #edf5f4; color: #667c82; text-align: left; font-size: 8px; letter-spacing: .5px; text-transform: uppercase; }
    .barcode-edu-table td { padding: 9px 12px; border-top: 1px solid #edf1f1; color: #667a80; }
    .barcode-edu-table tbody tr.current { background: #fff8df; }
    .barcode-edu-table tbody tr.current td:first-child { color: #8c6813; font-weight: 950; }
    .set-sequence { display: flex; gap: 4px; }
    .set-chip { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: white; font-size: 8px; font-weight: 950; }
    .set-chip.a { background: #178fa0; } .set-chip.b { background: #bc5e7d; }
    .barcode-pattern-table { min-width: 610px; }
    .pattern-code { display: grid; grid-template-columns: auto 76px; align-items: center; gap: 8px; }
    .pattern-code code { color: #526a71; font-size: 9px; font-weight: 900; }
    .mini-bits { height: 19px; display: grid; grid-template-columns: repeat(7, 1fr); background: #edf2f2; }
    .mini-bits i { display: block; }
    .mini-bits.a i.on { background: #178fa0; } .mini-bits.b i.on { background: #bc5e7d; } .mini-bits.c i.on { background: #183947; }

    .isbn-intro-mark { background: #eee9ff; color: #6c57b5; font-size: 15px; letter-spacing: .5px; }
    .isbn-lesson .eyebrow, .isbn-lesson .tool-about strong { color: #6c57b5; }
    .isbn-simulator { background: #f0edff; }
    .isbn-simulator .qr-steps button.active b { background: #7461bf; }
    .isbn-workspace { grid-template-columns: .9fr 1.1fr; }
    .isbn-visual-column { background: #f3f0ff; }
    .isbn-card { width: min(100%, 520px); padding: 27px; border-radius: 18px; background: white; box-shadow: 0 10px 28px rgba(53,42,100,.1); }
    .isbn-card > span { display: block; color: #8d83b4; font-size: 9px; font-weight: 950; letter-spacing: 1px; text-transform: uppercase; }
    .isbn-number { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font: 900 clamp(17px, 2.2vw, 25px)/1.3 ui-monospace, monospace; }
    .isbn-number b { padding: 7px 8px; border-radius: 8px; transition: transform .15s ease, box-shadow .15s ease; }
    .isbn-number i { color: #a9a4bb; font-style: normal; }
    .isbn-prefix { background: #fff0bd; color: #8a6815; }
    .isbn-group { background: #dff5f2; color: #087f86; }
    .isbn-registrant { background: #ebe6ff; color: #6752b3; }
    .isbn-publication { background: #f9e3eb; color: #a34465; }
    .isbn-check { background: #dff3df; color: #397946; }
    .isbn-number.step-3 .isbn-check { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(83,157,91,.16); }
    .isbn-parts-legend { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
    .isbn-parts-legend div { padding: 9px 10px; border-radius: 9px; background: #f6f5fa; }
    .isbn-parts-legend span, .isbn-parts-legend strong { display: block; }
    .isbn-parts-legend span { color: #928ca6; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .isbn-parts-legend strong { margin-top: 4px; color: #544c6f; font-size: 10px; }
    .isbn-calculation { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
    .isbn-calculation > div { padding: 12px; border-radius: 10px; background: #f5f3fc; }
    .isbn-calculation span, .isbn-calculation strong { display: block; }
    .isbn-calculation span { color: #8d87a1; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .isbn-calculation strong { margin-top: 5px; color: #6752b3; font: 900 12px ui-monospace, monospace; }
    .isbn-barcode-card { margin-top: 20px; padding: 18px 24px 14px; background: white; }
    .isbn-barcode-grid { height: 112px; display: grid; grid-template-columns: repeat(95, 1fr); align-items: start; }
    .isbn-barcode-grid i { height: 82%; background: white; }
    .isbn-barcode-grid i.on { background: #151515; }
    .isbn-barcode-grid i.guard { height: 94%; }
    .isbn-barcode-digits { margin-top: 8px; color: #24212e; text-align: center; font: 800 11px ui-monospace, monospace; letter-spacing: 2px; }
    .isbn-note { margin-top: 12px; color: #777087; font-size: 9px; line-height: 1.55; }

    .compression-intro-mark { background: #dff2f8; color: #2e7892; font-size: 17px; }
    .compression-lesson .eyebrow, .compression-lesson .tool-about strong { color: #2e7892; }
    .compression-simulator { background: #eaf5f8; }
    .compression-simulator .qr-steps button.active b { background: #388aa3; }
    .compression-workspace { min-height: 0; grid-template-columns: 1fr; }
    .compression-explanation { padding: 30px 34px; border-bottom: 1px solid #dce7e8; border-left: 0; }
    .compression-explanation h2 { font-size: 22px; }
    .compression-explanation > ul { grid-template-columns: repeat(3, 1fr); }
    .compression-visuals { padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; background: #f3f8f9; }
    .compression-figure { margin: 0; overflow: hidden; border: 2px solid transparent; border-radius: 15px; background: white; opacity: .55; transition: opacity .16s ease, border-color .16s ease, transform .16s ease; }
    .compression-figure.active { border-color: #388aa3; opacity: 1; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(41,103,123,.11); }
    .compression-figure canvas { display: block; width: 100%; aspect-ratio: 16 / 9; background: #dceff3; image-rendering: auto; }
    .compression-figure.lossy canvas { image-rendering: pixelated; }
    .compression-figure figcaption { padding: 13px 14px; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; }
    .compression-figure strong { color: var(--navy); font-size: 11px; }
    .compression-figure b { padding: 4px 7px; border-radius: 7px; background: #edf4f5; color: #657c83; font-size: 8px; }
    .compression-figure p { grid-column: 1 / -1; margin: 0; color: #7a8d92; font-size: 9px; line-height: 1.45; }
    .compression-quality { margin: 0 24px 24px; padding: 14px 16px; border-radius: 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; background: white; }
    .compression-quality label { color: #657b82; font-size: 9px; font-weight: 900; }
    .compression-quality input { width: 100%; accent-color: #bc5e7d; }
    .compression-quality strong { min-width: 34px; color: #a34465; font-size: 11px; text-align: right; }
    .compression-demo { padding: 24px; border-top: 1px solid #dce7e8; background: white; }
    .compression-demo h3 { margin: 0 0 7px; color: var(--navy); font-size: 16px; }
    .compression-demo > p { margin: 0; color: #778b90; font-size: 10px; line-height: 1.55; }
    .rle-demo { margin-top: 15px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 9px; }
    .rle-demo div { padding: 13px; border-radius: 10px; background: #f2f7f8; text-align: center; }
    .rle-demo span, .rle-demo code { display: block; }
    .rle-demo span { margin-bottom: 6px; color: #84969b; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .rle-demo code { color: #2e7892; font-size: 12px; font-weight: 900; letter-spacing: 1px; }
    .rle-demo b { color: #8aa0a5; font-size: 18px; }
    .compression-compare { margin-top: 18px; overflow-x: auto; border: 1px solid #dce6e8; border-radius: 13px; }
    .compression-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 10px; }
    .compression-table th, .compression-table td { padding: 12px 14px; border-top: 1px solid #e7eded; text-align: left; }
    .compression-table thead th { border-top: 0; background: #edf5f6; color: #687e84; font-size: 8px; text-transform: uppercase; }
    .compression-table tbody th { color: #536a71; }
    .compression-table td { color: #72858a; }
    .compression-table .lossless-col { background: #f0faf8; }
    .compression-table .lossy-col { background: #fff4f7; }
    .compression-format-tags { display: flex; flex-wrap: wrap; gap: 5px; }
    .compression-format-tags span { padding: 4px 6px; border-radius: 6px; background: #e6f2f3; color: #357b89; font-size: 8px; font-weight: 900; }
    .compression-format-tags.lossy span { background: #f8e5eb; color: #9b4964; }

    /* Jak funguje počítač */
    .computer-intro-mark { font-size: 12px; letter-spacing: .4px; }
    .computer-simulator { overflow: hidden; }
    .computer-workspace { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); min-height: 520px; }
    .computer-stage { padding: 36px 24px; display: grid; grid-template-columns: 120px 48px minmax(280px,1fr) 48px 120px; align-items: center; gap: 8px; background: #f3f0ff; }
    .computer-peripheral { min-height: 134px; padding: 16px 10px; border: 2px solid #ddd7ef; border-radius: 16px; display: grid; place-content: center; justify-items: center; gap: 7px; background: white; text-align: center; opacity: .55; transition: opacity .18s ease,transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
    .computer-peripheral > span { width: 43px; height: 43px; border-radius: 12px; display: grid; place-items: center; background: #eee9ff; color: #6c57b5; font-size: 23px; }
    .computer-peripheral strong { color: var(--navy); font-size: 11px; }
    .computer-peripheral small { color: #7e7890; text-align: center; }
    .computer-bus { position: relative; height: 4px; border-radius: 99px; display: block; background: #d6d0e7; opacity: .55; transition: opacity .18s ease,background .18s ease; }
    .computer-bus::after { content:""; position:absolute; right:-2px; top:-5px; border-left:9px solid #d6d0e7; border-top:7px solid transparent; border-bottom:7px solid transparent; }
    .computer-bus span { position: absolute; left: 50%; top: -24px; color: #8c85a1; font-size: 8px; font-style: normal; font-weight: 900; transform: translateX(-50%); }
    .computer-case { padding: 15px; border: 2px solid #d8d1ec; border-radius: 20px; background: rgba(255,255,255,.72); }
    .computer-case-label { display: block; margin-bottom: 10px; color: #766a9f; font-size: 9px; font-weight: 950; letter-spacing: .7px; text-transform: uppercase; }
    .computer-motherboard { position: relative; min-height: 320px; padding: 54px 24px 24px; border: 2px solid #b7acd9; border-radius: 15px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; overflow: hidden; background-color: #e8e3f7; background-image: linear-gradient(rgba(116,97,191,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(116,97,191,.08) 1px,transparent 1px); background-size: 19px 19px; opacity: .7; transition: opacity .18s ease,box-shadow .18s ease; }
    .computer-board-label { position: absolute; left: 18px; top: 17px; color: #6c57b5; font-size: 9px; font-weight: 950; text-transform: uppercase; }
    .computer-part { position: relative; z-index: 2; min-width: 0; padding: 14px 9px; border: 2px solid #d8d2eb; border-radius: 13px; display: grid; place-content: center; gap: 5px; background: white; color: var(--navy); cursor: pointer; opacity: .55; transition: opacity .18s ease,transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
    .computer-part.cpu { grid-row: 1 / 3; }
    .computer-part b { font-size: 18px; }
    .computer-part small { color: #817a92; text-align: center; }
    .computer-part.selected { border-color: #7461bf; box-shadow: inset 0 0 0 2px rgba(116,97,191,.11); }
    .computer-board-line { position: absolute; z-index: 1; height: 3px; border-radius: 4px; background: #a99dcd; }
    .computer-board-line.line-one { left: 44%; top: 34%; width: 25%; }
    .computer-board-line.line-two { left: 44%; top: 66%; width: 25%; }
    .computer-board-line.line-three { left: 61%; top: 48%; width: 3px; height: 24%; }
    .computer-peripheral.flow-active,.computer-part.flow-active,.computer-motherboard.flow-active { opacity: 1; border-color: #7461bf; box-shadow: 0 9px 22px rgba(80,62,150,.13); transform: translateY(-2px); }
    .computer-bus.flow-active { opacity: 1; background: #7461bf; }
    .computer-bus.flow-active::after { border-left-color: #7461bf; }
    .computer-explanation { padding: 38px 32px; border-left: 1px solid #e3def2; background: white; }
    .computer-explanation > span { color: #6c57b5; font-size: 9px; font-weight: 950; letter-spacing: .9px; text-transform: uppercase; }
    .computer-explanation h2 { margin: 8px 0 10px; color: var(--navy); font-size: 22px; line-height: 1.2; }
    .computer-explanation > p { margin: 0; color: #6f7f86; font-size: 11px; line-height: 1.65; }
    .computer-explanation ul,.computer-component-detail ul { margin: 19px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }
    .computer-explanation li,.computer-component-detail li { position: relative; padding-left: 18px; color: #71838a; font-size: 10px; line-height: 1.52; }
    .computer-explanation li::before,.computer-component-detail li::before { content:""; position:absolute; left:1px; top:6px; width:7px; height:7px; border-radius:50%; background:#e0b63e; }
    .computer-components,.von-neumann-section,.modern-computers { margin-top: 18px; padding: 27px; border: 1px solid #e0daf2; border-radius: 20px; background: #faf9ff; }
    .computer-section-heading { max-width: 800px; }
    .computer-section-heading > span { color: #6c57b5; font-size: 9px; font-weight: 950; letter-spacing: .8px; text-transform: uppercase; }
    .computer-section-heading h2 { margin: 6px 0 7px; color: var(--navy); font-size: 23px; }
    .computer-section-heading p { margin: 0; color: #718289; font-size: 10px; line-height: 1.58; }
    .computer-component-tabs,.computer-device-tabs { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
    .computer-component-tabs button,.computer-device-tabs button { min-height: 39px; padding: 8px 13px; border: 1px solid #ddd6ef; border-radius: 10px; background: white; color: #756d8e; font-size: 9px; font-weight: 900; cursor: pointer; }
    .computer-component-tabs button.selected,.computer-device-tabs button.active { border-color: #7461bf; background: #7461bf; color: white; }
    .computer-component-detail,.computer-device-card { margin-top: 12px; padding: 22px; border: 1px solid #e0daf0; border-radius: 15px; display: grid; grid-template-columns: 112px 1fr; gap: 22px; background: white; }
    .computer-component-symbol,.computer-device-visual { width: 105px; min-height: 105px; border-radius: 18px; display: grid; place-items: center; align-self: start; background: #eee9ff; color: #6c57b5; font: 950 24px ui-monospace,monospace; }
    .computer-component-detail span,.computer-device-card span { color: #6c57b5; font-size: 9px; font-weight: 950; letter-spacing: .7px; text-transform: uppercase; }
    .computer-component-detail h3,.computer-device-card h3 { margin: 6px 0 7px; color: var(--navy); font-size: 17px; }
    .computer-component-detail p,.computer-device-card p { margin: 0; color: #6f8289; font-size: 10px; line-height: 1.62; }
    .von-neumann-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
    .von-neumann-grid article { padding: 17px 16px; border: 1px solid #e0daf0; border-radius: 14px; background: white; }
    .von-neumann-grid article > b { width: 27px; height: 27px; margin-bottom: 10px; border-radius: 8px; display: grid; place-items: center; background: #7461bf; color: white; font-size: 10px; }
    .von-neumann-grid strong { display: block; color: var(--navy); font-size: 11px; }
    .von-neumann-grid p { margin: 7px 0 0; color: #718289; font-size: 10px; line-height: 1.55; }
    .computer-bus-explainer { margin-top: 10px; padding: 16px 18px; border-left: 4px solid #7461bf; border-radius: 10px; background: white; }
    .computer-bus-explainer strong { color: #6c57b5; font-size: 11px; }
    .computer-bus-explainer p { margin: 5px 0 0; color: #6f8188; font-size: 10px; line-height: 1.58; }
    .computer-device-facts { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 8px; }
    .computer-device-facts span { padding: 8px 10px; border-radius: 8px; background: #f5f2ff; color: #6c6680; font-size: 9px; letter-spacing: 0; text-transform: none; }
    .computer-device-facts b { color: #6c57b5; }
    .integrated-external-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .integrated-external-grid article,.integrated-external-grid aside { padding: 20px; border: 1px solid #e0daf0; border-radius: 15px; background: white; }
    .integrated-external-grid article > span { color: #6c57b5; font-size: 9px; font-weight: 950; text-transform: uppercase; }
    .integrated-external-grid h3 { margin: 6px 0 7px; color: var(--navy); font-size: 16px; }
    .integrated-external-grid p { margin: 0; color: #70838a; font-size: 10px; line-height: 1.58; }
    .integrated-external-grid aside { grid-column: 1 / -1; border-color: #cbdde9; background: #edf7fd; }
    .integrated-external-grid aside strong { color: #3978a4; font-size: 11px; }

    /* Úvodní stránka */
    .home-link { width: 100%; min-height: 44px; margin-bottom: 9px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; display: flex; align-items: center; gap: 10px; background: transparent; color: #bfd1d5; text-align: left; font-size: 12px; font-weight: 850; cursor: pointer; }
    .home-link span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.08); font-size: 15px; }
    .home-link:hover { background: rgba(255,255,255,.06); color: white; }
    .home-link.active { border-color: rgba(255,255,255,.08); background: #315866; color: white; }
    .home-link.active span { background: var(--teal); }
    .home-hero { min-height: 480px; padding: 62px; border-radius: 28px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; overflow: hidden; background: linear-gradient(135deg, #173d49 0%, #214f5c 58%, #2b6470 100%); box-shadow: 0 18px 44px rgba(23,61,73,.16); }
    .home-hero .eyebrow { color: #8ee0dc; }
    .home-hero h1 { margin: 13px 0 18px; color: white; font-size: clamp(44px, 5vw, 65px); letter-spacing: -3px; }
    .home-hero p { max-width: 610px; margin: 0; color: #c4d9dd; font-size: 16px; line-height: 1.7; }
    .home-primary { margin-top: 28px; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--yellow); color: var(--navy); font-size: 11px; font-weight: 950; cursor: pointer; box-shadow: 0 8px 20px rgba(10,37,44,.2); }
    .home-primary span { margin-left: 8px; font-size: 15px; }
    .home-primary:hover { transform: translateY(-1px); }
    .home-hero-visual { position: relative; min-height: 300px; display: grid; place-items: center; }
    .home-code-card { position: relative; z-index: 2; width: min(100%, 330px); padding: 28px; border: 1px solid rgba(255,255,255,.32); border-radius: 24px; display: grid; gap: 16px; background: rgba(255,255,255,.12); color: white; backdrop-filter: blur(7px); box-shadow: 0 18px 35px rgba(9,33,40,.2); transform: rotate(-3deg); }
    .home-code-card span { color: #b8d5da; font-size: 9px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
    .home-code-card strong { font: 900 78px/1 ui-monospace, monospace; letter-spacing: -10px; }
    .home-code-card strong i { color: var(--yellow); font-style: normal; }
    .home-code-card small { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); color: #8ee0dc; font: 800 11px ui-monospace, monospace; }
    .home-float-card { position: absolute; z-index: 3; padding: 11px 14px; border-radius: 11px; background: white; font: 900 10px ui-monospace, monospace; box-shadow: 0 10px 22px rgba(8,31,38,.22); }
    .home-float-one { top: 27px; right: 0; color: #6c57b5; transform: rotate(5deg); }
    .home-float-two { bottom: 22px; left: -4px; color: var(--teal-dark); transform: rotate(-5deg); }
    .home-values { margin: 18px 0 54px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .home-values > div { padding: 18px 20px; border: 1px solid #dfe8e9; border-radius: 15px; display: grid; gap: 4px; background: white; }
    .home-values strong { color: var(--navy); font-size: 11px; }
    .home-values span { color: #7b8f95; font-size: 9px; line-height: 1.45; }
    .home-section { margin-top: 8px; }
    .home-section-heading { margin-bottom: 18px; }
    .home-section-heading span, .home-story-copy > span { color: var(--teal-dark); font-size: 9px; font-weight: 950; letter-spacing: 1.3px; text-transform: uppercase; }
    .home-section-heading h2, .home-story h2 { margin: 7px 0 0; color: var(--navy); font-size: clamp(25px, 3vw, 35px); letter-spacing: -1px; }
    .home-section-heading p, .home-story-copy p { margin: 0; color: #75888e; font-size: 11px; line-height: 1.65; }
    .home-topic-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
    .home-topic { min-height: 126px; padding: 18px 12px; border: 1px solid #dfe7e9; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: white; color: inherit; text-align: center; cursor: pointer; box-shadow: 0 8px 22px rgba(24,57,71,.04); transition: transform .16s ease, box-shadow .16s ease; }
    .home-topic:hover { transform: translateY(-3px); box-shadow: 0 13px 28px rgba(24,57,71,.09); }
    .home-topic-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: #e2f5f3; color: var(--teal-dark); font: 900 12px ui-monospace, monospace; }
    .home-topic strong { color: var(--navy); font-size: 13px; line-height: 1.25; }
    .home-topic.how { border-color: #ddd6f4; background: #faf9ff; }
    .home-topic.how .home-topic-icon { background: #eee9ff; color: #6c57b5; }
    .home-topic.coding { border-color: #d4e9e7; background: #f6fbfa; }
    .home-topic.networks { border-color: #d4e8e1; background: #f6fbf9; }
    .home-topic.networks .home-topic-icon { background: #dff3ed; color: #247866; }
    .home-topic.cyber { border-color: #eed9d5; background: #fff9f7; }
    .home-topic.cyber .home-topic-icon { background: #fbe5e1; color: #b84f47; }
    .home-topic.data { border-color: #d7e6ef; background: #f7fbfd; }
    .home-topic.data .home-topic-icon { background: #e4f1fa; color: #3978a4; }
    .home-topic.creation { border-color: #ede1c2; background: #fffbf2; }
    .home-topic.creation .home-topic-icon { background: #fff2ce; color: #9d6a0c; }
    .home-growing-note { margin-top: 18px; padding: 17px 20px; border: 1px solid #d7e6e2; border-radius: 16px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 13px; background: #f6fbf9; }
    .home-growing-note > span { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #dff3ed; color: #247866; font-size: 18px; font-weight: 900; }
    .home-growing-note strong { color: var(--navy); font-size: 11px; }
    .home-growing-note p { margin: 4px 0 0; color: #758a83; font-size: 9px; line-height: 1.5; }
    .home-story { margin-top: 22px; padding: 48px; border-radius: 24px; display: grid; gap: 30px; background: #e7f3f1; }
    .home-story h2 { max-width: 820px; font-size: clamp(30px, 4vw, 44px); }
    .home-story-copy { max-width: 900px; }
    .home-story-copy p { margin-top: 16px; font-size: 13px; line-height: 1.75; }
    .home-story-copy p + p { margin-top: 12px; }
    .home-contact-button { width: fit-content; min-height: 44px; margin-top: 23px; padding: 0 16px; border-radius: 11px; display: inline-flex; align-items: center; gap: 9px; background: var(--navy); color: white; font-size: 10px; font-weight: 900; text-decoration: none; }
    .home-contact-button svg { width: 18px; height: 18px; fill: none; stroke: var(--yellow); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

    /* Společný fialový design celé oblasti Jak funguje...? */
    .nav-icon.how-icon { background: #7461bf; }
    .category-how { --tool-accent: #7461bf; }
    .category-how .eyebrow, .category-how .tool-about strong, .category-how .qr-step-number { color: #6c57b5; }
    .category-how .intro-mark { background: #eee9ff; color: #6c57b5; }
    .category-how .tool-about { border-color: #e2dcf4; }
    .category-how .tool-surface { border-color: #ded8f1; background: #f0edff; }
    .category-how .qr-steps { border-color: #e3def2; background: #f8f6ff; }
    .category-how .qr-steps button.active b { background: #7461bf; }
    .category-how .qr-visual-column, .category-how .compression-visuals { background: #f3f0ff; }
    .category-how .qr-reveal-control input, .category-how .compression-quality input { accent-color: #7461bf; }
    .category-how .compression-figure.active { border-color: #7461bf; box-shadow: 0 8px 18px rgba(80,62,150,.12); }
    .category-how .barcode-tables-head > span, .category-how .barcode-check-box strong, .category-how .barcode-read-box strong { color: #6c57b5; }
    .category-how .barcode-why-grid b { background: #eee9ff; color: #6c57b5; }

    /* Společná interaktivní osnova nových kapitol Jak funguje...? */
    .concept-workspace { min-height: 500px; display: grid; grid-template-columns: 1.08fr .92fr; }
    .concept-visual { min-width: 0; padding: 34px; display: grid; place-items: center; overflow: hidden; background: #f3f0ff; }
    .concept-explanation { border-left-color: #e3def2; }
    .concept-visual [data-concept-part] { opacity: .18; filter: saturate(.45); transition: opacity .22s ease, filter .22s ease, transform .22s ease, box-shadow .22s ease; }
    .concept-visual [data-concept-part].active { opacity: 1; filter: none; }
    .concept-node { min-width: 100px; padding: 15px 10px; border: 1px solid #ded8f1; border-radius: 15px; display: grid; place-items: center; gap: 5px; background: white; text-align: center; box-shadow: 0 7px 18px rgba(71,54,132,.08); }
    .concept-node.active { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(71,54,132,.14); }
    .concept-node > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #eee9ff; color: #6c57b5; font-size: 21px; }
    .concept-node strong { color: var(--navy); font-size: 10px; }
    .concept-node small { color: #8b849e; font-size: 8px; line-height: 1.35; }
    .network-route { width: min(100%, 690px); display: grid; grid-template-columns: 1fr .52fr 1fr .52fr 1fr .52fr 1fr; align-items: center; }
    .route-line { position: relative; height: 3px; background: #bdb3df; font-style: normal; }
    .route-line::after { content: "›"; position: absolute; right: -3px; top: -11px; color: #7461bf; font-size: 20px; font-weight: 900; }
    .route-line span { position: absolute; left: 50%; top: -21px; padding: 3px 5px; border-radius: 5px; background: white; color: #7461bf; font: 900 7px ui-monospace, monospace; transform: translateX(-50%); }
    .ip-board, .dns-flow, .url-board, .captcha-flow, .wifi-board { width: min(100%, 650px); display: grid; place-items: center; gap: 18px; }
    .ip-address { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; }
    .ip-address span { min-width: 58px; padding: 14px 9px; border-radius: 12px; background: white; color: #6c57b5; text-align: center; font: 900 20px ui-monospace, monospace; box-shadow: 0 7px 16px rgba(71,54,132,.08); }
    .ip-address i { color: #8e85ae; font: 900 20px ui-monospace, monospace; }
    .ip-address > b { margin-left: 5px; color: #247866; font: 950 18px ui-monospace, monospace; }
    .ip-scope { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
    .ip-scope > div, .ipv6-sample, .ip-packet { padding: 16px; border-radius: 13px; background: white; text-align: center; }
    .ip-scope b, .ip-scope code, .ip-scope small, .ipv6-sample b, .ipv6-sample code, .ipv6-sample small { display: block; }
    .ip-scope b, .ipv6-sample b { color: var(--navy); font-size: 9px; }
    .ip-scope code, .ipv6-sample code { margin: 6px 0; color: #6c57b5; font: 900 12px ui-monospace, monospace; }
    .ip-scope small, .ipv6-sample small { color: #8b849e; font-size: 8px; }
    .ip-scope > span { color: #7461bf; font-size: 9px; font-weight: 900; }
    .ipv6-sample { width: min(100%, 390px); }
    .ip-dhcp { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 7px; }
    .ip-dhcp span { min-height: 72px; padding: 10px 6px; border-radius: 12px; display: grid; place-items: center; gap: 4px; background: white; box-shadow: 0 7px 16px rgba(71,54,132,.08); }
    .ip-dhcp b { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #247866; color: white; font-size: 9px; }
    .ip-dhcp small { color: var(--navy); font-size: 7px; font-weight: 900; }
    .ip-dhcp i { color: #4a9a87; font-size: 16px; font-style: normal; font-weight: 950; }
    .ip-packet { width: 100%; display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 10px; }
    .ip-packet > span { padding: 7px; border-radius: 7px; background: #7461bf; color: white; font-size: 8px; font-weight: 900; }
    .ip-packet small, .ip-packet code { display: block; }
    .ip-packet small { color: #928ba5; font-size: 7px; font-weight: 900; }
    .ip-packet code { margin-top: 4px; color: var(--navy); font: 800 9px ui-monospace, monospace; }
    .ip-packet > b { color: #7461bf; }
    .ip-details { margin-top: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
    .ip-details > section { padding: 23px; border: 1px solid #d8e9e4; border-radius: 17px; background: #f4fbf8; }
    .ip-details > section:last-child { grid-column: 1 / -1; }
    .ip-details > section > span { color: #247866; font-size: 8px; font-weight: 950; letter-spacing: .7px; }
    .ip-details h2 { margin: 6px 0 14px; color: var(--navy); font-size: 16px; }
    .ip-details p { margin: 14px 0 0; color: #60777d; font-size: 9px; line-height: 1.65; }
    .ip-range-table { display: grid; gap: 7px; }
    .ip-range-table > div { padding: 10px 12px; border: 1px solid #dbeae6; border-radius: 10px; display: grid; grid-template-columns: minmax(120px,.7fr) 1fr; align-items: center; gap: 10px; background: white; }
    .ip-range-table code { color: #247866; font: 900 10px ui-monospace, monospace; }
    .ip-range-table small { color: #74898e; font-size: 8px; }
    .ip-special-ranges { margin-top: 14px; padding: 11px 12px; border-radius: 10px; display: grid; gap: 5px; background: #e5f3ee; }
    .ip-special-ranges strong { color: var(--navy); font-size: 8px; }
    .ip-special-ranges span { color: #60777d; font-size: 8px; line-height: 1.55; }
    .ip-special-ranges code { color: #247866; font: 900 8px ui-monospace, monospace; }
    .ip-prefix-demo { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 3px; overflow: hidden; border: 1px solid #dbeae6; border-radius: 12px; background: white; }
    .ip-prefix-demo code, .ip-prefix-demo b { padding: 14px 10px; color: #247866; font: 950 13px ui-monospace, monospace; }
    .ip-prefix-demo code:nth-child(2) { color: #d17454; }
    .ip-prefix-demo b { padding-left: 4px; }
    .ip-prefix-demo small { padding: 8px 10px; background: #eaf6f1; color: #58736b; font-size: 7px; font-weight: 900; text-align: center; }
    .ip-prefix-demo small:first-of-type { grid-column: 1; }
    .ip-prefix-demo small:last-child { grid-column: 2 / 4; background: #fff1eb; color: #9a604c; }
    .ip-dhcp-detail ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; list-style: none; }
    .ip-dhcp-detail li { min-height: 92px; padding: 13px; border-radius: 11px; display: flex; flex-direction: column; gap: 6px; background: white; color: #60777d; font-size: 8px; line-height: 1.45; }
    .ip-dhcp-detail li b { color: #247866; font-size: 9px; }
    .dns-query, .dns-answer { width: min(100%, 420px); padding: 17px; border-radius: 14px; display: grid; gap: 6px; background: white; text-align: center; box-shadow: 0 7px 18px rgba(71,54,132,.08); }
    .dns-query span, .dns-answer span { color: #8d85a5; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .dns-query code, .dns-answer code { color: #6c57b5; font: 900 13px ui-monospace, monospace; }
    .dns-answer small { color: #8b849e; font-size: 8px; }
    .dns-server { padding: 14px 18px; border-radius: 13px; display: flex; align-items: center; gap: 11px; background: #7461bf; color: white; }
    .dns-server > span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 10px; font-weight: 900; }
    .dns-server b, .dns-server small { display: block; }
    .dns-server b { font-size: 10px; } .dns-server small { margin-top: 3px; color: #ddd8f1; font-size: 8px; }
    .dns-hierarchy { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 7px; }
    .dns-hierarchy > div { min-height: 82px; padding: 13px 9px; border-radius: 12px; display: grid; place-content: center; background: white; text-align: center; }
    .dns-hierarchy b, .dns-hierarchy small { display: block; }
    .dns-hierarchy b { color: var(--navy); font-size: 9px; }
    .dns-hierarchy small { margin-top: 5px; color: #8b849e; font-size: 7px; line-height: 1.35; }
    .dns-hierarchy i { color: #7461bf; font-style: normal; font-weight: 900; }
    .url-full { width: 100%; padding: 20px; border-radius: 15px; display: flex; flex-wrap: wrap; justify-content: center; background: #1e3e4b; font: 900 clamp(10px, 1.5vw, 15px)/1.6 ui-monospace, monospace; box-shadow: 0 10px 24px rgba(25,51,63,.16); }
    .url-full span { padding: 3px 2px; color: #cfc9e5; }
    .url-full span.active { color: #fff; background: #7461bf; }
    .url-labels { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .url-labels > div { min-height: 84px; padding: 13px 9px; border-radius: 12px; display: grid; align-content: center; background: white; text-align: center; }
    .url-labels b, .url-labels small { display: block; }
    .url-labels b { color: #6c57b5; font: 900 9px ui-monospace, monospace; overflow-wrap: anywhere; }
    .url-labels small { margin-top: 6px; color: #8b849e; font-size: 7px; }
    .captcha-request { width: min(100%, 330px); padding: 16px; border-radius: 14px; background: white; text-align: center; }
    .captcha-request > span { color: #8c84a3; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .captcha-request > div { margin-top: 11px; display: flex; justify-content: center; gap: 8px; }
    .captcha-request b { padding: 9px; border-radius: 9px; background: #f0edff; color: #6c57b5; font-size: 9px; }
    .captcha-challenge { width: min(100%, 310px); padding: 17px; border: 1px solid #ddd7ef; border-radius: 14px; background: white; box-shadow: 0 8px 18px rgba(71,54,132,.09); }
    .captcha-challenge label { color: var(--navy); font-size: 10px; font-weight: 900; }
    .captcha-tiles { margin: 13px 0 9px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .captcha-tiles i { min-height: 44px; display: grid; place-items: center; background: #eeeaf8; font-size: 19px; font-style: normal; }
    .captcha-challenge small { display: block; color: #928ba5; font-size: 7px; text-align: center; }
    .captcha-signals { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
    .captcha-signals span { padding: 8px 10px; border-radius: 999px; background: white; color: #6c57b5; font-size: 8px; font-weight: 900; }
    .captcha-verdict { width: min(100%, 420px); display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
    .captcha-verdict > div { padding: 17px; border-radius: 13px; background: white; text-align: center; }
    .captcha-verdict b, .captcha-verdict small { display: block; }
    .captcha-verdict b { color: #6c57b5; font-size: 10px; }
    .captcha-verdict small { margin-top: 5px; color: #928ba5; font-size: 8px; }
    .wifi-board { position: relative; grid-template-columns: 1fr 1fr 1fr; }
    .wifi-device, .wifi-router { padding: 18px; border-radius: 15px; display: grid; place-items: center; gap: 6px; background: white; text-align: center; }
    .wifi-device > span, .wifi-router > span { color: #6c57b5; font-size: 28px; }
    .wifi-device b, .wifi-router b { color: var(--navy); font-size: 10px; }
    .wifi-router small { color: #9189a5; font-size: 8px; }
    .wifi-air { color: #7461bf; text-align: center; }
    .wifi-air i { display: block; font-size: 30px; font-style: normal; font-weight: 900; letter-spacing: 2px; }
    .wifi-air small { display: block; margin-top: 5px; font: 800 8px ui-monospace, monospace; }
    .wifi-bands, .wifi-lock { grid-column: 1 / -1; width: 100%; }
    .wifi-bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .wifi-bands > span { padding: 13px 9px; border-radius: 11px; background: white; color: #6c57b5; text-align: center; font-size: 9px; font-weight: 900; }
    .wifi-bands small { display: block; margin-top: 5px; color: #928ba5; font-size: 7px; line-height: 1.35; font-weight: 700; }
    .wifi-lock { padding: 15px 18px; border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 12px; background: #7461bf; color: white; }
    .wifi-lock > span { font-size: 24px; }
    .wifi-lock b, .wifi-lock small { display: block; }
    .wifi-lock b { font-size: 10px; } .wifi-lock small { margin-top: 4px; color: #ddd8f1; font-size: 8px; }

    .bluetooth-board { width: min(100%, 610px); display: grid; grid-template-columns: 1fr .65fr 1fr; align-items: center; gap: 15px; }
    .bt-device { min-height: 112px; padding: 18px; border-radius: 15px; display: grid; place-items: center; gap: 7px; background: white; box-shadow: 0 7px 18px rgba(71,54,132,.08); }
    .bt-device span { color: #6c57b5; font-size: 30px; }
    .bt-device b { color: var(--navy); font-size: 10px; }
    .bt-air { color: #7461bf; text-align: center; }
    .bt-air i, .bt-air small { display: block; }
    .bt-air i { font-size: 42px; font-style: normal; font-weight: 900; }
    .bt-air small { margin-top: 5px; font-size: 8px; font-weight: 900; }
    .bt-scan, .bt-pair, .bt-hops, .bt-services { grid-column: 1 / -1; width: 100%; }
    .bt-scan { padding: 15px 18px; border-radius: 13px; display: flex; justify-content: space-between; gap: 12px; background: white; }
    .bt-scan span { color: #928aa6; font-size: 9px; }
    .bt-scan b { color: #6c57b5; font-size: 9px; }
    .bt-pair { padding: 17px; border-radius: 14px; display: grid; place-items: center; gap: 7px; background: white; text-align: center; }
    .bt-pair span { color: #9189a5; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .bt-pair strong { color: #6c57b5; font: 900 23px ui-monospace, monospace; letter-spacing: 5px; }
    .bt-pair small { color: #8b849e; font-size: 8px; }
    .bt-hops { padding: 16px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; background: white; }
    .bt-hops span { padding: 8px 10px; border-radius: 8px; background: #eee9ff; color: #6c57b5; font-size: 8px; font-weight: 900; }
    .bt-hops i { color: #7461bf; font-style: normal; font-weight: 900; }
    .bt-hops small { flex: 1 0 100%; color: #8b849e; font-size: 8px; text-align: center; }
    .bt-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .bt-services > div { padding: 15px 10px; border-radius: 12px; background: white; text-align: center; }
    .bt-services b, .bt-services small { display: block; }
    .bt-services b { color: #6c57b5; font-size: 9px; }
    .bt-services small { margin-top: 5px; color: #9189a5; font-size: 7px; }

    .gps-board { position: relative; width: min(100%, 590px); min-height: 390px; }
    .gps-satellite { position: absolute; width: 112px; padding: 10px; border-radius: 12px; display: grid; place-items: center; gap: 3px; background: white; text-align: center; box-shadow: 0 6px 15px rgba(71,54,132,.09); }
    .gps-satellite span { color: #6c57b5; font-size: 20px; }
    .gps-satellite b { color: var(--navy); font-size: 8px; }
    .gps-satellite small { color: #9189a5; font-size: 6px; }
    .sat-one { left: 2%; top: 3%; } .sat-two { right: 2%; top: 3%; } .sat-three { left: 8%; top: 42%; } .sat-four { right: 8%; top: 42%; }
    .gps-receiver { position: absolute; z-index: 3; left: 50%; top: 43%; width: 92px; padding: 14px 9px; border: 2px solid #7461bf; border-radius: 17px; display: grid; place-items: center; gap: 3px; background: white; transform: translate(-50%,-50%); text-align: center; box-shadow: 0 10px 22px rgba(71,54,132,.14); }
    .gps-receiver span { color: #6c57b5; font-size: 20px; }
    .gps-receiver b { color: var(--navy); font-size: 9px; } .gps-receiver small { color: #9189a5; font-size: 7px; }
    .gps-signals { position: absolute; inset: 0; }
    .gps-signals i { position: absolute; left: 50%; top: 43%; width: 2px; height: 150px; background: repeating-linear-gradient(#a99ed0 0 6px,transparent 6px 11px); transform-origin: top; }
    .gps-signals i:nth-child(1) { transform: rotate(225deg); } .gps-signals i:nth-child(2) { transform: rotate(135deg); } .gps-signals i:nth-child(3) { transform: rotate(255deg); height: 120px; } .gps-signals i:nth-child(4) { transform: rotate(105deg); height: 120px; }
    .gps-distance { position: absolute; z-index: 5; left: 2%; right: 2%; bottom: 1%; padding: 12px; border-radius: 13px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; background: white; text-align: center; }
    .gps-distance span, .gps-distance b { display: block; }
    .gps-distance span { color: #9189a5; font-size: 6px; font-weight: 900; text-transform: uppercase; }
    .gps-distance b { margin-top: 4px; color: #6c57b5; font-size: 8px; }
    .gps-distance > i { color: #7461bf; font-style: normal; font-weight: 900; }
    .gps-circles { position: absolute; z-index: 2; left: 50%; top: 43%; width: 260px; height: 220px; transform: translate(-50%,-50%); }
    .gps-circles i { position: absolute; border: 2px solid #7461bf; border-radius: 50%; }
    .gps-circles i:nth-child(1) { width: 170px; height: 170px; left: 0; top: 3px; } .gps-circles i:nth-child(2) { width: 180px; height: 180px; right: 0; top: 0; border-color:#bc5e7d; } .gps-circles i:nth-child(3) { width: 160px; height: 160px; left: 48px; bottom: 0; border-color:#d3a62e; }
    .gps-circles span { position: absolute; left: 50%; top: 48%; padding: 6px 8px; border-radius: 8px; background: #7461bf; color: white; font-size: 7px; font-weight: 900; transform: translate(-50%,-50%); white-space: nowrap; }
    .gps-result { position: absolute; z-index: 6; left: 50%; bottom: 2%; width: min(92%, 430px); padding: 14px; border-radius: 14px; display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 14px; background: white; transform: translateX(-50%); box-shadow: 0 8px 18px rgba(71,54,132,.11); }
    .gps-map-grid { position: relative; height: 70px; overflow: hidden; border-radius: 9px; background: #e9f1e8; }
    .gps-map-grid i { position: absolute; background: white; }
    .gps-map-grid i:nth-child(1) { left: 25px; width: 9px; height: 100%; } .gps-map-grid i:nth-child(2) { right: 18px; width: 12px; height: 100%; } .gps-map-grid i:nth-child(3) { top: 19px; width: 100%; height: 8px; } .gps-map-grid i:nth-child(4) { bottom: 13px; width: 100%; height: 10px; }
    .gps-map-grid span { position: absolute; z-index: 2; left: 52%; top: 48%; color: #bc5e7d; font-size: 22px; transform: translate(-50%,-50%); }
    .gps-result b, .gps-result small { display: block; }
    .gps-result b { color: #6c57b5; font: 900 11px ui-monospace, monospace; }
    .gps-result small { margin-top: 5px; color: #9189a5; font-size: 8px; line-height: 1.4; }

    /* Samostatná barevná oblast Datové sítě */
    .nav-icon.networks-icon { background: #2f8b78; font-size: 17px; }
    .category-networks { --tool-accent: #2f8b78; }
    .category-networks .eyebrow, .category-networks .tool-about strong, .category-networks .qr-step-number { color: #247866; }
    .category-networks .intro-mark { background: #dff3ed; color: #247866; }
    .category-networks .tool-about { border-color: #d7e9e3; }
    .category-networks .tool-surface { border-color: #d4e8e1; background: #eaf6f2; }
    .category-networks .qr-steps { border-color: #d8e9e4; background: #f4faf8; }
    .category-networks .qr-steps button.active b { background: #2f8b78; }
    .category-networks .concept-visual { background: #eaf6f2; }
    .category-networks .concept-explanation { border-left-color: #d8e9e4; }
    .category-networks .ip-address span, .category-networks .ip-scope code, .category-networks .ipv6-sample code, .category-networks .dns-query code, .category-networks .dns-answer code, .category-networks .url-labels b { color: #247866; }
    .category-networks .dns-server, .category-networks .url-full span.active { background: #2f8b78; }
    .category-networks .ip-scope > span, .category-networks .ip-packet > b, .category-networks .dns-hierarchy i { color: #2f8b78; }

    /* PAN, LAN, MAN a WAN */
    .network-scope-lab { overflow: hidden; background: white !important; }
    .network-scope-tabs { padding: 13px 16px; border-bottom: 1px solid #d8e9e4; display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; background: #f4faf8; }
    .network-scope-tabs button { min-height: 58px; padding: 9px 11px; border: 1px solid #d4e5df; border-radius: 11px; display: grid; gap: 3px; background: white; color: #698078; text-align: left; cursor: pointer; }
    .network-scope-tabs button b { color: #247866; font-size: 13px; }
    .network-scope-tabs button span { font-size: 7px; font-weight: 850; }
    .network-scope-tabs button.active { border-color: #2f8b78; background: #e2f3ed; box-shadow: inset 0 0 0 1px #2f8b78; }
    .network-scope-workspace { display: grid; grid-template-columns: minmax(310px,.82fr) minmax(0,1.18fr); min-height: 510px; }
    .network-scope-visual { padding: 28px 22px; border-right: 1px solid #d8e9e4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #eaf6f2; }
    .network-scope-rings { position: relative; width: min(100%,350px); aspect-ratio: 1; }
    .scope-ring { position: absolute; left: 50%; top: 50%; border: 2px solid #83b6a7; border-radius: 50%; display: grid; place-items: start center; color: #4c7d70; opacity: .34; transform: translate(-50%,-50%); transition: opacity .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
    .scope-ring > span { margin-top: 8px; padding: 3px 7px; border-radius: 6px; background: white; font-size: 8px; font-weight: 950; }
    .scope-ring.wan { width: 100%; height: 100%; }
    .scope-ring.man { width: 76%; height: 76%; }
    .scope-ring.lan { width: 52%; height: 52%; }
    .scope-ring.pan { width: 28%; height: 28%; }
    .scope-ring.pan i { position: absolute; left: 50%; top: 50%; color: #2f8b78; font-size: 15px; font-style: normal; transform: translate(-50%,-25%); }
    .scope-ring.active { border-color: #247866; border-width: 3px; background: rgba(47,139,120,.14); color: #175c4d; opacity: 1; box-shadow: 0 7px 22px rgba(36,120,102,.12); }
    .network-scope-range { width: min(100%,350px); padding: 13px 15px; border-radius: 12px; display: grid; gap: 4px; background: white; text-align: center; }
    .network-scope-range span { color: #71877f; font-size: 7px; font-weight: 950; letter-spacing: .6px; }
    .network-scope-range strong { color: #247866; font-size: 13px; }
    .network-scope-range small { color: #7d918a; font-size: 8px; line-height: 1.4; }
    .network-scope-detail { padding: 34px 30px; background: white; }
    .network-scope-detail > span { color: #247866; font-size: 8px; font-weight: 950; letter-spacing: .65px; text-transform: uppercase; }
    .network-scope-detail > h2 { margin: 6px 0 8px; color: var(--navy); font-size: 25px; }
    .network-scope-detail > p { margin: 0; color: #61766f; font-size: 10px; line-height: 1.65; }
    .network-scope-facts { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
    .network-scope-facts article { padding: 14px 15px; border: 1px solid #dceae5; border-radius: 12px; background: #f7fbfa; }
    .network-scope-facts article.wide { grid-column: 1 / -1; }
    .network-scope-facts b { color: #247866; font-size: 9px; }
    .network-scope-facts p { margin: 6px 0 0; color: #667b74; font-size: 8px; line-height: 1.55; }
    .network-scope-scale { padding: 14px 24px; border-top: 1px solid #d8e9e4; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 8px; background: #f4faf8; }
    .network-scope-scale span { color: #247866; font-size: 8px; font-weight: 950; }
    .network-scope-scale i { height: 2px; background: linear-gradient(90deg,#9bc8bb,#2f8b78); }

    /* Modely OSI a TCP/IP */
    .protocol-model-lab { overflow:hidden; display:grid; grid-template-columns:minmax(270px,.78fr) minmax(0,1.22fr); background:white !important; }
    .protocol-stack { padding:18px; display:grid; gap:6px; background:#eaf6f2; }
    .protocol-stack button { min-height:57px; padding:9px 12px; border:1px solid #cfe2db; border-radius:11px; display:grid; grid-template-columns:32px 1fr; gap:2px 10px; align-items:center; background:white; color:#667c75; text-align:left; cursor:pointer; }
    .protocol-stack button b { grid-row:1 / 3; width:32px; height:32px; border-radius:9px; display:grid; place-items:center; background:#dff0ea; color:#247866; font-size:11px; }
    .protocol-stack button span { color:var(--navy); font-size:10px; font-weight:950; }
    .protocol-stack button small { font-size:8px; line-height:1.3; }
    .protocol-stack button.active { border-color:#2f8b78; background:#dff3ed; box-shadow:inset 0 0 0 1px #2f8b78; }
    .protocol-stack button.active b { background:#2f8b78; color:white; }
    .protocol-layer-detail { min-height:490px; padding:44px 38px; display:flex; flex-direction:column; justify-content:center; background:white; }
    .protocol-layer-detail > span { color:#247866; font-size:8px; font-weight:950; letter-spacing:.7px; text-transform:uppercase; }
    .protocol-layer-detail h2 { margin:7px 0 11px; color:var(--navy); font-size:27px; }
    .protocol-layer-detail > p { margin:0; color:#61766f; font-size:11px; line-height:1.7; }
    .protocol-layer-detail > div { margin-top:24px; display:grid; grid-template-columns:1fr 1fr; gap:9px; }
    .protocol-layer-detail article { padding:15px; border:1px solid #dceae5; border-radius:12px; background:#f6faf9; }
    .protocol-layer-detail article b { color:#247866; font-size:9px; }
    .protocol-layer-detail article p { margin:6px 0 0; color:#667b74; font-size:9px; line-height:1.5; }
    .protocol-journey { margin-top:14px; padding:15px 18px; border:1px solid #d7e9e3; border-radius:13px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px; background:#f4faf8; }
    .protocol-journey span { color:#247866; font-size:8px; font-weight:950; }
    .protocol-journey i { color:#678078; font:850 9px ui-monospace,monospace; text-align:center; font-style:normal; }
    .tcpip-stack { align-content:center; }
    .tcpip-stack button { min-height:82px; }
    .protocol-comparison { margin-top:14px; padding:18px; border:1px solid #d7e9e3; border-radius:14px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; background:#f4faf8; }
    .protocol-comparison > div { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
    .protocol-comparison > div strong { grid-column:1 / -1; margin-bottom:3px; color:#247866; font-size:9px; }
    .protocol-comparison span { min-height:48px; padding:7px 5px; border:1px solid #cfe2db; border-radius:8px; display:grid; place-items:center; background:white; color:#5f776f; font-size:8px; font-weight:850; text-align:center; }
    .protocol-comparison > i { color:#2f8b78; font-size:22px; font-style:normal; }
    .protocol-comparison > div.tcpip { grid-template-columns:repeat(4,1fr); }

    /* Cesta dat internetem */
    .packet-lab { border: 1px solid #d4e8e1; background: white !important; }
    .packet-controls { padding: 17px 20px; display: grid; grid-template-columns: minmax(220px,.8fr) minmax(360px,1.2fr); align-items: end; gap: 16px; border-bottom: 1px solid #dce9e4; background: #f4faf8; }
    .packet-controls label { display: grid; gap: 6px; color: #247866; font-size: 8px; font-weight: 950; letter-spacing: .6px; text-transform: uppercase; }
    .packet-controls input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #cbded7; border-radius: 10px; outline: 0; background: white; color: var(--navy); font: 900 13px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
    .packet-controls input:focus { border-color: #2f8b78; box-shadow: 0 0 0 3px rgba(47,139,120,.12); }
    .packet-scenarios { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
    .packet-scenarios > span { margin-right: 4px; color: #718a82; font-size: 8px; font-weight: 950; text-transform: uppercase; }
    .packet-scenarios button { min-height: 38px; padding: 7px 10px; border: 1px solid #d2e3dd; border-radius: 9px; background: white; color: #607b72; font-size: 8px; font-weight: 900; cursor: pointer; }
    .packet-scenarios button.active { border-color: #2f8b78; background: #2f8b78; color: white; }
    .packet-steps { padding: 12px 16px; display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; border-bottom: 1px solid #dce9e4; background: white; }
    .packet-steps button { min-height: 45px; padding: 7px 9px; border: 0; border-radius: 10px; display: flex; align-items: center; gap: 8px; background: #eef6f3; color: #668078; font-size: 9px; font-weight: 900; cursor: pointer; text-align: left; }
    .packet-steps button b { flex: 0 0 25px; width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; background: #d9ebe5; color: #247866; font-size: 8px; }
    .packet-steps button.active { background: #dff3ed; color: var(--navy); }
    .packet-steps button.active b { background: #2f8b78; color: white; }
    .packet-workspace { min-height: 400px; padding: 22px; display: grid; grid-template-columns: 185px minmax(300px,1fr) 185px; align-items: stretch; gap: 14px; background: #eaf6f2; }
    .packet-endpoint { min-width: 0; padding: 20px 14px; border: 1px solid #cfe2db; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: white; text-align: center; }
    .packet-endpoint > span { color: #80968f; font-size: 7px; font-weight: 950; letter-spacing: .8px; }
    .packet-endpoint > b { margin-top: 6px; color: var(--navy); font-size: 14px; }
    .packet-endpoint > small { margin-top: 4px; color: #718b82; font: 800 8px ui-monospace, monospace; }
    .packet-strip { width: 100%; margin-top: 16px; display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; }
    .packet-token { min-width: 36px; padding: 6px 7px; border: 1px solid #bcd8ce; border-radius: 8px; display: inline-grid; gap: 2px; background: #edf8f4; color: #247866; text-align: center; }
    .packet-token b { font: 950 7px ui-monospace, monospace; }
    .packet-token code { color: var(--navy); font: 900 10px ui-monospace, monospace; white-space: pre; }
    .packet-token.lost { border-color: #d78177; background: #fff0ee; color: #b84f47; text-decoration: line-through; opacity: .78; }
    .packet-token.resent { border-color: #d1a43b; background: #fff7df; color: #8c6715; }
    .packet-missing { min-width: 42px; padding: 8px; border: 1px dashed #cf786f; border-radius: 8px; color: #b84f47; font-size: 8px; font-weight: 900; }
    .packet-network { min-width: 0; display: grid; align-content: center; gap: 12px; }
    .packet-lane { position: relative; min-height: 88px; padding: 10px 49px; border: 1px solid #cfe2db; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; background: rgba(255,255,255,.66); }
    .packet-lane::before, .packet-lane::after { position: absolute; top: 50%; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #2f8b78; color: white; font: 900 8px ui-monospace, monospace; transform: translateY(-50%); }
    .packet-lane::before { content: "R"; left: 8px; }
    .packet-lane::after { content: "R"; right: 8px; }
    .packet-lane > .packet-lane-label { position: absolute; left: 50%; top: 5px; color: #82978f; font-size: 7px; font-weight: 900; transform: translateX(-50%); }
    .packet-lane.empty { opacity: .48; }
    .packet-explanation { padding: 19px 22px; border-top: 1px solid #d8e7e1; display: grid; grid-template-columns: 1fr minmax(180px,.35fr); align-items: center; gap: 24px; background: white; }
    .packet-explanation span { color: #247866; font-size: 8px; font-weight: 950; letter-spacing: .7px; text-transform: uppercase; }
    .packet-explanation h2 { margin: 5px 0; color: var(--navy); font-size: 18px; }
    .packet-explanation p { margin: 0; color: #70877f; font-size: 9px; line-height: 1.55; }
    .packet-final { padding: 12px 14px; border-radius: 11px; background: #edf6f3; }
    .packet-final span, .packet-final strong { display: block; }
    .packet-final strong { margin-top: 5px; overflow-wrap: anywhere; color: #247866; font: 900 14px ui-monospace, monospace; }
    .packet-term-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
    .packet-term-grid article { padding: 16px 17px; border: 1px solid #d7e7e1; border-radius: 14px; background: white; }
    .packet-term-grid b { color: #247866; font-size: 10px; }
    .packet-term-grid p { margin: 7px 0 0; color: #72877f; font-size: 9px; line-height: 1.5; }

    /* Samostatná barevná oblast Kyberbezpečnost */
    .nav-icon.cyber-icon { background: #bf554d; font-size: 17px; }
    .category-cyber { --tool-accent: #bf554d; }
    .category-cyber .eyebrow, .category-cyber .tool-about strong { color: #b84f47; }
    .category-cyber .intro-mark { background: #fbe5e1; color: #b84f47; }
    .category-cyber .tool-about { border-color: #edddd9; }
    .metadata-lab { border: 1px solid #ead8d4; background: white; }
    .metadata-tabs { padding: 13px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #eadedb; background: #fff9f7; }
    .metadata-tabs > span { margin-right: 5px; color: #927a76; font-size: 8px; font-weight: 950; letter-spacing: .7px; text-transform: uppercase; }
    .metadata-tabs button { min-height: 40px; padding: 7px 12px; border: 1px solid #e7d5d1; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; background: white; color: #806d69; font-size: 9px; font-weight: 900; cursor: pointer; }
    .metadata-tabs button b { width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; background: #f8e9e6; color: #b84f47; font-size: 8px; }
    .metadata-tabs button.active { border-color: #bf554d; background: #fff0ee; color: var(--navy); }
    .metadata-tabs button.active b { background: #bf554d; color: white; }
    .metadata-workspace { display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr); min-height: 460px; }
    .metadata-preview { padding: 35px 28px; border-right: 1px solid #eadedb; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff3f0; text-align: center; }
    .metadata-file-icon { width: 108px; height: 128px; border: 2px solid #d99790; border-radius: 15px 15px 15px 5px; display: grid; place-items: center; background: white; color: #bf554d; font-size: 44px; box-shadow: 0 10px 24px rgba(130,60,53,.1); }
    .metadata-preview > span { margin-top: 22px; color: #a17f7a; font-size: 7px; font-weight: 950; letter-spacing: .8px; }
    .metadata-preview h2 { margin: 7px 0 4px; color: var(--navy); font-size: 22px; overflow-wrap: anywhere; }
    .metadata-preview p { margin: 0; color: #806f6b; font-size: 10px; line-height: 1.5; }
    .metadata-preview small { margin-top: 12px; color: #9a7e79; font-size: 8px; font-weight: 850; }
    .metadata-inspector { padding: 27px; background: white; }
    .metadata-inspector-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
    .metadata-inspector-head span { color: #b84f47; font-size: 7px; font-weight: 950; letter-spacing: .8px; }
    .metadata-inspector-head h2 { margin: 5px 0 0; color: var(--navy); font-size: 20px; }
    .metadata-inspector-head button { min-height: 39px; padding: 8px 11px; border: 1px solid #d98278; border-radius: 10px; background: #fff0ee; color: #a94740; font-size: 8px; font-weight: 900; cursor: pointer; }
    .metadata-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
    .metadata-inspector-head .metadata-actions .primary { border-color: #bf554d; background: #bf554d; color: white; }
    .metadata-inspector-head button:disabled { border-color: #dce4e2; background: #f2f5f4; color: #91a09c; cursor: default; }
    .metadata-list { margin-top: 20px; display: grid; gap: 7px; }
    .metadata-row { width: 100%; min-height: 48px; padding: 9px 12px; border: 1px solid transparent; border-radius: 10px; display: grid; grid-template-columns: minmax(95px,.45fr) 1fr auto; align-items: center; gap: 12px; background: #f6f8f7; font: inherit; text-align: left; cursor: pointer; }
    .metadata-row:hover { border-color: #c8d7d4; background: #f0f5f3; }
    .metadata-row span { color: #82928e; font-size: 8px; font-weight: 900; }
    .metadata-row code { overflow-wrap: anywhere; color: var(--navy); font: 850 9px ui-monospace, monospace; }
    .metadata-row b { padding: 4px 6px; border-radius: 6px; background: #e7eceb; color: #6b7d78; font-size: 6px; letter-spacing: .4px; text-transform: uppercase; }
    .metadata-row .metadata-why { grid-column: 1 / -1; margin-top: 2px; padding-top: 9px; border-top: 1px solid rgba(106,129,121,.18); color: #6c7774; font-size: 9px; line-height: 1.55; }
    .metadata-row.incorrect .metadata-why { color: #854b45; border-top-color: rgba(191,85,77,.2); }
    .metadata-row.correct .metadata-why { color: #3f705b; border-top-color: rgba(69,146,115,.2); }
    .metadata-row.selected { border-color: #708a93; background: #edf3f4; }
    .metadata-row.selected b { background: #617f89; color: white; }
    .metadata-row.correct { border-color: #75ad95; background: #eaf7f1; }
    .metadata-row.correct b { background: #459273; color: white; }
    .metadata-row.incorrect { border-color: #d58b82; background: #fff0ee; }
    .metadata-row.incorrect b { background: #bf554d; color: white; }
    .metadata-row.removed code { color: #8b9a96; font-style: italic; }
    .metadata-row:disabled { cursor: default; }
    .metadata-test-feedback { margin-top: 14px; padding: 12px 14px; border: 1px solid #eadedb; border-radius: 11px; background: #fff9f7; }
    .metadata-test-feedback strong { color: #a94740; font-size: 9px; }
    .metadata-test-feedback p { margin: 4px 0 0; color: #7d706c; font-size: 8px; line-height: 1.5; }
    .metadata-risk { margin-top: 17px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
    .metadata-risk > span { color: #897773; font-size: 8px; font-weight: 900; }
    .metadata-risk > div { height: 8px; overflow: hidden; border-radius: 99px; background: #eee7e5; }
    .metadata-risk i { display: block; width: 88%; height: 100%; border-radius: inherit; background: #bf554d; transition: width .25s ease, background .25s ease; }
    .metadata-risk strong { min-width: 50px; color: #b84f47; font-size: 9px; text-align: right; }
    .footprint-lesson { margin-top: 18px; padding: 22px; border: 1px solid #eadbd7; border-radius: 18px; display: grid; grid-template-columns: .78fr 1.22fr; gap: 22px; background: #fff9f7; }
    .footprint-copy > span { color: #b84f47; font-size: 8px; font-weight: 950; letter-spacing: .7px; text-transform: uppercase; }
    .footprint-copy h2 { margin: 7px 0 8px; color: var(--navy); font-size: 20px; line-height: 1.25; }
    .footprint-copy p { margin: 0; color: #806f6b; font-size: 9px; line-height: 1.55; }
    .footprint-progress { display: flex; gap: 5px; }
    .footprint-progress button { width: 34px; height: 34px; border: 1px solid #e0d1ce; border-radius: 9px; background: white; color: #a65a53; font-size: 8px; font-weight: 950; cursor: pointer; }
    .footprint-progress button.active { border-color: #bf554d; background: #bf554d; color: white; }
    .footprint-choices { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .footprint-choices button { min-height: 68px; padding: 11px 12px; border: 1px solid #e2d4d1; border-radius: 11px; display: grid; gap: 4px; background: white; color: #806e6a; text-align: left; cursor: pointer; }
    .footprint-choices button b { color: #b84f47; font-size: 10px; }
    .footprint-choices button span { font-size: 8px; line-height: 1.4; }
    .footprint-choices button.correct { border-color: #459273; background: #eaf7f1; }
    .footprint-choices button.incorrect { border-color: #cb7067; background: #fff0ee; }
    .footprint-feedback { margin-top: 9px; padding: 11px 13px; border-radius: 10px; background: white; }
    .footprint-feedback strong { color: #b84f47; font-size: 9px; }
    .footprint-feedback p { margin: 4px 0 0; color: #7c706d; font-size: 8px; line-height: 1.5; }
    .metadata-safety-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
    .metadata-safety-grid article { padding: 16px 17px; border: 1px solid #eadbd7; border-radius: 14px; background: white; }
    .metadata-safety-grid b { color: #b84f47; font-size: 10px; }
    .metadata-safety-grid p { margin: 7px 0 0; color: #7d706c; font-size: 9px; line-height: 1.5; }

    /* Hesla a přístupové fráze */
    .password-warning { margin-bottom: 14px; padding: 17px 19px; border: 2px solid #d26056; border-radius: 13px; display: flex; align-items: center; gap: 13px; background: #fff0ee; color: #7f332d; font-size: 10px; line-height: 1.55; box-shadow: 0 7px 18px rgba(191,85,77,.08); }
    .password-warning b { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #bf554d; color: white; font-size: 15px; }
    .password-warning strong { display: block; color: #a43f38; font-size: 11px; letter-spacing: .2px; }
    .password-lab { border: 1px solid #ead8d4; display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); background: white; }
    .password-input-panel { padding: 29px 25px; border-right: 1px solid #eadedb; background: #fff5f2; }
    .password-input-panel label { color: #b84f47; font-size: 9px; font-weight: 950; letter-spacing: .6px; text-transform: uppercase; }
    .password-input-panel input { width: 100%; min-height: 54px; margin-top: 10px; padding: 0 14px; border: 1px solid #dfc8c3; border-radius: 12px; outline: 0; background: white; color: var(--navy); font: 850 15px ui-monospace, SFMono-Regular, Menlo, monospace; }
    .password-input-panel input:focus { border-color: #bf554d; box-shadow: 0 0 0 3px rgba(191,85,77,.11); }
    .password-examples { margin-top: 17px; display: grid; gap: 7px; }
    .password-examples > span { color: #947d78; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .password-examples button { min-height: 38px; padding: 8px 10px; border: 1px solid #e5d4d0; border-radius: 9px; background: white; color: #806e69; font: 800 9px ui-monospace, monospace; text-align: left; cursor: pointer; }
    .password-generator { margin-top: 22px; padding: 16px; border: 1px solid #e2ccc7; border-radius: 13px; background: white; }
    .password-generator > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .password-generator > div:first-child span, .password-generator > label { color: #a14d45; font-size: 8px; font-weight: 950; letter-spacing: .5px; }
    .password-generator > div:first-child strong { color: var(--navy); font-size: 9px; }
    .password-generator > label { display: block; margin-top: 14px; color: #88736e; }
    .password-generator > input { width: 100%; min-height: 28px; margin: 3px 0 8px; accent-color: #bf554d; }
    .password-generator .password-generator-length-note { margin: -2px 0 9px; padding: 7px 9px; border-radius: 8px; font-size: 8px; font-weight: 900; }
    .password-generator-length-note.danger { background: #ffe9e6; color: #a33f38; }
    .password-generator-length-note.warning { background: #fff5da; color: #8d6b17; }
    .password-generator-length-note.safe { background: #e8f6ef; color: #327d61; }
    .password-generator .password-generator-option { min-height: 42px; margin: 5px 0 11px; padding: 8px 10px; border-radius: 9px; display: flex; align-items: center; gap: 9px; background: #f7f2f1; color: var(--navy); cursor: pointer; }
    .password-generator-option input { width: 18px; height: 18px; margin: 0; accent-color: #bf554d; }
    .password-generator-option > span { display: grid; gap: 2px; font-size: 9px; font-weight: 900; letter-spacing: 0; }
    .password-generator-option small { margin: 0; color: #917d78; font: 700 7px ui-monospace, monospace; }
    .password-generator > button { width: 100%; min-height: 40px; border: 0; border-radius: 9px; background: #bf554d; color: white; font-size: 9px; font-weight: 900; cursor: pointer; }
    .password-generated { margin-top: 9px; display: grid; grid-template-columns: 1fr auto auto; gap: 6px; }
    .password-generated code { min-height: 42px; padding: 9px 10px; border-radius: 8px; display: flex; align-items: center; overflow-wrap: anywhere; background: #f6f2f1; color: var(--navy); font: 850 9px/1.4 ui-monospace, monospace; }
    .password-generated button { min-height: 42px; padding: 0 9px; border: 1px solid #e0cfcb; border-radius: 8px; background: white; color: #9a4a43; font-size: 8px; font-weight: 900; cursor: pointer; }
    .password-generator small { display: block; margin-top: 9px; color: #8a7772; font-size: 7px; line-height: 1.5; }
    .password-result-panel { padding: 27px; }
    .password-score { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; }
    .password-score > span { color: #927d78; font-size: 8px; font-weight: 950; letter-spacing: .6px; text-transform: uppercase; }
    .password-score > strong { color: #b84f47; font-size: 14px; }
    .password-score > div { grid-column: 1 / -1; height: 10px; overflow: hidden; border-radius: 99px; background: #eee6e4; }
    .password-score i { display: block; width: 0; height: 100%; border-radius: inherit; background: #bf554d; transition: width .2s ease, background .2s ease; }
    .password-score small { grid-column: 1 / -1; color: #83736f; font-size: 8px; line-height: 1.45; }
    .password-criteria { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .password-criteria article { padding: 13px; border: 1px solid #e7dfdd; border-radius: 11px; background: #f8f8f7; }
    .password-criteria article.good { border-color: #bcdccc; background: #edf8f3; }
    .password-criteria article.warn { border-color: #ecd3ce; background: #fff2ef; }
    .password-criteria b, .password-criteria strong { display: block; }
    .password-criteria b { color: #8a7773; font-size: 7px; letter-spacing: .5px; text-transform: uppercase; }
    .password-criteria strong { margin-top: 5px; color: var(--navy); font-size: 10px; }
    .password-criteria p { margin: 5px 0 0; color: #81736f; font-size: 8px; line-height: 1.4; }
    .password-advice { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #fff5e4; color: #806822; font-size: 9px; line-height: 1.5; }
    .password-principles { margin-top: 18px; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
    .password-principles article { padding: 16px 17px; border: 1px solid #eadbd7; border-radius: 14px; background: white; }
    .password-principles b { color: #b84f47; font-size: 10px; }
    .password-principles p { margin: 7px 0 0; color: #7d706c; font-size: 9px; line-height: 1.5; }

    /* Společné záložky kyberbezpečnostních aktivit */
    .permissions-tabs, .mfa-methods { padding: 13px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #eadedb; background: #fff9f7; }
    .permissions-tabs > span, .mfa-methods > span { margin-right: 5px; color: #927a76; font-size: 8px; font-weight: 950; letter-spacing: .7px; text-transform: uppercase; }
    .permissions-tabs button, .mfa-methods button { min-height: 39px; padding: 7px 11px; border: 1px solid #e4d3cf; border-radius: 9px; background: white; color: #806d69; font-size: 8px; font-weight: 900; cursor: pointer; }
    .permissions-tabs button.active, .mfa-methods button.active { border-color: #bf554d; background: #bf554d; color: white; }
    .permissions-lab, .mfa-lab { border: 1px solid #ead8d4; background: white; }
    .permissions-actions button { min-height: 36px; padding: 7px 10px; border: 1px solid #dfd3d0; border-radius: 9px; background: #f8f5f4; color: #806e6a; font-size: 8px; font-weight: 900; cursor: pointer; }
    .permissions-feedback { margin-top: 13px; padding: 12px 14px; border-radius: 10px; background: #f6f5f4; }
    .permissions-feedback strong { color: #b84f47; font-size: 9px; }
    .permissions-feedback p { margin: 4px 0 0; color: #7e716d; font-size: 8px; line-height: 1.5; }

    /* Oprávnění aplikací */
    .permissions-workspace { display: grid; grid-template-columns: minmax(230px,.62fr) minmax(0,1.38fr); min-height: 500px; }
    .permissions-phone { padding: 35px 24px; border-right: 1px solid #eadedb; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff3f0; text-align: center; }
    .permissions-app-icon { width: 92px; height: 92px; border: 2px solid #dcaaa4; border-radius: 25px; display: grid; place-items: center; background: white; color: #b84f47; font-size: 35px; box-shadow: 0 10px 22px rgba(130,60,53,.09); }
    .permissions-phone h2 { margin: 15px 0 6px; color: var(--navy); font-size: 22px; }
    .permissions-phone p { margin: 0; color: #7f706c; font-size: 10px; line-height: 1.5; }
    .permissions-phone small { margin-top: 15px; color: #987f79; font-size: 8px; line-height: 1.45; }
    .permissions-panel { padding: 25px; }
    .permissions-list { display: grid; gap: 7px; }
    .permission-row { min-height: 57px; padding: 9px 11px; border: 1px solid #e6dfdd; border-radius: 11px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; background: #faf9f8; cursor: pointer; }
    .permission-row > b { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #f4e5e2; color: #b84f47; font-size: 14px; }
    .permission-row strong, .permission-row small { display: block; }
    .permission-row strong { color: var(--navy); font-size: 9px; }
    .permission-row small { margin-top: 3px; color: #887772; font-size: 7px; }
    .permission-switch { width: 42px; height: 23px; padding: 3px; border-radius: 99px; background: #d4d9d7; transition: background .15s ease; }
    .permission-switch i { display: block; width: 17px; height: 17px; border-radius: 50%; background: white; transition: transform .15s ease; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
    .permission-row.enabled .permission-switch { background: #bf554d; }
    .permission-row.enabled .permission-switch i { transform: translateX(19px); }
    .permission-row.correct { border-color: #78b198; background: #edf8f3; }
    .permission-row.incorrect { border-color: #d9877f; background: #fff0ee; }
    .permission-row.optional { border-color: #dfbd68; background: #fff9e9; }
    .permissions-actions { margin-top: 14px; display: flex; justify-content: flex-end; gap: 7px; }
    .permissions-actions #permissions-evaluate { border-color: #bf554d; background: #bf554d; color: white; }

    /* Dvoufázové ověření */
    .mfa-workspace { display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr); min-height: 470px; }
    .mfa-attack { padding: 32px 26px; border-right: 1px solid #eadedb; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff3f0; text-align: center; transition: background .2s ease, color .2s ease; }
    .mfa-attack.challenge { background: #fff8e7; }
    .mfa-attack.safe { background: #e6f5ed; }
    .mfa-attack.danger { background: #ffe9e6; }
    .mfa-attack > span { color: #b84f47; font-size: 8px; font-weight: 950; letter-spacing: .7px; }
    .mfa-attack.challenge > span { color: #98731b; }
    .mfa-attack.safe > span { color: #327d61; }
    .mfa-attacker { width: 78px; height: 78px; margin-top: 16px; border-radius: 24px; display: grid; place-items: center; background: white; color: #bf554d; font-size: 32px; box-shadow: 0 9px 22px rgba(130,60,53,.1); }
    .mfa-attack.challenge .mfa-attacker { color: #b48a25; }
    .mfa-attack.safe .mfa-attacker { color: #328265; }
    .mfa-attack.safe button { background: #328265; }
    .mfa-attack h2 { margin: 15px 0 7px; color: var(--navy); font-size: 20px; }
    .mfa-attack p { margin: 0; color: #685b57; font-size: 11px; line-height: 1.6; }
    .mfa-attack button { min-height: 42px; margin-top: 18px; padding: 0 15px; border: 0; border-radius: 10px; background: #bf554d; color: white; font-size: 9px; font-weight: 900; cursor: pointer; }
    .mfa-flow { padding: 30px; display: grid; align-content: center; gap: 9px; }
    .mfa-stage { padding: 13px 14px; border: 1px solid #e5dfdd; border-radius: 11px; display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 11px; background: #faf9f8; opacity: .48; }
    .mfa-stage > b { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: #e7dfdd; color: #8b7772; font-size: 9px; }
    .mfa-stage strong, .mfa-stage span { display: block; }
    .mfa-stage strong { color: var(--navy); font-size: 10px; }
    .mfa-stage span { margin-top: 4px; color: #6e615d; font-size: 10px; line-height: 1.5; }
    .mfa-stage.active, .mfa-stage.done { opacity: 1; }
    .mfa-stage.active { border-color: #bf554d; background: #fff0ee; }
    .mfa-stage.active > b { background: #bf554d; color: white; }
    .mfa-stage.done { border-color: #b8d8c9; background: #edf8f3; }
    .mfa-stage.done > b { background: #459273; color: white; }
    .mfa-challenge { margin-top: 5px; padding: 15px; border: 1px solid #e0c7c2; border-radius: 12px; background: #fff7f4; }
    .mfa-challenge[hidden] { display: none; }
    .mfa-challenge > span { color: #b84f47; font-size: 7px; font-weight: 950; letter-spacing: .6px; }
    .mfa-challenge > strong { display: block; margin-top: 5px; color: var(--navy); font-size: 11px; }
    .mfa-challenge > code { width: max-content; margin-top: 9px; padding: 7px 10px; border-radius: 8px; display: block; background: white; color: #a34942; font: 900 16px ui-monospace, monospace; letter-spacing: 2px; }
    .mfa-challenge > code[hidden] { display: none; }
    .mfa-message-meta { margin-top: 10px !important; padding: 9px 10px; border: 1px solid #eadedb; border-radius: 9px; display: grid !important; grid-template-columns: 1fr !important; gap: 3px !important; background: white; }
    .mfa-message-meta span { color: #625652; font-size: 8px; font-weight: 900; }
    .mfa-message-meta code { color: #8b7772; font: 750 8px/1.4 ui-monospace, monospace; overflow-wrap: anywhere; }
    .mfa-challenge > p { margin: 7px 0 0; color: #6e615d; font-size: 10px; line-height: 1.55; }
    .mfa-challenge > div { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
    .mfa-challenge button { min-height: 48px; padding: 9px 11px; border: 1px solid #d8c3bf; border-radius: 9px; background: white; color: #765c57; font-size: 9px; font-weight: 900; line-height: 1.4; cursor: pointer; }
    .mfa-challenge button:hover { border-color: #bf554d; background: #fff0ee; }
    .mfa-verdict { margin-top: 6px; padding: 13px 15px; border-radius: 11px; background: #f3f3f2; }
    .mfa-verdict.safe { background: #eaf7f1; }
    .mfa-verdict.danger { background: #fff0ee; }
    .mfa-verdict strong { color: #b84f47; font-size: 10px; }
    .mfa-verdict.safe strong { color: #327d61; }
    .mfa-verdict p { margin: 5px 0 0; color: #685e5b; font-size: 10px; line-height: 1.55; }
    .mfa-factor-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
    .mfa-factor-grid article { padding: 16px 17px; border: 1px solid #eadbd7; border-radius: 14px; background: white; }
    .mfa-factor-grid b { color: #b84f47; font-size: 10px; }
    .mfa-factor-grid p { margin: 7px 0 0; color: #7d706c; font-size: 9px; line-height: 1.5; }

    .nav-icon.data-icon { background: #4d8fbd; }
    .category-data { --tool-accent: #4d8fbd; }
    .category-data .eyebrow, .category-data .tool-about strong { color: #3978a4; }
    .category-data .intro-mark { background: #e4f1fa; color: #3978a4; }
    .category-data .base-swap, .category-data .action.primary { border-color: #4d8fbd; background: #4d8fbd; color: white; }
    .category-data .base-result { color: #3978a4; }
    .category-data .data-swap { border-color: #cbdde9; color: #3978a4; }
    .category-data .ascii-code, .category-data .binary-result { color: #3978a4; }
    .tool-page.bases.category-data .eyebrow, .tool-page.bases.category-data .base-result { color: #3978a4; }
    .tool-page.bases.category-data .intro-mark { background: #e4f1fa; color: #3978a4; }
    .tool-page.bases.category-data .tool-surface { background: white; }
    .tool-page.bases.category-data .base-selectors { background: #f3f8fb; }
    .tool-page.bases.category-data .select-field label { color: #3978a4; }
    .tool-page.bases.category-data .action.primary { border-color: #4d8fbd; background: #4d8fbd; }
    .tool-page.bases.category-data .base-swap { border-color: #4d8fbd; background: #4d8fbd; color: white; }
    .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
    .normal-case { text-transform: none; }
    .binary-result { font: 800 17px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .4px; word-spacing: 4px; }

    .parity-input-panel { min-height: 240px; padding: 26px; border-bottom: 1px solid #e0e8ea; }
    .parity-input { width: 100%; padding: 4px 0 10px; border: 0; outline: 0; background: transparent; color: var(--navy); font: 900 30px/1.4 ui-monospace, monospace; letter-spacing: 3px; }
    .parity-input::placeholder { color: #c5d1d4; letter-spacing: 0; }
    .parity-bits { min-height: 48px; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
    .parity-bits span { width: 34px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #edf4f8; color: #3978a4; font: 900 14px ui-monospace, monospace; }
    .parity-bits span.one { background: #4d8fbd; color: white; }
    .parity-result-panel { padding: 24px 26px; display: grid; grid-template-columns: .55fr .8fr 1.65fr; align-items: stretch; gap: 14px; background: #fbfdfd; }
    .parity-current, .parity-counts > div, .parity-solutions > div { padding: 15px; border-radius: 12px; background: #f0f5f7; }
    .parity-current { display: flex; flex-direction: column; justify-content: center; text-align: center; }
    .parity-current span, .parity-counts span, .parity-solutions span { color: #7d9096; font-size: 8px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
    .parity-current strong { margin-top: 8px; color: #3978a4; font-size: 22px; }
    .parity-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .parity-counts > div { display: flex; flex-direction: column; justify-content: center; text-align: center; }
    .parity-counts strong { margin-top: 7px; color: var(--navy); font-size: 21px; }
    .parity-solutions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .parity-solutions > div { position: relative; padding-right: 50px; }
    .parity-solutions strong { position: absolute; top: 12px; right: 13px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #4d8fbd; color: white; font: 900 14px ui-monospace, monospace; }
    .parity-solutions p { margin: 9px 0 0; overflow-wrap: anywhere; color: #526d77; font: 800 10px/1.4 ui-monospace, monospace; }
    .data-mode-bar { min-height: 86px; padding: 14px 24px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 16px; border-bottom: 1px solid #dce6e9; background: #f7fbfd; }
    .data-mode-bar > span { color: var(--navy); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
    .data-mode-bar > p { margin: 0; color: #71878e; font-size: 9px; line-height: 1.45; }
    .data-mode-toggle { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: #e8f0f4; }
    .data-mode-toggle button { padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: #6e838a; font-size: 10px; font-weight: 900; cursor: pointer; }
    .data-mode-toggle button small { margin-left: 3px; font-size: 8px; font-weight: 800; }
    .data-mode-toggle button.active { background: #4d8fbd; color: white; box-shadow: 0 2px 7px rgba(57,120,164,.18); }

    /* Datové typy */
    .data-type-lab { background: #edf6fb; }
    .data-type-status { padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #d5e4ec; background: white; }
    .data-type-status > div { display: grid; gap: 4px; }
    .data-type-status > div:last-child { text-align: right; }
    .data-type-status span { color: #81959d; font-size: 8px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
    .data-type-status strong { color: #3978a4; font-size: 13px; }
    .data-type-question { padding: 28px 24px 22px; text-align: center; }
    .data-type-context-card { width: min(100%, 560px); margin: 0 auto; padding: 13px 17px; border: 1px solid #c9dfea; border-radius: 13px; display: grid; gap: 5px; background: #dfeff7; box-shadow: 0 5px 14px rgba(57,120,164,.08); }
    .data-type-context-card span { color: #65818d; font-size: 7px; font-weight: 950; letter-spacing: .7px; text-transform: uppercase; }
    .data-type-context-card strong { color: #245f87; font-size: 14px; line-height: 1.35; }
    .data-type-question code { display: inline-block; margin-top: 13px; padding: 13px 18px; border: 1px solid #cbdde8; border-radius: 13px; background: white; color: var(--navy); font: 900 25px ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 0 7px 18px rgba(57,120,164,.08); }
    .data-type-question h2 { margin: 18px 0 0; color: var(--navy); font-size: 16px; }
    .data-type-choices { padding: 0 22px 22px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
    .data-type-choices button { min-height: 82px; padding: 12px 8px; border: 1px solid #d2e1e8; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 7px; background: white; color: #607983; cursor: pointer; }
    .data-type-choices button:hover { border-color: #84aec8; background: #f7fbfd; }
    .data-type-choices button b { color: #3978a4; font: 900 15px ui-monospace, SFMono-Regular, Menlo, monospace; }
    .data-type-choices button span { font-size: 9px; font-weight: 900; text-align: center; }
    .data-type-choices button.correct { border-color: #45a47d; background: #eaf7f1; color: #24785a; }
    .data-type-choices button.correct b { color: #24785a; }
    .data-type-choices button.incorrect { border-color: #d88a80; background: #fff0ee; color: #a84e44; }
    .data-type-choices button:disabled { cursor: default; opacity: .72; }
    .data-type-choices button.correct:disabled, .data-type-choices button.incorrect:disabled { opacity: 1; }
    .data-type-feedback { margin: 0 22px; padding: 14px 16px; border-radius: 12px; background: white; }
    .data-type-feedback strong { color: #3978a4; font-size: 11px; }
    .data-type-feedback p { margin: 5px 0 0; color: #71868e; font-size: 9px; line-height: 1.5; }
    .data-type-feedback.correct { background: #eaf7f1; }
    .data-type-feedback.correct strong { color: #24785a; }
    .data-type-feedback.incorrect { background: #fff0ee; }
    .data-type-feedback.incorrect strong { color: #a84e44; }
    .data-type-actions { padding: 14px 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .data-type-reference { margin: 18px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
    .data-type-reference article { min-width: 0; padding: 17px 18px; border: 1px solid #dce7ec; border-radius: 14px; background: white; }
    .data-type-reference b, .data-type-reference code { display: block; }
    .data-type-reference b { color: #3978a4; font-size: 11px; }
    .data-type-reference b em { margin-left: 5px; color: #80949c; font: 900 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
    .data-type-reference code { margin-top: 8px; color: var(--navy); font: 900 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
    .data-type-reference p { margin: 8px 0 0; color: #748991; font-size: 9px; line-height: 1.5; }
    .data-type-reference p strong { color: #536f7a; }

    /* Jednoduchá tabulková databáze */
    .database-lab { background: white; }
    .database-summary { padding: 16px 20px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; border-bottom: 1px solid #d6e4eb; background: #edf6fb; }
    .database-summary > div { min-width: 105px; padding: 10px 12px; border-radius: 10px; background: white; }
    .database-summary span, .database-summary strong { display: block; }
    .database-summary span { color: #82969e; font-size: 7px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
    .database-summary strong { margin-top: 4px; color: #3978a4; font-size: 18px; }
    .database-summary p { margin: 0; color: #70868f; font-size: 9px; line-height: 1.5; }
    .database-toolbar { padding: 15px 18px; display: grid; grid-template-columns: minmax(190px,1fr) 150px 170px auto; align-items: end; gap: 9px; border-bottom: 1px solid #dce6ea; background: #f9fbfc; }
    .database-toolbar label, .database-add-form label { display: grid; gap: 5px; color: #738991; font-size: 8px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
    .database-toolbar input, .database-toolbar select, .database-add-form input, .database-add-form select { width: 100%; min-height: 39px; padding: 0 10px; border: 1px solid #d1dfe5; border-radius: 9px; outline: 0; background: white; color: var(--navy); font-size: 10px; font-weight: 800; text-transform: none; }
    .database-toolbar input:focus, .database-toolbar select:focus, .database-add-form input:focus, .database-add-form select:focus { border-color: #4d8fbd; box-shadow: 0 0 0 3px rgba(77,143,189,.12); }
    .database-table-wrap, .database-comparison-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .database-table, .database-comparison { width: 100%; border-collapse: collapse; }
    .database-table th, .database-table td { padding: 12px 14px; border-bottom: 1px solid #e2eaed; color: #5f7781; font-size: 9px; text-align: left; white-space: nowrap; }
    .database-table th { background: #f3f8fa; color: #3978a4; font-size: 8px; letter-spacing: .5px; text-transform: uppercase; }
    .database-table td:first-child { color: #3978a4; font: 900 9px ui-monospace, monospace; }
    .database-table tr:last-child td { border-bottom: 0; }
    .database-state { padding: 5px 8px; border-radius: 999px; display: inline-block; background: #e9f6f0; color: #28795d; font-size: 8px; font-weight: 900; }
    .database-state.inactive { background: #f0f2f3; color: #819197; }
    .database-delete { width: 29px; height: 29px; border: 0; border-radius: 8px; background: #fff0ee; color: #a85449; font-weight: 900; cursor: pointer; }
    .database-empty { margin: 0; padding: 25px; color: #7d9199; font-size: 10px; text-align: center; }
    .database-add-form { padding: 18px; display: grid; grid-template-columns: 1.05fr .65fr 1fr .65fr auto; align-items: end; gap: 9px; border-top: 1px solid #dce6ea; background: #f7fafb; }
    .database-add-form > strong { grid-column: 1 / -1; color: #3978a4; font-size: 10px; }
    .database-add-form .action { min-height: 39px; }
    .database-relation { margin-top: 18px; padding: 22px; border: 1px solid #dbe7ec; border-radius: 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; background: #f7fbfd; }
    .relation-table { overflow: hidden; border: 1px solid #cadde7; border-radius: 12px; display: grid; background: white; }
    .relation-table > strong { padding: 11px 13px; background: #4d8fbd; color: white; font-size: 10px; letter-spacing: .7px; }
    .relation-table span { padding: 9px 13px; border-top: 1px solid #e1e9ed; color: #667e87; font: 800 9px ui-monospace, monospace; }
    .relation-table span b { color: #3978a4; }
    .relation-table .relation-key { background: #fff7e8; color: #93671d; }
    .relation-arrow { color: #788d95; text-align: center; }
    .relation-arrow span, .relation-arrow b { display: block; }
    .relation-arrow span { max-width: 150px; font-size: 8px; line-height: 1.4; }
    .relation-arrow b { margin-top: 5px; color: #d39739; font-size: 26px; }
    .database-comparison-wrap { margin-top: 18px; border: 1px solid #dbe7ec; border-radius: 16px; background: white; }
    .database-comparison { min-width: 700px; }
    .database-comparison th, .database-comparison td { padding: 13px 15px; border-right: 1px solid #e2eaed; border-bottom: 1px solid #e2eaed; color: #657c85; font-size: 9px; line-height: 1.5; text-align: left; }
    .database-comparison th:last-child, .database-comparison td:last-child { border-right: 0; }
    .database-comparison tr:last-child th, .database-comparison tr:last-child td { border-bottom: 0; }
    .database-comparison thead th { background: #edf6fb; color: #3978a4; font-size: 9px; }
    .database-comparison tbody th { width: 18%; background: #f8fafb; color: var(--navy); }

    /* Stromová struktura */
    .tree-lab { background: #f4f9fb; }
    .tree-toolbar { min-height: 62px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #d7e4ea; background: white; }
    .tree-toolbar > span { color: #6d838c; font-size: 9px; font-weight: 850; }
    .tree-toolbar > div { display: flex; gap: 4px; }
    .tree-workspace { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(240px,.65fr); min-height: 430px; }
    .tree-stage { min-width: 0; padding: 26px 24px; overflow: auto; background: #edf6fb; }
    .tree-stage ul { margin: 0; padding-left: 28px; list-style: none; }
    .tree-stage > ul { padding-left: 0; }
    .tree-stage li { position: relative; padding-top: 8px; }
    .tree-stage li::before { content: ""; position: absolute; left: -16px; top: 0; width: 14px; height: 28px; border-bottom: 1px solid #afc7d3; border-left: 1px solid #afc7d3; }
    .tree-stage > ul > li::before { display: none; }
    .tree-stage li:last-child::after { content: ""; position: absolute; left: -17px; top: 29px; bottom: 0; width: 3px; background: #edf6fb; }
    .tree-node-button { position: relative; z-index: 1; min-height: 36px; padding: 6px 10px 6px 7px; border: 1px solid #cadde6; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; background: white; color: #536f7a; font-size: 9px; font-weight: 900; cursor: pointer; }
    .tree-node-button:hover { border-color: #79a8c3; }
    .tree-node-button.selected { border-color: #4d8fbd; background: #e8f3f9; color: #245f87; box-shadow: 0 0 0 3px rgba(77,143,189,.1); }
    .tree-node-button .tree-toggle { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: #e4eef3; color: #3978a4; font-size: 10px; }
    .tree-node-button.file .tree-toggle { background: #f2eee3; color: #9a7424; }
    .tree-node-button.person .tree-toggle { background: #f3e8f2; color: #965784; }
    .tree-node-button code { color: inherit; font: 900 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
    .tree-node-button.person code { font-family: "Trebuchet MS", sans-serif; }
    .tree-stage.family-mode { padding: 22px 16px; }
    .family-tree-chart { width: 100%; min-width: 760px; min-height: 390px; display: grid; grid-template-columns: repeat(12,minmax(44px,1fr)); grid-template-rows: minmax(64px,auto) 58px minmax(64px,auto) 58px minmax(64px,auto); column-gap: 8px; align-items: center; }
    .family-generation-label { align-self: start; padding-top: 8px; color: #78909a; font-size: 7px; font-weight: 950; letter-spacing: .6px; text-transform: uppercase; }
    .family-generation-label.generation-one { grid-column: 1; grid-row: 1; }
    .family-generation-label.generation-two { grid-column: 1; grid-row: 3; }
    .family-generation-label.generation-three { grid-column: 1; grid-row: 5; }
    .family-person { position: relative; z-index: 3; width: 100%; min-height: 46px; padding: 7px 9px; border: 1px solid #d5c9dd; border-radius: 11px; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 7px; background: white; color: #5f5269; text-align: left; cursor: pointer; box-shadow: 0 5px 13px rgba(75,57,86,.06); }
    .family-person:hover { border-color: #a879a0; }
    .family-person.selected { border-color: #965784; background: #f8edf6; color: #744268; box-shadow: 0 0 0 3px rgba(150,87,132,.11); }
    .family-person span { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #f3e8f2; color: #965784; font-size: 7px; }
    .family-person code { color: inherit; font: 900 8px/1.25 "Trebuchet MS", sans-serif; }
    .family-person.person-karel { grid-column: 2 / 4; grid-row: 1; }
    .family-person.person-marie { grid-column: 4 / 6; grid-row: 1; }
    .family-person.person-josef { grid-column: 8 / 10; grid-row: 1; }
    .family-person.person-anna { grid-column: 10 / 12; grid-row: 1; }
    .family-person.person-tomas { grid-column: 2 / 4; grid-row: 3; }
    .family-person.person-petra { grid-column: 5 / 7; grid-row: 3; }
    .family-person.person-martin { grid-column: 7 / 9; grid-row: 3; }
    .family-person.person-eliska { grid-column: 5 / 7; grid-row: 5; }
    .family-person.person-adam { grid-column: 7 / 9; grid-row: 5; }
    .family-partner-link { position: relative; z-index: 1; height: 2px; align-self: center; background: #b8a5b5; }
    .family-partner-link::after { content: "+"; position: absolute; left: 50%; top: 50%; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: #edf6fb; color: #8d6d88; font-size: 10px; font-style: normal; font-weight: 950; transform: translate(-50%,-50%); }
    .family-partner-link.partner-one { grid-column: 3 / 5; grid-row: 1; }
    .family-partner-link.partner-two { grid-column: 9 / 11; grid-row: 1; }
    .family-partner-link.partner-three { grid-column: 6 / 8; grid-row: 3; }
    .family-connector { position: relative; z-index: 0; align-self: stretch; }
    .family-connector i { position: absolute; display: block; background: #afc7d3; font-style: normal; }
    .family-connector .source { left: var(--source); top: 0; width: 1px; height: 50%; }
    .family-connector .horizontal { left: var(--first); right: calc(100% - var(--last)); top: 50%; height: 1px; }
    .family-connector .target { top: 50%; bottom: 0; width: 1px; }
    .family-connector .target.first { left: var(--first); }
    .family-connector .target.last { left: var(--last); }
    .family-connector.connector-maternal { grid-column: 3 / 7; grid-row: 2; }
    .family-connector.connector-paternal { grid-column: 8 / 11; grid-row: 2; }
    .family-connector.connector-paternal .horizontal { left: var(--first); right: calc(100% - var(--source)); }
    .family-connector.connector-children { grid-column: 6 / 9; grid-row: 4; }
    .tree-inspector { padding: 28px 24px; border-left: 1px solid #d5e3e9; background: white; }
    .tree-inspector > span { color: #80949c; font-size: 8px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
    .tree-inspector h2 { margin: 7px 0 19px; color: var(--navy); font-size: 21px; }
    .tree-inspector dl { margin: 0; display: grid; gap: 7px; }
    .tree-inspector dl div { padding: 10px 11px; border-radius: 9px; display: flex; justify-content: space-between; gap: 12px; background: #f2f6f8; }
    .tree-inspector dt { color: #7e9299; font-size: 8px; font-weight: 850; }
    .tree-inspector dd { margin: 0; color: #3978a4; font-size: 9px; font-weight: 900; text-align: right; }
    .tree-path { margin-top: 16px; padding-top: 15px; border-top: 1px solid #e0e8eb; }
    .tree-path span, .tree-path code { display: block; }
    .tree-path span { color: #83969d; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .tree-path code { margin-top: 7px; overflow-wrap: anywhere; color: #3978a4; font: 800 9px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
    .tree-term-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
    .tree-term-grid article { padding: 16px 17px; border: 1px solid #dce7ec; border-radius: 14px; background: white; }
    .tree-term-grid b { color: #3978a4; font-size: 10px; }
    .tree-term-grid p { margin: 7px 0 0; color: #748991; font-size: 9px; line-height: 1.5; }

    /* Statistická kalkulačka */
    .statistics-lab { background: white; }
    .statistics-input-panel { padding: 22px; border-bottom: 1px solid #d9e5ea; background: #f4f9fb; }
    .statistics-input-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .statistics-input-heading label { color: var(--navy); font-size: 10px; font-weight: 900; }
    .statistics-input-heading button { min-height: 34px; padding: 6px 10px; border: 1px solid #c9dce6; border-radius: 9px; background: white; color: #617984; font-size: 8px; font-weight: 900; cursor: pointer; }
    .statistics-input-heading button:hover { border-color: #4d8fbd; color: #3978a4; }
    .statistics-input-heading button b { margin-right: 4px; color: #3978a4; font: 950 15px ui-monospace, monospace; }
    .statistics-input-panel textarea { min-height: 105px; margin-top: 10px; padding: 15px; border: 1px solid #cfdee6; border-radius: 12px; background: white; color: var(--navy); font: 850 18px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
    .statistics-input-panel > p { margin: 8px 0 0; color: #7a8e96; font-size: 8px; line-height: 1.5; }
    .statistics-examples { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
    .statistics-examples span { color: #7e929a; font-size: 8px; font-weight: 900; }
    .statistics-examples button { padding: 7px 9px; border: 1px solid #d3e1e7; border-radius: 8px; background: white; color: #617984; font-size: 8px; font-weight: 850; cursor: pointer; }
    .statistics-examples button:hover { border-color: #4d8fbd; color: #3978a4; }
    .statistics-results { padding: 18px; display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; background: white; }
    .statistics-results article { min-width: 0; padding: 14px 10px; border-radius: 11px; background: #edf6fb; text-align: center; }
    .statistics-results span, .statistics-results strong { display: block; }
    .statistics-results span { color: #7e929a; font-size: 7px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
    .statistics-results strong { margin-top: 8px; overflow-wrap: anywhere; color: #3978a4; font-size: 17px; }
    .statistics-sorted { padding: 14px 18px; border-top: 1px solid #dfe8ec; display: grid; grid-template-columns: auto 1fr; gap: 12px; background: #f8fafb; }
    .statistics-sorted span { color: #83969d; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .statistics-sorted code { overflow-wrap: anywhere; color: #536f7a; font: 800 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
    .statistics-use-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
    .statistics-use-grid article { padding: 17px 18px; border: 1px solid #dce7ec; border-radius: 14px; background: white; }
    .statistics-use-grid b { color: #3978a4; font-size: 11px; }
    .statistics-use-grid p { margin: 7px 0 0; color: #748991; font-size: 9px; line-height: 1.55; }
    .representative-lab { margin-top: 18px; padding: 20px; border: 1px solid #d8e5eb; border-radius: 16px; background: #f5fafc; }
    .representative-tabs { margin: -4px 0 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
    .representative-tabs > span { margin-right: 4px; color: #7e929a; font-size: 8px; font-weight: 950; letter-spacing: .6px; text-transform: uppercase; }
    .representative-tabs button { width: 36px; height: 36px; border: 1px solid #d2e1e8; border-radius: 9px; display: grid; place-items: center; background: white; color: #3978a4; cursor: pointer; }
    .representative-tabs button.active { border-color: #4d8fbd; background: #4d8fbd; color: white; }
    .representative-tabs button b { font-size: 9px; }
    .representative-intro > span { color: #3978a4; font-size: 8px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
    .representative-lab h2 { margin: 6px 0; color: var(--navy); font-size: 18px; }
    .representative-intro > p { margin: 0; color: #71868e; font-size: 9px; }
    .representative-options { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
    .representative-options button { min-height: 72px; padding: 11px 13px; border: 1px solid #d2e1e8; border-radius: 11px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; background: white; color: #607983; text-align: left; cursor: pointer; }
    .representative-options button b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #e4eef3; color: #3978a4; }
    .representative-options button span { font-size: 9px; font-weight: 850; line-height: 1.4; }
    .representative-options button.correct { border-color: #45a47d; background: #eaf7f1; }
    .representative-options button.incorrect { border-color: #d88a80; background: #fff0ee; }
    .representative-feedback { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: white; }
    .representative-feedback strong { color: #3978a4; font-size: 10px; }
    .representative-feedback p { margin: 4px 0 0; color: #71868e; font-size: 9px; line-height: 1.5; }

    /* Grafy a modelování */
    .network-lab, .chart-types-lab, .misleading-lab { background: #edf6fb; }
    .graph-example-tabs, .misleading-example-tabs { padding: 13px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #d4e3ec; background: white; }
    .graph-example-tabs > span { margin-right: 5px; color: #788d96; font-size: 8px; font-weight: 950; letter-spacing: .7px; text-transform: uppercase; }
    .graph-example-tabs button, .misleading-example-tabs button { min-height: 40px; padding: 7px 12px; border: 1px solid #d4e2e9; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; background: #f7fbfd; color: #617984; font-size: 9px; font-weight: 900; cursor: pointer; }
    .graph-example-tabs button b, .misleading-example-tabs button b { width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; background: #e2edf3; color: #3978a4; font-size: 8px; }
    .graph-example-tabs button.active, .misleading-example-tabs button.active { border-color: #4d8fbd; background: #edf6fb; color: var(--navy); }
    .graph-example-tabs button.active b, .misleading-example-tabs button.active b { background: #4d8fbd; color: white; }
    .data-visibility-button { margin-left: auto !important; border-color: #b9cdd7 !important; background: white !important; color: #3978a4 !important; }
    .graph-toolbar { min-height: 82px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid #d4e3ec; background: #f7fbfd; }
    .graph-mode-toggle { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: #e5eef4; }
    .graph-mode-toggle button, .chart-type-tabs button { min-height: 38px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: #687f89; font-size: 9px; font-weight: 900; cursor: pointer; }
    .graph-mode-toggle button.active, .chart-type-tabs button.active { background: #4d8fbd; color: white; box-shadow: 0 3px 9px rgba(57,120,164,.2); }
    .network-route-controls { display: flex; align-items: flex-end; gap: 8px; }
    .network-route-controls > span { padding-bottom: 10px; color: #89a0aa; font-weight: 900; }
    .network-route-controls label { display: grid; gap: 5px; color: #71868f; font-size: 8px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
    .network-route-controls select { min-width: 116px; height: 38px; padding: 0 10px; border: 1px solid #cfdee6; border-radius: 9px; background: white; color: var(--navy); font-size: 10px; font-weight: 850; }
    .network-route-controls .action { height: 38px; }
    .network-canvas-wrap, .chart-canvas-wrap { padding: 20px; background: #edf6fb; }
    .network-canvas-wrap canvas, .chart-canvas-wrap canvas, .misleading-grid canvas { display: block; width: 100%; border-radius: 15px; background: white; }
    .network-result { padding: 18px 22px; display: grid; grid-template-columns: minmax(150px, .55fr) 1.45fr; gap: 5px 18px; border-top: 1px solid #d4e3ec; background: white; }
    .network-result span { color: #7d929b; font-size: 8px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
    .network-result strong { color: #3978a4; font-size: 14px; }
    .network-result p { grid-column: 2; margin: 0; color: #73878e; font-size: 9px; line-height: 1.5; }
    .network-alternatives { grid-column: 1 / -1; margin-top: 10px; padding-top: 14px; border-top: 1px solid #e0e9ed; }
    .network-alternatives > span { display: block; margin-bottom: 8px; }
    #network-route-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    #network-route-options button { min-width: 0; padding: 9px 10px; border: 1px solid #d6e3e8; border-radius: 10px; display: grid; grid-template-columns: 23px 1fr; gap: 3px 8px; background: #f7fafb; color: #647b84; text-align: left; cursor: pointer; }
    #network-route-options button.active { border-color: #e2a64d; background: #fff6e7; }
    #network-route-options b { grid-row: 1 / 3; width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; background: #dfeaf0; color: #3978a4; font-size: 8px; }
    #network-route-options button.active b { background: #e29b36; color: white; }
    #network-route-options span { color: #647b84; font-size: 8px; font-weight: 800; line-height: 1.35; letter-spacing: 0; text-transform: none; }
    #network-route-options strong { color: #3978a4; font-size: 8px; }
    .graph-term-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .graph-term-grid article { padding: 17px 18px; border: 1px solid #dce7ec; border-radius: 14px; background: white; }
    .graph-term-grid b { color: #3978a4; font-size: 11px; }
    .graph-term-grid p { margin: 7px 0 0; color: #75898f; font-size: 9px; line-height: 1.55; }

    .chart-type-tabs { padding: 13px 16px; display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid #d4e3ec; background: #f7fbfd; }
    .chart-type-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); min-height: 500px; }
    .chart-canvas-wrap { display: grid; align-items: center; }
    .chart-type-info { padding: 32px 28px; border-left: 1px solid #d4e3ec; background: white; }
    .chart-type-info > span { color: #3978a4; font-size: 8px; font-weight: 950; letter-spacing: .8px; text-transform: uppercase; }
    .chart-type-info h2 { margin: 7px 0 10px; color: var(--navy); font-size: 24px; }
    .chart-type-info > p { margin: 0 0 19px; color: #71858d; font-size: 10px; line-height: 1.6; }
    .chart-guidance { margin-top: 8px; padding: 12px 13px; border-radius: 11px; }
    .chart-guidance.good { background: #edf8f4; }
    .chart-guidance.bad { background: #fff2f1; }
    .chart-guidance b { color: #3978a4; font-size: 9px; }
    .chart-guidance.bad b { color: #b0584c; }
    .chart-guidance p { margin: 5px 0 0; color: #70858b; font-size: 9px; line-height: 1.5; }
    .chart-question { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e1e9ec; }
    .chart-question span, .chart-question strong { display: block; }
    .chart-question span { color: #8a9ba1; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .chart-question strong { margin-top: 6px; color: var(--navy); font-size: 11px; line-height: 1.45; }
    .chart-data-panel { padding: 15px 19px; border-top: 1px solid #d4e3ec; background: #e7f1f6; }
    .chart-data-panel strong { color: #3978a4; font-size: 9px; }
    .chart-data-panel p { margin: 5px 0 0; color: #607983; font: 800 9px/1.55 ui-monospace, monospace; }

    .misleading-controls { padding: 18px 22px; display: grid; grid-template-columns: auto minmax(220px, 1fr); align-items: center; gap: 9px 18px; border-bottom: 1px solid #d4e3ec; background: #f7fbfd; }
    .misleading-controls label { color: var(--navy); font-size: 10px; font-weight: 900; }
    .misleading-controls label strong { margin-left: 6px; color: #3978a4; font-size: 13px; }
    .misleading-controls input { width: 100%; accent-color: #d15f52; }
    .misleading-controls p { grid-column: 1 / -1; margin: 0; color: #748991; font-size: 9px; line-height: 1.5; }
    .misleading-controls.misleading-task { grid-template-columns: 1fr; }
    .misleading-task > strong { color: var(--navy); font-size: 10px; }
    .misleading-task a { color: #3978a4; font-weight: 900; }
    .misleading-grid { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .misleading-grid figure { margin: 0; overflow: hidden; border: 1px solid #d9e5ea; border-radius: 15px; background: white; }
    .misleading-grid figure.misleading-example { border-color: #e5c2bd; }
    .misleading-grid figcaption { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #e5ecee; }
    .misleading-grid figcaption strong { color: var(--navy); font-size: 11px; }
    .misleading-grid figcaption span { color: #7f939a; font-size: 8px; }
    .misleading-grid figure > div { padding: 8px; }
    .chart-expand-target { position: relative; cursor: zoom-in; }
    .chart-expand-target > i { position: absolute; right: 14px; bottom: 13px; padding: 7px 9px; border-radius: 8px; background: rgba(24,57,71,.86); color: white; font-size: 8px; font-style: normal; font-weight: 900; pointer-events: none; }
    .chart-expand-target:focus-visible { outline: 3px solid rgba(77,143,189,.35); outline-offset: -3px; }
    body.chart-modal-open { overflow: hidden; }
    .chart-modal { position: fixed; inset: 0; z-index: 100; padding: 28px; display: grid; place-items: center; background: rgba(13,35,43,.72); backdrop-filter: blur(5px); }
    .chart-modal-card { position: relative; width: min(920px,92vw); max-height: 90vh; overflow: auto; padding: 27px; border-radius: 22px; background: white; box-shadow: 0 25px 80px rgba(0,0,0,.3); }
    .chart-modal-close { position: absolute; top: 17px; right: 17px; width: 42px; height: 42px; border: 0; border-radius: 12px; background: #edf3f5; color: var(--navy); font-size: 25px; line-height: 1; cursor: pointer; }
    .chart-modal-heading { padding-right: 55px; }
    .chart-modal-heading span { color: #3978a4; font-size: 8px; font-weight: 950; letter-spacing: .8px; }
    .chart-modal-heading h2 { margin: 5px 0 3px; color: var(--navy); font-size: 23px; }
    .chart-modal-heading p { margin: 0; color: #748991; font-size: 10px; }
    .chart-modal canvas { width: 100%; height: auto; margin-top: 18px; border: 1px solid #d9e5ea; border-radius: 14px; display: block; background: white; }
    .chart-modal-card > small { display: block; margin-top: 10px; color: #85979d; font-size: 8px; text-align: center; }
    .misleading-verdict { margin: 0 18px 18px; padding: 17px 19px; border-radius: 13px; background: white; }
    .misleading-verdict span, .misleading-verdict strong { display: block; }
    .misleading-verdict span { color: #83969c; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .misleading-verdict strong { margin-top: 6px; color: #b25247; font-size: 14px; }
    .misleading-verdict p { margin: 7px 0 0; color: #71858c; font-size: 9px; line-height: 1.5; }
    .misleading-techniques { grid-template-columns: repeat(3, 1fr); }

    .category-creation { --tool-accent: #c79835; }
    .category-creation .eyebrow, .category-creation .tool-about strong { color: #a8730f; }
    .category-creation .intro-mark { background: #fff2ce; color: #9d6a0c; }
    .category-creation .tool-about { border-color: #ebe3cc; }

    .color-tool { display: grid; grid-template-columns: .8fr 1.15fr 1fr; min-height: 355px; }
    .color-preview { min-height: 355px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #00aeb5; color: white; }
    .color-preview strong { padding: 9px 13px; border-radius: 9px; background: rgba(0,0,0,.2); font: 900 16px ui-monospace, monospace; }
    .color-preview input[type="color"] { width: 64px; height: 46px; padding: 3px; border: 2px solid rgba(255,255,255,.85); border-radius: 10px; background: white; cursor: pointer; }
    .color-controls { padding: 30px 26px; display: grid; align-content: center; gap: 26px; border-right: 1px solid #e0e8ea; }
    .channel-row { display: grid; grid-template-columns: 78px 1fr 58px; align-items: center; gap: 12px; }
    .channel-row label { color: var(--navy); font-weight: 900; }
    .channel-row label span { display: block; margin-top: 2px; color: #8a999e; font-size: 8px; font-weight: 700; }
    .channel-row input[type="range"] { width: 100%; }
    .channel-row.red input[type="range"] { accent-color: #e74b4b; }
    .channel-row.green input[type="range"] { accent-color: #35a85e; }
    .channel-row.blue input[type="range"] { accent-color: #397cdd; }
    .channel-row input[type="number"] { width: 58px; padding: 8px 5px; border: 1px solid #d5e0e2; border-radius: 8px; color: var(--navy); text-align: center; font-size: 11px; font-weight: 900; }
    .color-results { padding: 24px; display: grid; align-content: center; gap: 10px; background: #fbfdfd; }
    .color-results > div { padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px; border-radius: 11px; background: #f2f7f6; }
    .color-results span { grid-column: 1 / -1; color: #8b9b9f; font-size: 8px; font-weight: 900; letter-spacing: .8px; }
    .color-results strong { align-self: center; overflow-wrap: anywhere; color: var(--navy); font: 800 12px ui-monospace, monospace; }
    .color-results button { border: 0; background: transparent; color: #a8730f; font-size: 9px; font-weight: 900; cursor: pointer; }

    .contrast-controls { min-height: 104px; padding: 18px 24px; display: grid; grid-template-columns: 1fr 46px 1fr; align-items: end; gap: 16px; border-bottom: 1px solid #e0e8ea; background: #fffaf0; }
    .contrast-color-field { display: grid; gap: 8px; }
    .contrast-color-field > label { color: #756d5c; font-size: 9px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
    .contrast-color-field > div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
    .contrast-color-field input[type="color"] { width: 52px; height: 47px; padding: 3px; border: 1px solid #ded8c9; border-radius: 10px; background: white; cursor: pointer; }
    .contrast-color-field input[type="text"] { min-width: 0; padding: 0 13px; border: 1px solid #ded8c9; border-radius: 10px; color: var(--navy); font: 900 13px ui-monospace, monospace; text-transform: uppercase; }
    .contrast-color-field input.invalid { border-color: #d76a57; background: #fff3f0; }
    .contrast-workspace { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 330px; }
    .contrast-preview { padding: 40px; display: flex; flex-direction: column; justify-content: center; background: white; color: var(--navy); }
    .contrast-preview strong { font-size: 30px; line-height: 1.15; }
    .contrast-preview p { max-width: 520px; margin: 16px 0 20px; font-size: 16px; line-height: 1.6; }
    .contrast-preview small { font-size: 11px; }
    .contrast-score { padding: 30px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #e0e8ea; background: #fbfdfd; }
    .contrast-score > span { color: #89999e; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .8px; }
    .contrast-score > strong { margin: 5px 0 18px; color: #a8730f; font-size: 32px; letter-spacing: -1px; }
    .contrast-results { display: grid; gap: 7px; }
    .contrast-results > div { padding: 10px 12px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; border-radius: 9px; background: #f0f4f3; }
    .contrast-results b { color: #61777d; font-size: 10px; }
    .contrast-results span { color: #84959a; font-size: 9px; }
    .contrast-results strong { padding: 4px 7px; border-radius: 6px; font-size: 8px; }
    .contrast-results .pass strong { background: #dcf5e8; color: #27845a; }
    .contrast-results .fail strong { background: #fde4df; color: #b14a39; }

    .mix-model-diagrams { margin-bottom:18px; display:grid; grid-template-columns:1fr 1fr; gap:18px; }
    .mix-model-card { min-width:0; overflow:hidden; border:1px solid #e0e8ea; border-radius:20px; display:grid; grid-template-columns:minmax(210px,.8fr) minmax(0,1.2fr); align-items:center; background:white; box-shadow:0 8px 22px rgba(24,57,71,.05); }
    .mix-model-card > div:last-child { padding:25px 23px; }
    .mix-model-card > div:last-child > span { color:#a8730f; font-size:8px; font-weight:950; letter-spacing:.7px; text-transform:uppercase; }
    .mix-model-card h2 { margin:6px 0 8px; color:var(--navy); font-size:18px; }
    .mix-model-card p { margin:0; color:#73858b; font-size:9px; line-height:1.55; }
    .mix-circle-diagram { position:relative; width:100%; min-height:260px; overflow:hidden; isolation:isolate; }
    .mix-circle-diagram i { position:absolute; width:126px; height:126px; border-radius:50%; display:grid; place-items:center; font-style:normal; }
    .mix-circle-diagram i b { font-size:12px; font-weight:950; }
    .mix-circle-diagram i:nth-child(1) { left:calc(50% - 100px); top:36px; }
    .mix-circle-diagram i:nth-child(2) { left:calc(50% - 26px); top:36px; }
    .mix-circle-diagram i:nth-child(3) { left:calc(50% - 63px); top:100px; }
    .mix-circle-diagram > strong { position:absolute; left:0; right:0; bottom:14px; font-size:25px; letter-spacing:8px; text-align:center; }
    .rgb-circle-diagram { background:#081014; }
    .rgb-circle-diagram i { mix-blend-mode:screen; color:white; }
    .rgb-circle-diagram .circle-red { background:#ff0000; }.rgb-circle-diagram .circle-green { background:#00ff21; }.rgb-circle-diagram .circle-blue { background:#1028ff; }
    .rgb-circle-diagram > strong { color:white; }
    .cmyk-circle-diagram { background:#f7faf9; }
    .cmyk-circle-diagram i { mix-blend-mode:multiply; color:#142e38; }
    .cmyk-circle-diagram .circle-cyan { background:#00aada; }.cmyk-circle-diagram .circle-magenta { background:#ec008c; }.cmyk-circle-diagram .circle-yellow { background:#ffe000; }
    .cmyk-circle-diagram > strong { color:#172f39; }
    .mix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .mix-panel { overflow: hidden; border: 1px solid #e0e8ea; border-radius: 20px; background: white; box-shadow: 0 8px 22px rgba(24,57,71,.05); }
    .mix-panel header { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #e8eeee; }
    .mix-panel header span { display: block; margin-bottom: 3px; color: #8b9a9f; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .mix-panel h2 { margin: 0; color: var(--navy); font-size: 17px; }
    .mix-panel header > strong { color: #a8730f; font: 800 10px ui-monospace, monospace; }
    .mix-preview { position:relative; min-height:180px; overflow:hidden; display:grid; place-items:center; color:white; background:rgb(255,140,0); }
    .mix-preview span { position:relative; z-index:3; padding:8px 11px; border-radius:8px; background:rgba(0,0,0,.28); font-size:10px; font-weight:900; box-shadow:0 4px 12px rgba(0,0,0,.12); }
    .mix-controls { padding: 22px; display: grid; gap: 13px; }
    .mix-controls label { display: grid; grid-template-columns: 22px 1fr 50px; align-items: center; gap: 10px; color: var(--navy); font-size: 11px; font-weight: 900; }
    .mix-controls input { width: 100%; }
    .mix-controls output { color: #6f8389; font: 800 9px ui-monospace, monospace; text-align: right; }
    .mix-red input { accent-color: #eb4949; } .mix-green input { accent-color: #3ab45c; } .mix-blue input { accent-color: #397cdd; }
    .mix-cyan input { accent-color: #00b7cf; } .mix-magenta input { accent-color: #db3e91; } .mix-yellow input { accent-color: #e3bd17; } .mix-black input { accent-color: #30383b; }
    .mix-note { margin: 0; padding: 13px 20px 17px; color: #829297; background: #fbfcfc; font-size: 9px; line-height: 1.5; }

    /* Rastrová a vektorová grafika */
    .graphics-principle-lab { display:grid; grid-template-columns:minmax(300px,.9fr) minmax(0,1.1fr); background:white; }
    .graphics-demo-stage { position:relative; min-height:500px; overflow:hidden; display:grid; place-items:center; background:#fff7e4; }
    #raster-pixel-canvas { width:92%; height:auto; aspect-ratio:3 / 2; border:6px solid white; border-radius:15px; display:block; box-shadow:0 14px 34px rgba(91,70,26,.2); }
    .raster-zoom-badge { position:absolute; right:28px; bottom:28px; min-width:52px; height:40px; padding:0 12px; border:3px solid white; border-radius:12px; display:grid; place-items:center; background:rgba(24,57,71,.78); color:white; font-size:11px; font-weight:950; box-shadow:0 8px 25px rgba(24,57,71,.24); }
    .graphics-demo-explanation { padding:38px 34px; display:flex; flex-direction:column; justify-content:center; }
    .graphics-demo-explanation > span { color:#a8730f; font-size:8px; font-weight:950; letter-spacing:.8px; }
    .graphics-demo-explanation h2 { margin:6px 0 8px; color:var(--navy); font-size:25px; }
    .graphics-demo-explanation > p { margin:0; color:#6d7f84; font-size:10px; line-height:1.65; }
    .graphics-demo-explanation > label { margin-top:22px; display:flex; justify-content:space-between; color:#6f654f; font-size:9px; font-weight:900; }
    .graphics-demo-explanation > input { width:100%; margin:9px 0 0; accent-color:#c79835; }
    .graphics-fact-grid { margin-top:23px; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
    .graphics-fact-grid article { padding:13px; border:1px solid #e7ddc7; border-radius:11px; background:#fffaf0; }
    .graphics-fact-grid b { color:#9a6d16; font-size:9px; }
    .graphics-fact-grid p { margin:5px 0 0; color:#78868a; font-size:8px; line-height:1.45; }
    .pixel-education-card { margin-top:16px; padding:20px; border:1px solid #e4dbc6; border-radius:17px; display:grid; grid-template-columns:110px minmax(180px,.72fr) minmax(0,1.28fr); align-items:center; gap:22px; background:white; box-shadow:0 8px 22px rgba(80,62,28,.05); }
    .pixel-sample { width:100px; height:100px; display:grid; grid-template-columns:repeat(3,1fr); gap:4px; transform:rotate(-3deg); }
    .pixel-sample i { border-radius:5px; background:#4c8fa0; }.pixel-sample i:nth-child(2),.pixel-sample i:nth-child(6){background:#f0b845}.pixel-sample i:nth-child(4),.pixel-sample i:nth-child(8){background:#de7657}.pixel-sample i:nth-child(5){background:#6b5bb5}.pixel-sample i:nth-child(9){background:linear-gradient(135deg,#54a578 50%,transparent 50%);box-shadow:inset 0 0 0 1px #d3ded8}
    .pixel-education-card > div:nth-child(2) > span { color:#a8730f; font-size:8px; font-weight:950; letter-spacing:.8px; }
    .pixel-education-card h2 { margin:5px 0 7px; color:var(--navy); font-size:25px; }
    .pixel-education-card > div:nth-child(2) p { margin:0; color:#6f8186; font-size:9px; line-height:1.55; }
    .pixel-properties { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
    .pixel-properties article { padding:11px 12px; border:1px solid #e7dfce; border-radius:10px; background:#fffaf0; }
    .pixel-properties b { color:#9a6d16; font-size:9px; }
    .pixel-properties p { margin:4px 0 0; color:#78868a; font-size:8px; line-height:1.4; }
    .vector-curve-stage { background:linear-gradient(135deg,#fff8e7,#f3f0ff); }
    .vector-curve-stage svg { width:92%; height:auto; overflow:visible; }
    .bezier-handles { fill:none; stroke:#a8a0b8; stroke-width:3; stroke-dasharray:8 7; }
    .bezier-curve { fill:none; stroke:#715fc0; stroke-width:12; stroke-linecap:round; }
    .bezier-points circle { fill:white; stroke:#c79835; stroke-width:5; }
    .bezier-formula { margin-top:20px; padding:13px 15px; border-radius:11px; background:#f6f3ff; }
    .bezier-formula b,.bezier-formula code,.bezier-formula p { display:block; }
    .bezier-formula b { color:#6b5aae; font-size:8px; }
    .bezier-formula code { margin-top:6px; color:#4e456c; font:850 9px ui-monospace,monospace; }
    .bezier-formula p { margin:5px 0 0; color:#7b738c; font-size:8px; line-height:1.45; }

    .format-demo-grid { padding: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; background: #fffaf0; }
    .format-demo-card { min-width: 0; padding: 15px; border: 1px solid #e6ddca; border-radius: 15px; background: white; box-shadow: 0 7px 18px rgba(95,75,34,.05); }
    .format-demo-card header { min-height: 54px; display: flex; align-items: flex-start; gap: 10px; }
    .format-demo-card header div { min-width: 0; }
    .format-demo-card header strong { display: block; color: var(--navy); font-size: 11px; }
    .format-demo-card header p { margin: 4px 0 0; color: #7d8a8d; font-size: 9px; line-height: 1.42; }
    .format-demo-card canvas, .format-alpha-stage, .format-vector-stage { width: 100%; aspect-ratio: 2 / 1; margin-top: 13px; border-radius: 11px; display: block; overflow: hidden; background: #edf2f2; }
    .format-demo-card > label { margin-top: 13px; display: flex; justify-content: space-between; gap: 10px; color: #655f51; font-size: 9px; font-weight: 900; }
    .format-demo-card > input { width: 100%; margin: 9px 0 3px; accent-color: #c79835; }
    .format-demo-note { margin: 8px 0 0; color: #728287; font-size: 9px; line-height: 1.55; }
    .format-alpha-stage { position:relative; display:grid; place-items:center; background-color:white; background-image:linear-gradient(45deg,#dce3e3 25%,transparent 25%),linear-gradient(-45deg,#dce3e3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dce3e3 75%),linear-gradient(-45deg,transparent 75%,#dce3e3 75%); background-size:22px 22px; background-position:0 0,0 11px,11px -11px,-11px 0; transition:background .2s ease; }
    .format-alpha-stage.background-dark { background:#253c48; }
    .format-alpha-stage.background-light { background:#ffe6b8; }
    .format-alpha-object { position:relative; width:48%; aspect-ratio:1; border-radius:32% 68% 58% 42%; background:linear-gradient(135deg,#42b6d1,#475cc8 68%,#7544a4); filter:drop-shadow(12px 14px 0 rgba(240,91,116,.7)); -webkit-mask:radial-gradient(circle at 50% 50%,transparent 0 27%,#000 29%); mask:radial-gradient(circle at 50% 50%,transparent 0 27%,#000 29%); }
    .format-alpha-stage > b { position:absolute; z-index:2; color:white; font-size:clamp(16px,2.5vw,28px); text-shadow:0 2px 5px rgba(22,35,62,.55); }
    .format-background-switch { margin-top:12px; display:grid; grid-template-columns:repeat(3,1fr); gap:5px; }
    .format-background-switch button { min-height:31px; padding:5px; border:1px solid #e0d8c6; border-radius:8px; background:#fffdf8; color:#786f5d; font-size:7px; font-weight:900; cursor:pointer; }
    .format-background-switch button.active { border-color:#c79835; background:#fff0c7; color:#8c610d; }
    .format-vector-stage { display:grid; place-items:center; background:radial-gradient(circle at 50% 50%,#fff 0 34%,#f0edff 35% 100%); }
    .format-vector-art { width:100%; height:100%; overflow:hidden; }
    .format-vector-art rect { fill:white; stroke:#6a68b4; stroke-width:7; }
    .format-vector-art circle { fill:#e5ab35; }
    .format-vector-art path { fill:#3d9b87; }
    .format-vector-art text { fill:#6a68b4; font:950 32px "Trebuchet MS",sans-serif; }
    .format-section-head { padding: 25px 25px 14px; border-top: 1px solid #e7dfce; background: white; }
    .format-section-head span { color: #a8730f; font-size: 9px; font-weight: 950; letter-spacing: .8px; text-transform: uppercase; }
    .format-section-head h2 { margin: 6px 0 5px; color: var(--navy); font-size: 20px; }
    .format-section-head p { margin: 0; color: #74868c; font-size: 10px; line-height: 1.5; }
    .format-decision-grid { padding: 0 18px 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; background: white; }
    .format-decision-grid article { padding: 15px 16px; border: 1px solid #e6ddca; border-radius: 12px; background: #fffdf8; }
    .format-decision-grid b { display: block; color: #85775a; font-size: 9px; }
    .format-decision-grid strong { display: block; margin-top: 7px; color: #a8730f; font-size: 15px; }
    .format-decision-grid p { margin: 5px 0 0; color: #74858a; font-size: 9px; line-height: 1.5; }
    .format-table-wrap { overflow-x: auto; }
    .format-table { width: 100%; border-collapse: collapse; background: white; font-size: 10px; }
    .format-table th, .format-table td { padding: 13px 16px; border-top: 1px solid #edf1f1; text-align: left; }
    .format-table thead th { border-top: 0; background: #fbfcfc; color: #7c8e93; font-size: 9px; text-transform: uppercase; }
    .format-table tbody th { width: 20%; color: #536b73; font-size: 9px; }
    .format-table td { color: #74868c; }
    .format-badge { display: inline-block; min-width: 48px; padding: 6px 8px; border-radius: 7px; color: white; text-align: center; font-size: 10px; }
    .format-badge.jpg { background: #c38735; } .format-badge.png { background: #3c8aa3; } .format-badge.svg { background: #6a68b4; }
    .format-table .yes { color: #27845a; font-weight: 900; } .format-table .no { color: #b14a39; font-weight: 900; }

    /* Čitelnější edukační přehledy a nejmenší doprovodný text */
    :is(.packet-term-grid,.metadata-safety-grid,.password-principles,.mfa-factor-grid,.data-type-reference,.tree-term-grid,.statistics-use-grid,.graph-term-grid) article { border-width: 1px; box-shadow: 0 7px 18px rgba(24,57,71,.055); }
    :is(.packet-term-grid,.metadata-safety-grid,.password-principles,.mfa-factor-grid,.data-type-reference,.tree-term-grid,.statistics-use-grid,.graph-term-grid) b { font-size: 11px; }
    :is(.packet-term-grid,.metadata-safety-grid,.password-principles,.mfa-factor-grid,.data-type-reference,.tree-term-grid,.statistics-use-grid,.graph-term-grid) p { font-size: 10px; line-height: 1.58; }
    .tool-page small { font-size: 9px; line-height: 1.5; }
    .metadata-tabs > span, .metadata-inspector-head span, .metadata-row span, .metadata-test-feedback p, .metadata-risk > span, .footprint-copy > span, .footprint-choices button span, .footprint-feedback p { font-size: 9px; }
    .metadata-row code { font-size: 10px; }
    .metadata-row b { font-size: 8px; }
    .password-generator-option small, .password-generator small { font-size: 9px; }
    .qr-legend, .qr-bit-box span, .qr-long-bits b { font-size: 9px; }
    .qr-explanation > ul li, .qr-reveal-control p { font-size: 10px; }

    .depth-choices { min-height: 72px; padding: 14px 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #e0e8ea; background: #fffaf0; }
    .depth-choices > span { margin-right: 6px; color: #7e755f; font-size: 10px; font-weight: 900; }
    .depth-choices button { width: 42px; height: 38px; border: 1px solid #e2dac6; border-radius: 10px; background: white; color: #6d7578; font-size: 11px; font-weight: 900; cursor: pointer; }
    .depth-choices button.active { border-color: #c79835; background: #c79835; color: white; box-shadow: 0 4px 10px rgba(199,152,53,.2); }
    .depth-preview-wrap { padding: 24px; background: #f7f9f9; }
    .depth-preview-wrap canvas { display:block; width:100%; height:auto; aspect-ratio:18 / 5; border-radius:12px; image-rendering:auto; }
    .depth-preview-caption { padding:14px 2px 0; }
    .depth-preview-caption strong { color:#9a6d16; font-size:12px; }
    .depth-preview-caption p { margin:5px 0 0; color:#6f8288; font-size:9px; line-height:1.55; }
    .depth-channel-bits { margin-top:11px; display:flex; flex-wrap:wrap; gap:6px; }
    .depth-channel-bits span { padding:7px 9px; border:1px solid #e2dac6; border-radius:8px; background:white; color:#6f7d81; font-size:8px; }
    .depth-channel-bits b { margin-right:5px; color:#a8730f; }
    .depth-calculator { padding: 22px 24px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; border-top: 1px solid #e0e8ea; }
    .resolution-inputs { display: flex; align-items: center; gap: 10px; }
    .resolution-inputs label { display: grid; gap: 6px; color: #75868b; font-size: 9px; font-weight: 900; text-transform: uppercase; }
    .resolution-inputs input { width: 110px; padding: 9px 10px; border: 1px solid #d7e1e3; border-radius: 9px; color: var(--navy); font-size: 12px; font-weight: 900; }
    .resolution-inputs b { padding-top: 19px; color: #9cacb0; }
    .depth-results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .depth-results > div { padding: 13px; border-radius: 11px; background: #f7f9f9; }
    .depth-results span, .depth-results strong { display: block; }
    .depth-results span { margin-bottom: 6px; color: #87989d; font-size: 8px; font-weight: 900; text-transform: uppercase; }
    .depth-results strong { color: #a8730f; font-size: 14px; }

    .pattern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .pattern-card { margin: 0; overflow: hidden; border: 1px solid #e0e8ea; border-radius: 18px; background: white; box-shadow: 0 8px 22px rgba(24,57,71,.05); }
    .pattern-card canvas { display: block; width: 100%; aspect-ratio: 16 / 9; background: #172f38; }
    .pattern-card figcaption { padding: 18px; }
    .pattern-card strong { color: var(--navy); font-size: 14px; }
    .pattern-card p { margin: 7px 0 0; color: #7d8e93; font-size: 10px; line-height: 1.55; }

    /* Kontaktní formulář */
    .contact-body { min-height: 100vh; background: linear-gradient(145deg,#e8f4f1 0,#f4f7f3 48%,#fff5dc 100%); }
    .contact-shell { width: min(920px,calc(100% - 36px)); margin: 0 auto; padding: 28px 0 64px; }
    .contact-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .contact-brand { display: flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
    .contact-brand .logo-mark { width: 44px; height: 44px; }
    .contact-brand strong, .contact-brand small { display: block; }
    .contact-brand strong { font-size: 19px; }
    .contact-brand small { margin-top: 2px; color: #748b91; font-size: 9px; }
    .contact-back { min-height: 40px; padding: 0 13px; border: 1px solid #d2e1df; border-radius: 10px; display: inline-flex; align-items: center; background: rgba(255,255,255,.75); color: var(--teal-dark); font-size: 9px; font-weight: 900; text-decoration: none; }
    .contact-card { margin-top: 42px; overflow: hidden; border: 1px solid #dce6e3; border-radius: 26px; display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr); background: white; box-shadow: 0 24px 70px rgba(23,61,73,.12); }
    .contact-intro { padding: 46px 38px; background: var(--navy); color: white; }
    .contact-intro svg { width: 48px; height: 48px; fill: none; stroke: var(--yellow); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
    .contact-intro span { display: block; margin-top: 25px; color: #70d7d5; font-size: 9px; font-weight: 950; letter-spacing: 1.3px; text-transform: uppercase; }
    .contact-intro h1 { margin: 8px 0 14px; color: white; font-size: clamp(34px,5vw,48px); }
    .contact-intro p { margin: 0; color: #c5d9dd; font-size: 11px; line-height: 1.7; }
    .contact-intro small { display: block; margin-top: 24px; color: #8eb0b8; font-size: 8px; line-height: 1.55; }
    .contact-form-wrap { padding: 42px; }
    .contact-form { display: grid; gap: 16px; }
    .contact-form label { display: grid; gap: 7px; color: var(--navy); font-size: 9px; font-weight: 900; }
    .contact-form label > span { color: #b24d45; }
    .contact-form input, .contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #d6e2e3; border-radius: 10px; outline: 0; background: #fbfdfc; color: var(--navy); font-size: 12px; font-weight: 650; }
    .contact-form textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
    .contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,174,181,.1); }
    .contact-form button { min-height: 46px; border: 0; border-radius: 11px; background: var(--teal); color: white; font-size: 10px; font-weight: 950; cursor: pointer; }
    .contact-form-note { margin: -5px 0 0; color: #829398; font-size: 8px; line-height: 1.5; }
    .contact-status { margin-bottom: 18px; padding: 13px 15px; border-radius: 11px; font-size: 10px; font-weight: 800; line-height: 1.5; }
    .contact-status.success { background: #e8f6ef; color: #327d61; }
    .contact-status.error { background: #fff0ee; color: #a4453e; }
    .contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
    .contact-footer { padding:22px 0 6px; color:#779097; font-size:9px; font-weight:850; text-align:center; }

    @media (max-width: 1000px) {
      .sidebar { width: 235px; padding-inline: 14px; }
      .main { margin-left: 235px; }
      .brand-text strong { font-size: 20px; }
      .content { width: min(100% - 36px, 900px); }
      .topbar { padding: 0 22px; }
      .learning-grid { grid-template-columns: 1fr; }
      .tool-about { grid-template-columns: 1fr; padding: 9px; }
      .tool-about > div, .tool-about > div:first-child, .tool-about > div:last-child { padding: 15px 16px; }
      .tool-about > div + div { border-top: 1px solid #e0e8ea; border-left: 1px solid #e0e8ea; }
      .alphabet-grid { grid-template-columns: repeat(9, 1fr); }
      .home-hero { padding: 46px; grid-template-columns: 1fr .72fr; }
      .home-code-card { padding: 23px; }
      .home-code-card strong { font-size: 62px; }
      .home-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .home-story { grid-template-columns: 1fr; gap: 26px; }
      .format-demo-grid { grid-template-columns: 1fr 1fr; }
      .format-demo-card.svg-demo { grid-column: 1 / -1; }
      .computer-workspace { grid-template-columns: 1fr; }
      .computer-explanation { border-top: 1px solid #e3def2; border-left: 0; }
      .von-neumann-grid { grid-template-columns: 1fr 1fr; }
      .braille-alphabet { grid-template-columns: repeat(6,minmax(0,1fr)); }
    }

    @media (max-width: 760px) {
      body.mobile-menu-open { overflow: hidden; }
      .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(88vw, 340px); height: 100vh; height: 100dvh; padding: 24px 18px; display: flex; overflow: hidden; transform: translateX(-105%); transition: transform .24s ease; box-shadow: 18px 0 45px rgba(9,35,43,.28); }
      body.mobile-menu-open .sidebar { transform: translateX(0); }
      .sidebar > .brand { display: flex; padding: 0 48px 24px 8px; }
      .nav-caption { display: block; padding: 0 10px 11px; }
      .sidebar nav { padding: 0 5px 24px 0; display: grid; align-content: start; gap: 9px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
      .home-link { width: 100%; min-height: 46px; margin: 0; padding-inline: 10px; }
      .nav-section { display: block; padding: 7px; }
      .nav-heading { grid-template-columns: 36px 1fr auto; min-height: 48px; gap: 10px; padding: 3px; }
      .nav-icon { width: 34px; height: 34px; }
      .tool-links { display: grid; margin: 2px 0 4px 16px; padding: 3px 0 2px 29px; }
      .tool-link { width: 100%; }
      .tool-subcaption { display: block; }
      .mobile-menu-close { position: absolute; top: 28px; right: 18px; width: 38px; height: 38px; border: 1px solid #466b76; border-radius: 11px; display: grid; place-items: center; background: #244a58; color: white; font-size: 25px; line-height: 1; cursor: pointer; }
      .mobile-menu-overlay { position: fixed; inset: 0; z-index: 45; width: 100%; height: 100%; border: 0; display: block; background: rgba(9,31,38,.5); opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility .24s ease; }
      body.mobile-menu-open .mobile-menu-overlay { opacity: 1; visibility: visible; }
      .main { margin-left: 0; }
      .topbar { position: sticky; top: 0; z-index: 30; height: 62px; min-height: 62px; padding: 0 14px; gap: 10px; background: rgba(255,255,255,.97); }
      .header-contact { width: 40px; height: 40px; }
      .mobile-menu-button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; background: var(--navy); color: white; font-size: 10px; font-weight: 900; cursor: pointer; }
      .mobile-menu-button span { font-size: 17px; line-height: 1; }
      .mobile-brand { display: flex; align-items: center; gap: 8px; }
      .mobile-brand .logo-mark { width: 34px; height: 34px; transform: scale(.8); }
      .mobile-brand strong, .mobile-brand small { display: block; }
      .mobile-brand strong { font-size: 17px; }
      .mobile-brand small { margin-top: 2px; color: #7d9299; font-size: 8px; }
      .crumbs { display: none; }
      .content { width: calc(100% - 28px); padding-top: 30px; }
      .intro-mark { display: none; }
      .editor { grid-template-columns: 1fr; }
      .editor-panel:first-child { border-right: 0; border-bottom: 1px solid #dce6e9; }
      .swap { top: 50%; transform: translate(-50%,-50%) rotate(90deg); }
      .dual-arrow { transform: translate(-50%,-50%); }
      .alphabet-grid { grid-template-columns: repeat(6, 1fr); }
      .key-row { grid-template-columns: auto 1fr; }
      .key-row span { grid-column: 2; }
      .ascii-table th, .ascii-table td { padding-inline: 11px; }
      .color-tool { grid-template-columns: .7fr 1.3fr; }
      .color-results { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e0e8ea; }
      .color-controls { border-right: 0; }
      .depth-calculator { grid-template-columns: 1fr; }
      .pattern-grid { grid-template-columns: 1fr 1fr; }
      .format-demo-grid, .format-decision-grid { grid-template-columns: 1fr; }
      .format-demo-card.svg-demo { grid-column: auto; }
      .computer-stage { grid-template-columns: 1fr; justify-items: stretch; }
      .computer-peripheral { width: min(100%,280px); justify-self: center; }
      .computer-bus { width: 4px; height: 36px; justify-self: center; }
      .computer-bus::after { right:-5px; top:auto; bottom:-4px; border-top:9px solid #d6d0e7; border-left:7px solid transparent; border-right:7px solid transparent; border-bottom:0; }
      .computer-bus.flow-active::after { border-top-color:#7461bf; border-left-color:transparent; }
      .computer-bus span { left: 17px; top: 10px; transform:none; white-space:nowrap; }
      .computer-case { width:min(100%,520px); justify-self:center; }
      .braille-learn { grid-template-columns: 1fr; }
      .braille-cell-guide { display:grid; grid-template-columns:130px 1fr; align-items:center; gap:5px 18px; }
      .braille-cell-guide > span { grid-column:1 / -1; }
      .braille-large-cell { grid-row:2 / 4; margin:12px auto; }
      .braille-alphabet { grid-template-columns:repeat(7,minmax(0,1fr)); }
      .data-mode-bar { grid-template-columns: auto 1fr; }
      .data-mode-bar > p { grid-column: 1 / -1; }
      .data-type-choices { grid-template-columns: repeat(3, minmax(0,1fr)); }
      .data-type-reference { grid-template-columns: repeat(2,1fr); }
      .database-summary { grid-template-columns: auto auto; }
      .database-summary p { grid-column: 1 / -1; }
      .database-toolbar { grid-template-columns: 1fr 1fr; }
      .database-add-form { grid-template-columns: 1fr 1fr; }
      .database-add-form .action { align-self: end; }
      .packet-controls { grid-template-columns: 1fr; }
      .packet-scenarios { justify-content: flex-start; }
      .packet-workspace { grid-template-columns: 1fr; min-height: 0; }
      .packet-endpoint { min-height: 150px; }
      .packet-term-grid { grid-template-columns: repeat(2,1fr); }
      .metadata-workspace { grid-template-columns: 1fr; }
      .metadata-preview { min-height: 350px; border-right: 0; border-bottom: 1px solid #eadedb; }
      .footprint-lesson { grid-template-columns: 1fr; }
      .password-lab { grid-template-columns: 1fr; }
      .password-input-panel { border-right: 0; border-bottom: 1px solid #eadedb; }
      .password-principles { grid-template-columns: repeat(2,1fr); }
      .permissions-workspace, .mfa-workspace { grid-template-columns: 1fr; min-height: 0; }
      .permissions-phone, .mfa-attack { border-right: 0; border-bottom: 1px solid #eadedb; }
      .permissions-phone, .mfa-attack { min-height: 350px; }
      .tree-workspace { grid-template-columns: 1fr; }
      .tree-inspector { border-top: 1px solid #d5e3e9; border-left: 0; }
      .tree-term-grid { grid-template-columns: repeat(2, 1fr); }
      .statistics-results { grid-template-columns: repeat(3, 1fr); }
      .statistics-use-grid { grid-template-columns: repeat(2, 1fr); }
      .graph-toolbar { align-items: stretch; }
      .network-route-controls { flex: 1 1 100%; }
      .network-route-controls label { flex: 1; }
      .network-route-controls select { width: 100%; }
      #network-route-options { grid-template-columns: 1fr; }
      .chart-type-workspace { grid-template-columns: 1fr; min-height: 0; }
      .chart-type-info { border-top: 1px solid #d4e3ec; border-left: 0; }
      .graph-term-grid { grid-template-columns: repeat(2, 1fr); }
      .misleading-grid { grid-template-columns: 1fr; }
      .misleading-techniques { grid-template-columns: repeat(2, 1fr); }
      .contrast-workspace { grid-template-columns: 1fr; }
      .contrast-score { border-top: 1px solid #e0e8ea; border-left: 0; }
      .parity-result-panel { grid-template-columns: 1fr 1fr; }
      .parity-solutions { grid-column: 1 / -1; }
      .qr-workspace { grid-template-columns: 1fr; }
      .barcode-workspace { grid-template-columns: 1fr; }
      .barcode-table-grid { grid-template-columns: 1fr; }
      .barcode-why-grid { grid-template-columns: 1fr; }
      .isbn-workspace { grid-template-columns: 1fr; }
      .compression-visuals { grid-template-columns: 1fr; }
      .compression-explanation > ul { grid-template-columns: 1fr; }
      .qr-visual-column { min-height: 520px; }
      .qr-explanation { border-top: 1px solid #e0e8ea; border-left: 0; }
      .qr-lesson .qr-simulator, .barcode-lesson .barcode-simulator { overflow: visible; }
      .qr-lesson .qr-visual-column, .barcode-lesson .barcode-visual-column {
        position: sticky;
        top: 62px;
        z-index: 8;
        min-height: 0;
        padding: 12px 16px;
        align-self: start;
        justify-content: flex-start;
        border-bottom: 1px solid #dbe5e6;
        box-shadow: 0 10px 20px rgba(24,57,71,.12);
      }
      .qr-lesson .qr-visual-column::before, .barcode-lesson .barcode-visual-column::before {
        content: "Živá ukázka – mění se posuvníkem";
        margin-bottom: 8px;
        color: #60777d;
        font-size: 8px;
        font-weight: 900;
        letter-spacing: .4px;
        text-transform: uppercase;
      }
      .qr-lesson .qr-code-frame { width: min(52vw, 240px); padding: 15px; }
      .qr-lesson .qr-legend, .barcode-lesson .barcode-legend { display: none; }
      .barcode-lesson .barcode-code-frame { width: min(100%, 560px); padding: 15px 18px 11px 30px; }
      .barcode-lesson .barcode-grid { height: 132px; }
      .barcode-lesson .barcode-digits { margin-top: 8px; font-size: 13px; letter-spacing: 2px; }
      .compression-simulator.compression-step-4 .compression-visuals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 12px; }
      .compression-simulator.compression-step-4 .compression-figure { border-width: 1px; border-radius: 10px; transform: none; }
      .compression-simulator.compression-step-4 .compression-figure figcaption { padding: 8px; grid-template-columns: 1fr; gap: 3px; }
      .compression-simulator.compression-step-4 .compression-figure strong { font-size: 9px; }
      .compression-simulator.compression-step-4 .compression-figure b { width: fit-content; padding: 3px 5px; font-size: 7px; }
      .compression-simulator.compression-step-4 .compression-figure p { display: none; }
      .compression-compare { overflow: visible; border: 0; background: transparent; }
      .compression-table { min-width: 0; display: block; }
      .compression-table thead { display: none; }
      .compression-table tbody { display: grid; gap: 10px; }
      .compression-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #dce6e8; border-radius: 12px; background: white; }
      .compression-table tbody th, .compression-table tbody td { display: block; border-top: 0; }
      .compression-table tbody th { grid-column: 1 / -1; padding: 10px 12px; border-bottom: 1px solid #e2e9ea; background: #edf5f6; font-size: 10px; }
      .compression-table tbody td { position: relative; padding: 30px 12px 12px; font-size: 9px; line-height: 1.5; }
      .compression-table tbody td::before { position: absolute; top: 10px; left: 12px; font-size: 7px; font-weight: 950; letter-spacing: .6px; text-transform: uppercase; }
      .compression-table tbody td.lossless-col::before { content: "Bezztrátová"; color: #357b89; }
      .compression-table tbody td.lossy-col::before { content: "Ztrátová"; color: #9b4964; }
      .home-hero { min-height: 0; padding: 42px; grid-template-columns: 1fr; }
      .home-hero-visual { display: none; }
      .home-values { margin-bottom: 44px; }
      .home-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .concept-workspace { grid-template-columns: 1fr; }
      .concept-visual { min-height: 390px; }
      .concept-explanation { border-top: 1px solid #e3def2; border-left: 0; }
      .category-networks .concept-explanation { border-top-color: #d8e9e4; }
      .network-scope-workspace { grid-template-columns: 1fr; }
      .network-scope-visual { min-height: 470px; border-right: 0; border-bottom: 1px solid #d8e9e4; }
      .ip-details { grid-template-columns: 1fr; }
      .ip-details > section:last-child { grid-column: auto; }
      .ip-dhcp-detail ol { grid-template-columns: repeat(2,1fr); }
      .coding-reference { grid-template-columns: 1fr; }
      .flags-alphabet { grid-template-columns: repeat(9, 1fr); }
      .nato-alphabet { grid-template-columns: repeat(3, 1fr); }
      .t9-workspace { grid-template-columns: 1fr; }
      .t9-keypad { border-top: 1px solid #dce6e9; border-left: 0; }
    }

    @media (max-width: 480px) {
      .tool-toolbar { flex-direction: column; }
      .plain-button { align-self: flex-end; }
      .base-selectors { grid-template-columns: 1fr; }
      .base-swap { justify-self: center; transform: rotate(90deg); }
      .alphabet-grid { grid-template-columns: repeat(4, 1fr); }
      .key-row { grid-template-columns: 1fr; }
      .key-row span { grid-column: auto; }
      .ascii-toolbar { grid-template-columns: 1fr auto; }
      .ascii-toolbar > label { grid-column: 1 / -1; }
      .ascii-table th:nth-child(4), .ascii-table td:nth-child(4), .ascii-table th:nth-child(5), .ascii-table td:nth-child(5) { display: none; }
      .color-tool { grid-template-columns: 1fr; }
      .color-preview { min-height: 220px; }
      .color-controls { border-bottom: 1px solid #e0e8ea; }
      .color-results { grid-column: auto; grid-template-columns: 1fr; }
      .depth-calculator { padding-inline: 18px; }
      .resolution-inputs { justify-content: center; }
      .depth-results { grid-template-columns: 1fr; }
      .pattern-grid { grid-template-columns: 1fr; }
      .data-mode-bar { grid-template-columns: 1fr; }
      .data-mode-toggle { width: 100%; }
      .data-mode-toggle button { flex: 1; }
      .data-type-question { padding-inline: 15px; }
      .data-type-question code { font-size: 21px; }
      .data-type-choices { padding-inline: 12px; grid-template-columns: 1fr 1fr; }
      .data-type-feedback { margin-inline: 12px; }
      .data-type-actions { padding-inline: 12px; }
      .data-type-reference { grid-template-columns: 1fr; }
      .database-summary { grid-template-columns: 1fr 1fr; }
      .database-toolbar, .database-add-form { grid-template-columns: 1fr; }
      .database-toolbar .plain-button { justify-self: start; }
      .database-relation { grid-template-columns: 1fr; }
      .relation-arrow b { transform: rotate(90deg); }
      .relation-arrow span { max-width: none; }
      .database-comparison { min-width: 0; }
      .database-comparison thead { display: none; }
      .database-comparison tbody, .database-comparison tr, .database-comparison th, .database-comparison td { display: block; }
      .database-comparison tbody tr { padding: 13px 14px; border-bottom: 1px solid #dfe8ec; }
      .database-comparison tbody tr:last-child { border-bottom: 0; }
      .database-comparison tbody th, .database-comparison tbody td { width: auto; padding: 5px 0; border: 0; background: transparent; }
      .database-comparison tbody th { color: #3978a4; font-size: 11px; }
      .database-comparison tbody td::before { display: block; margin-bottom: 2px; color: #8a9ba1; font-size: 7px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
      .database-comparison tbody td:nth-child(2)::before { content: "Tabulka v ukázce"; }
      .database-comparison tbody td:nth-child(3)::before { content: "Skutečná databáze"; }
      .packet-scenarios { display: grid; grid-template-columns: 1fr; }
      .packet-scenarios > span { margin: 0 0 2px; }
      .packet-steps { grid-template-columns: 1fr 1fr; }
      .packet-workspace { padding: 10px; }
      .packet-lane { min-height: 96px; padding-inline: 48px; }
      .packet-explanation { grid-template-columns: 1fr; }
      .packet-term-grid, .metadata-safety-grid { grid-template-columns: 1fr; }
      .metadata-tabs { display: grid; grid-template-columns: 1fr; }
      .metadata-tabs > span { margin: 0 0 2px; }
      .metadata-inspector { padding: 22px 16px; }
      .metadata-inspector-head { align-items: flex-start; flex-direction: column; }
      .metadata-actions { width: 100%; justify-content: flex-start; }
      .metadata-actions button { flex: 1 1 130px; }
      .metadata-row { grid-template-columns: 1fr auto; }
      .metadata-row span { grid-column: 1 / -1; }
      .metadata-risk { grid-template-columns: 1fr auto; }
      .metadata-risk > div { grid-column: 1 / -1; grid-row: 2; }
      .footprint-lesson { padding: 18px 15px; }
      .footprint-choices { grid-template-columns: 1fr; }
      .password-criteria, .password-principles, .mfa-factor-grid { grid-template-columns: 1fr; }
      .permissions-tabs { display: grid; grid-template-columns: 1fr 1fr; }
      .permissions-tabs > span { grid-column: 1 / -1; margin: 0 0 2px; }
      .mfa-methods { display: grid; grid-template-columns: 1fr; }
      .mfa-methods > span { margin: 0 0 2px; }
      .permissions-panel, .mfa-flow { padding: 22px 15px; }
      .password-generated, .mfa-challenge > div { grid-template-columns: 1fr; }
      .permission-row { grid-template-columns: 34px 1fr auto; }
      .tree-toolbar { align-items: flex-start; flex-direction: column; }
      .tree-stage { padding: 18px 12px; }
      .tree-term-grid { grid-template-columns: 1fr; }
      .statistics-results { grid-template-columns: 1fr 1fr; }
      .statistics-sorted { grid-template-columns: 1fr; }
      .statistics-use-grid, .representative-options { grid-template-columns: 1fr; }
      .graph-mode-toggle { width: 100%; }
      .graph-mode-toggle button { flex: 1; }
      .network-route-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
      .network-route-controls .action { grid-column: 1 / -1; }
      .network-canvas-wrap, .chart-canvas-wrap { padding: 10px; }
      .network-result { grid-template-columns: 1fr; }
      .network-result p { grid-column: auto; }
      .graph-term-grid, .misleading-techniques { grid-template-columns: 1fr; }
      .chart-type-tabs { display: grid; grid-template-columns: 1fr 1fr; }
      .chart-type-tabs .data-visibility-button { grid-column: 1 / -1; width: 100%; margin-left: 0 !important; }
      .graph-example-tabs, .misleading-example-tabs { display: grid; grid-template-columns: 1fr; }
      .graph-example-tabs > span { margin: 0 0 2px; }
      .graph-example-tabs .data-visibility-button, .misleading-example-tabs .data-visibility-button { margin-left: 0 !important; justify-content: center; }
      .chart-type-info { padding: 25px 20px; }
      .misleading-controls { grid-template-columns: 1fr; }
      .misleading-controls p { grid-column: auto; }
      .misleading-grid { padding: 10px; }
      .misleading-grid figcaption { align-items: flex-start; flex-direction: column; gap: 4px; }
      .misleading-verdict { margin: 0 10px 10px; }
      .chart-modal { padding: 10px; }
      .chart-modal-card { width: 96vw; padding: 20px 14px 16px; border-radius: 16px; }
      .chart-modal-close { top: 10px; right: 10px; }
      .chart-modal-heading { padding: 4px 48px 0 4px; }
      .chart-modal-heading h2 { font-size: 18px; }
      .contrast-controls { grid-template-columns: 1fr; }
      .contrast-controls .base-swap { justify-self: center; transform: rotate(90deg); }
      .contrast-preview { padding: 28px 22px; }
      .contrast-preview strong { font-size: 24px; }
      .mix-grid { grid-template-columns: 1fr; }
      .format-table { min-width: 620px; }
      .parity-result-panel { grid-template-columns: 1fr; }
      .parity-solutions { grid-column: auto; grid-template-columns: 1fr; }
      .qr-steps { grid-template-columns: 1fr 1fr; }
      .qr-code-frame { padding: 28px; }
      .qr-visual-column { min-height: 0; padding: 24px 18px; }
      .qr-lesson .qr-code-frame { width: min(59vw, 215px); padding: 11px; }
      .qr-lesson .qr-visual-column, .barcode-lesson .barcode-visual-column { padding: 9px 12px; }
      .qr-lesson .qr-visual-column::before, .barcode-lesson .barcode-visual-column::before { margin-bottom: 6px; font-size: 7px; }
      .qr-explanation { padding: 30px 22px; }
      .qr-bit-box { grid-template-columns: 1fr; }
      .barcode-code-frame { padding-left: 34px; padding-right: 24px; }
      .barcode-grid { height: 170px; }
      .barcode-digits { font-size: 13px; letter-spacing: 2px; }
      .barcode-lesson .barcode-code-frame { padding: 11px 12px 8px 22px; }
      .barcode-lesson .barcode-grid { height: 104px; }
      .barcode-lesson .barcode-digits { margin-top: 6px; font-size: 10px; letter-spacing: 1px; gap: 12px; }
      .barcode-check-box { grid-template-columns: 1fr; }
      .barcode-read-box > div { grid-template-columns: 1fr; gap: 5px; }
      .barcode-tables { padding: 24px 16px; }
      .isbn-parts-legend, .isbn-calculation { grid-template-columns: 1fr; }
      .isbn-barcode-card { padding-inline: 14px; }
      .compression-explanation { padding: 26px 20px; }
      .compression-visuals { padding: 18px; }
      .compression-quality { margin-inline: 18px; grid-template-columns: 1fr auto; }
      .compression-quality label { grid-column: 1 / -1; }
      .compression-demo { padding: 20px 14px; }
      .compression-table tbody tr { grid-template-columns: 1fr; }
      .compression-table tbody th { grid-column: auto; }
      .compression-table tbody td + td { border-top: 1px solid #e2e9ea; }
      .rle-demo { grid-template-columns: 1fr; }
      .rle-demo b { transform: rotate(90deg); }
      .home-hero { padding: 32px 24px; border-radius: 22px; }
      .nato-speech-bar { grid-template-columns: 1fr; gap: 12px; }
      .nato-speech-bar > small { max-width: none; }
      .network-scope-tabs { grid-template-columns: 1fr 1fr; }
      .network-scope-visual { min-height: 390px; padding-inline: 14px; }
      .network-scope-rings { width: min(100%,285px); }
      .network-scope-detail { padding: 26px 17px; }
      .network-scope-facts { grid-template-columns: 1fr; }
      .network-scope-facts article.wide { grid-column: auto; }
      .network-scope-scale { padding-inline: 14px; gap: 5px; }
      .ip-address span { min-width: 47px; padding: 11px 6px; font-size: 16px; }
      .ip-address > b { width: 100%; margin: 3px 0 0; text-align: center; }
      .ip-scope { grid-template-columns: 1fr; }
      .ip-scope > span { transform: rotate(90deg); }
      .ip-dhcp { grid-template-columns: 1fr auto 1fr; }
      .ip-dhcp span:nth-of-type(3) { grid-column: 3; grid-row: 2; }
      .ip-dhcp span:nth-of-type(4) { grid-column: 1; grid-row: 2; }
      .ip-dhcp i:nth-of-type(2) { grid-column: 3; grid-row: 1; transform: rotate(90deg); }
      .ip-dhcp i:nth-of-type(3) { grid-column: 2; grid-row: 2; transform: rotate(180deg); }
      .ip-prefix-demo code, .ip-prefix-demo b { padding-inline: 6px; font-size: 11px; }
      .ip-range-table > div { grid-template-columns: 1fr; gap: 4px; }
      .ip-dhcp-detail ol { grid-template-columns: 1fr; }
      .home-hero h1 { font-size: 42px; letter-spacing: -2px; }
      .home-hero p { font-size: 14px; }
      .home-values { grid-template-columns: 1fr; }
      .home-topic { min-height: 112px; padding: 15px 9px; }
      .home-story { margin-top: 40px; padding: 26px 20px; }
      .contact-card { grid-template-columns: 1fr; }
      .contact-intro { padding: 35px 28px; }
      .contact-form-wrap { padding: 30px 26px; }
      .concept-visual { min-height: 0; padding: 26px 18px; }
      .network-route { width: 220px; grid-template-columns: 1fr; gap: 6px; }
      .route-line { width: 3px; height: 28px; justify-self: center; }
      .route-line::after { right: -7px; top: 7px; transform: rotate(90deg); }
      .route-line span { left: 17px; top: 7px; transform: none; }
      .ip-scope, .ip-packet { grid-template-columns: 1fr; }
      .ip-scope > span, .ip-packet > b { transform: rotate(90deg); }
      .dns-hierarchy { grid-template-columns: 1fr; }
      .dns-hierarchy i { transform: rotate(90deg); }
      .url-labels { grid-template-columns: 1fr 1fr; }
      .captcha-verdict { grid-template-columns: 1fr; }
      .wifi-board { grid-template-columns: 1fr; }
      .wifi-bands, .wifi-lock { grid-column: auto; }
      .wifi-bands { grid-template-columns: 1fr; }
      .bluetooth-board { grid-template-columns: 1fr; }
      .bt-scan, .bt-pair, .bt-hops, .bt-services { grid-column: auto; }
      .bt-services { grid-template-columns: 1fr; }
      .flags-alphabet { grid-template-columns: repeat(5, 1fr); }
      .nato-alphabet { grid-template-columns: repeat(2, 1fr); }
      .braille-alphabet { grid-template-columns: repeat(4,minmax(0,1fr)); }
      .braille-learn { padding:18px 14px; }
      .braille-cell-guide { display:block; }
      .braille-rules { grid-template-columns:1fr; }
      .computer-stage { padding:24px 14px; }
      .computer-motherboard { min-height:300px; padding-inline:14px; gap:12px; }
      .computer-explanation,.computer-components,.von-neumann-section,.modern-computers { padding:22px 16px; }
      .computer-component-tabs,.computer-device-tabs { display:grid; grid-template-columns:1fr 1fr; }
      .computer-component-detail,.computer-device-card { grid-template-columns:1fr; }
      .computer-component-symbol,.computer-device-visual { width:86px; min-height:86px; }
      .von-neumann-grid,.integrated-external-grid { grid-template-columns:1fr; }
      .integrated-external-grid aside { grid-column:auto; }
      .polish-symbol { width: 43px; height: 43px; }
      .polish-output { gap: 13px; }
      .polish-key { min-height: 220px; }
      .polish-key-cell { padding: 10px 3px; }
      .coding-input-row { grid-template-columns: 1fr; }
      .coding-input-row > div { justify-content: flex-start; flex-wrap: wrap; }
      .t9-editor { padding: 26px 20px; }
      .t9-keypad { padding: 18px; }
      .gps-board { min-height: 430px; }
      .gps-satellite { width: 94px; padding: 8px 5px; }
      .gps-distance { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 3px; padding: 8px 4px; }
      .gps-distance b { font-size: 6px; }
    }

    @media (max-width:1000px){
      .protocol-model-lab,.graphics-principle-lab { grid-template-columns:1fr; }
      .protocol-layer-detail { min-height:360px; }
      .graphics-demo-stage { min-height:390px; }
      .braille-reference { grid-template-columns:1fr; }
      .mix-model-diagrams { grid-template-columns:1fr; }
      .pixel-education-card { grid-template-columns:100px minmax(0,.72fr) minmax(0,1.28fr); gap:16px; }
    }

    @media (max-width:760px){
      .protocol-stack { padding:12px; }
      .protocol-layer-detail { min-height:0; padding:28px 19px; }
      .protocol-layer-detail > div { grid-template-columns:1fr; }
      .protocol-journey { grid-template-columns:1fr; text-align:center; }
      .protocol-comparison { grid-template-columns:1fr; }
      .protocol-comparison > i { transform:rotate(90deg); text-align:center; }
      .protocol-comparison > div { grid-template-columns:1fr; }
      .protocol-comparison > div.tcpip { grid-template-columns:1fr; }
      .protocol-comparison > div strong { grid-column:auto; }
      .protocol-comparison span { min-height:38px; }
      .graphics-demo-stage { min-height:330px; }
      .graphics-demo-explanation { padding:28px 19px; }
      .graphics-fact-grid { grid-template-columns:1fr; }
      .mix-model-card { grid-template-columns:1fr; }
      .mix-circle-diagram { min-height:250px; }
      .qr-damage-heading { display: grid; }
      .qr-damage-heading > span { width: fit-content; }
      .qr-level-options { grid-template-columns: 1fr 1fr; }
      .qr-damage-patterns { align-items: stretch; }
      .qr-damage-patterns > span { flex: 1 0 100%; }
      .qr-damage-patterns button { flex: 1 1 90px; }
      .qr-capacity-line { font-size: 7px; }
      .pixel-education-card { grid-template-columns:1fr; }
      .pixel-sample { justify-self:center; }
      .pixel-properties { grid-template-columns:1fr; }
      .braille-reference { padding:0 14px 18px; }
      .braille-prefix-grid { grid-template-columns:1fr; }
      .braille-number-grid { grid-template-columns:repeat(5,1fr); }
      .depth-preview-wrap { padding:14px; }
      .depth-channel-bits { display:grid; grid-template-columns:1fr 1fr; }
      .site-footer { width:calc(100% - 28px); flex-direction:column; }
    }

    /* Spodní mez čitelnosti pro popisky, které dříve klesaly až k 6–7 px. */
    .tool-page small { font-size: 9px; line-height: 1.5; }
    :is(.gps-distance,.gps-circles,.network-scope-tabs,.network-scope-range,.packet-endpoint,.packet-lane,.metadata-preview,.data-type-context-card,.database-summary,.family-tree,.statistics-results) span,
    :is(.password-criteria,.mfa-challenge) b { font-size: 9px; }
    .gps-distance b { font-size: 8px; }
