/* Moja zgrada — canonical component layer. Loaded last on every application surface. */
:root{
 --ds-space-1:4px;--ds-space-2:8px;--ds-space-3:12px;--ds-space-4:16px;--ds-space-5:20px;--ds-space-6:24px;--ds-space-8:32px;
 --ds-control-h:42px;--ds-control-sm:34px;--ds-radius:12px;--ds-radius-lg:16px;
 --ds-primary:var(--brand-primary);--ds-secondary:var(--brand-secondary);--ds-accent:var(--brand-accent);
 --ds-primary-soft:rgba(var(--brand-primary-rgb),.10);--ds-focus:0 0 0 3px rgba(var(--brand-primary-rgb),.15);
}
.mz-shell button,.mz-shell input,.mz-shell select,.mz-shell textarea{font:inherit}
.mz-shell .content{min-width:0}.mz-shell .page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ds-space-5);margin:var(--ds-space-6) 0 var(--ds-space-5)}
.mz-shell .page-head>div{min-width:0}.mz-shell .page-head h1{margin:2px 0 5px;line-height:1.14}.mz-shell .page-subtitle{max-width:780px;margin:0;line-height:1.55}
.mz-shell .eyebrow{margin:0 0 3px}.mz-shell .card{margin:0;padding:var(--ds-space-5)}.mz-shell .section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ds-space-4);margin:0 0 var(--ds-space-4);padding:0 0 var(--ds-space-4)}
.mz-shell .section-head h2,.mz-shell .section-head h3,.mz-shell .section-head p{margin:0}.mz-shell .section-head p{margin-top:4px;line-height:1.45}
.mz-shell .btn,.mz-shell button.btn,.mz-shell a.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:0;height:var(--ds-control-h)!important;min-height:var(--ds-control-h)!important;margin:0;padding:0 15px!important;border-radius:10px!important;font-size:12px!important;line-height:1!important;white-space:nowrap;text-decoration:none;vertical-align:middle}
.mz-shell .btn-small,.mz-shell .btn.btn-small{height:var(--ds-control-sm)!important;min-height:var(--ds-control-sm)!important;padding:0 11px!important;font-size:10px!important}
.mz-shell .action-btn{display:inline-grid;place-items:center;flex:0 0 var(--ds-control-sm);width:var(--ds-control-sm)!important;height:var(--ds-control-sm)!important;min-height:var(--ds-control-sm)!important;padding:0!important;border-radius:9px!important;text-decoration:none}
.mz-shell input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),.mz-shell select{width:100%;height:var(--ds-control-h)!important;min-height:var(--ds-control-h)!important;margin:0;padding:0 12px!important;font-size:12px;line-height:normal}
.mz-shell textarea{width:100%;min-height:96px;margin:0;padding:11px 12px!important;font-size:12px;line-height:1.5}.mz-shell .form-group{display:grid;align-content:start;gap:7px;margin:0}.mz-shell .form-group>label{margin:0;color:var(--ui-text);font-size:11px;font-weight:750}.mz-shell .form-group>small{margin:0;color:var(--ui-text-faint);font-size:10px;line-height:1.45}
.mz-shell .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ds-space-4)}.mz-shell .form-span-2{grid-column:1/-1}.mz-shell .form-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--ds-space-2)}
.mz-shell details>summary{outline:0}.mz-shell .badge,.mz-shell .section-count{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:0 9px;white-space:nowrap}
.mz-shell .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--ds-space-4)}.mz-shell .topbar-left{display:grid;grid-template-columns:max-content minmax(220px,520px);align-items:center;gap:var(--ds-space-4);min-width:0}.mz-shell .topbar-title{white-space:nowrap}.mz-shell .admin-topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.mz-shell .topbar-search{display:grid!important;grid-template-columns:18px minmax(0,1fr) 28px;align-items:center;width:100%!important;height:var(--ds-control-h)!important;min-height:var(--ds-control-h)!important;padding:0 8px 0 12px!important;overflow:visible}
.mz-shell .topbar-search input,.mz-shell .topbar-search input:focus{grid-column:2;width:100%!important;height:40px!important;min-height:40px!important;padding:0!important;border:0!important;box-shadow:none!important;line-height:40px!important}.mz-shell .topbar-search>i{grid-column:1;position:static!important;transform:none!important}.mz-shell .topbar-search .live-search-clear{grid-column:3;position:static!important;display:grid!important;place-items:center;width:28px!important;height:28px!important;min-height:28px!important;margin:0!important;padding:0!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--ui-text-faint)!important;transform:none!important}.mz-shell .topbar-search .live-search-clear:hover{background:var(--ui-surface-soft)!important;color:var(--ui-text)!important}
.mz-shell .theme-toggle,.mz-shell .notification-bell,.mz-shell .admin-message-notifications>summary{display:grid;place-items:center;flex:0 0 var(--ds-control-h);width:var(--ds-control-h)!important;height:var(--ds-control-h)!important;min-height:var(--ds-control-h)!important;margin:0;padding:0!important;border-radius:10px!important}
.mz-shell .cu-language-switcher select{width:auto!important;min-width:126px;height:var(--ds-control-h)!important;padding:0 30px 0 10px!important}.mz-shell .topbar-user{display:flex;align-items:center;gap:8px;min-width:0}.mz-shell .topbar-user strong{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mz-shell table{width:100%;table-layout:auto}.mz-shell th,.mz-shell td{line-height:1.4}.mz-shell .table-wrap{max-width:100%}.mz-shell .empty-state{min-height:170px;padding:var(--ds-space-8);text-align:center}
.mz-shell .communication-shell{display:grid}.mz-shell .conversation-directory-tabs{background:var(--ui-surface-soft)!important}.mz-shell .conversation-directory-tabs button{height:38px;color:var(--ui-text-soft)!important}.mz-shell .conversation-directory-tabs button.is-active{background:var(--ui-surface)!important;color:var(--brand-primary)!important}.mz-shell .conversation-results{border-color:var(--ui-border)!important}.mz-shell .conversation-result{color:var(--ui-text)!important;border-color:var(--ui-border)!important}.mz-shell .conversation-result:hover{background:var(--ui-surface-soft)!important}.mz-shell .conversation-result.is-active{background:var(--ds-primary-soft)!important;box-shadow:inset 3px 0 var(--brand-primary)!important}.mz-shell .conversation-avatar{background:var(--ds-primary-soft)!important;color:var(--brand-primary)!important}.mz-shell .conversation-pagination,.mz-shell .communication-thread .chat-compose{background:var(--ui-surface)!important}.mz-shell .chat-message.is-admin{background:var(--brand-primary)!important;color:#fff!important}.mz-shell .chat-message.is-resident{background:var(--ui-surface-soft)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}
.mz-shell .communication-shell{grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr)!important;gap:16px!important;max-width:100%}.mz-shell .conversation-finder,.mz-shell .communication-thread{min-width:0}
@media(max-width:1320px) and (min-width:901px){.mz-shell .topbar-left{grid-template-columns:max-content minmax(180px,360px)}.mz-shell .topbar-user strong{display:none}.mz-shell .cu-language-switcher select{min-width:112px}}
@media(max-width:1050px) and (min-width:901px){.mz-shell .topbar-title{display:none}.mz-shell .topbar-left{grid-template-columns:minmax(180px,1fr)}}
@media(max-width:900px){.mz-shell .topbar{grid-template-columns:minmax(0,1fr) auto}.mz-shell .topbar-left{display:block}.mz-shell .topbar-title{display:none}.mz-shell .admin-topbar-actions .cu-language-switcher,.mz-shell .topbar-user{display:none}.mz-shell .page-head{flex-direction:column}.mz-shell .form-grid{grid-template-columns:1fr}.mz-shell .form-span-2{grid-column:auto}}
@media(max-width:560px){.mz-shell .card{padding:var(--ds-space-4)}.mz-shell .section-head{flex-direction:column}.mz-shell .page-head{margin-top:var(--ds-space-5)}.mz-shell .page-head>.btn{width:100%}.mz-shell .form-actions{align-items:stretch;flex-direction:column}.mz-shell .form-actions .btn{width:100%}.mz-shell .topbar{gap:8px}.mz-shell .admin-topbar-actions{gap:5px}}

/* Branding editor and truthful component preview */
.brand-studio{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.78fr);gap:18px;align-items:start}.brand-settings{display:grid;gap:22px}.brand-section{display:grid;gap:14px}.brand-section+.brand-section{padding-top:20px;border-top:1px solid var(--ui-border)}.brand-section-title h3,.brand-section-title p{margin:0}.brand-section-title p{margin-top:4px;color:var(--ui-text-soft);font-size:11px}.brand-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.brand-preset{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:11px;min-height:66px;padding:10px;border:1px solid var(--ui-border);border-radius:11px;background:var(--ui-surface);color:var(--ui-text);cursor:pointer;text-align:left}.brand-preset:hover,.brand-preset.is-selected{border-color:var(--brand-primary);box-shadow:var(--ds-focus)}.brand-preset-colors{display:flex;overflow:hidden;width:48px;height:34px;border-radius:8px}.brand-preset-colors i{flex:1}.brand-preset span:last-child{display:grid;gap:2px}.brand-preset strong{font-size:11px}.brand-preset small{color:var(--ui-text-faint);font-size:9px}.brand-preview-real{position:sticky;top:82px;padding:0!important;overflow:hidden}.brand-preview-toolbar{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-bottom:1px solid var(--ui-border)}.brand-preview-toolbar span{font-size:10px;font-weight:750}.brand-preview-modes{display:flex;gap:4px}.brand-preview-modes button{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);color:var(--ui-text-soft);cursor:pointer}.brand-preview-modes button.is-active{background:var(--ds-primary-soft);color:var(--brand-primary);border-color:rgba(var(--brand-primary-rgb),.25)}.brand-preview-canvas{display:grid;grid-template-columns:88px 1fr;min-height:440px;background:var(--preview-bg,var(--ui-bg));color:var(--preview-text,var(--ui-text));transition:.15s}.brand-preview-canvas[data-preview-theme="light"]{--preview-bg:#f5f7fa;--preview-surface:#fff;--preview-border:#e7ebf0;--preview-text:#1d2533;--preview-soft:#687386}.brand-preview-canvas[data-preview-theme="dark"]{--preview-bg:#171c24;--preview-surface:#202630;--preview-border:#303844;--preview-text:#eef3f8;--preview-soft:#aab4c2}.brand-preview-nav{padding:16px 10px;background:var(--preview-surface);border-right:1px solid var(--preview-border)}.brand-preview-mark{display:grid;place-items:center;width:34px;height:34px;margin:0 auto 20px;border-radius:9px;background:var(--brand-primary);color:#fff;font-weight:900}.brand-preview-nav i{display:block;width:48px;height:8px;margin:12px auto;border-radius:9px;background:var(--preview-border)}.brand-preview-nav i:nth-of-type(1){background:var(--brand-primary)}.brand-preview-content{padding:22px 18px}.brand-preview-content>small{color:var(--brand-primary);font-size:7px;font-weight:850;letter-spacing:.12em}.brand-preview-content h3{margin:5px 0 16px;color:var(--preview-text)!important}.brand-preview-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.brand-preview-card{height:68px;padding:9px;border:1px solid var(--preview-border);border-radius:9px;background:var(--preview-surface)}.brand-preview-card i{display:block;width:22px;height:22px;border-radius:6px;background:var(--ds-primary-soft)}.brand-preview-card b{display:block;width:65%;height:6px;margin-top:10px;border-radius:6px;background:var(--preview-border)}.brand-preview-panel{margin-top:10px;padding:11px;border:1px solid var(--preview-border);border-radius:9px;background:var(--preview-surface)}.brand-preview-panel span{display:block;width:44%;height:7px;border-radius:5px;background:var(--brand-secondary)}.brand-preview-panel p{width:82%;height:6px;margin:10px 0 14px;border-radius:5px;background:var(--preview-border)}.brand-preview-panel button{height:30px;padding:0 10px;border:0;border-radius:7px;background:var(--brand-primary);color:#fff;font-size:8px;font-weight:750}.brand-preview-accent{height:5px;margin-top:13px;border-radius:6px;background:var(--brand-accent)}
@media(max-width:1100px){.brand-studio{grid-template-columns:1fr}.brand-preview-real{position:static}}@media(max-width:600px){.brand-presets{grid-template-columns:1fr}.brand-preview-canvas{grid-template-columns:66px 1fr}.brand-preview-content{padding:18px 12px}}
/* Superadmin client and licence workspace */
.client-layout{display:grid;grid-template-columns:minmax(520px,1.15fr) minmax(420px,.85fr);gap:20px;align-items:start}.client-list,.client-detail{padding:0;overflow:hidden}.client-list>.section-heading,.client-detail>.section-heading,.client-detail>form,.client-detail>hr,.client-detail>.admin-account-list,.client-detail>.inline-admin-form{margin:0;padding:22px}.client-row{display:grid;grid-template-columns:42px minmax(150px,1fr) 68px 68px auto 18px;gap:12px;align-items:center;padding:15px 22px;border-top:1px solid var(--ui-border);color:var(--ui-text);text-decoration:none}.client-row:hover,.client-row.is-active{background:color-mix(in srgb,var(--brand-primary) 7%,var(--ui-surface))}.client-row.is-active{box-shadow:inset 3px 0 var(--brand-primary)}.client-avatar{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--brand-primary) 12%,var(--ui-surface));color:var(--brand-primary);font-weight:800}.client-main,.client-metric,.admin-account-list span{display:flex;min-width:0;flex-direction:column}.client-main small,.client-metric small,.admin-account-list small{color:var(--ui-text-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.client-metric b{font-size:15px}.status-badge{display:inline-flex;align-items:center;width:max-content;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:750;background:var(--ui-surface-2);color:var(--ui-text-soft)}.status-active{background:#dcfce7;color:#166534}.status-trial{background:#dbeafe;color:#1d4ed8}.status-suspended,.status-cancelled{background:#fee2e2;color:#991b1b}.client-detail hr{border:0;border-top:1px solid var(--ui-border)}.admin-account-list{display:grid;gap:8px}.admin-account-list>div{display:grid;grid-template-columns:40px 1fr auto;gap:11px;align-items:center;padding:10px;border:1px solid var(--ui-border);border-radius:12px}.inline-admin-form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.app-dialog{width:min(760px,calc(100vw - 32px));padding:0;border:0;background:transparent}.app-dialog::backdrop{background:rgba(15,23,42,.55);backdrop-filter:blur(4px)}.app-dialog>.card{margin:0;padding:24px;max-height:90vh;overflow:auto}@media(max-width:1100px){.client-layout{grid-template-columns:1fr}.inline-admin-form{grid-template-columns:1fr 1fr}}@media(max-width:720px){.client-row{grid-template-columns:40px 1fr auto}.client-metric{display:none}.inline-admin-form{grid-template-columns:1fr}.client-layout{display:block}.client-detail{margin-top:16px}}
