:root{--bg:#f7f7fb;--card:#fff;--accent:#2b6cb0;--muted:#666}
*{box-sizing:border-box;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif}

main{width:820px;max-width:96%;background:var(--card);border-radius:10px;padding:24px;box-shadow:0 6px 18px rgba(15,23,42,0.08)}
h1{margin:0 0 0px 0;font-size:20px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
label{display:flex;flex-direction:column;font-size:14px;color:var(--muted)}
input,textarea{margin-top:6px;padding:10px;border:1px solid #e6e9ef;border-radius:6px;background:#fff}
.actions{margin-top:18px;display:flex;gap:10px}
button{padding:10px 14px;border-radius:8px;border:0;cursor:pointer}
button[type="submit"]{background:var(--accent);color:#fff}
button[type="reset"]{background:#eef2ff;color:var(--accent)}
.output{margin-top:5px;background:#0f1724;color:#d1d5db;padding:12px;border-radius:8px;white-space:pre-wrap}
@media(max-width:720px){.grid{grid-template-columns:repeat(1,1fr)}}

/* Preview styles */
.preview-wrap{margin-top:20px}
.preview{background:#062042;color:#fff;border-radius:0;overflow:hidden;box-shadow:inset 0 -36px 0 rgba(255,193,7,0.06);width:600px;height:147px;display:flex;flex-direction:column}
.preview-top{display:flex;flex-direction:column;justify-content:space-between;padding:4px 5px}
.preview-top .top-row{display:flex;align-items:center;gap:12px;height:42px;}
.preview-top .second-row{display:flex;justify-content:space-between;align-items:center;height:30px;margin-top:0;}
.preview-top .left-row{display:flex;align-items:center;gap:10px;}
.preview-top .right-row{text-align:right;display:flex;flex-direction:column;align-items:flex-end;}
.preview .left{display:flex;flex-direction:row;align-items:center;gap:12px}
.preview .type{font-size:30px;font-weight:700;letter-spacing:0.9px;width:100px;line-height:45px;}
.preview .dest{font-size:38px;font-weight:700;letter-spacing:0.9px;margin:0;line-height:45px;}
.preview .number{color:#ffffff;font-weight:700;font-size:30px;width:100px;line-height:30px;}
.preview .dopravce{color:#ffffff;margin-top: 4px;margin-left:0px;font-size:25px;line-height:35px;}
.preview .right-row .label{font-size:40px;color:#ffffff;line-height:35px;}
.preview .right-row .time{font-size:40px;font-weight:800;color:#ffffff;line-height:30px;}
.preview-bottom.third-row{display:flex;align-items:center;padding:0px 0px;height:30px;}
.third-left{flex:0 0 auto;display:flex;align-items:center;min-width:70px;height:30px;}
.third-middle{flex:0 0 auto;display:flex;align-items:center;min-width:120px;margin-left:12px;height:35px;}
.expected{
	margin-left:auto;
	display:flex;
	align-items:center;
	justify-content:flex-end;
	font-weight:700;
	font-size:15px;
	height:35px;
	color:#ffd166;
}
.expected-label, .expected-time {
	color:#ffd166 !important;
}
.preview .leftline{background:transparent;color:#ffffff;font-weight:700;padding:0px 5px;border-radius:4px;font-size:25px;width:105px;line-height:30px;}
.preview .middle{color:#ffffff;font-size:20px;width:40px;margin-left:2px;line-height:30px;}
.preview .expected .expected-label{color:#ffd166;width:100px;}
.preview .expected .expected-time{color:#ffd166;width:100px;}
.preview-bar{background:#ffd166;color:#04203b;padding:5px 5px;font-weight:700; height:40px;}
.preview.flash{box-shadow:0 0 0 4px rgba(255,209,102,0.12)}

@media(max-width:720px){
	.preview-top{flex-direction:row}
	.preview .dest{font-size:30px}
	.preview .time{font-size:30px}
}

/* Marquee container for long Šot text */
.preview-bar{display:flex;align-items:center}
.marquee{overflow:hidden;flex:1}
.marquee-inner{display:inline-block;padding-left:0px;white-space:nowrap;font-size:22px;line-height:30px;}

/* Use Roboto Condensed Bold for all preview text except SOT */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&display=swap');
.preview{font-family:'Roboto Condensed', sans-serif; font-weight:700}
.preview .marquee-inner{font-family:Inter,Segoe UI,Roboto,Arial,sans-serif; font-weight:400}