/* OsOjOb v1.5 - spolecne rozlozeni. Barvy a pisma jsou v themes.css (promenne). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/nunito-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/nunito-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800 900; font-display: swap;
  src: url("fonts/nunito-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800 900; font-display: swap;
  src: url("fonts/nunito-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; font: 15px/1.5 var(--font); background: var(--page);
  color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
.page { max-width: 1160px; margin: 0 auto; padding: 32px 20px 80px; }
main { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }
h1 { font-family: var(--font-head); font-size: 32px; font-weight: 700; margin: 0; line-height: 1.15; }
h2 { font-family: var(--font-head); font-size: 18px; margin: 0 0 14px; }
h2.cap { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.small { font-size: 13px; } .muted { color: var(--muted); } .warn { color: var(--warn-ink); }
.pos { color: var(--pos); text-shadow: var(--glow); } .neg { color: var(--neg); }
.cur { font-size: .6em; font-weight: 600; opacity: .6; margin-left: 4px; }

/* ---------- hlavicka ---------- */
header.top { position: relative; border-radius: var(--r); background: var(--hero); box-shadow: var(--shadow); }
.hero-curve { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--r) var(--r) 0 0; pointer-events: none; }
.top-row > .logo, .top-row > .menu { position: relative; z-index: 1; }
.top-row:last-child .hero-curve { border-radius: var(--r); }
.hero-curve .h-area { fill: var(--logo); fill-opacity: .10; }
.hero-curve .h-line { fill: none; stroke: var(--logo); stroke-width: 2.5; vector-effect: non-scaling-stroke; opacity: .9; }
.top-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px 20px; }
.logo { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.logo .mark circle { fill: none; stroke: var(--logo); stroke-width: 4; }
.logo .mark .m1 { stroke-opacity: .45; } .logo .mark .m2 { stroke-opacity: .7; }
.logo .mark .m4 { fill: var(--logo); stroke: none; }
.logo .word { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 700; letter-spacing: 6px; line-height: 1; }
/* pismena O jako krouzky ze znacky, prvni s tereckem */
.logo .word .o, .auth-logo .word .o { display: inline-block; width: .74em; height: .74em; border: .13em solid var(--logo); border-radius: 50%;
  vertical-align: -.02em; position: relative; margin: 0 .17em 0 0; }
.logo .word .o.t::after, .auth-logo .word .o.t::after { content: ""; position: absolute; left: 50%; top: 50%; width: .22em; height: .22em; border-radius: 50%;
  background: var(--logo); transform: translate(-50%, -50%); }
.logo .tag { display: block; font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: 3px; text-transform: uppercase; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.menu { position: relative; }
.menu > summary { display: flex; align-items: center; gap: 8px; background: var(--card-solid); color: var(--ink); font-weight: 600;
  padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow); min-height: 44px; }
.menu > summary svg, .period > summary svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.menu-box { position: absolute; right: 0; top: 54px; z-index: 20; width: 250px; background: var(--card-solid); color: var(--ink);
  border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.25); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.menu-box a, .menu-box button:not(.sw) { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 10px; border: 0;
  background: transparent; color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; box-shadow: none; }
.menu-box a:hover, .menu-box button:not(.sw):hover { background: var(--bg); }
.menu-box .out { color: var(--neg); }
.menu-h { padding: 10px 12px 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 2px 8px 8px; }
.sw { border: 0; border-radius: 10px; padding: 12px 6px; font: 600 13px var(--font); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(127,127,127,.25); }
.sw.on { box-shadow: 0 0 0 2px var(--card-solid), 0 0 0 4px var(--acc); }
.langs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 2px 8px 8px; }
.langs .lang { padding: 8px 0; border-radius: 8px; font: 600 12px var(--font); background: var(--bg); color: var(--ink);
  box-shadow: none; text-align: center; }
.langs .lang.on { background: var(--chip-on); color: var(--chip-on-ink); }

