/* Yekton dimensional graphite: authentic brand geometry, static industrial renders,
   and tactile controls. The status palette remains authoritative in status-colors.css. */
:root{--yk-top:#303844;--yk-bottom:#252c36;--yk-edge:#566170;--yk-hi:rgba(255,255,255,.11);--yk-shadow:rgba(6,10,16,.3);--yk-accent:#6c89ff;--yk-copy:#c8d0dc;--yk-card-top:#303844;--yk-card-bottom:#292f39}
html[data-theme=light]{--yk-top:#fff;--yk-bottom:#e5eaf1;--yk-edge:#b9c4d2;--yk-hi:rgba(255,255,255,.9);--yk-shadow:rgba(36,51,73,.12);--yk-accent:#4c69d7;--yk-copy:#435269;--yk-card-top:#fff;--yk-card-bottom:#eef2f7}
.yk-3d-icon{display:inline-block;overflow:hidden;stroke:none!important;fill:none!important;vertical-align:middle;flex-shrink:0;isolation:isolate;filter:drop-shadow(0 2px 1px #05090e38)}
.yk-3d-icon image{pointer-events:none}
html[data-theme=light] .yk-3d-icon{filter:drop-shadow(0 1px 1px #25354c40)}
button{border-color:var(--yk-edge);background-image:linear-gradient(160deg,rgba(255,255,255,.055),rgba(0,0,0,.065));box-shadow:inset 0 1px var(--yk-hi),0 2px 4px var(--yk-shadow);transition:box-shadow .12s,background-color .12s}
button:active:not(:disabled){box-shadow:inset 0 1px 3px #060b162e}
button:disabled{cursor:default}
button.primary,.primary{background-color:#607fff;border-color:#829aff;color:#fff;box-shadow:inset 0 1px #c7d3ff60,0 3px 8px #0d193b36}
button.primary:hover{background-color:#6e8aff}
html[data-theme=light] button.primary{background-color:#526fe1;border-color:#617de9;color:#fff}
input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select{border-color:var(--yk-edge);box-shadow:inset 0 1px 3px #080e1b24,0 1px var(--yk-hi);background-image:linear-gradient(160deg,rgba(0,0,0,.04),rgba(255,255,255,.018))}
input[type=checkbox],input[type=radio]{box-shadow:none;background-image:none}
.card,.hub-object,.chief-object,.hub-analysis-card,.hub-direction,.hub-ai-entry{background-color:var(--yk-card-bottom);background-image:linear-gradient(145deg,var(--yk-card-top),var(--yk-card-bottom));border-color:var(--yk-edge);box-shadow:inset 0 1px var(--yk-hi),0 3px 8px var(--yk-shadow)}
/* Flat interaction zones remain free of containers; their images provide the relief. */
.nav button,.cp-tile,.cp-tabs button,.cp-team-tabs button,.hub-tabs button,.chief-tabs button,.work-tabs button,
.top button,.cp-pencil,.sheethead [data-close],.detailhead button,.photo-close,[data-photo-close],
button.link,.link,.cp-employee-count,.object-status-item,.cp-status-tab,.hub-object-head,.hub-object-row,.chief-object-title,.chief-object-metrics button,
.cp-heading button,.hub-model-object,.cp-settings-open,.cp-group-grip{background-image:none;box-shadow:none}
.nav button:active,.cp-tile:active,.top button:active,.cp-pencil:active,.sheethead [data-close]:active{box-shadow:none}
.top{background-image:linear-gradient(135deg,#2d3440,#252b34 65%);border-bottom-color:#485465;box-shadow:0 2px 8px #080c1426}
html[data-theme=light] .top{background-image:linear-gradient(135deg,#fff,#e9eef5);border-bottom-color:#c9d2df}
html .top .brand{filter:drop-shadow(0 1px 1px #0b101b55);opacity:1}
html[data-theme=light] .top .brand{filter:drop-shadow(0 1px 0 #fff);opacity:1}
.header-avatar,.avatar{border:1px solid #7b899b;background-image:linear-gradient(140deg,#758193,#414d5e);box-shadow:inset 0 1px #d7e0ee55,0 2px 5px #07101b45}
html[data-theme=light] .header-avatar,html[data-theme=light] .avatar{background-image:linear-gradient(140deg,#eff3f8,#aab8ca);color:#34445a;border-color:#a3b1c4}
html .top .header-edit{background-image:linear-gradient(140deg,#869fff,#5476ed);box-shadow:inset 0 1px #d6dfff77,0 2px 4px #0a142b33}
.header-edit .yk-3d-icon{width:20px;height:20px;filter:drop-shadow(0 1px 1px #0d17343d)}
.header-theme .yk-3d-icon{width:27px;height:27px}
.cp-pencil .yk-3d-icon,.cp-object-tab>.cp-mobile-settings.cp-pencil .yk-3d-icon{width:29px;height:29px}
html .cp-presence{background:linear-gradient(150deg,#343d49,#242c36);border-color:#647286;box-shadow:inset 0 1px 3px #050a1440,0 1px #8290a527}
html .cp-presence button{background-image:none;box-shadow:none;color:#bec8d7}
html .cp-presence button[aria-pressed=true]{background-image:linear-gradient(145deg,#7188bd,#485d87);box-shadow:inset 0 1px #d3defc60,0 1px 3px #050b1b50;color:#fff}
html[data-theme=light] .cp-presence{background:linear-gradient(145deg,#d7dfea,#eef2f8);border-color:#aab8ca}
html[data-theme=light] .cp-presence button{color:#526278}
html[data-theme=light] .cp-presence button[aria-pressed=true]{color:#fff}
.segments{background-image:linear-gradient(155deg,var(--yk-bottom),var(--yk-top));box-shadow:inset 0 1px 3px #050a1429,0 1px var(--yk-hi)}
.segments button{background-image:none;box-shadow:none}
.segments button[aria-pressed=true],.segments button.active,.cp-employee-shift button[aria-pressed=true]{background-image:linear-gradient(145deg,#7a94ff,#5677eb);border-color:#869bfa;box-shadow:inset 0 1px #e3eaff66,0 1px 3px #050e2138;color:#fff}
.cp-shiftbar .segments{border:1px solid var(--yk-edge)}
.cp-tabs,.cp-team-tabs{border-bottom-color:var(--yk-edge)}
html .cp-tabs [aria-selected=true],html .cp-team-tabs [aria-selected=true]{color:var(--yk-copy)}
.cp-object-tab:has([aria-selected=true]),.cp-tabs>[aria-selected=true],.cp-team-tabs [aria-selected=true]{box-shadow:inset 0 -3px var(--yk-accent)}
.cp-object-tab>[aria-selected=true]{box-shadow:none!important}
/* Industrial location glyphs: larger silhouettes, identical cells day and night. */
.cp-tile{border:0;background:transparent!important;box-shadow:none!important}
.cp-tile .cp-glyph{width:82px;height:82px;margin-bottom:7px}
.cp-glyph>.yk-3d-icon{width:100%;height:100%;opacity:1;filter:drop-shadow(0 3px 2px #03080c50)}
html[data-theme=light] .cp-glyph>.yk-3d-icon{filter:drop-shadow(0 2px 2px #20314b35)}
.cp-label{color:var(--yk-copy);font-weight:550}
.cp-count{box-shadow:0 0 0 2px var(--status-surface),0 2px 4px #05080f70;text-shadow:none}
.cp-grid{column-gap:8px}
.cp-settings-open>.yk-3d-icon,.cp-pick-row>.yk-3d-icon{width:38px;height:38px}
.cp-type-select [data-cp-type-icon]>.yk-3d-icon{width:42px;height:42px}
.cp-settings-categories button{background-image:linear-gradient(145deg,var(--yk-top),var(--yk-bottom));border-color:var(--yk-edge)}
.cp-employee-places,.assignment-select{background-image:linear-gradient(145deg,var(--yk-top),var(--yk-bottom));box-shadow:inset 0 1px var(--yk-hi),0 2px 4px var(--yk-shadow);border:1px solid var(--yk-edge)}
.cp-employee-shift{background:var(--yk-bottom);box-shadow:inset 0 1px 3px #050a1438}
.cp-employee-shift button{box-shadow:none;background-image:none}
/* Navigation images and control button must stand up to the industrial grid. */
.nav{background-image:linear-gradient(150deg,#2c333e,#252b34);border-color:#515d70;box-shadow:0 -3px 12px #050a1430}
html[data-theme=light] .nav{background-image:linear-gradient(150deg,#fbfcff,#e2e9f2);border-color:#bcc8d8}
.nav button>.yk-3d-icon{width:35px;height:35px;filter:drop-shadow(0 2px 1px #060a1259)}
.nav button.active>.yk-3d-icon{filter:drop-shadow(0 0 3px #8fa9ff9c) drop-shadow(0 2px 1px #050a1440)}
html .nav button.active{color:#a5baff;background-color:transparent}
html[data-theme=light] .nav button.active{color:#3658c7}
html .nav .create .round,html .control-circle{background-image:radial-gradient(circle at 32% 22%,#ff767b 0,transparent 43%),linear-gradient(155deg,#fa525a,#d81d2a);box-shadow:inset 0 1px 1px #ffc1c480,inset 0 -2px 3px #79020d55,0 3px 6px #090b1755}
html .nav .create .round{width:38px;height:38px}
html .nav button>.nav-count{background-image:none!important;box-shadow:none!important;text-shadow:0 1px 1px #070c1845}
html[data-theme=light] .nav button>.nav-count{text-shadow:none}
/* Sheets have the same material, with plain unframed close controls. */
dialog#sheet{background-image:linear-gradient(150deg,#2e3540,#252c35);border-color:#59677a;box-shadow:0 -8px 28px #02060e60,inset 0 1px #a6b5cc25}
html[data-theme=light] dialog#sheet{background-image:linear-gradient(150deg,#fff,#edf2f8);border-color:#b7c4d6;box-shadow:0 -8px 24px #23365630,inset 0 1px #fff}
.sheethead{border-bottom-color:var(--yk-edge)}
.sheet-grip span{background:linear-gradient(#b7c2d1,#778597);box-shadow:0 1px 1px #050a1438}
.sheethead [data-close],.detailhead button,[data-photo-close]{border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;padding:8px}
.sheethead [data-close]>.yk-3d-icon,.detailhead button>.yk-3d-icon{width:26px;height:26px}
button:focus-visible,a:focus-visible{outline:2px solid #9db4ff;outline-offset:3px}
/* Explicit states retain their approved palette underneath the common relief. */
.incident-action-grid button,.control-types button,.chips button.active{background-image:linear-gradient(150deg,#ffffff20,#0000000b);box-shadow:inset 0 1px #ffffff3b,0 2px 4px var(--yk-shadow)}
.incident-action-grid button.incident-report-up:disabled[data-report-state=reported]{box-shadow:inset 0 1px #fff7,0 1px 3px var(--yk-shadow)}
@media (max-width:760px),(pointer:coarse) and (orientation:portrait){
 .nav button>.yk-3d-icon{width:34px;height:34px}
 .nav .create .round{width:38px;height:38px}
 .cp-manager-home>.cp-grid .cp-glyph{width:clamp(48px,10dvh,86px);height:clamp(48px,10dvh,86px);margin-bottom:5px}
 .cp-manager-home>.cp-grid .cp-label{min-height:23px;align-content:center;font-size:14px}
 .cp-manager-home>.cp-grid>.cp-tile{padding:10px 1px 7px;justify-content:center}
 .cp-manager-home>.cp-grid [data-cp-group=utilities] .cp-label{font-size:12px;letter-spacing:-.2px}
 .cp-manager-home .cp-count{right:-6px;top:-3px;min-width:22px;height:22px;font-size:12px}
 .cp-group-panel .cp-glyph{width:76px;height:76px}
 .cp-group-panel .cp-tile{padding:8px 1px;min-height:111px}
 .cp-group-panel .cp-count{right:-5px;top:-3px}
 .cp-header>.brand{width:94px}
}
@media (max-width:360px){
 .cp-manager-home>.cp-grid .cp-glyph{width:clamp(46px,9.5dvh,72px);height:clamp(46px,9.5dvh,72px)}
 .cp-manager-home>.cp-grid .cp-label{font-size:13px}
 .cp-manager-home>.cp-grid [data-cp-group=utilities] .cp-label{font-size:10px}
 .cp-group-panel .cp-glyph{width:66px;height:66px}
 .cp-header>.brand{width:88px}
}
@media (max-height:740px) and (max-width:760px),(max-height:740px) and (pointer:coarse) and (orientation:portrait){
 .cp-manager-home>.cp-grid .cp-glyph{width:clamp(44px,8.5dvh,64px);height:clamp(44px,8.5dvh,64px)}
 .cp-manager-home>.cp-grid>.cp-tile{padding-top:5px;padding-bottom:5px}
}
@media (prefers-reduced-motion:reduce){button{transition:none}}
/* Presence uses the same readable selected surface in both themes. */
html .cp-presence button[data-cp-presence][aria-pressed=true],html[data-theme=light] .cp-presence button[data-cp-presence][aria-pressed=true]{background:linear-gradient(145deg,#7188bd,#485d87);color:#fff;box-shadow:inset 0 1px #d3defc60,0 1px 3px #050b1b50}

.remove-attachment>.yk-3d-icon,[data-result-remove]>.yk-3d-icon,[data-curator-remove]>.yk-3d-icon{width:17px;height:17px}.remove-attachment,[data-result-remove],[data-curator-remove]{display:inline-flex;align-items:center;justify-content:center}
.switch-track{background-image:linear-gradient(160deg,#ffffff12,#00000017);box-shadow:inset 0 1px 3px #060c1633,0 1px var(--yk-hi)}
.switch-track:before{background-image:linear-gradient(145deg,#fff,#b7c3d2);box-shadow:0 1px 3px #08132255,inset 0 1px #fff9}

/* Keep iOS native pickers, but draw values in predictable boxes. Native date
   shadow controls can overflow narrow columns with the system text size. */
.assignment-deadline-compact>.assignment-native-display{position:relative;grid-template-rows:auto 46px;min-width:0}
.assignment-native-display>.assignment-field-value{display:flex;align-items:center;min-width:0;width:100%;height:46px;padding:8px 7px;border:1px solid var(--yk-edge);border-radius:12px;background:var(--yk-bottom);box-shadow:inset 0 1px 3px #080e1b24,0 1px var(--yk-hi);font-size:15px;color:inherit;white-space:nowrap;overflow:hidden}
.assignment-deadline-compact>.assignment-native-display>input{position:absolute;left:0;bottom:0;width:100%;height:46px;min-width:0;opacity:0;cursor:pointer}
.assignment-native-display:focus-within>.assignment-field-value{outline:2px solid #9db4ff;outline-offset:2px}
html[data-text-size=large] .assignment-field-value{font-size:16px}
@media (max-width:360px){.assignment-native-display>.assignment-field-value{padding:8px 4px;font-size:14px}html[data-text-size=large] .assignment-field-value{font-size:15px}}
/* Slightly larger brand, with space reserved in the header grid. */
.top.header-inline-role{grid-template-columns:188px minmax(0,1fr) 64px}
.top.header-inline-role>.brand{width:188px;max-height:42px}
@media (max-width:760px),(pointer:coarse) and (orientation:portrait){
 .top.header-inline-role{grid-template-columns:144px minmax(0,1fr) 64px}
 .top.header-inline-role>.brand{width:144px}
 .top.header-inline-role.cp-header{grid-template-columns:100px minmax(0,1fr) 30px 56px}
 .top.header-inline-role.cp-header>.brand{width:100px}
}
@media (max-width:360px){
 .top.header-inline-role{grid-template-columns:108px minmax(0,1fr) 64px}
 .top.header-inline-role>.brand{width:108px}
 .top.header-inline-role.cp-header{grid-template-columns:76px minmax(0,1fr) 26px 48px}
 .top.header-inline-role.cp-header>.brand{width:76px}
}
/* Watch period: centered fields, headings and native date values. */
.cp-watch-dates{display:grid;grid-template-columns:minmax(0,1fr);justify-items:stretch;margin-inline:auto}
.cp-watch-dates>label{text-align:center;justify-items:stretch;width:100%}
.cp-watch-dates input[type=date]{text-align:center;align-self:stretch;margin-inline:auto}
.cp-watch-dates input[type=date]::-webkit-datetime-edit{text-align:center;padding:0}
.cp-watch-dates input[type=date]::-webkit-date-and-time-value{width:100%;text-align:center}
/* Self-reported presence is green; rest retains the neutral selected surface. */
html .cp-presence button[data-cp-presence=working][aria-pressed=true],html[data-theme=light] .cp-presence button[data-cp-presence=working][aria-pressed=true]{background:linear-gradient(145deg,#287a48,#1b6538);color:#fff;box-shadow:inset 0 1px #c6f4d14d,0 1px 3px #08231450}
/* Pencil anchored to the lower-right avatar edge; keep the photo centre tappable. */
.top.header-inline-role .header-user .header-edit{top:auto;bottom:0;right:-7px;width:30px;height:30px;min-height:30px;padding:5px;display:grid;place-items:center}
.profile-photo-wrap .edit-badge{bottom:0;right:0;width:32px;height:32px;min-height:32px;padding:6px;display:grid;place-items:center}
.profile-photo-wrap .edit-badge>.yk-3d-icon{width:20px;height:20px}
.edit-badge:after{content:"";position:absolute;inset:-6px;border-radius:50%}
@media (max-width:760px),(pointer:coarse) and (orientation:portrait){.top.header-inline-role.cp-header .header-user .header-edit{bottom:2px}}
@media (max-width:360px){.top.header-inline-role.cp-header .header-user .header-edit{bottom:6px}}
/* Wide, low industrial silhouettes need a larger optical scale than upright buildings. */
.yk-place-icon:is([data-icon=pit],[data-icon=dump],[data-icon=weighbridge]){transform:scale(1.25);transform-origin:center}
/* Profile overflow menu sits below the image; it never paints over the face. */
.top.header-inline-role .header-user{--profile-avatar-size:64px}
.top.header-inline-role .header-user .header-edit{top:calc(50% + var(--profile-avatar-size)/2 - 7px);bottom:auto;right:0;width:24px;height:20px;min-height:20px;padding:0;display:grid;place-items:center;background:none!important;box-shadow:none!important;border:0;border-radius:0;color:#c0c7d1}
.profile-photo-wrap .edit-badge{top:calc(100% - 7px);bottom:auto;right:0;width:28px;height:20px;min-height:20px;padding:0;background:none!important;box-shadow:none!important;border:0;border-radius:0;color:#c0c7d1}
.profile-photo-wrap .edit-badge:after{inset:-5px 0;content:""}
.header-edit>.profile-menu-dots,.edit-badge>.profile-menu-dots{display:block;width:18px;height:4px;fill:currentColor;stroke:none}
html[data-theme=light] .header-edit,html[data-theme=light] .edit-badge{color:#546276}
@media (max-width:760px),(pointer:coarse) and (orientation:portrait){.top.header-inline-role.cp-header .header-user{--profile-avatar-size:56px}}
@media (max-width:360px){.top.header-inline-role.cp-header .header-user{--profile-avatar-size:48px}}
/* Kazakh/English navigation labels fit equal slots; Russian retains its wider incident slot. */
@media (max-width:760px),(pointer:coarse) and (orientation:portrait){html:lang(kk) .nav:has(button:nth-child(5)),html:lang(en) .nav:has(button:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))}}
/* Keep counters inside their navigation slot, including three-digit incident totals. */
@media (max-width:760px),(pointer:coarse) and (orientation:portrait){html .nav button:is([data-nav=reports],[data-nav=events])>.nav-count{left:auto;right:max(1px,calc(50% - 30px))}}
html[data-theme=light] .top.header-inline-role .header-user .header-edit,html[data-theme=light] .profile-photo-wrap .edit-badge{color:#546276}
/* Day/night segments follow their translated label lengths instead of squeezing equally. */
.cp-shiftbar .segments{flex:0 0 auto}
.cp-shiftbar .segments button{flex:0 0 auto}
@media (max-width:360px){html:lang(en) .cp-shiftbar .segments button,html:lang(kk) .cp-shiftbar .segments button{font-size:11px;padding-inline:5px}}
