/* RUD 2027 – čerstvý vzhled nad původní funkční aplikací. Žádná změna výpočtů. */
:root { --bg: #09121e; --panel: #121f30; --muted: #96abc0; --text: #ecf4fb; --border: #2a3f54; --accent: #31c6d4; }
* { box-sizing: border-box; }
body.rud-page,body.calc-page { color:var(--text); background:radial-gradient(circle at 90% -20%, rgba(21,112,142,.21) 0,transparent 40%),linear-gradient(180deg,#0a1523 0%,#09111b 100%); font-family:Inter,system-ui,"Segoe UI",sans-serif; }
body.rud-page:before { content:""; z-index:-1; position:fixed; inset:0; pointer-events:none; background-image:linear-gradient(rgba(255,255,255,.014) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.014) 1px,transparent 1px);background-size:40px 40px;opacity:.3; }
.site-header { border-bottom:1px solid rgba(121,167,195,.21); background:linear-gradient(100deg,#101f32 0%,#0f2a3d 55%,#102232 100%); position:relative; overflow:hidden; }
.site-header:after { content:""; pointer-events:none; position:absolute; right:-5%; bottom:-140px; width:460px; height:290px; border:1px solid rgba(56,200,218,.18);border-radius:50%;box-shadow:0 0 0 65px rgba(30,169,197,.035),0 0 0 132px rgba(30,169,197,.025); }
.header-content { max-width:1370px; margin:0 auto; padding:34px 32px 31px; display:flex; align-items:center; gap:20px; position:relative; z-index:1; }
.brand-mark { width:56px;height:56px; flex:0 0 auto; border-radius:16px; background:linear-gradient(145deg,#0e4f68,#137a86);border:1px solid #278ea2;display:flex;align-items:flex-end;justify-content:center;gap:6px;padding:13px;box-shadow:0 10px 33px #07121c8e; }
.brand-mark span { display:block;width:8px;border-radius:5px 5px 2px 2px;background:#6de6ec; }
.brand-mark span:nth-child(1){height:13px;} .brand-mark span:nth-child(2){height:22px;} .brand-mark span:nth-child(3){height:31px;}
.header-eyebrow { color:#78dce6;letter-spacing:.17em;font-size:11px;font-weight:800;margin-bottom:6px; }
.header-title h1 { margin:0;font-size:clamp(28px,3vw,39px);font-weight:800;letter-spacing:-.045em;line-height:1.12; }
.header-title h1 em { color:#69e5ea;font-style:normal; }
.header-title p { margin:9px 0 0;color:#aac1d4;font-size:14px; }
.header-source { margin-left:auto; padding:12px 17px;border-radius:12px; border:1px solid #2c6170;background:rgba(14,55,68,.65);display:flex;flex-direction:column;text-align:right;min-width:166px; }
.header-source strong { font-size:14px;color:#bdf5f4; }
.header-source small { color:#8eb3c7;margin-top:4px;font-size:12px; }
.kpi-strip { max-width:1370px;margin:25px auto 0;padding:0 32px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px; }
.kpi-tile { min-height:142px;background:linear-gradient(145deg,#182b3e,#101f30);border:1px solid #30475e;border-radius:16px;padding:20px 18px;box-shadow:0 12px 32px #01060b28; }
.kpi-primary { background:linear-gradient(135deg,#0e4d60,#102b3d 72%); border-color:#168fa0; }
.kpi-label { display:flex;align-items:center;gap:10px;font-size:12px;font-weight:650;color:#bcdae7;min-height:18px; }
.kpi-dot { display:inline-block;width:8px;height:8px;border-radius:50%;background:#4ad9dc;box-shadow:0 0 13px #2ccbdd77;flex:0 0 auto; }
.kpi-value {font-size:clamp(19px,2vw,27px);letter-spacing:-.055em;line-height:1.2;font-variant-numeric:tabular-nums;font-weight:800;margin-top:19px;white-space:nowrap;color:#fff; }
.kpi-sub { margin-top:12px;color:#95b2c3;font-size:11px;line-height:1.4; }
.kpi-tile.negative .kpi-value {color:#ff9699;} .kpi-tile.positive .kpi-value {color:#7de7c0;}
.rud-page .wrap { max-width:1370px; padding:20px 32px 36px;grid-template-columns:minmax(260px,316px) minmax(0,1fr);gap:18px;align-items:start; }
.rud-page .card, .calc-page .card {background:linear-gradient(145deg,#132337,#111d2c);border:1px solid #2d4258;border-radius:17px;box-shadow:0 14px 30px #01071128;padding:24px;min-width:0; }
.rud-page .wrap>section.card:first-child {position:static;}
.panel-kicker {color:#51ced9;font-weight:750;font-size:11px;letter-spacing:.16em;margin-bottom:11px;}
.panel-subtitle {font-size:12px;color:#99aec0;margin:9px 0 17px;line-height:1.6;}
.rud-page h2, .calc-page h1 {font-size:20px;letter-spacing:-.03em;}
.rud-page input, .rud-page select, .calc-page input[type="number"], .calc-page select {font:inherit;background:#0c1928;border:1px solid #375069;border-radius:10px;color:#f0f7fc;max-width:100%;outline:none;transition:border-color .14s,box-shadow .14s;}
.rud-page input:focus,.rud-page select:focus,.calc-page input:focus,.calc-page select:focus {border-color:#4bcbd9;box-shadow:0 0 0 3px #27c2d222;}
.rud-page #select {height:240px;padding:7px;font-size:12.5px;line-height:1.5;}
.rud-page #select option {padding:7px 8px;border-radius:4px;}
.rud-page label {color:#adbed1;font-size:12px;}
.rud-page #pillCount {display:inline-block;margin-left:4px;background:#20394b;border:1px solid #2e5768;padding:5px 10px;min-height:0;border-radius:30px;color:#b8dee4;}
.model-link-label {margin:22px 0 10px;color:#deecf4;font-weight:700;font-size:13px;}
.rud-page .panel-illus {padding:9px;border-radius:12px;background:#102032;border-color:#2f5266;cursor:pointer;}
.rud-page .panel-illus img {max-height:154px;object-fit:contain;}
.model-link-hint {color:#72d8e0;text-align:center;font-size:12px;font-weight:750;margin:9px 0 4px;}
.rud-page .detail-head {padding-bottom:18px;border-bottom:1px solid #2a3e51;margin-bottom:17px;align-items:center;}
.rud-page .detail-head h2 {font-size:22px;flex-wrap:wrap;}
.rud-page #headerName {font-size:15px;}
.rud-page .detail-id {max-width:44%;}
.rud-page .icon-btn,.rud-page .mini-btn,.calc-page .btn {background:#163a50;border:1px solid #32768d;color:#d3f4f7;border-radius:9px;transition:background .18s,transform .18s;cursor:pointer;}
.rud-page .icon-btn:hover,.rud-page .mini-btn:hover,.calc-page .btn:hover {background:#1c5974;transform:translateY(-1px);}
.rud-page .icon-btn:disabled {opacity:.45;}
.rud-page .detail {width:100%;font-size:13px;}
.rud-page .detail th,.rud-page .detail td {border-bottom:1px solid #263b50;padding:11px 10px;vertical-align:middle;}
.rud-page .detail th {color:#bbcee0;font-weight:600;}
.rud-page .detail td {color:#edf5fa;font-variant-numeric:tabular-nums;}
.rud-page #tblPred, .rud-page #tblDNV {background:#0e1d2d;border:1px solid #2b4154;border-radius:12px;border-collapse:separate;border-spacing:0;overflow:hidden;padding:5px;}
.rud-page #tblPred thead th,.rud-page #tblDNV thead th {color:#9bdde3;}
.rud-page .section-row th,.rud-page .section-row td {background:#183347;color:#9fdae2;}
.rud-page .sum-row th,.rud-page .sum-row td {color:#8fe6de;}
.rud-page .tabs {margin-top:23px;}
.rud-page .tab-buttons {gap:6px;border-bottom:1px solid #355066;flex-wrap:wrap;}
.rud-page .tab-buttons button {background:transparent;padding:11px 13px;border:1px solid transparent;border-radius:10px 10px 0 0;color:#b6cad9;font-size:12.5px;font-weight:650;}
.rud-page .tab-buttons button:hover {color:#fff;background:#213950;}
.rud-page .tab-buttons button.active {background:#144b61;border-color:#36778c;border-bottom-color:#144b61;color:#bffcff;}
.rud-page .tab-content {border-color:#355066;border-radius:0 0 12px 12px;background:#102033;padding:16px;min-height:175px;}
.rud-page .footer-inline {background:#101f2f;border-color:#2a4053;box-shadow:none;}
.rud-page .footer-text {font-size:12px;}
.analysis-head {display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px;}
.analysis-head h3 {font-size:18px;letter-spacing:-.02em;margin:0 0 6px;color:#e7f6ff;}
.analysis-head p {font-size:12px;color:#9eb6cb;margin:0;line-height:1.6;}
.analysis-message {color:#b6d7e2;font-size:12px;background:#183247;padding:12px;border-radius:8px;margin-bottom:10px;}
.analysis-message:empty{display:none;}
.analysis-table-wrap {overflow-x:auto;}
.rud-page .analysis-table {min-width:620px;}
.rud-page .analysis-table th:not(:first-child),.rud-page .analysis-table td:not(:first-child) {text-align:right;white-space:nowrap;}
.rud-page .analysis-table thead th {color:#8fdde7;}
.rud-page .analysis-table tbody tr:last-child th,.rud-page .analysis-table tbody tr:last-child td {font-weight:800;color:#e6ffff;background:#17394b;}
.analysis-note {font-size:12px;line-height:1.65;color:#95b5c9;margin-top:16px;border-left:3px solid #258e9b;padding:6px 12px;}
/* Původní Excel simulátor – pouze přizpůsobení vzhledu */
.calc-page .wrap {max-width:1220px;padding:30px 28px;gap:18px;}
.calc-page .topbar {font-size:23px;text-align:left;background:linear-gradient(120deg,#16394b,#10263a);border-color:#326375;padding:24px 28px;border-radius:16px;}
.calc-page .card h1 {font-size:21px;margin-bottom:12px;}
.calc-page .sub {color:#8ddce1;}
.calc-page input,.calc-page select {font-size:14px;}
.calc-page .btn {padding:12px 17px;background:linear-gradient(110deg,#115b76,#18798c);border-color:#38aabb;margin-top:20px;color:#fff;}
.calc-page .bottombar {background:#101d2d;border-color:#2d4258;border-radius:12px;}
.calc-page .log {line-height:1.75;}
@media(max-width:1050px){.kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.rud-page .wrap{grid-template-columns:270px minmax(0,1fr);}.kpi-value{font-size:25px}}
@media(max-width:760px){.header-content{padding:25px 20px;align-items:flex-start;gap:13px;}.brand-mark{width:44px;height:44px;border-radius:13px;padding:9px}.header-source{display:none}.header-title h1{font-size:27px}.header-title p{font-size:12px}.kpi-strip{padding:0 16px;gap:10px}.kpi-tile{padding:15px;min-height:122px}.kpi-value{font-size:19px;white-space:normal;}.kpi-sub{font-size:10px}.rud-page .wrap{padding:16px;grid-template-columns:1fr;gap:15px}.rud-page .wrap>section.card:first-child{position:static}.rud-page #select{height:145px}.rud-page .card{padding:17px}.rud-page .detail-id{max-width:52%;}.rud-page .detail-head{flex-wrap:wrap}.rud-page .tab-buttons button{padding:10px;font-size:12px}.calc-page .wrap{padding:16px;grid-template-columns:1fr}.calc-page .topbar,.calc-page .bottombar{grid-column:auto}.calc-page .grid2{grid-template-columns:1fr 1fr}.analysis-head{align-items:flex-start;flex-direction:column}}
@media(max-width:440px){.kpi-strip{grid-template-columns:1fr}.calc-page .grid2{grid-template-columns:1fr}.header-title h1{font-size:24px}}