.acc-tabs { position: relative; display: flex; gap: 4px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.acc-tabs a { flex: none; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; padding: 10px 12px 12px;
  border-bottom: 2px solid transparent; }
.acc-tabs a.on { color: var(--ink); border-bottom-color: var(--logo); }

/* ---------- radek s nazvem ---------- */
.title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.period { position: relative; }
.period > summary { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; padding: 0 6px; }
.period-box { position: absolute; left: 0; top: 34px; z-index: 15; width: 250px; max-height: 70vh; overflow-y: auto;
  background: var(--card-solid); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.25); padding: 6px; }
.period-box a { display: block; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.period-box a.on, .period-box a:hover { background: var(--bg); }
.period-box .custom { padding: 4px 8px 8px; }
.period-box label { display: block; font-size: 13px; color: var(--muted); margin: 6px 0 2px; }
.updated { font-size: 13px; color: var(--muted); margin-left: auto; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-ink); }

/* ---------- karty ---------- */
.card { border-radius: var(--r); padding: 28px 30px; background: var(--card); box-shadow: var(--shadow); }
.sec { display: flex; flex-direction: column; gap: 14px; }
.sec h2.cap { margin: 0; }
.wrap { display: flex; flex-wrap: wrap; gap: 20px; }
.wrap.two { gap: 24px; align-items: flex-start; }
.net-card { flex: 2 1 420px; min-width: 0; background: var(--net-bg); color: var(--net-ink); display: flex; flex-direction: column; gap: 6px; }
.net-card .head, .month .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.net-card .head b { font-family: var(--font-head); font-size: 18px; color: var(--net-head); }
.net-card .head a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--net-head); }
.net-card .lbl { font-size: 13px; opacity: .8; margin-top: 8px; }
.net-card .big { font-family: var(--font-num); font-size: 46px; font-weight: 800; line-height: 1.1; color: var(--net-ink); }
.net-card .big.neg { color: var(--neg); }
.net-card .big.pos { color: var(--net-ink); text-shadow: none; }
.reward-card { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.lbl.strong { font-size: 15px; font-weight: 600; } .lbl.gap { margin-top: 12px; }
.mid { font-family: var(--font-num); font-size: 32px; font-weight: 800; }
.mid.reward { color: var(--reward); text-shadow: var(--glow); }
[data-theme="klasicky"] .mid.reward { text-shadow: none; }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.month { padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.month .head b { font-size: 16px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.kv span { color: var(--muted); font-size: 14px; }
.month .lnk { font-size: 14px; font-weight: 600; color: var(--link); text-decoration: none; margin-top: 4px; }

/* SUMMARY - bez vlastniho pole, primo na pozadi */
.summary { flex: 1 1 340px; min-width: 0; padding: 8px 4px; display: flex; flex-direction: column; gap: 16px; }
.summary h2.cap { font-size: 12px; font-weight: 500; letter-spacing: 2px; margin: 0 0 4px; }
.summary .kv span { color: var(--ink); font-weight: 600; font-size: 15px; }
.summary .kv b { font-family: var(--font-num); font-size: 20px; }
.summary .kv span small { font-size: 13px; font-weight: 500; color: var(--muted); }
.summary .kv.sub { padding-left: 14px; }
.summary .kv.sub span, .summary .kv.sub b { color: var(--muted); font-size: 15px; font-weight: 400; }
.summary .netto { margin-top: 4px; padding: 14px 16px; border-radius: 14px; background: var(--net-soft); }
.summary .netto span { font-weight: 800; font-size: 17px; }
.summary .netto b { font-size: 26px; font-weight: 800; }

/* graf Vyvoj vysledku */
.curve-card { flex: 999 1 520px; min-width: 0; }
.curve-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.curve-head h2 { margin: 0; }
.range { position: relative; }
.range > summary { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--bg);
  font-weight: 600; font-size: 14px; min-height: 38px; }
.range > summary svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.range-box { position: absolute; right: 0; top: 46px; z-index: 15; width: 190px; background: var(--card-solid); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25); padding: 6px; display: flex; flex-direction: column; }
.range-box button { text-align: left; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 10px 12px;
  border-radius: 10px; cursor: pointer; box-shadow: none; }
.range-box button.on, .range-box button:hover { background: var(--bg); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); flex-wrap: wrap; }
.seg button { border: 0; cursor: pointer; font: 600 13px var(--font); padding: 8px 13px; border-radius: 999px; background: transparent;
  color: var(--ink); min-height: 36px; }
