:root{--blue:#123a63;--blue2:#0c6ba8;--ink:#172331;--muted:#607080;--line:#dbe3ea;--bg:#f3f6f9;--danger:#a52929}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 Arial,sans-serif}.admin-header{min-height:76px;padding:14px clamp(20px,5vw,72px);background:var(--blue);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{color:#fff;text-decoration:none;font-size:25px;font-weight:800;letter-spacing:.03em}.brand span{font-size:14px;font-weight:400;opacity:.8;margin-left:8px}.admin-main{width:min(1280px,calc(100% - 32px));margin:48px auto}.admin-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);gap:28px}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:clamp(24px,4vw,44px);box-shadow:0 12px 35px rgba(22,45,67,.08)}.login-panel{max-width:520px;margin:8vh auto}.eyebrow{margin:0 0 6px;color:var(--blue2);font-size:13px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}h1,h2{margin:0 0 8px;line-height:1.2}h1{font-size:clamp(30px,4vw,42px)}h2{font-size:28px}.intro{margin:0 0 28px;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid label{display:grid;gap:7px;font-weight:700}.form-grid label.wide{grid-column:1/-1}.form-grid small{font-weight:400;color:var(--muted)}input,textarea{width:100%;border:1px solid #b9c6d1;border-radius:8px;padding:12px 13px;background:#fff;color:var(--ink);font:inherit}input:focus,textarea:focus{outline:3px solid rgba(12,107,168,.14);border-color:var(--blue2)}textarea{resize:vertical}.button{border:0;border-radius:8px;padding:12px 19px;background:var(--blue2);color:#fff;font-weight:800;font-size:15px;cursor:pointer;width:max-content}.button:hover{background:var(--blue)}.button-quiet{background:#fff;color:var(--blue);padding:9px 15px}.notice{margin:0 0 22px;padding:12px 14px;border-radius:8px}.notice.error{background:#fff0f0;color:#842121;border:1px solid #efc4c4}.notice.success{background:#eaf8ef;color:#176133;border:1px solid #bde1c9}.news-list{display:grid;gap:12px;margin-top:24px}.news-item{display:grid;grid-template-columns:72px 1fr auto;align-items:center;gap:14px;border:1px solid var(--line);border-radius:10px;padding:11px}.news-item img{width:72px;height:62px;object-fit:contain;background:#fff;border-radius:6px}.news-item time{color:var(--muted);font-size:13px}.news-item h3{margin:3px 0;font-size:16px;line-height:1.3}.delete{border:1px solid #e3b7b7;background:#fff;color:var(--danger);border-radius:7px;padding:8px 10px;cursor:pointer}.delete:hover{background:#fff0f0}@media(max-width:900px){.admin-grid{grid-template-columns:1fr}}@media(max-width:600px){.admin-main{margin:24px auto}.form-grid{grid-template-columns:1fr}.form-grid label.wide{grid-column:auto}.brand span{display:block;margin:0}.news-item{grid-template-columns:56px 1fr}.news-item img{width:56px;height:50px}.news-item form{grid-column:2}}
.language-fields{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0;padding:20px;border:1px solid var(--line);border-radius:10px}.language-fields legend{padding:0 8px;color:var(--blue);font-weight:800}.language-fields-en{background:#f5f9fc}.news-item small{display:block;color:var(--muted);line-height:1.35}@media(max-width:600px){.language-fields{grid-template-columns:1fr}}
.translate-action{grid-column:1/-1;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.button-translate{background:#176b4d}.button-translate:hover{background:#10523a}.button-translate:disabled{cursor:wait;opacity:.65}.translate-status{color:var(--muted);font-size:14px}.translate-status.success{color:#176133}.translate-status.error{color:#842121}
.form-actions{grid-column:1/-1;display:flex;align-items:center;gap:10px}.button-cancel{background:#e7edf2;color:var(--ink);text-decoration:none}.button-cancel:hover{background:#d5e0e8}.news-actions{display:flex;align-items:center;gap:8px}.news-actions form{margin:0}.edit{border:1px solid #9fc2dc;background:#f2f8fc;color:var(--blue2);border-radius:7px;padding:8px 10px;text-decoration:none;font-weight:700}.edit:hover{background:#e1f0fa;color:var(--blue)}

.admin-tabs{display:flex;gap:8px;max-width:1500px;margin:0 auto 20px}.admin-tabs a{padding:11px 20px;border:1px solid #bfd0df;border-radius:8px;background:#fff;color:#173a59;font-weight:800;text-decoration:none}.admin-tabs a.active{border-color:#0065bd;background:#0065bd;color:#fff}.existing-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.existing-images h3{grid-column:1/-1}.existing-image{display:grid;gap:8px;padding:12px;border:1px solid #dce5ec;border-radius:9px}.existing-image img{width:100%;height:120px;object-fit:contain;background:#fff}.existing-image input:not([type=checkbox]){width:100%;padding:9px;border:1px solid #c9d6df;border-radius:6px}.translation-form>.button-translate{grid-column:1/-1;justify-self:start}.translation-form>.translate-status{grid-column:1/-1}
.project-upload{padding:20px;border:1px solid #cbd9e4;border-radius:12px;background:#f7fafc}.project-upload-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.project-upload-head h3{margin:0 0 4px}.project-upload-head p{margin:0;color:#5e7080}.project-file-button{position:relative;flex:0 0 auto;cursor:pointer}.project-file-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.project-image-previews{display:grid;gap:14px}.project-upload-empty{margin:0;padding:18px;border:1px dashed #b9cbd8;border-radius:9px;text-align:center;color:#657887}.project-image-preview{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;padding:14px;border:1px solid #d7e2e9;border-radius:10px;background:#fff}.project-image-preview>img{width:180px;height:140px;object-fit:contain;border-radius:7px;background:#eef3f6}.project-image-preview-fields{display:grid;align-content:center;gap:9px}.project-image-preview-fields label{display:grid;gap:4px;font-weight:700}.project-image-preview-fields input{width:100%;padding:10px;border:1px solid #c9d6df;border-radius:7px}@media(max-width:680px){.project-upload-head{align-items:stretch;flex-direction:column}.project-image-preview{grid-template-columns:1fr}.project-image-preview>img{width:100%;height:190px}}
.translate-bottom{grid-column:1/-1;margin-top:8px;padding:18px;border:1px solid #bdd3e3;border-radius:10px;background:#f0f7fb}.translate-bottom p{margin:0 0 12px;color:#4e6576}.translate-bottom .button-translate{margin-right:12px}.translate-bottom .translate-status{display:inline-block;vertical-align:middle}
.form-grid>.wide{grid-column:1/-1;width:100%}.project-dates{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:18px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.project-ongoing{grid-column:1/-1;display:flex!important;grid-template-columns:none!important;align-items:center;gap:10px!important}.project-ongoing input{width:auto}.project-dates.is-ongoing .project-end-date{opacity:.48}.project-dates.is-ongoing .project-end-date input{background:#eef2f5}@media(max-width:600px){.project-dates{grid-template-columns:1fr}}
.order-actions{display:flex;gap:5px}.order-actions form{margin:0}.order-actions button{border:1px solid #bfd1dc;background:#fff;color:#173348;border-radius:7px;padding:5px 9px;cursor:pointer}.order-actions button:hover{border-color:#0072ce;color:#0072ce}
.form-grid label.active-account{display:flex;align-items:center;justify-content:flex-start;gap:11px;width:max-content;padding:12px 15px;border:1px solid var(--line);border-radius:9px;background:#f7fafc}.active-account input{width:18px;height:18px;margin:0;accent-color:var(--blue2)}
.news-item.user-row{grid-template-columns:minmax(0,1fr) auto;padding:18px 20px;gap:22px}.user-identity{display:grid;grid-template-columns:minmax(150px,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:24px}.user-identity h3{grid-column:1;grid-row:1;margin:0;font-size:18px}.user-identity>p{grid-column:1;grid-row:2;margin:2px 0 0;color:var(--muted)}.user-identity .user-badges{grid-column:2;grid-row:1/3;justify-content:flex-end}.user-row-actions{justify-content:flex-end}
@media(max-width:700px){.news-item.user-row{grid-template-columns:1fr}.user-identity{grid-template-columns:1fr}.user-identity h3,.user-identity>p,.user-identity .user-badges{grid-column:1;grid-row:auto}.user-identity .user-badges{justify-content:flex-start;margin-top:8px}.user-row-actions{justify-content:flex-start}}
.model-file-remove{display:block;margin:12px auto 0;border:1px solid #d4a6a6;border-radius:8px;padding:8px 12px;background:#fff;color:var(--danger);font-weight:700;cursor:pointer}.model-file-remove:hover{background:#fff0f0}.model-file-remove[hidden],.upload-progress[hidden],.upload-progress-label[hidden]{display:none}.upload-progress{height:10px;margin-top:18px;overflow:hidden;border-radius:99px;background:#d9e6ee}.upload-progress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue2),#1597d4);transition:width .15s linear}.upload-progress-label{display:block;margin-top:8px;color:var(--blue);font-size:14px}.model-drop.uploading{cursor:wait;pointer-events:none}.form-actions button:disabled{cursor:wait;opacity:.65}
.model-stepper{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:8px 0 18px;padding:0;list-style:none}.model-stepper li{position:relative;display:flex;align-items:center;gap:9px;color:#7a8a97;font-weight:700}.model-stepper li:not(:last-child)::after{content:"";position:absolute;z-index:0;left:38px;right:8px;top:17px;height:2px;background:#d7e2e9}.model-stepper b{position:relative;z-index:1;display:grid;place-items:center;width:34px;height:34px;border:2px solid #c7d5de;border-radius:50%;background:#fff;color:#6d7f8c}.model-stepper .active{color:var(--blue2)}.model-stepper .active b{border-color:var(--blue2);background:var(--blue2);color:#fff}.model-stepper .done b{border-color:#3b9160;background:#e3f5ea;color:#247247}.model-stepper .done:not(:last-child)::after{background:#7ebd98}.model-wizard-step{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:18px}.model-wizard-step[hidden]{display:none}.model-stage-upload,.model-stage-next{grid-column:1/-1;margin-top:4px}.model-review{grid-column:1/-1;padding:22px;border:1px solid #c7dce9;border-radius:12px;background:#f2f8fc}.model-review h2{font-size:24px}.model-review p:last-child{margin-bottom:0;color:var(--muted)}
@media(max-width:700px){.model-stepper{gap:8px}.model-stepper li{display:grid;justify-items:center;text-align:center;font-size:12px}.model-stepper li::after{display:none}.model-wizard-step{grid-template-columns:1fr}}
.model-stepper span{position:relative;z-index:1;padding-right:10px;background:#fff}
.admin-header .button-quiet:hover,.admin-header .button-quiet:focus{background:#eaf4fb;color:#123a63;box-shadow:0 0 0 2px rgba(255,255,255,.45)}
.user-identity>p{white-space:nowrap}.user-identity{grid-template-columns:minmax(220px,1fr) auto}
@media(max-width:700px){.user-identity>p{white-space:normal}.user-identity{grid-template-columns:1fr}}
.news-item.user-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:18px}.user-identity{display:block;min-width:0}.user-identity h3{margin:0;font-size:18px;overflow-wrap:anywhere}.user-identity>p{margin:3px 0 0;white-space:normal;color:var(--muted)}.user-identity .user-badges{justify-content:flex-start;margin-top:11px}.user-badge{white-space:nowrap}.user-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.user-row-actions form{display:block;grid-column:auto}.news-panel .news-item:not(.user-row){grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:16px;padding:14px 16px}.news-panel .news-item:not(.user-row)>div:not(.news-actions){min-width:0}.news-panel .news-item:not(.user-row) h3{margin:7px 0 4px;font-size:17px;overflow-wrap:anywhere}.news-panel .news-item:not(.user-row) small{margin:3px 0}.news-panel .news-item:not(.user-row)>div:not(.news-actions)>a{display:inline-block;margin-top:7px}.news-panel .news-item:not(.user-row) .news-actions{justify-content:flex-end;flex-wrap:wrap}.news-panel .news-item:not(.user-row) .order-actions{flex:0 0 100%;justify-content:flex-end}.news-panel .news-item:not(.user-row) .order-actions form{grid-column:auto}
@media(max-width:1180px){.admin-grid{grid-template-columns:1fr}.news-panel .news-item:not(.user-row){grid-template-columns:76px minmax(0,1fr) auto}}
@media(max-width:680px){.news-item.user-row{grid-template-columns:1fr}.user-row-actions{justify-content:flex-start}.news-panel .news-item:not(.user-row){grid-template-columns:58px minmax(0,1fr)}.news-panel .news-item:not(.user-row) img{width:58px;height:54px}.news-panel .news-item:not(.user-row) .news-actions{grid-column:1/-1;justify-content:flex-start;padding-top:10px;border-top:1px solid var(--line)}.news-panel .news-item:not(.user-row) .order-actions{flex:0 0 auto;justify-content:flex-start}}
.news-panel .news-item:not(.user-row){grid-template-columns:minmax(150px,1fr) auto}.news-panel .news-item:not(.user-row):has(>img){grid-template-columns:76px minmax(150px,1fr) auto}.news-panel .news-item:not(.user-row) .order-actions{flex:0 0 auto}.news-panel .news-item:not(.user-row) .news-actions{max-width:none;flex-wrap:nowrap}
@media(max-width:680px){.news-panel .news-item:not(.user-row),.news-panel .news-item:not(.user-row):has(>img){grid-template-columns:1fr}.news-panel .news-item:not(.user-row):has(>img){grid-template-columns:58px minmax(0,1fr)}.news-panel .news-item:not(.user-row):has(>img) .news-actions{grid-column:1/-1}.news-panel .news-item:not(.user-row) .news-actions{max-width:none}}
.status-edit{background:#fff3d8!important;color:#805800!important}.create-thumbnail-link{border-color:#9acdaf;background:#eff9f3;color:#176b4d;white-space:nowrap}.create-thumbnail-link:hover{background:#dff2e6;color:#10523a}.news-panel .news-item:not(.user-row) .news-actions{flex-wrap:wrap}
.model-kind-chooser{display:flex;grid-column:1/-1;flex-wrap:wrap;justify-content:stretch;align-items:stretch;width:100%;max-width:none;margin:0;box-sizing:border-box;gap:12px;text-align:center;font-family:inherit}.model-kind-chooser legend{flex:0 0 100%;width:100%;margin-bottom:8px;text-align:center;font-family:inherit;font-size:16px;font-weight:700}.model-kind-chooser label{display:flex!important;flex:1 1 calc(50% - 6px);align-items:center;justify-content:center;gap:9px;min-width:0;padding:18px 16px;border:1px solid #cbdce7;border-radius:11px;background:#f7fafc;font-family:inherit;box-sizing:border-box}.model-kind-chooser input{width:auto!important;margin:0}.translation-form .notice{display:none}@media(max-width:620px){.model-kind-chooser label{flex-basis:100%}}

/* Stav zpracování 3D modelů je vpravo a průběžně se aktualizuje. */
.news-panel .news-item{align-items:center}
.news-panel .model-status-wrap{display:flex;align-self:flex-start;justify-content:flex-end;margin-left:auto}
.news-panel .status{display:inline-flex!important;align-items:center;gap:7px;padding:6px 10px!important;border-radius:999px!important;font-size:12px!important;font-weight:800!important;white-space:nowrap}
.news-panel .status-processing{background:#fff2cc!important;color:#765800!important}
.news-panel .status-published{background:#dff4e8!important;color:#17673b!important}
.news-panel .status-ready{background:#e3f2fc!important;color:#075b96!important}
.news-panel .status-error{background:#fde7e7!important;color:#a11d1d!important}
.news-panel .status-edit{background:#eef1f3!important;color:#455866!important}
.news-panel .model-status-progress{font-variant-numeric:tabular-nums}
@media(max-width:760px){.news-panel .model-status-wrap{justify-content:flex-start;margin:8px 0 0}}

/* Karta 3D modelu má oproti novinkám navíc stavový štítek (.model-status-wrap),
   takže by .news-actions vypadly do úzkého prvního sloupce gridu pod náhledem.
   Akce proto dostávají vlastní celořádkový pruh a jednotně velká tučná tlačítka. */
.news-panel .news-item:not(.user-row):has(.model-status-wrap) .news-actions{grid-column:1/-1;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:8px;margin-top:4px;padding-top:12px;border-top:1px solid var(--line)}
.news-panel .news-item:not(.user-row):has(.model-status-wrap) .news-actions .edit,
.news-panel .news-item:not(.user-row):has(.model-status-wrap) .news-actions .delete{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:15px;font-weight:700;line-height:1.2;padding:9px 14px;border-radius:7px}

/* Filtr seznamu 3D modelů a správce kategorií. */
.model-list-filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 4px}
.model-list-filter input[type=search]{flex:1 1 200px;min-width:160px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;font:inherit}
.model-list-filter select{flex:0 1 auto;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:#fff;font:inherit}
.model-filter-count{flex-basis:100%;color:var(--muted);font-size:13px}
.category-manager{margin-top:26px;padding-top:18px;border-top:1px solid var(--line)}
.category-manager h3{margin:0 0 10px;font-size:16px}
.category-manager-list{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:6px}
.category-manager-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#f8fbfd}
.category-manager-list li em{color:var(--muted);font-style:normal;font-size:13px}
.category-manager-list li form{margin:0}
.category-manager-empty{color:var(--muted)}
.category-manager-add{display:flex;flex-wrap:wrap;gap:8px}
.category-manager-add input{flex:1 1 160px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;font:inherit}
