/* SKODA Next, as the K2NG sites serve it. These hashed CDN paths change when
   K2NG redeploys its assets bundle; if the form falls back to a system font,
   copy the current URLs from any market page's Network tab. */
@font-face { font-family: "SKODA Next"; font-weight: 300; src: url("https://cdn.skoda-auto.com/resources/Libs_c2911565-9b23-426f-b6df-3f86a0935d42/Assets/font/SKODANext-Light.02f8b47a33536cece06b.woff2") format("woff2"); }
@font-face { font-family: "SKODA Next"; font-weight: 400; src: url("https://cdn.skoda-auto.com/resources/Libs_c2911565-9b23-426f-b6df-3f86a0935d42/Assets/font/SKODANext-Regular.300f860eaace316bcc77.woff2") format("woff2"); }
@font-face { font-family: "SKODA Next"; font-weight: 700; src: url("https://cdn.skoda-auto.com/resources/Libs_c2911565-9b23-426f-b6df-3f86a0935d42/Assets/font/SKODANext-Bold.39ba99052b4737a4790a.woff2") format("woff2"); }
@font-face { font-family: "SKODA Next"; font-weight: 900; src: url("https://cdn.skoda-auto.com/resources/Libs_c2911565-9b23-426f-b6df-3f86a0935d42/Assets/font/SKODANext-Black.7dd7265ad5f5846fb5b9.woff2") format("woff2"); }

* { box-sizing: border-box; }
body { margin: 0; font-family: "SKODA Next", system-ui, sans-serif; color: #161718; background: #fff; }

#bar { position: sticky; top: 0; z-index: 10; background: #0e3a2f; color: #fff; padding: 8px 16px;
       display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; }
#bar a { color: #78faae; }
#bar form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
#bar input, #bar select { font: inherit; padding: 3px 6px; border-radius: 4px; border: 1px solid #5a7a70; }
#bar input[name=code] { width: 220px; }
#bar input[name=culture] { width: 70px; }
#bar input[name=width] { width: 70px; }
#bar button { font: inherit; padding: 3px 12px; border-radius: 4px; border: 0; background: #78faae; color: #0e3a2f; cursor: pointer; }
#bar .tag { padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; }
#bar .tag.mock { background: #78faae; color: #0e3a2f; }
#bar .tag.real { background: #e82b2b; color: #fff; }
#bar .tag.draft { background: #ffd34d; color: #161718; }
#bar .links { margin-left: auto; display: flex; gap: 12px; }

#layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: calc(100vh - 48px); }
#stage { padding: 32px 24px; }
#mount { margin: 0 auto; max-width: 1100px; outline: 1px dashed transparent; }
#mount.sized { outline-color: #b0b0b0; }
#log { border-left: 1px solid #e4e4e4; background: #fafafa; padding: 12px 16px; font-size: 13px; overflow: auto; max-height: calc(100vh - 48px); position: sticky; top: 48px; }
#log h2 { font-size: 15px; margin: 0 0 8px; }
#events { padding-left: 18px; margin: 0; }
#events li { margin-bottom: 10px; }
#events .t { color: #7c7d7e; font-size: 11px; }
#events pre { background: #fff; border: 1px solid #e4e4e4; padding: 6px; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; font-size: 11px; }
#events .err { color: #b00020; }
#events .warn { color: #8a5a00; }

.landing { max-width: 720px; margin: 40px auto; line-height: 1.5; }
.landing code { background: #f0f0f0; padding: 1px 4px; border-radius: 3px; }
.error { color: #b00020; white-space: pre-wrap; }
@media (max-width: 1000px) { #layout { grid-template-columns: 1fr; } #log { position: static; max-height: none; border-left: 0; border-top: 1px solid #e4e4e4; } }

/* env leads the bar: it decides which markets and forms exist at all */
#bar select[name=env] { font-weight: 700; background: #ffd34d; border-color: #ffd34d; }
#bar .tag.aa { background: #9ec8ff; color: #0b2a52; }

.aa-dialog { border: 0; border-radius: 12px; padding: 24px 28px; max-width: 520px; box-shadow: 0 12px 40px rgba(0,0,0,.25); font-family: inherit; }
.aa-dialog::backdrop { background: rgba(14,58,47,.45); }
.aa-dialog h2 { margin: 0 0 12px; font-size: 20px; }
.aa-dialog a { word-break: break-all; }
.aa-dialog .muted { color: #7c7d7e; font-size: 12px; }
.aa-dialog form { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.aa-dialog button { font: inherit; padding: 8px 18px; border-radius: 20px; border: 1px solid #0e3a2f; background: #fff; cursor: pointer; }
.aa-dialog button.primary { background: #78faae; border-color: #78faae; color: #0e3a2f; font-weight: 700; }