.seg button.on { background: var(--chip-on); color: var(--chip-on-ink); }
.curve-total { margin: 16px 0 6px; font-family: var(--font-num); font-size: 28px; font-weight: 800; }
.empty { padding: 40px 0; text-align: center; }

svg.k-chart { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font); }
.k-zero { stroke: var(--muted); stroke-opacity: .35; stroke-dasharray: 4 5; }
.k-area { fill-opacity: .12; } .k-area.up { fill: var(--pos-line); } .k-area.down { fill: var(--neg); }
.k-line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; filter: var(--line-glow); }
.k-line.up { stroke: var(--pos-line); } .k-line.down { stroke: var(--neg); }
.k-dot { fill: var(--card-solid); stroke-width: 2.5; }
.k-dot.up { stroke: var(--pos-line); } .k-dot.down, .k-dot.neg { stroke: var(--neg); }
.k-axis { fill: var(--muted); font-size: 13px; }
.k-bar.pos { fill: var(--pos-bar); } .k-bar.neg { fill: var(--neg); }
.k-val { font-size: 13px; font-weight: 700; } .k-val.pos { fill: var(--pos-bar); } .k-val.neg { fill: var(--neg); }
.k-hit { fill: #000; fill-opacity: 0; cursor: pointer; }
.hov .tip { opacity: 0; pointer-events: none; transition: opacity .15s; }
.hov:hover .tip { opacity: 1; }
.tip.t1 { fill: var(--muted); font-size: 13px; }
.tip.t2 { fill: var(--ink); font-size: 15px; font-weight: 700; }
.tip.t2.neg { fill: var(--neg); } .tip.t2.pos { fill: var(--pos-bar); }

.stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 4px 0 14px; }
.stat { font-family: var(--font-num); font-size: 22px; font-weight: 700; margin-top: 2px; }

/* spodni pas "Od 1. listopadu 2026" */
.band { border-radius: var(--r); padding: 30px; background: var(--band-bg); color: var(--band-ink); }
.band h2.cap { color: inherit; opacity: .7; margin-bottom: 22px; }
.band .stats { gap: 24px 32px; margin: 0; }
.band .stats > div { flex: 1 1 140px; }
.band .small { font-size: 14px; opacity: .7; }
.band .stat { font-size: 30px; margin-top: 4px; }

