:root{--portal-navy:#10213e;--portal-blue:#2f6fed;--portal-accent:var(--portal-blue);--portal-bg:#f3f6fb;--portal-line:#dfe6f1;--portal-text:#172033;--portal-muted:#6d7789;--portal-green:#16845b;--portal-radius:15px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--portal-text)}*{box-sizing:border-box}body{margin:0;background:var(--portal-bg);color:var(--portal-text)}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit;color:inherit}.portal-topbar{position:sticky;top:0;z-index:30;height:76px;border-bottom:1px solid var(--portal-line);background:#fff}.portal-topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1320px;height:100%;margin:auto;padding:0 38px}.portal-brand,.portal-user-menu{display:flex;align-items:center;gap:11px;min-width:0}.portal-brand-mark,.portal-brand-logo{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:13px;background:linear-gradient(145deg,#4384ff,#174fc2);box-shadow:0 10px 28px rgba(47,111,237,.3);color:#fff;font-size:22px;font-weight:900;overflow:hidden}.portal-brand-logo{background:#fff;border:1px solid var(--portal-line);box-shadow:none}.portal-brand-logo img{width:100%;height:100%;object-fit:contain}.portal-brand-copy{display:grid;gap:2px;min-width:0}.portal-brand-copy strong{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.portal-brand-copy small,.portal-page-subtitle,.portal-muted{color:var(--portal-muted);font-size:12px}.portal-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e8f0ff;color:#2d63c5;font-size:13px;font-weight:850}.portal-user-name{font-size:13px;font-weight:750}.portal-user-menu form{margin:0}.portal-logout,.portal-text-action{border:0;background:transparent;color:var(--portal-blue);cursor:pointer;font-size:12px;font-weight:800}.portal-main{max-width:1320px;margin:auto;padding:32px 38px 52px}.portal-flash{padding:12px 15px;margin:0 0 18px;border:1px solid;border-radius:10px;font-size:14px}.portal-flash.success{border-color:#bce8d4;background:#e8f8f1;color:#126b4b}.portal-flash.error{border-color:#f5c2c2;background:#fff0f0;color:#a22727}.portal-page-heading,.portal-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:24px}.portal-page-heading h1,.portal-project-hero h1{margin:0;font-size:34px;letter-spacing:-.035em}.portal-page-heading p{margin:0}.portal-eyebrow{margin:0 0 7px;color:var(--portal-muted);font-size:11px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.portal-count{padding:8px 11px;border-radius:999px;background:#e8f0ff;color:#285fbf;font-size:11px;font-weight:850;white-space:nowrap}.portal-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.portal-project-card{position:relative;overflow:hidden;border:1px solid var(--portal-line);border-radius:var(--portal-radius);background:#fff;box-shadow:0 6px 20px rgba(23,45,80,.05);transition:transform .16s,box-shadow .16s}.portal-project-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(23,45,80,.12)}.portal-project-art{position:relative;display:grid;place-items:center;height:126px;background:linear-gradient(135deg,#e7effd,#d9e8ff);overflow:hidden}.portal-project-art>img{width:100%;height:100%;object-fit:cover}.portal-project-art>span:first-child{color:#3772d5;font-size:42px;font-weight:900}.portal-project-art .portal-status{position:absolute;right:12px;top:12px}.portal-project-card-body{padding:17px}.portal-project-number,.portal-address{color:var(--portal-muted);font-size:11px}.portal-project-card h2{margin:5px 0 7px;font-size:17px;line-height:1.25}.portal-address{min-height:18px;margin:0 0 15px}.portal-card-progress{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}.portal-card-progress strong{font-size:12px}.portal-progress{height:7px;overflow:hidden;border-radius:99px;background:#e5ebf3}.portal-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--portal-accent),#65a2ff)}.portal-card-meta{display:flex;justify-content:space-between;gap:10px;margin-top:8px;color:var(--portal-muted);font-size:10px}.portal-card-arrow{position:absolute;right:17px;bottom:13px;color:var(--portal-blue);font-size:22px}.portal-empty-state,.portal-empty-inline{display:grid;justify-items:center;gap:8px;padding:46px 22px;border:1px dashed #c9d5e4;border-radius:var(--portal-radius);background:rgba(255,255,255,.72);color:var(--portal-muted);text-align:center}.portal-empty-state h2{margin:0;color:var(--portal-text);font-size:18px}.portal-empty-state p{margin:0;font-size:13px}.portal-empty-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#e8f0ff;color:#2d63c5;font-size:25px}.portal-back{display:inline-flex;margin-bottom:16px;color:var(--portal-blue);font-size:13px;font-weight:800}.portal-project-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:27px 28px;border:1px solid var(--portal-line);border-radius:18px;background:linear-gradient(125deg,#fff,#eef4fd)}.portal-project-hero p{margin:0;color:var(--portal-muted);font-size:13px}.portal-project-progress{width:min(260px,100%)}.portal-project-progress>div:first-child{display:flex;align-items:baseline;gap:7px;margin-bottom:11px}.portal-project-progress strong{font-size:29px}.portal-project-progress span{color:var(--portal-muted);font-size:12px}.portal-tabs{display:flex;gap:3px;overflow-x:auto;margin:22px 0 24px;border-bottom:1px solid var(--portal-line);scrollbar-width:none}.portal-tabs a{padding:12px 13px 11px;border-bottom:3px solid transparent;color:var(--portal-muted);font-size:12px;font-weight:800;white-space:nowrap}.portal-tabs a.active{border-color:var(--portal-accent);color:var(--portal-accent)}.portal-panel{display:none}.portal-panel.active{display:block}.portal-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.portal-stats article,.portal-card{padding:18px;border:1px solid var(--portal-line);border-radius:13px;background:#fff;box-shadow:0 5px 18px rgba(23,45,80,.04)}.portal-stats article{display:grid;align-content:start;gap:8px;min-height:102px}.portal-stats small{color:var(--portal-muted);font-size:10px;font-weight:800;text-transform:uppercase}.portal-stats strong{font-size:15px}.portal-stats a{color:var(--portal-blue);font-size:11px;word-break:break-word}.portal-status{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:5px 8px;border-radius:999px;background:#eef0f4;color:#596477;font-size:10px;font-weight:850;white-space:nowrap}.portal-status.active,.portal-status.accepted,.portal-status.approved,.portal-status.paid,.portal-status.completed{background:#e5f7ef;color:#16845b}.portal-status.planned,.portal-status.sent{background:#e8f0ff;color:#285fbf}.portal-status.on_hold,.portal-status.partially_paid{background:#fff5d8;color:#936500}.portal-status.overdue,.portal-status.rejected,.portal-status.cancelled{background:#fff0f0;color:#a22727}.portal-content-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.7fr);gap:16px;margin-top:16px}.portal-card header{margin-bottom:12px}.portal-card h2{margin:0;font-size:18px}.portal-activity{display:grid}.portal-activity a{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 0;border-top:1px solid #e8edf4}.portal-activity a:hover{background:#f7faff}.portal-activity-icon,.portal-resource-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#e8f0ff;color:#2d63c5;font-size:11px;font-weight:900}.portal-activity a span:nth-child(2){display:grid;gap:3px;min-width:0}.portal-activity small,.portal-activity time{color:var(--portal-muted);font-size:10px}.portal-activity strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.portal-attention-card{display:flex;flex-direction:column;align-items:flex-start}.portal-attention-card>strong{color:var(--portal-accent);font-size:46px;line-height:1}.portal-attention-card>p:not(.portal-eyebrow){margin:8px 0 15px;color:var(--portal-muted);font-size:12px;line-height:1.5}.portal-button{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:9px 13px;border:1px solid transparent;border-radius:9px;cursor:pointer;font-size:12px;font-weight:850}.portal-button.primary{border-color:var(--portal-accent);background:var(--portal-accent);color:#fff}.portal-button.secondary{border-color:#d5deea;background:#fff;color:var(--portal-text)}.portal-button.danger{border-color:#f1c4ca;background:#fff;color:#a22727}.portal-section-heading{align-items:flex-start}.portal-section-heading h2{max-width:760px;margin:0;color:var(--portal-muted);font-size:13px;font-weight:500;line-height:1.45}.portal-resource-list{overflow:hidden;border:1px solid var(--portal-line);border-radius:13px;background:#fff}.portal-resource-list article{display:grid;grid-template-columns:38px minmax(160px,1fr) auto auto;align-items:center;gap:13px;padding:13px 16px;border-bottom:1px solid #e8edf4}.portal-resource-list article:last-child{border-bottom:0}.portal-resource-icon{width:38px;height:38px;font-size:15px}.portal-resource-list article>div:nth-child(2){display:grid;gap:4px;min-width:0}.portal-resource-list strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.portal-resource-list small{overflow:hidden;color:var(--portal-muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.portal-resource-actions{display:flex;align-items:center;gap:9px}.portal-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.portal-gallery a{overflow:hidden;border:1px solid var(--portal-line);border-radius:13px;background:#fff;box-shadow:0 5px 18px rgba(23,45,80,.04)}.portal-gallery img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.portal-gallery span{display:grid;gap:4px;padding:11px}.portal-gallery strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.portal-gallery small{color:var(--portal-muted);font-size:10px}.portal-timeline,.portal-diary,.portal-messages{display:grid;gap:11px}.portal-timeline article,.portal-diary article{display:grid;grid-template-columns:13px minmax(0,1fr) auto;align-items:start;gap:12px;padding:15px 17px;border:1px solid var(--portal-line);border-radius:13px;background:#fff}.portal-timeline-dot{width:10px;height:10px;margin-top:4px;border-radius:50%;background:var(--portal-accent)}.portal-timeline article>div:nth-child(2){display:grid;gap:8px}.portal-timeline strong,.portal-diary strong{font-size:13px}.portal-timeline small,.portal-diary small{color:var(--portal-muted);font-size:10px}.portal-diary article{grid-template-columns:92px minmax(0,1fr)}.portal-diary time{color:var(--portal-accent);font-size:12px;font-weight:850}.portal-diary article>div{display:grid;gap:5px}.portal-diary p{margin:3px 0 0;font-size:12px;line-height:1.5}.portal-message-layout{display:grid;grid-template-columns:minmax(280px,.65fr) minmax(0,1.35fr);gap:16px}.portal-message-form{display:grid;align-content:start;gap:14px;padding:17px;border:1px solid var(--portal-line);border-radius:13px;background:#fff}.portal-message-form label{display:grid;gap:7px;font-size:12px;font-weight:800}.portal-message-form textarea,.portal-approval-list textarea{width:100%;min-height:118px;padding:11px 12px;resize:vertical;border:1px solid #ced8e5;border-radius:9px;outline:0;background:#fff}.portal-message-form textarea:focus,.portal-approval-list textarea:focus{border-color:var(--portal-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--portal-accent) 12%,transparent)}.portal-file-input small{color:var(--portal-muted);font-weight:400}.portal-messages{align-content:start}.portal-messages article{max-width:78%;padding:12px 14px;border:1px solid var(--portal-line);border-radius:13px;background:#fff}.portal-messages article.incoming{justify-self:end;border-color:#cbdcf8;background:#edf4ff}.portal-messages small{color:var(--portal-muted);font-size:10px}.portal-messages p{margin:5px 0 0;font-size:12px;line-height:1.5}.portal-approval-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.portal-approval-list article{display:grid;align-content:start;gap:13px;padding:18px;border:1px solid var(--portal-line);border-radius:13px;background:#fff}.portal-approval-list h3,.portal-approval-list p{margin:0}.portal-approval-list h3{font-size:16px}.portal-approval-list p,.portal-approval-list small{color:var(--portal-muted);font-size:12px}.portal-approval-list form{display:grid;gap:9px}.portal-approval-list form label{display:grid;gap:6px;font-size:11px;font-weight:850}.portal-approval-list textarea{min-height:78px}.portal-approval-actions,.portal-dialog-actions{display:flex;justify-content:flex-end;gap:8px}.portal-confirm{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:20px;background:rgba(7,18,35,.62)}.portal-confirm[hidden]{display:none}.portal-dialog{width:min(430px,100%);padding:25px;border-radius:18px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.35)}.portal-dialog-icon{display:grid;place-items:center;width:36px;height:36px;margin-bottom:13px;border-radius:11px;background:#fff0d5;color:#936500;font-weight:900}.portal-dialog h2{margin:0;font-size:19px}.portal-dialog p{color:var(--portal-muted);font-size:13px;line-height:1.5}.portal-viewer-page{height:100vh;overflow:hidden}.portal-viewer-page .portal-main{display:flex;flex-direction:column;max-width:none;height:calc(100vh - 76px);padding:20px 28px}.portal-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.portal-viewer-title{display:grid;gap:2px;min-width:0}.portal-viewer-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-viewer-title small{color:var(--portal-muted);font-size:11px}.portal-pdf-frame{flex:1;width:100%;min-height:0;border:1px solid var(--portal-line);border-radius:13px;background:#fff}.portal-auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 10%,#284d82 0,transparent 35%),linear-gradient(135deg,#0b172b,#132b4d 55%,#0d1d35)}.portal-auth-layout{display:grid;grid-template-columns:minmax(320px,1fr) minmax(360px,460px);align-items:center;gap:7vw;width:min(1120px,100%)}.portal-auth-intro{color:#dce8fa}.portal-auth-intro .portal-brand-mark{margin-bottom:30px}.portal-auth-intro h1{margin:0 0 18px;color:#fff;font-size:54px;line-height:1.02;letter-spacing:-.05em}.portal-auth-intro p{max-width:520px;color:#b8c9e3;font-size:18px;line-height:1.65}.portal-auth-card{padding:34px;border:1px solid rgba(255,255,255,.7);border-radius:22px;background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.3)}.portal-auth-card h2{margin:0;font-size:27px}.portal-auth-card>p{color:var(--portal-muted);font-size:13px;line-height:1.5}.portal-auth-card form{display:grid;gap:16px;margin-top:24px}.portal-auth-card label{display:grid;gap:7px;font-size:13px;font-weight:800}.portal-auth-card input{height:44px;padding:0 12px;border:1px solid #ced8e5;border-radius:9px;outline:0;background:#fbfcfe}.portal-auth-card input:focus{border-color:var(--portal-blue);box-shadow:0 0 0 4px rgba(47,111,237,.1)}.portal-auth-card .portal-button{width:100%;margin-top:3px}.portal-auth-link{display:block;margin-top:17px;color:var(--portal-blue);font-size:12px;font-weight:800;text-align:center}@media(max-width:1040px){.portal-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.portal-auth-layout{grid-template-columns:1fr;max-width:500px}.portal-auth-intro{display:none}}@media(max-width:760px){.portal-topbar{height:66px}.portal-topbar-inner,.portal-main{padding-left:18px;padding-right:18px}.portal-user-name{display:none}.portal-brand-copy small{display:none}.portal-page-heading{align-items:flex-start;flex-direction:column;margin-bottom:18px}.portal-project-grid,.portal-stats,.portal-gallery,.portal-approval-list{grid-template-columns:1fr}.portal-project-hero{align-items:stretch;flex-direction:column;padding:21px}.portal-content-grid,.portal-message-layout{grid-template-columns:1fr}.portal-resource-list article{grid-template-columns:38px minmax(0,1fr)}.portal-resource-list .portal-status,.portal-resource-list .portal-resource-actions{grid-column:2}.portal-resource-actions{justify-content:flex-start}.portal-timeline article{grid-template-columns:13px minmax(0,1fr)}.portal-timeline .portal-status{grid-column:2}.portal-diary article{grid-template-columns:1fr}.portal-viewer-page .portal-main{height:calc(100vh - 66px);padding:12px}.portal-viewer-head{align-items:flex-start}.portal-viewer-title{display:none}.portal-viewer-head .portal-button{padding:8px 10px}.portal-auth-card{padding:27px}.portal-approval-actions{flex-direction:column}.portal-approval-actions .portal-button{width:100%}}@media(max-width:420px){.portal-user-menu{gap:7px}.portal-logout{font-size:11px}.portal-card-meta{align-items:flex-start;flex-direction:column;gap:3px}}
/* Client portal project conversation */
.portal-message-form-title{display:grid;gap:3px}.portal-message-form-title strong{font-size:15px}.portal-message-form-title small{color:var(--portal-muted);font-size:10px;font-weight:500;line-height:1.45}.portal-conversation{align-content:start;max-height:620px;padding:14px;overflow:auto;border:1px solid var(--portal-line);border-radius:13px;background:#f8fafd}.portal-conversation article{display:grid;gap:7px}.portal-conversation article.incoming{justify-self:end;border-color:#cbdcf8;background:#edf4ff}.portal-conversation article.outgoing{justify-self:start;background:#fff}.portal-message-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}.portal-message-meta strong{font-size:10px}.portal-message-attachments{display:grid;gap:6px}.portal-message-attachments a{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:7px;padding:8px 9px;border:1px solid #dce5f1;border-radius:9px;background:rgba(255,255,255,.85)}.portal-message-attachments a span{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#e8f0ff;color:#2d63c5;font-weight:900}.portal-message-attachments a strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.portal-message-attachments a small,.portal-message-state{color:var(--portal-muted);font-size:9px}.portal-message-state{text-align:right}@media(max-width:760px){.portal-conversation{max-height:none}.portal-conversation article{max-width:92%}}

/* Localized custom file picker: do not expose browser-native localized text. */
.portal-file-input{display:grid;gap:7px}.portal-file-label{font-size:12px;font-weight:800}.portal-file-control{position:relative;display:flex;align-items:center;min-width:0;min-height:42px;overflow:hidden;border:1px solid #ced8e5;border-radius:9px;background:#fff;cursor:pointer}.portal-file-button{flex:none;margin:5px 8px 5px 5px;padding:7px 11px;border-radius:7px;background:#edf3fb;color:#17345d;font-size:11px;font-weight:850;line-height:1.15}.portal-file-name{min-width:0;overflow:hidden;padding-right:12px;color:var(--portal-muted);font-size:11px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.portal-file-name.has-file{color:var(--portal-text);font-weight:700}.portal-native-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.portal-file-control:focus-within{border-color:var(--portal-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--portal-accent) 12%,transparent)}

/* Update 142: official Stavix brand assets */
.portal-auth-brand-logo{display:block;width:min(330px,82%);height:auto;max-height:150px;object-fit:contain;object-position:left center}
.portal-brand-mark-image{padding:0;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
.portal-brand-mark-image img{display:block;width:42px;height:42px;object-fit:contain;border-radius:12px}
@media(max-width:760px){.portal-auth-brand-logo{width:min(270px,78%);margin-inline:auto;object-position:center}}


/* Update 144: transparent high-resolution Stavix wordmark on portal auth */
.portal-auth-logo-link{display:inline-block;max-width:100%;line-height:0}
.portal-auth-brand-logo{display:block;width:min(410px,92%);height:auto;max-height:190px;object-fit:contain;object-position:left center}
.portal-login-site-link{display:flex;align-items:center;justify-content:center;gap:6px;width:max-content;margin:15px auto 0;color:var(--portal-blue);font-size:12px;font-weight:800;text-decoration:none}
.portal-login-site-link:hover{text-decoration:underline}
@media(max-width:760px){.portal-auth-brand-logo{width:min(330px,82%);margin-inline:auto;object-position:center}}

/* Update 189: client portal drawings and change orders */
.portal-change-order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.portal-change-order-head h1{margin:4px 0 8px}.portal-change-order-items{margin-top:16px}.portal-table-wrap{overflow:auto}.portal-table{width:100%;border-collapse:collapse}.portal-table th,.portal-table td{padding:10px 12px;border-bottom:1px solid var(--portal-line);text-align:left;font-size:12px}.portal-change-order-summary{display:flex;justify-content:flex-end;padding-top:16px}.portal-change-order-decision{margin-top:16px}.portal-change-order-decision textarea{width:100%;min-height:90px;margin:10px 0;padding:10px;border:1px solid var(--portal-line);border-radius:9px}.portal-drawing-preview{display:flex;flex:1;min-height:0}
/* 209.64.34 — Zmenový list ako plnohodnotný dokument. */
.portal-change-order-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.portal-change-order-context{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.portal-change-order-context article{display:grid;gap:5px;padding:12px 14px;border:1px solid var(--portal-line);border-radius:10px;background:#f8fafc}.portal-change-order-context small{color:var(--portal-muted);font-size:10px;font-weight:700}.portal-change-order-context strong{color:var(--portal-text);font-size:12px}.portal-change-order-detail-table td:nth-child(n+3){white-space:nowrap}.portal-change-order-detail-table td:nth-child(2) strong,.portal-change-order-detail-table td:nth-child(2) small{display:block}.portal-change-order-detail-table td:nth-child(2) small{margin-top:3px;color:var(--portal-muted)}.portal-change-order-detail-table .positive{color:#14704e;font-weight:700}.portal-change-order-detail-table .negative{color:#b42318;font-weight:700}
@media(max-width:760px){.portal-change-order-head{flex-direction:column}.portal-change-order-head-actions{justify-content:flex-start}.portal-change-order-context{grid-template-columns:1fr}}
