:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#17283c;background:#f4f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}.hidden{display:none!important}.app{display:flex;min-height:100vh}.desktop-sidebar{width:245px;flex:none;position:sticky;top:0;height:100vh;background:#112f50;color:#d7e8f8;display:flex;flex-direction:column;padding:27px 17px}.brand,.login-mark{display:flex;align-items:center;gap:12px}.brand{padding:4px 9px 42px}.brand img,.login-mark img{width:44px;height:44px;border-radius:13px;background:white}.brand strong{display:block;font-size:23px;letter-spacing:-.6px;color:#fff}.brand small{display:block;font-size:11px;color:#a4c0d6;margin-top:2px}.sidebar-label{font-size:10px;color:#91acc5;letter-spacing:1.5px;margin:0 13px 14px}.desktop-nav{display:grid;gap:7px}.desktop-nav button{background:transparent;border:0;color:#c7d8e8;border-radius:11px;text-align:left;padding:13px 14px;font-weight:600;display:flex;align-items:center;gap:13px}.desktop-nav button span{font-size:20px;width:23px;text-align:center}.desktop-nav button.selected{background:#275b91;color:#fff}.desktop-nav em{font-size:10px;font-weight:400;margin-left:auto;font-style:normal}.side-bottom{margin-top:auto;font-size:12px;border-top:1px solid #385672;padding:20px 12px 2px}.status-indicator{display:inline-block;width:8px;height:8px;border-radius:50%;background:#31c28c;margin-right:7px}.text-button{border:0;background:transparent;color:#2366ae;font-weight:650;padding:8px 0}.side-bottom .text-button{color:#b3d2f1}.workspace{flex:1;min-width:0}.topbar{height:75px;background:white;border-bottom:1px solid #e6edf4;display:flex;align-items:center;justify-content:space-between;padding:0 42px}.desktop-breadcrumb{font-size:13px;color:#718197;font-weight:600}.desktop-breadcrumb span{padding:0 6px;color:#1c416c}.header-actions{display:flex;align-items:center;gap:14px}.account{font-size:13px;color:#66758b}.ghost{border:1px solid #d9e3ee;background:white;color:#274e79;border-radius:9px;padding:9px 13px;font-weight:600}.content{max-width:1420px;margin:auto;padding:44px 46px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px}.eyebrow{font-size:11px;color:#2b70b8;font-weight:800;letter-spacing:1.5px;margin-bottom:9px}h1{font-size:32px;letter-spacing:-1px;margin:0 0 8px}h2{font-size:19px;margin:0 0 5px}.page-heading p,.panel-title p{color:#8290a2;margin:0;font-size:14px}.desktop-pill{background:#e8f0f9;color:#386a9a;font-size:12px;padding:8px 13px;border-radius:50px;font-weight:700}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:28px}.summary-card{padding:25px;background:white;border:1px solid #e2eaf3;border-radius:17px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;min-height:215px;box-shadow:0 4px 20px #17395a08;color:#253c55}.summary-card:not(.muted):hover{border-color:#9bc1e8;transform:translateY(-1px)}.summary-card span{font-size:14px;font-weight:600;margin:16px 0 9px}.summary-card strong{font-size:34px}.summary-card small{color:#8b9aad;margin-top:14px}.summary-card.muted{opacity:.7}.symbol{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;font-size:23px}.blue{background:#e6f1ff;color:#2770bf}.purple{background:#f2ecff;color:#8b6bbb}.orange{background:#fff1e5;color:#c9863b}.panel{background:#fff;border:1px solid #e2eaf3;border-radius:18px;overflow:hidden;box-shadow:0 4px 20px #17395a08}.panel-title{padding:26px 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf2f8}.home-job{display:grid;grid-template-columns:130px 1fr 150px;align-items:center;gap:20px;padding:17px 28px;border-bottom:1px solid #edf2f8;font-size:14px}.home-job:last-child{border:0}.home-job strong{color:#2a649e}.home-job span:last-child{color:#7d8ba0}.empty{padding:35px;color:#7e8da0;text-align:center}.filterbar{padding:19px 23px;display:flex;gap:15px;justify-content:space-between}.filterbar input{min-width:220px;width:390px;max-width:100%;border:1px solid #d9e4ef;border-radius:9px;padding:11px 14px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}th{background:#f8fafd;color:#718097;font-size:12px;padding:16px 24px}td{border-top:1px solid #eef2f7;padding:18px 24px}td:first-child{color:#2265a4;font-weight:700}.pager{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eef2f7;padding:17px 23px;font-size:12px;color:#77889d}.pager>div{display:flex;gap:8px}.mobile-job-list,.mobile-bottom,.mobile-brand{display:none}.login-screen{min-height:100vh;background:linear-gradient(145deg,#eaf2fc,#f7fafc);display:grid;place-items:center;padding:25px}.login-panel{background:white;width:min(425px,100%);border:1px solid #e1eaf3;box-shadow:0 20px 70px #193d6014;padding:36px;border-radius:22px}.login-mark{margin-bottom:36px}.login-mark strong{display:block;font-size:25px;color:#1b4775}.login-mark small{font-size:12px;color:#7b8da0}.login-panel h1{font-size:28px}.login-panel p{font-size:14px;color:#7d8da0;margin-bottom:24px}label{display:grid;gap:8px;font-size:13px;color:#3d5874;font-weight:700;margin-bottom:16px}label input{width:100%;padding:12px;border:1px solid #d5e1ef;border-radius:10px;outline-offset:3px;font-weight:400}.primary{width:100%;background:#1d5c9b;border:0;border-radius:10px;color:white;font-weight:700;padding:13px;margin-top:5px}.message{min-height:20px;margin-top:13px;color:#b14141;font-size:13px}.login-panel .text-button{font-size:12px;margin-top:12px}.overlay{position:fixed;z-index:99;inset:0;background:#0b2948a8;display:flex;align-items:center;justify-content:center;padding:20px}.settings-panel{background:white;border-radius:18px;padding:28px;width:min(680px,100%);max-height:90vh;overflow:auto}.settings-panel header{display:flex;justify-content:space-between;align-items:start;margin-bottom:25px}.settings-panel header p{font-size:13px;color:#7e8da0;margin:5px 0}.config-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.config-fields label:first-child{grid-column:1/-1}.help{font-size:12px;line-height:1.6;color:#657b90}
@media(max-width:800px){.desktop-sidebar,.desktop-breadcrumb,.desktop-only,.desktop-pill{display:none!important}.app{display:block}.workspace{min-height:100vh;padding-bottom:calc(80px + env(safe-area-inset-bottom))}.topbar{position:sticky;top:0;z-index:10;height:64px;padding:0 17px;box-shadow:0 2px 8px #1b3f5e08}.mobile-brand{display:flex;align-items:center;gap:8px;font-size:19px;color:#1c4e80}.mobile-brand img{width:34px;height:34px;border-radius:9px}.account{display:none}.header-actions{gap:7px}.header-actions .ghost{font-size:12px;padding:8px}.content{padding:27px 16px}.page-heading{margin-bottom:23px}.page-heading h1{font-size:25px}.page-heading p{font-size:13px;line-height:1.5}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:22px}.summary-card{min-height:160px;padding:16px;border-radius:14px}.summary-card:nth-child(3){display:none}.summary-card .symbol{width:36px;height:36px;font-size:18px}.summary-card span{margin:11px 0 4px;font-size:13px}.summary-card strong{font-size:27px}.summary-card small{font-size:10px;line-height:1.5;margin-top:9px}.panel{border-radius:15px}.panel-title{padding:20px 16px}.panel-title h2{font-size:16px}.panel-title p{font-size:12px}.panel-title .text-button{font-size:12px}.home-job{grid-template-columns:1fr;gap:4px;padding:15px 17px}.home-job span:last-child{font-size:12px}.mobile-bottom{position:fixed;z-index:20;bottom:0;left:0;right:0;display:flex;background:white;border-top:1px solid #e1eaf3;padding:10px 3px calc(9px + env(safe-area-inset-bottom));box-shadow:0 -4px 15px #0c38520b}.mobile-bottom button{width:25%;display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:none;font-size:11px;color:#7d8a9a}.mobile-bottom button span{font-size:22px}.mobile-bottom button.selected{color:#1d63a2;font-weight:750}.filterbar{padding:14px;gap:8px}.filterbar input{min-width:0;flex:1;width:auto;font-size:13px}.filterbar button{font-size:12px;padding:8px}.table-wrap{display:none}.mobile-job-list{display:block}.job-tile{padding:17px 18px;border-top:1px solid #eef2f7}.job-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.job-number{font-size:12px;font-weight:800;color:#2a71ae;background:#eaf3fc;padding:6px 9px;border-radius:7px}.job-person{font-size:12px;color:#7f8e9d}.job-name{font-weight:700;margin-top:10px;font-size:15px;line-height:1.4}.pager{padding:14px;flex-wrap:wrap;gap:10px}.pager .ghost{font-size:12px}.config-fields{grid-template-columns:1fr}.settings-panel{padding:20px}.settings-panel h2{font-size:19px}.settings-panel header p{font-size:12px}}
@media(min-width:801px) and (max-width:1050px){.desktop-sidebar{width:210px}.content{padding:32px 25px}.topbar{padding:0 25px}}

/* TrustavAK 1.1: native-feel mobile dashboard, intentionally distinct from desktop */
.phone-dashboard{display:none}
@media(max-width:800px){
  :root{background:#f5f7fc}
  body{background:#f5f7fc}
  .topbar{height:64px;background:#f5f7fc;box-shadow:none;border-bottom:0;padding:0 22px}
  .mobile-brand{color:#152b4a;font-weight:850;letter-spacing:-.4px}
  .mobile-brand img{width:33px;height:33px;border-radius:11px;box-shadow:0 3px 10px #23496b15}
  .topbar #logout{display:none}
  .content{padding:10px 18px 26px;max-width:510px}
  #view-home>.page-heading,#view-home>.summary-grid,#view-home>.recent{display:none}
  .phone-dashboard{display:block;animation:phone-enter .25s ease-out}
  @keyframes phone-enter{from{opacity:.4;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
  .phone-greeting{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 3px 20px}
  .phone-kicker{color:#7a8aa4;font-size:10px;letter-spacing:1.45px;font-weight:850}
  .phone-greeting h2{font-size:27px;font-weight:800;letter-spacing:-1px;color:#142945;margin:7px 0 4px}
  .phone-greeting p{margin:0;font-size:13px;color:#7e8ba1}
  .phone-avatar{flex:none;width:47px;height:47px;border-radius:16px;display:grid;place-items:center;color:white;font-weight:900;font-size:21px;background:linear-gradient(145deg,#3d86bd,#113b6c);box-shadow:0 8px 16px #19487522}
  .phone-search{width:100%;height:49px;display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:1px solid #e7edf5;color:#9ba6b8;padding:0 14px;border-radius:15px;box-shadow:0 4px 13px #1c3b6007;font-size:13px}
  .phone-search-icon{color:#3c628f;font-size:26px;line-height:1}.phone-search-arrow{margin-left:auto;color:#7f95ac;font-size:18px}
  .phone-hero{position:relative;isolation:isolate;overflow:hidden;margin:19px 0 25px;padding:23px 22px 21px;min-height:190px;border-radius:24px;color:white;background:linear-gradient(125deg,#102f57 0%,#176395 78%,#238cba 100%);box-shadow:0 15px 30px #153b6c2c;display:flex;justify-content:space-between;align-items:end}
  .phone-hero:after{content:'';position:absolute;width:245px;height:245px;border:1px solid #ffffff23;border-radius:50%;right:-116px;top:-97px;z-index:-1}
  .phone-hero-orb{position:absolute;width:170px;height:170px;border-radius:50%;background:#ffffff0d;right:-15px;top:30px;z-index:-1}
  .phone-hero-tag{font-size:10px;letter-spacing:1.05px;font-weight:800;color:#e0f4ff;background:#ffffff20;border:1px solid #ffffff16;border-radius:20px;padding:7px 10px;display:inline-flex;align-items:center;gap:7px}
  .phone-hero-tag i{display:inline-block;background:#70e3bb;width:7px;height:7px;border-radius:50%}
  .phone-hero-text p{font-size:13px;margin:20px 0 1px;color:#c6e0f5}
  .phone-hero-text strong{font-size:52px;letter-spacing:-2.5px;font-weight:800;line-height:1.08;display:block}
  .phone-hero-text>span{font-size:12px;color:#c6e0f5}
  .phone-hero-action{width:46px;height:46px;border:1px solid #ffffff62;border-radius:15px;background:#ffffff31;color:#fff;font-size:25px;backdrop-filter:blur(4px)}
  .phone-section-title{display:flex;justify-content:space-between;align-items:center;padding:0 2px;margin:0 0 13px}
  .phone-section-title h3{font-size:18px;letter-spacing:-.5px;color:#182f4e;margin:0;font-weight:800}
  .phone-section-title>span{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#97a4b5}
  .phone-actions{display:grid;grid-template-columns:1fr 1fr;gap:11px}
  .phone-action{position:relative;min-height:133px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid #e9edf4;border-radius:19px;padding:16px;background:white;box-shadow:0 6px 19px #183e600a;color:#163453}
  .phone-action-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;font-size:23px;margin-bottom:12px}
  .phone-action-blue .phone-action-icon{background:#e1efff;color:#2c73bc}
  .phone-action-lilac .phone-action-icon{background:#eee9ff;color:#8664c6}
  .phone-action-peach .phone-action-icon{background:#fff0e3;color:#db9452}
  .phone-action-mint .phone-action-icon{background:#dff8ef;color:#36a88e}
  .phone-action b{font-size:14px;font-weight:800}.phone-action small{font-size:11px;color:#8b9bad;margin-top:4px}
  .phone-action-chevron{position:absolute;right:15px;top:20px;color:#93a6b8;font-size:20px}
  .phone-action:disabled{opacity:.76}
  .phone-recent-title{margin-top:28px}
  .phone-recent-title button{border:0;background:none;color:#2775aa;font-weight:800;font-size:12px;padding:5px}
  .phone-recent-title button span{font-size:17px}
  .phone-recent{border:1px solid #e9edf4;border-radius:19px;overflow:hidden;background:#fff;box-shadow:0 6px 19px #183e6008}
  .phone-recent-item{display:flex;align-items:center;text-align:left;width:100%;gap:12px;background:white;border:0;border-bottom:1px solid #eff2f6;padding:14px}
  .phone-recent-item:last-child{border:0}
  .phone-recent-symbol{flex:none;width:40px;height:40px;border-radius:13px;background:#edf4fc;display:grid;place-items:center;color:#4385bb;font-size:20px}
  .phone-recent-detail{min-width:0;flex:1;display:grid;gap:4px}
  .phone-recent-detail strong{font-size:13px;color:#1d344f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .phone-recent-detail small{font-size:11px;color:#8998aa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .phone-recent-arrow{font-size:24px;color:#9cafc1}
  .phone-empty{padding:25px;text-align:center;color:#8494a8;font-size:13px}
  .phone-connection{display:flex;align-items:center;gap:10px;margin:18px 2px 0;padding:13px 15px;background:#e9f3f5;border-radius:15px;color:#27576b}
  .phone-connection-dot{width:9px;height:9px;border-radius:50%;background:#31a987;box-shadow:0 0 0 4px #31a98720}
  .phone-connection>div{flex:1;display:grid;gap:3px}.phone-connection strong{font-size:12px}.phone-connection small{font-size:10px;color:#668a97}
  .phone-connection button{border:0;background:transparent;font-size:24px;color:#367d92}
  .mobile-bottom{background:#fffffff2;backdrop-filter:blur(20px);border-top:1px solid #e6ebf2;padding:10px 3px calc(9px + env(safe-area-inset-bottom));box-shadow:0 -8px 23px #1b37540c}
  .mobile-bottom button{font-size:10px;gap:5px;letter-spacing:.15px}.mobile-bottom button span{font-size:23px}.mobile-bottom button.selected{color:#176ba5}
  #view-jobs .page-heading{margin-top:18px}
}

/* TrustavAK 1.2 – circular production instruments */
.production-intro{display:flex;justify-content:space-between;align-items:center;margin:24px 0 12px}.production-intro h3{font-size:19px;margin:4px 0}.production-hero{display:flex;gap:20px;align-items:center;padding:20px;border-radius:22px;background:linear-gradient(120deg,#142d51,#204a78);color:white;box-shadow:0 12px 25px #12365f27}.production-hero-copy{display:flex;flex-direction:column;gap:10px;min-width:0}.production-hero-copy strong{font-size:18px}.production-hero-copy span{font-size:14px;color:#d4e8ff}.production-hero-copy small{font-size:12px;color:#9cc4f3}.sport-ring{--pct:0;--accent:#a8b3c4;position:relative;flex:none;width:116px;height:116px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--accent) calc(var(--pct)*1%),#dfe7ef 0);box-shadow:inset 0 0 0 1px #ffffff35}.sport-ring[data-status="green"]{--accent:#16ad75}.sport-ring[data-status="red"]{--accent:#ec4b5e}.sport-ring:before{content:'';position:absolute;inset:11px;background:#fff;border-radius:50%}.ring-center{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:3px;color:#1c3556}.ring-center b{font-size:23px;font-variant-numeric:tabular-nums}.ring-center small{font-size:9px;font-weight:800;letter-spacing:.03em;text-align:center;color:#738399}.production-hero .sport-ring:before{background:#183962}.production-hero .ring-center{color:#fff}.production-hero .ring-center small{color:#bed4ee}.segment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.segment-card{border:1px solid #edf1f6;border-radius:19px;background:white;display:flex;flex-direction:column;align-items:center;gap:11px;padding:17px 10px;min-width:0;box-shadow:0 6px 14px #142e4510}.segment-card strong{font-size:14px;text-align:center;word-break:break-word}.segment-card .sport-ring{width:104px;height:104px}.segment-card .ring-center b{font-size:19px}.segment-card>small{color:#718198;font-size:12px}.production-full{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.production-note,.production-empty{font-size:13px;color:#697990;line-height:1.5}.production-panel{padding:20px}.production-panel>p{margin:0 0 15px;color:#52657a}
@media(min-width:850px){.production-intro,.phone-dashboard .production-hero,.phone-dashboard .segment-grid{display:none}.production-full{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
@media(max-width:380px){.production-hero{gap:10px;padding:14px}.production-hero>.sport-ring{width:96px;height:96px}.production-hero-copy strong{font-size:15px}.segment-card .sport-ring{width:88px;height:88px}.segment-card{padding:12px 6px}}

/* 1.5 — independent compact iPhone layout, no pinch-zoom hacks */
@media (max-width:800px) {
  html { -webkit-text-size-adjust:100%; }
  .login-screen {min-height:100dvh;padding:16px;align-items:center;}
  .login-panel {width:min(370px,100%);padding:23px 20px;border-radius:19px;}
  .login-mark img {width:36px;height:36px;}
  .login-panel h1 {font-size:23px;line-height:1.15;margin:18px 0 8px;}
  .login-panel p {font-size:12px;line-height:1.4;margin-bottom:13px;}
  .login-panel input, .settings-panel input, #search, #username, #password {font-size:16px!important;}
  .login-panel form {gap:10px;}
  .login-panel label {font-size:12px;}
  .login-panel .primary {min-height:44px;}
  .topbar {height:62px; padding:0 15px;}
  .mobile-brand img {width:30px;height:30px;}
  .mobile-brand strong {font-size:19px;}
  .content {padding:9px 13px 22px;}
  .phone-greeting {padding:5px 2px 11px;}
  .phone-greeting h2 {font-size:22px;}
  .phone-greeting p {font-size:12px;}
  .phone-hero {margin:12px 0 17px;padding:17px;min-height:147px;}
  .phone-hero-text strong {font-size:40px;}
  .phone-action {min-height:109px;padding:12px;}
  .phone-action-icon {width:32px;height:32px;font-size:19px;margin-bottom:8px;}
  #view-jobs .page-heading {margin-top:4px;margin-bottom:13px;}
  #view-jobs .eyebrow {font-size:9px;margin-bottom:3px;}
  #view-jobs h1 {font-size:25px;letter-spacing:-.6px;margin-bottom:0;}
  #view-jobs .jobs-panel {border-radius:14px;}
  #view-jobs .filterbar {padding:10px 12px;}
  #view-jobs .job-tile {padding:12px 14px;}
  #view-jobs .job-name {margin-top:6px;font-size:14px;}
  #view-jobs .job-number {font-size:13px;}
  #view-jobs .job-person {font-size:11px;}
  .mobile-bottom {padding-top:7px;}
}

/* TrustavAK 1.6 compact job list inspired by the original FileMaker view */
.compact-job{display:grid;grid-template-columns:52px minmax(0,1fr) 23px 12px;align-items:start;gap:8px;width:100%;padding:12px 11px;text-align:left;background:#fff;border:0;border-bottom:1px solid #e5eaf0;min-height:66px;color:#192b40;cursor:pointer}
.compact-job:last-child{border-bottom:0}.compact-job:active{background:#eef5ff}
.compact-number{display:inline-flex;align-items:center;justify-content:center;color:white;background:#3285eb;font-size:13px;font-weight:800;border-radius:8px;padding:7px 3px;font-variant-numeric:tabular-nums}
.compact-number.closed{background:#33b976}.compact-text{min-width:0;display:grid;gap:5px}.compact-text strong{font-size:14px;line-height:1.26;white-space:normal}.compact-text small{font-size:11px;line-height:1.35;color:#7c8c9f}.compact-missing{color:#ed5a35;font-size:19px}.compact-chevron{color:#a0aec0;font-size:24px;line-height:1}
.job-table-row{cursor:pointer}.job-table-row:hover{background:#f5f9ff}.table-job-number.active{color:#2675c5}.table-job-number.closed{color:#20a572}.table-job-desc{display:block;color:#8190a0;margin-top:6px}
.detail-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.detail-state{padding:8px 11px;border-radius:20px;font-size:12px;font-weight:800;background:#e1efff;color:#2466ad}.detail-state.closed{background:#def7e9;color:#158753}.detail-description{color:#74869b;font-size:14px}.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:21px 0}.detail-actions button{margin:0;text-align:center;font-size:13px}.detail-result{padding:20px;font-size:13px;line-height:1.6}.contract-item{border-top:1px solid #e0e8f0;padding:15px 0;overflow-wrap:anywhere}.contract-item p{margin:6px 0;color:#73869b}
@media(max-width:800px){#view-jobs .jobs-panel{background:#fff;border-radius:12px}#view-jobs .mobile-job-list{border-top:1px solid #e2e8f1}.content{padding-left:10px;padding-right:10px}.compact-job{padding:11px 8px}.detail-actions{grid-template-columns:1fr 1fr}.detail-actions button{min-height:50px}}

/* 1.7 — the brand belongs to Home, other views use a single compact module heading */
@media(max-width:800px){
  #app:not([data-current-view="home"]) .mobile-brand img{display:none}
  #app:not([data-current-view="home"]) .mobile-brand strong{font-size:23px;letter-spacing:-.5px;font-weight:850}
  #app[data-current-view="jobs"] #view-jobs .page-heading,
  #app[data-current-view="production"] #view-production .page-heading{display:none}
  #app[data-current-view="jobs"] .content,
  #app[data-current-view="production"] .content{padding-top:7px}
  #app[data-current-view="jobs"] #view-jobs .jobs-panel{margin-top:0}
  .compact-job{min-height:64px}
  .compact-text small:not(:empty){display:block;color:#8291a5;line-height:1.35;font-weight:400}
}
@media(min-width:801px){#app:not([data-current-view="home"]) .desktop-sidebar .brand{visibility:hidden}}

/* 1.9.2: zakazky vyroby v samostatnych kartach a rozbalitelne etapy */
.mobile-production-list{display:grid;gap:16px;margin:12px 0 18px}
.mobile-production-subtitle{color:#516780;font-size:14px;margin:4px 0}
.mobile-production-updated{color:#8a9bac;font-size:11px}
.mobile-production-job{background:#fff;border:1px solid #e4eaf2;border-radius:20px;box-shadow:0 8px 22px #142c4912;padding:16px;min-width:0}
.mobile-production-heading{display:flex;gap:12px;align-items:center;justify-content:space-between}
.mobile-production-heading-title{display:grid;gap:4px;min-width:0;flex:1}
.mobile-production-number{font-size:22px;color:#276cb3;line-height:1.1}
.mobile-production-name{font-size:15px;font-weight:750;line-height:1.3;color:#152e4a;overflow-wrap:anywhere}
.mobile-ring-overview .sport-ring{width:94px;height:94px;--accent:#26a66e}
.mobile-ring-overview .ring-center b{font-size:18px}
.mobile-ring-overview .sport-ring:before{inset:9px}
.mobile-production-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:13px 0 15px}
.production-metric{display:flex;flex-direction:column;gap:3px;min-width:0;border-radius:10px;background:#f3f7fb;padding:9px 6px;text-align:center}
.production-metric span{font-size:10px;color:#73859b}
.production-metric strong{font-size:12px;color:#17334f;white-space:nowrap;font-variant-numeric:tabular-nums}
.mobile-production-processes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mobile-process{background:#f7f9fc;border:1px solid #e9eef4;border-radius:14px;padding:10px 4px;display:flex;align-items:center;flex-direction:column;gap:7px;text-align:center;min-width:0}
.mobile-process-name{font-size:11px;color:#23415f;min-height:26px;display:flex;align-items:center}
.mobile-process .sport-ring{width:76px;height:76px}
.mobile-process .sport-ring:before{inset:8px}
.mobile-process .ring-center b{font-size:13px;white-space:nowrap}
.mobile-process .ring-center small{font-size:7px}
.mobile-process>small{font-size:9px;color:#677a8f;line-height:1.35;overflow-wrap:anywhere}
.mobile-process .mobile-difference{font-weight:750;color:#138457}
.mobile-process .mobile-difference.over{color:#c34043}
.mobile-production-stages{margin-top:14px;border-top:1px solid #e5ebf3;padding-top:12px}
.mobile-production-stages summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:8px;cursor:pointer;color:#2365a1;font-size:13px;font-weight:800;padding:6px 0}
.mobile-production-stages summary::-webkit-details-marker{display:none}
.mobile-production-stages summary:before{content:'▸';margin-right:4px}
.mobile-production-stages[open] summary:before{content:'▾'}
.mobile-stages-hint{font-size:10px;color:#8290a2;font-weight:400}
.mobile-production-stage{border:1px solid #e3e9f1;border-radius:12px;margin:10px 0;padding:10px;min-width:0}
.mobile-stage-title{font-size:13px;font-weight:800;margin:0 0 8px;color:#203b59}
.mobile-stage-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}
.mobile-stage-row{display:grid;grid-template-columns:1.35fr .8fr .8fr .9fr;gap:5px;align-items:center;border-bottom:1px solid #edf0f5;padding:7px 0;font-size:11px;font-variant-numeric:tabular-nums}
.mobile-stage-row span:not(:first-child){text-align:right}
.mobile-stage-header{color:#7a8b9d;font-size:10px;font-weight:700}
.mobile-stage-red{color:#ca3b42;font-weight:800}
.mobile-stage-green{color:#21966b;font-weight:800}
.mobile-production-more{width:100%;padding:12px;border-radius:12px;border:1px solid #cee3fc;background:#eef6ff;color:#1765a6;font-weight:800;cursor:pointer}
.mobile-production-view{background:transparent;box-shadow:none;border:none;padding:0}
.mobile-production-view>p{margin:4px 0 14px;color:#647b92;font-size:13px}
@media(min-width:850px){.mobile-production-processes{grid-template-columns:repeat(6,minmax(0,1fr))}.mobile-production-list{grid-template-columns:repeat(auto-fit,minmax(400px,1fr))}.mobile-production-job{padding:20px}}
@media(max-width:360px){.mobile-production-job{padding:12px}.mobile-process .sport-ring{width:67px;height:67px}.mobile-process .ring-center b{font-size:12px}.mobile-production-metrics{gap:4px}.production-metric{padding:8px 2px}.production-metric strong{font-size:11px}}

/* v1.9.3 – clean homepage: one production row per job, no stages */
#view-home .phone-dashboard{display:block;max-width:980px;margin:0 auto}
#view-home .phone-greeting,#view-home .phone-search{display:none !important}
#view-home .phone-hero{margin-top:0}
#view-home .production-intro{margin-top:14px}
#view-home .home-production-overview{display:flex;flex-direction:column;gap:11px;margin:12px 0 22px}
#view-home .home-production-card{background:#fff;border:1px solid #dbe8f5;border-radius:18px;padding:14px 14px 14px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 6px 20px #193f6612;min-width:0}
#view-home .home-production-detail{display:flex;flex-direction:column;align-items:flex-start;gap:5px;flex:1;min-width:0}
#view-home .home-production-number{color:#246eb7;font-size:22px;line-height:1.1}
#view-home .home-production-name{color:#233e58;font-size:14px;font-weight:750;line-height:1.4;overflow-wrap:anywhere}
#view-home .home-production-hours{display:flex;flex-wrap:wrap;gap:4px 12px;color:#637991;font-size:12px}
#view-home .home-production-diff{font-size:12px;color:#13824e;font-weight:750}
#view-home .home-production-diff.over{color:#c93939}
#view-home .home-production-card .mobile-ring-overview{width:100px;flex:0 0 100px;display:flex;justify-content:center}
#view-home .home-production-card .sport-ring{width:98px;height:98px;flex:0 0 98px}
#view-home .home-production-card .ring-center b{font-size:17px}
#view-home .home-production-card .ring-center small{font-size:8px}
@media(min-width:850px){#view-home>.page-heading{display:none}#view-home .phone-dashboard{display:block}#view-home .home-production-overview{max-width:900px}}
@media(max-width:380px){#view-home .home-production-card{padding:12px}#view-home .home-production-card .mobile-ring-overview{width:86px;flex-basis:86px}#view-home .home-production-card .sport-ring{width:84px;height:84px}}

/* TrustavAK 1.9.4 — Zakázky: počty, detail a barevné agendy */
.jobs-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}
.jobs-count-card{background:#fff;border:1px solid #e1eaf4;border-radius:15px;padding:15px 12px;display:flex;flex-direction:column;gap:6px;box-shadow:0 3px 13px #1943660a}
.jobs-count-card span{font-size:12px;color:#7b8ba0;font-weight:650}
.jobs-count-card strong{font-size:28px;font-weight:850;color:#234d7b;font-variant-numeric:tabular-nums}
.jobs-count-card.closed strong{color:#15986e}.jobs-count-card.open strong{color:#2879bf}
.job-detail-header{display:flex;align-items:flex-start;gap:12px;margin:10px 0 17px;min-width:0}
.detail-number{flex-shrink:0;font-size:24px;line-height:1.1;font-weight:850;color:#216eae;background:#e7f2ff;padding:11px 12px;border-radius:12px}
.job-detail-header-text{min-width:0;flex:1}
#view-job-detail #detail-title{font-size:clamp(17px,4.5vw,23px);line-height:1.25;letter-spacing:-.3px;overflow-wrap:anywhere;margin:1px 0 7px}
#view-job-detail .detail-description{font-size:13px;line-height:1.45;margin:0;overflow-wrap:anywhere}
.job-client-card{display:flex;gap:13px;align-items:center;background:#fff;border:1px solid #dfebf5;padding:14px 16px;border-radius:16px;box-shadow:0 3px 14px #12385a09}
.job-client-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:13px;background:#e9f2ff;color:#2374b8;font-size:26px;flex-shrink:0}
.job-client-card>div:last-child{min-width:0;display:flex;flex-direction:column;gap:3px}
.job-client-card span{color:#7c8ca2;font-size:12px;font-weight:700}
.job-client-card strong{font-size:15px;overflow-wrap:anywhere}
.job-client-card small{font-size:11px;line-height:1.35;color:#8b98a8}
.detail-actions.detail-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 20px}
.detail-actions.detail-tiles .detail-tile{border:1px solid #e0e9f5;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:104px;padding:11px 6px;border-radius:15px;font-weight:720;font-size:12px;color:#2b4662;box-shadow:0 2px 11px #17406409;cursor:pointer}
.detail-tile-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;font-size:25px;font-weight:600}
.dt-blue .detail-tile-icon{background:#e5f0ff;color:#2877be}
.dt-green .detail-tile-icon{background:#e5f8ee;color:#14a36f}
.dt-violet .detail-tile-icon{background:#f3e8ff;color:#885bc0}
.dt-cyan .detail-tile-icon{background:#e3f6ff;color:#2384bb}
.dt-orange .detail-tile-icon{background:#fff0df;color:#d18431}
.dt-teal .detail-tile-icon{background:#e3f7f4;color:#168c82}
.dt-gold .detail-tile-icon{background:#fff5db;color:#b98921}
.dt-indigo .detail-tile-icon{background:#eceeff;color:#576abd}
.detail-actions.detail-tiles .detail-tile:focus-visible{outline:3px solid #62a6e5;outline-offset:2px}
@media(max-width:800px){.jobs-counts{gap:8px}.jobs-count-card{padding:11px 9px}.jobs-count-card span{font-size:11px}.jobs-count-card strong{font-size:25px}.detail-actions.detail-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.detail-actions.detail-tiles .detail-tile{min-height:101px;font-size:11px}}
@media(max-width:390px){.detail-actions.detail-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 1.9.5: jemny radek souhrnu pod nadpisem Zakazky */
#view-jobs .jobs-counts{display:flex;flex-wrap:wrap;align-items:center;gap:5px 15px;margin:1px 0 13px;padding:0;background:transparent;border:0;box-shadow:none}
#view-jobs .jobs-count-card{display:inline-flex;flex-direction:row;align-items:baseline;gap:5px;margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;min-width:0}
#view-jobs .jobs-count-card span{font-size:12px;font-weight:450;color:#718399;white-space:nowrap}
#view-jobs .jobs-count-card strong{font-size:15px;font-weight:800;line-height:1.3;color:#244e7d}
#view-jobs .jobs-count-card.closed strong{color:#15986e}
#view-jobs .jobs-count-card.open strong{color:#2879bf}
@media(max-width:600px){#view-jobs .jobs-counts{gap:4px 12px}#view-jobs .jobs-count-card span{font-size:11px}#view-jobs .jobs-count-card strong{font-size:14px}}

/* 1.9.6: V detailu jsou pouze rozbalovaci agendy, zadne trvale velke bloky. */
.dt-emerald .detail-tile-icon{background:#e2f8ea;color:#178257}
.dt-rose .detail-tile-icon{background:#ffebf0;color:#c44569}
.detail-actions.detail-tiles .detail-tile.is-open{background:#f0f7ff;border-color:#8bbdec;box-shadow:0 0 0 1px #8bbdec,0 7px 20px #17406417}
#view-job-detail #detail-content.hidden{display:none!important}
#view-job-detail .detail-result{margin:0 0 22px;border:1px solid #dce8f6;border-radius:14px;box-shadow:0 3px 15px #1740640b}
#view-job-detail .detail-owner-value{font-size:15px;font-weight:650;color:#253a55;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:800px){#view-job-detail .detail-actions.detail-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0}#view-job-detail .detail-actions.detail-tiles .detail-tile{min-height:88px;padding:8px 4px;gap:6px;font-size:11px}#view-job-detail .detail-tile-icon{width:39px;height:39px;font-size:22px}}
@media(max-width:340px){#view-job-detail .detail-actions.detail-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* TrustavAK 1.9.7 - diagnostika vyhodnoceni */
.evaluation-status{display:inline-flex;align-items:center;border-radius:999px;font-size:12px;font-weight:800;padding:7px 12px;margin:12px 0 10px;background:#fff4df;color:#96601b}
.evaluation-status.finished{background:#e5f8ee;color:#108258}
.evaluation-status.preliminary{background:#eaf2ff;color:#206ca6}
.evaluation-help{color:#53687d;line-height:1.6;font-size:14px}
.evaluation-tools{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 12px}
.evaluation-tools button{font-size:13px;min-height:38px}
.evaluation-diagnostics{max-width:100%;margin-top:8px}
.evaluation-filter{display:block;width:100%;padding:12px;border:1px solid #d5e2ef;border-radius:12px;margin:10px 0;background:white;color:#274766}
.evaluation-script-list{display:grid;gap:6px;max-height:300px;overflow:auto}
.evaluation-script-row{text-align:left;display:block;width:100%;background:#f5f8fc;border:1px solid #e2e9f1;border-radius:9px;padding:10px;color:#315474;font-size:13px;overflow-wrap:anywhere}
.evaluation-message,.evaluation-config-note{font-size:13px;line-height:1.6;color:#55708a;margin:11px 0}
.evaluation-field-list{font-size:12px;line-height:1.7;overflow-wrap:anywhere;color:#48647b}

/* 1.9.10: nove agendy v detailu zakazky */
.dt-mint .detail-tile-icon{background:#dcf8ee;color:#118b68}
.dt-cobalt .detail-tile-icon{background:#e0efff;color:#2769cf}
.dt-amber .detail-tile-icon{background:#fff1d7;color:#be7b0c}
.dt-lime .detail-tile-icon{background:#ecf9dd;color:#658d21}
.dt-coral .detail-tile-icon{background:#ffe8e3;color:#cd654d}
.dt-slate .detail-tile-icon{background:#e8edf5;color:#526a8e}
/* delsi nazvy se vejdou i na mobilu, bez preteceni */
#view-job-detail .detail-tile span:last-child{overflow-wrap:anywhere;line-height:1.25;text-align:center}

/* 1.9.11: Materialove listy v detailu zakazky */
.dt-material .detail-tile-icon{background:#e5f7e7;color:#288448}

/* 1.9.12: Objednavky v detailu zakazky */
.dt-orders .detail-tile-icon{background:#e9ecff;color:#5b5aca}

/* 1.9.13 — optional premium visual theme. Default appearance unchanged. */
.appearance-settings{padding:16px;margin:0 0 18px;border:1px solid #d7e3f0;border-radius:16px;background:#f6f9fe;display:grid;gap:12px}
.appearance-settings strong{display:block;color:#17385f;font-size:16px}
.appearance-settings p{color:#667c93;font-size:13px;line-height:1.45;margin-top:5px}
.appearance-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.appearance-option{border:1px solid #b9ccdf;border-radius:12px;background:#fff;padding:11px 8px;cursor:pointer;color:#1b456f;font-weight:700}
.appearance-option[aria-pressed="true"]{color:white;background:#185799;border-color:#185799;box-shadow:0 5px 14px #155ba32b}
html.theme-modern body{background:linear-gradient(155deg,#eff6ff 0%,#f6f9ff 42%,#ebf2fc 100%)}
html.theme-modern .topbar{background:linear-gradient(110deg,#072a57,#125eaf 70%,#148dd1);color:#fff;border-color:#1b6ba4;box-shadow:0 12px 28px #0d43852a}
html.theme-modern .topbar .mobile-brand strong,html.theme-modern .topbar .account,html.theme-modern .topbar .desktop-breadcrumb,html.theme-modern .topbar .desktop-breadcrumb span{color:#fff}
html.theme-modern .topbar .ghost{color:#eaf6ff;border-color:#ffffff65}
html.theme-modern .phone-hero{background:linear-gradient(125deg,#082a57 0%,#155591 63%,#188ec4 100%);box-shadow:0 20px 36px #0d47772e;border-radius:30px}
html.theme-modern .phone-hero-action{background:#ffffff33;border:1px solid #ffffff6b}
html.theme-modern .phone-search,html.theme-modern .job-detail-header,html.theme-modern .panel,html.theme-modern .mobile-production-list>*,html.theme-modern .production-panel{box-shadow:0 12px 30px #1b559015;border-radius:23px}
html.theme-modern .detail-tile{border-radius:18px;box-shadow:0 7px 17px #294a731a;transition:transform .16s ease,box-shadow .16s ease}
html.theme-modern .detail-tile:active{transform:scale(.97)}
html.theme-modern .detail-tile-icon{font-size:26px}
html.theme-modern .phone-avatar{background:linear-gradient(140deg,#238fda,#0b326a);box-shadow:0 9px 20px #195d9d35}
html.theme-modern .desktop-sidebar{background:linear-gradient(180deg,#082a56,#061c3e)}
html.theme-modern .desktop-sidebar .brand,html.theme-modern .desktop-sidebar .sidebar-label{color:#fff}
@media(prefers-reduced-motion:reduce){html.theme-modern .detail-tile{transition:none}}


/* 1.9.14: nizsi mobilni navigace pro oba motivy, respektuje iPhone safe area. */
@media (max-width:800px) {
  .workspace {
    padding-bottom:calc(62px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-bottom,
  html.theme-modern .mobile-bottom {
    position:fixed;
    inset:auto 0 0;
    display:flex;
    align-items:flex-start;
    justify-content:space-around;
    padding:3px 3px calc(2px + env(safe-area-inset-bottom, 0px));
    min-height:0;
    margin:0;
    border-radius:0;
  }
  .mobile-bottom button,
  html.theme-modern .mobile-bottom button {
    box-sizing:border-box;
    width:20%;
    flex:1 1 20%;
    min-width:0;
    min-height:44px;
    padding:1px 0;
    margin:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:1px;
    font-size:10px;
    line-height:1.1;
    white-space:nowrap;
  }
  .mobile-bottom button span,
  html.theme-modern .mobile-bottom button span {
    font-size:19px;
    line-height:22px;
  }
}

/* 1.9.15: compact navigation, dashboard-only settings, profile inside settings. */
#app:not([data-current-view="home"]) .dashboard-settings{display:none!important}
.profile-settings{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 0;margin-bottom:17px;border-bottom:1px solid #e4eaf1}
.profile-settings strong{font-size:15px;color:#203e5e}
.profile-settings p{font-size:13px;color:#71849b;margin:5px 0 0;overflow-wrap:anywhere}
.admin-settings-title{font-size:15px;margin:22px 0 7px;color:#203e5e}
@media(max-width:800px){
 .mobile-bottom button,html.theme-modern .mobile-bottom button{width:33.333%;flex:1 1 33.333%}
 .dashboard-settings{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:36px;font-size:19px!important}
 .profile-settings{align-items:flex-start}
}