/* DATA - jen pro spravce */
details.data { padding: 0; overflow: hidden; }
details.data > summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 30px; min-height: 56px; }
details.data > summary .cap { font-size: 14px; font-weight: 600; letter-spacing: 2px; color: var(--muted); }
details.data .when-open { display: none; } details.data[open] .when-open { display: inline; } details.data[open] .when-closed { display: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 0 30px 24px; }
.tile { padding: 16px 18px; border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.tile span { font-size: 13px; color: var(--muted); } .tile b { font-family: var(--font-num); font-size: 19px; }
details.data .scroll { padding: 0 30px 28px; }

/* ---------- prihlasovaci stranka ---------- */
.auth { position: relative; min-height: calc(100vh - 140px); display: flex; justify-content: center; align-items: flex-start; }
.auth-bg { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 42vh; pointer-events: none; opacity: .9; }
.auth-bg .h-area { fill: var(--logo); fill-opacity: .07; }
.auth-bg .h-line { fill: none; stroke: var(--logo); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .5; }
.auth-col { position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding-top: 6vh; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.auth-logo .mark circle { fill: none; stroke: var(--logo); stroke-width: 4; }
.auth-logo .mark .m1 { stroke-opacity: .45; } .auth-logo .mark .m2 { stroke-opacity: .7; }
.auth-logo .mark .m4 { fill: var(--logo); stroke: none; }
.auth-logo .word { font-family: var(--font-head); font-size: 48px; font-weight: 700; letter-spacing: 9px; line-height: 1; color: var(--ink);
  margin-right: -9px; }
.auth-logo .tag { font-size: 12px; color: var(--muted); letter-spacing: 4px; text-transform: uppercase; }
.auth-card { width: 100%; padding: 30px 32px 32px; }
.auth-card h1 { font-size: 24px; margin-bottom: 8px; }
.auth-card input { max-width: none; padding: 12px 14px; }
.auth-card input.code { font-size: 26px; letter-spacing: 8px; text-align: center; margin-top: 8px; }
button.wide { width: 100%; margin-top: 22px; padding: 13px; font-weight: 600; font-size: 15px; }
.auth .langs { width: 100%; max-width: 330px; padding: 0; }
.auth-foot { font-size: 12px; color: var(--muted); }

/* ---------- obecne prvky (sprava, prihlaseni, formulare) ---------- */
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
td.n, th.n { text-align: right; white-space: nowrap; }
.scroll { overflow-x: auto; }
.btn, button { display: inline-block; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--bg); color: var(--ink);
  font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.btn.primary, button.primary { background: var(--chip-on); color: var(--chip-on-ink); box-shadow: none; }
button.danger { color: var(--neg); }
form.inline { display: inline; }
label { display: block; font-size: 13px; color: var(--muted); margin: 8px 0 2px; }
input, select, textarea { width: 100%; max-width: 420px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--card-solid); color: var(--ink); }
input[type=checkbox] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: transparent; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; } .row > div { flex: 1 1 160px; }
.msg { padding: 12px 16px; border-radius: 14px; background: var(--pos-soft); }
.msg.error { background: var(--neg-soft); }
/* docasna hlaska (aktualizace): zelena fajfka / cerveny krizek, sama zmizi */
.toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px); padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--card-solid); color: var(--ink);
  font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.22); pointer-events: none;
  animation: toast-out 3s ease forwards; }
.toast .ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--pos);
  font-size: 14px; flex: none; }
.toast.error { animation-duration: 7s; } .toast.error .ic { background: var(--neg); }
@keyframes toast-out { 0% { opacity: 0; top: 6px; } 8% { opacity: 1; top: 18px; } 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.errorlist { color: var(--neg); margin: 4px 0; padding-left: 18px; font-size: 13px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--bg); color: var(--ink); text-decoration: none;
  font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.chip.on { background: var(--chip-on); color: var(--chip-on-ink); box-shadow: none; }
.login { max-width: 400px; margin: 4vh auto 0; width: 100%; }
main > .card + .card { margin-top: -12px; }
tr.sum td { font-weight: 700; border-top: 2px solid var(--line); }

@media (max-width: 640px) {
  .page { padding: 14px 12px 60px; }
  main { gap: 26px; margin-top: 22px; }
  .top-row { padding: 18px 16px 14px; }
  .logo { gap: 10px; } .logo .mark { width: 40px; height: 40px; }
  .menu > summary { padding: 11px 13px; } .menu .mt { display: none; }
  .hero-curve { opacity: .45; }
  .logo .word { font-size: 24px; letter-spacing: 4px; } .logo .tag { font-size: 9px; letter-spacing: 2px; }
  .acc-tabs { padding: 0 8px; }
  h1 { font-size: 26px; }
  .updated { margin-left: 0; width: 100%; }
  .card { padding: 22px 18px; }
  .net-card .big { font-size: 38px; }
  .hide-m { display: none; }
  .auth-logo .word { font-size: 38px; letter-spacing: 7px; margin-right: -7px; } .auth-card { padding: 24px 20px; }
  .tiles, details.data .scroll { padding-left: 18px; padding-right: 18px; }
  details.data > summary { padding: 16px 18px; }
  .band { padding: 24px 20px; }
}
