/* iPhone Glass / Fuji. Все эффекты ограничены темой ios и экраном. */
@media screen {
body.workplace-theme[data-theme="japan-office"] {
 --t-bg:#b6cfe7;--t-panel:#f8fbfff2;--t-soft:#e9f0f9;--t-text:#142c46;--t-muted:#435c76;--t-line:#b8cadd;--t-accent:#086bdf;--t-on:#fff;--t-radius:23px;
 --j-glass:linear-gradient(135deg,#ffffffdb,#eef6ffc2 48%,#b7cfe8b8);
 --j-edge:#fffffff0;--j-bottom:#8ba8c6;--j-shadow:#143c6940;--j-glow:#ffffffd9;--j-field:#f8fbfff5;--j-heading:#fff;
 background:#bed6ec!important;color:var(--t-text);isolation:isolate;
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="dawn"]{--j-glass:linear-gradient(135deg,#fff5ebdf,#f4e7f3c9 48%,#c3d6ecb8);--j-bottom:#b49bb7;--t-accent:#8154c1;--t-soft:#f2edf8}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="dusk"]{--j-glass:linear-gradient(135deg,#fff1e1db,#f3e2e6ce 48%,#b0bfdcbf);--j-bottom:#b590a0;--t-accent:#9b4c80;--t-soft:#f6eaf0}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"]{
 --t-panel:#17283ff5;--t-soft:#243953;--t-text:#ecf3ff;--t-muted:#bbccdf;--t-line:#4b6480;--t-accent:#78b5ff;--t-on:#092343;
 --j-glass:linear-gradient(135deg,#456181ba,#203650cf 48%,#132841e0);--j-edge:#a8c6e386;--j-bottom:#081b30;--j-shadow:#0008;--j-glow:#c1e0ff66;--j-field:#142a43ed;
}
#japanLandscape{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:#7db5dd}
#japanLandscape .japan-scene{position:absolute;inset:0;background-size:cover;background-position:center center;opacity:0;transition:opacity 1.8s ease;will-change:opacity}
#japanLandscape .japan-scene-day{background-image:url('assets/wallpapers/interwood-office-autumn-day-v7.png')}
#japanLandscape .japan-scene-dawn{background-image:linear-gradient(180deg,#eea7b34a,#f9debf25 55%,#5267a51f),url('assets/wallpapers/interwood-office-autumn-day-v7.png');filter:saturate(.78) brightness(.87)}
#japanLandscape .japan-scene-dusk{background-image:linear-gradient(175deg,#9b3b8066,#ffae6b70 48%,#20356666),url('assets/wallpapers/interwood-office-autumn-day-v7.png');background-blend-mode:multiply;filter:saturate(.9) brightness(.78)}
#japanLandscape .japan-scene-night{background-image:url('assets/wallpapers/interwood-office-autumn-night-v7.png')}
body[data-japan-phase="day"] .japan-scene-day,body[data-japan-phase="dawn"] .japan-scene-dawn,body[data-japan-phase="dusk"] .japan-scene-dusk,body[data-japan-phase="night"] .japan-scene-night{opacity:1!important}
#japanLandscapeAtmosphere{position:absolute;inset:0;background:linear-gradient(180deg,#0c31542e,transparent 36%,#0a264b18);box-shadow:inset 0 0 180px #173b5720}
body[data-japan-phase="night"] #japanLandscapeAtmosphere{background:linear-gradient(180deg,#02091830,transparent 50%,#010b1c42)}
body.workplace-theme[data-theme="japan-office"] :is(.stars,.welcome-screen){display:none!important}
body.workplace-theme[data-theme="japan-office"] .app-shell{position:relative;z-index:1;width:100%;min-width:0;margin:0}
body.workplace-theme[data-theme="japan-office"] :is(.workspace,.screen){background:transparent!important}
body.workplace-theme[data-theme="japan-office"] .window-bar{position:sticky;top:0;z-index:50;min-height:76px;height:auto;display:flex;flex-wrap:wrap;gap:8px;padding:12px 20px;background:var(--j-glass)!important;border:0;border-bottom:1px solid var(--j-edge);box-shadow:inset 0 1px 0 var(--j-glow),0 6px 24px #102d4a26;backdrop-filter:blur(26px) saturate(130%);color:var(--t-text)}
body.workplace-theme[data-theme="japan-office"] .window-bar strong{font-weight:750;font-size:15px;letter-spacing:-.3px;white-space:nowrap}
body.workplace-theme[data-theme="japan-office"] .window-bar strong small{font-size:9px}
body.workplace-theme[data-theme="japan-office"] .brand-orb{border:1px solid #bbddff;box-shadow:inset 0 2px 1px #ffffffaa,0 4px 0 #0a448b4a,0 8px 12px #245a913d;background:linear-gradient(145deg,#87cfff,#1680ef 50%,#054eb8);border-radius:12px}
body.workplace-theme[data-theme="japan-office"] .workspace-search{flex:1 1 170px;max-width:260px;border:1px solid var(--t-line);border-radius:13px;background:var(--j-field);box-shadow:inset 0 2px 5px #15385b24;margin:0;min-height:38px}
body.workplace-theme[data-theme="japan-office"] .workspace-search input{border:0!important;background:transparent!important;box-shadow:none!important;padding:0;min-height:30px!important}
body.workplace-theme[data-theme="japan-office"] .screen{max-width:1480px;margin:auto;padding:24px 32px 140px;overflow:visible;min-width:0}
body.workplace-theme[data-theme="japan-office"] .screen-title,body.workplace-theme[data-theme="japan-office"] .dashboard-heading{margin-bottom:20px}
body.workplace-theme[data-theme="japan-office"] .screen h1{font-size:30px;font-weight:750;letter-spacing:-.8px;color:var(--j-heading);text-shadow:0 2px 8px #12344c70}
body.workplace-theme[data-theme="japan-office"] :is(.screen-title p,.dashboard-heading p){color:#fff;text-shadow:0 1px 5px #12344c90;font-size:12px}
body.workplace-theme[data-theme="japan-office"] .screen :is(h2,h3){color:var(--t-text);text-shadow:none;font-weight:700}
/* Двойная кромка имитирует толщину стекла, отдельная тень — отрыв от пейзажа. */
body.workplace-theme[data-theme="japan-office"] :is(.panel,.home-search-panel,.home-analytics,.order-detail,.client-profile,.client-list,.supplier-profile,.supplier-list,.production-card,.cutting-workspace,.native-ledger,.monthly-crm-board,.crystal-overview,.sidebar,#iosDock,.modal-window,.ready-orders-panel,.theme-picker,.japan-time-dialog){
 background:var(--j-glass)!important;color:var(--t-text);border:1px solid var(--j-edge);border-right:2px solid var(--j-edge);border-bottom:3px solid var(--j-bottom);border-radius:23px;
 box-shadow:inset 0 2px 0 var(--j-glow),inset 2px 0 0 #ffffff30,inset 0 -2px 4px #0a284229,0 3px 0 #24486b35,0 12px 18px var(--j-shadow),0 24px 46px #122c4926!important;
 backdrop-filter:blur(22px) saturate(135%);
}
body.workplace-theme[data-theme="japan-office"] :is(.panel,.home-search-panel,.home-analytics){overflow:hidden}
body.workplace-theme[data-theme="japan-office"] :is(.panel>header,.panel>footer,.home-analytics>header,.journal-toolbar,.order-live-search,.film-search,.dialog-tab-content,.analytics-grid,.modal-window header,.modal-window footer){background:transparent!important;color:var(--t-text);border-color:var(--t-line)}
body.workplace-theme[data-theme="japan-office"] :is(.window-bar,.screen,.modal-window,.ready-orders-panel,#iosDock,.japan-time-dialog) button{
 border:1px solid #a4bcd8;border-bottom:3px solid #85a3c8;border-radius:12px;background:linear-gradient(180deg,#ffffff,#f4f8ff 42%,#c5d9f0);color:#203e60;
 box-shadow:inset 0 2px 0 #fff,inset 1px 0 0 #ffffffa0,0 3px 0 #183e6c26,0 6px 10px #15345238;font-weight:650;min-height:36px;transition:box-shadow .16s ease,background .16s ease;
}
body.workplace-theme[data-theme="japan-office"] :is(.window-bar,.screen,.modal-window,#iosDock) button:hover{background:linear-gradient(#fff,#dcecff);border-color:#5d95d6;box-shadow:inset 0 2px 0 #fff,0 4px 0 #3573b935,0 9px 14px #15345240}
body.workplace-theme[data-theme="japan-office"] :is(.window-bar,.screen,.modal-window,#iosDock) button:active{box-shadow:inset 0 3px 5px #123d6a40;transform:translateY(2px)}
body.workplace-theme[data-theme="japan-office"] :is(.screen,.modal-window) button:is(.primary,.neon-button,.active),body.workplace-theme[data-theme="japan-office"] .screen :is([data-command="add-order"],[data-command="add-client"]){background:linear-gradient(#7bbcff,#2484f4 45%,#0458c4);color:#fff;border-color:#3b8fe7;border-bottom-color:#034b9f;box-shadow:inset 0 2px 0 #ffffff80,0 4px 0 #06478b40,0 8px 15px #16589e42}
body.workplace-theme[data-theme="japan-office"] :is(.screen,.modal-window,.window-bar,.ready-orders-panel) :is(input,select,textarea){background:var(--j-field)!important;color:var(--t-text)!important;border:1px solid var(--t-line);border-radius:11px;box-shadow:inset 0 2px 4px #15385b1c,0 1px 0 #ffffff80;font:13px var(--t-font);min-height:36px}
body.workplace-theme[data-theme="japan-office"] :is(.screen,.modal-window) label{color:var(--t-muted);font-weight:600}
body.workplace-theme[data-theme="japan-office"] .global-search{background:var(--j-field)!important;border-color:var(--t-line);box-shadow:inset 0 2px 5px #1239561c;border-radius:15px}
body.workplace-theme[data-theme="japan-office"] .global-search input{background:transparent!important;border:0!important;box-shadow:none}
body.workplace-theme[data-theme="japan-office"] .global-search-filters{background:transparent!important;gap:9px;padding:0;margin-top:16px}
body.workplace-theme[data-theme="japan-office"] .global-search-filters button{border:1px solid #a4bcd8;border-bottom:3px solid #85a3c8;padding:9px 17px;color:#264563}
body.workplace-theme[data-theme="japan-office"] .global-search-filters button.active{background:linear-gradient(#7bbcff,#2484f4 45%,#0458c4);color:white}
/* Рабочие таблицы остаются непрозрачными для сохранения контраста. */
body.workplace-theme[data-theme="japan-office"] table{background:var(--t-panel)!important;color:var(--t-text);font-variant-numeric:tabular-nums}
body.workplace-theme[data-theme="japan-office"] table th{background:linear-gradient(#f5f9ff,#dce8f6)!important;color:#314d6c;font-weight:750;font-size:11px;padding:12px 11px;border-color:#aebfd6}
body.workplace-theme[data-theme="japan-office"] table td{background:#fafcff;color:#183550;font-size:13px;padding:12px 11px;border-color:#d0ddec}
body.workplace-theme[data-theme="japan-office"] table tr:nth-child(even) td{background:#edf3fb}
body.workplace-theme[data-theme="japan-office"] table tr:hover td{background:#d9eaff}
body.workplace-theme[data-theme="japan-office"] table tr.selected td{background:#cfe4ff!important}
body.workplace-theme[data-theme="japan-office"] .analytics-kpis article{background:linear-gradient(135deg,#ffffffed,#d9e9ffd9)!important;border:1px solid #fff;border-bottom:3px solid #9bb5d5;border-radius:19px;box-shadow:inset 0 2px 0 #fff,0 7px 12px #24496c26;padding:20px}
body.workplace-theme[data-theme="japan-office"] .analytics-kpis article b{color:#133b65;font-weight:750}
body.workplace-theme[data-theme="japan-office"] .analytics-kpis article span{color:#415d7b}
body.workplace-theme[data-theme="japan-office"] .journal-status{background:var(--j-field);color:var(--t-muted)}
/* Главная: панорамное стекло и объёмная диаграмма из тестовых данных. */
body.workplace-theme[data-theme="japan-office"] .crystal-overview{display:grid!important;grid-template-columns:1fr 330px;align-items:center;gap:28px;position:relative;padding:27px 30px 52px;margin:0 0 28px;min-height:284px;background:linear-gradient(110deg,#ffffffc9,#e2efff62 64%,#d8ebff7d)!important;backdrop-filter:blur(8px) saturate(115%);overflow:hidden}
body.workplace-theme[data-theme="japan-office"] .crystal-overview:before{content:'';position:absolute;inset:1px;border-radius:22px;border-top:1px solid #fff8;background:linear-gradient(118deg,#ffffff42,transparent 35%,#ffffff1a 60%,transparent);pointer-events:none;width:auto;height:auto;box-shadow:none}
body.workplace-theme[data-theme="japan-office"] .crystal-eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#284f76;display:flex;align-items:center;gap:10px}
.crystal-eyebrow i{width:5px;height:5px;background:currentColor;border-radius:50%}
body.workplace-theme[data-theme="japan-office"] .crystal-overview h2{font-size:34px!important;line-height:1.08;letter-spacing:-1px;color:#173655;margin:13px 0 10px;font-weight:750}
body.workplace-theme[data-theme="japan-office"] .crystal-overview .japan-hero-description{font-size:12px;color:#385975;margin:0}
.japan-hero-metrics{display:flex;gap:20px;margin-top:22px}
.japan-hero-metrics span{font-size:10px;font-weight:650;color:#385975;display:flex;flex-direction:column;gap:5px;min-width:85px;border-right:1px solid #7f9bb74a;padding-right:20px}
.japan-hero-metrics span:last-child{border:0}
.japan-hero-metrics b{font-size:25px;letter-spacing:-.7px;color:#153c63;line-height:1}
body.workplace-theme[data-theme="japan-office"] .japan-hero-chart{padding:18px;border:1px solid #ffffffaa;border-bottom:2px solid #93b4d3a0;border-radius:22px;background:linear-gradient(130deg,#ffffffc2,#c9dff1a3);box-shadow:inset 0 2px 0 #fff,0 8px 18px #24476b35;backdrop-filter:blur(18px)}
.japan-chart-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:750;color:#22476b;margin-bottom:19px}
.japan-chart-heading small{font-size:9px;background:#2875bb15;border:1px solid #78a1c96b;padding:3px 7px;border-radius:7px}
body.workplace-theme[data-theme="japan-office"] .crystal-chart{display:flex;align-items:center;gap:20px}
body.workplace-theme[data-theme="japan-office"] .crystal-ring{width:112px;height:112px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;box-shadow:inset 0 2px 3px #ffffffae,inset 0 -5px 6px #122f6470,0 6px 0 #3d628c45,0 12px 16px #13375640}
body.workplace-theme[data-theme="japan-office"] .crystal-ring strong{display:flex;flex-direction:column;align-items:center;justify-content:center;width:76px;height:76px;border-radius:50%;background:linear-gradient(145deg,#fff,#d4e6f9);font-size:27px;color:#163d63;box-shadow:inset 0 3px 5px #28476842,0 1px 0 #fffb}
body.workplace-theme[data-theme="japan-office"] .crystal-ring small{font-size:8px;color:#3c5c7e}
body.workplace-theme[data-theme="japan-office"] .crystal-legend{display:grid;flex:1;gap:11px;font-size:11px;color:#27496b}
body.workplace-theme[data-theme="japan-office"] .crystal-legend span{display:flex;align-items:center;gap:6px;white-space:nowrap}
body.workplace-theme[data-theme="japan-office"] .crystal-legend i{display:block;width:8px;height:8px;border-radius:3px;background:var(--dot);box-shadow:inset 0 1px 1px #ffffffc0,0 2px 2px #28558245}
body.workplace-theme[data-theme="japan-office"] .crystal-legend b{margin-left:auto;padding-left:8px}
.japan-chart-track{display:flex;gap:3px;height:6px;margin-top:21px;border-radius:6px;overflow:hidden;box-shadow:0 1px 0 #fff}
.japan-chart-track i{min-width:0}
.japan-landscape-caption{position:absolute;left:30px;right:30px;bottom:14px;display:flex;align-items:center;gap:7px;font-size:10px;color:#355a7d;border-top:1px solid #ffffff66;padding-top:10px}
.japan-landscape-caption svg{width:16px;height:16px}
.japan-landscape-caption b{margin-left:auto;font-weight:600;letter-spacing:.3px}
/* Плавающий док с цветными объёмными значками. */
body.workplace-theme[data-theme="japan-office"] #iosDock{position:fixed;display:flex;left:50%;right:auto;top:auto;bottom:44px;transform:translateX(-50%);margin:0;flex-direction:row;justify-content:center;align-items:center;width:min(475px,calc(100vw - 28px));max-height:none;overflow:visible;padding:10px 13px;gap:12px;border-radius:27px;z-index:70}
body.workplace-theme[data-theme="japan-office"] #iosDock:hover,body.workplace-theme[data-theme="japan-office"] #iosDock:has(button:focus-visible){transform:translateX(-50%)}
body.workplace-theme[data-theme="japan-office"] #iosDock:before{display:none}
body.workplace-theme[data-theme="japan-office"] #iosDock button{flex:1;width:auto;min-width:0;min-height:62px;gap:7px;padding:4px 5px;border:0;background:transparent;box-shadow:none!important;color:var(--t-text);border-radius:15px;font-size:10px}
body.workplace-theme[data-theme="japan-office"] #iosDock button span{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:linear-gradient(140deg,#88caff,#1a82f2 52%,#034eb2);color:white;border-top:1px solid #c9eaff;border-bottom:3px solid #024a9f;box-shadow:inset 1px 2px 1px #ffffff96,0 3px 0 #0a3e7a35,0 5px 7px #0b2b5550}
body.workplace-theme[data-theme="japan-office"] #iosDock button:nth-child(2) span{background:linear-gradient(140deg,#c4a7ff,#8c60dc 52%,#5e3da0);border-bottom-color:#4e3185}
body.workplace-theme[data-theme="japan-office"] #iosDock button:nth-child(3) span{background:linear-gradient(140deg,#8dddc9,#25a98c 52%,#04765d);border-bottom-color:#09634f}
body.workplace-theme[data-theme="japan-office"] #iosDock button:nth-child(4) span{background:linear-gradient(140deg,#ffd186,#eba047 52%,#bc6716);border-bottom-color:#965013}
body.workplace-theme[data-theme="japan-office"] #iosDock button:nth-child(5) span{background:linear-gradient(140deg,#a9b8d4,#6f83a3 52%,#3a506e);border-bottom-color:#30425b}
body.workplace-theme[data-theme="japan-office"] #iosDock .interface-icon{width:23px;height:23px;stroke-width:1.8}
body.workplace-theme[data-theme="japan-office"] #iosDock button.active,body.workplace-theme[data-theme="japan-office"] #iosMore[aria-expanded="true"]{background:#ffffff4d;box-shadow:inset 0 1px 0 #ffffffcc!important;color:var(--t-text)}
body.workplace-theme[data-theme="japan-office"] #iosDock button:hover span{box-shadow:inset 1px 2px 1px #ffffffc0,0 4px 0 #0a3e7a35,0 8px 12px #0b2b5570}
body.workplace-theme[data-theme="japan-office"] .sidebar{left:0;right:0;top:calc(var(--crm-navigation-height,90px) + 16px);bottom:155px;width:min(660px,calc(100vw - 32px));height:auto;max-height:none;margin-inline:auto;transform:none;z-index:65;padding:22px}
body.workplace-theme[data-theme="japan-office"] #navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
body.workplace-theme[data-theme="japan-office"] #navigation button{height:90px;min-height:0;padding:8px 4px;flex-direction:column;background:transparent;color:var(--t-text);border:0;box-shadow:none;gap:9px}
body.workplace-theme[data-theme="japan-office"] #navigation button>span{width:38px;height:38px;box-shadow:inset 0 2px 1px #ffffff85,0 3px 0 #14396e40,0 7px 10px #15386140;border-bottom:2px solid #18486a70;border-radius:12px}
body.workplace-theme[data-theme="japan-office"] #navigation button.active{background:#72abf330;color:var(--t-text)}
/* Контроль автоматического времени и ручного просмотра. */
#japanTimeControl[hidden],#japanLandscape[hidden]{display:none!important}
#japanTimeControl{margin-left:auto}
body.workplace-theme[data-theme="japan-office"] .window-bar .japan-time-button{display:flex;align-items:center;gap:9px;padding:6px 11px;min-height:44px;border-radius:15px;min-width:145px}
.japan-time-icon{font-size:24px;line-height:1;color:#ce8a21;text-shadow:0 1px 0 white}
.japan-time-copy{display:flex;flex-direction:column;gap:3px;text-align:left;white-space:nowrap}.japan-time-copy b{font-size:11px}.japan-time-copy small{font-size:9px;opacity:.8;font-weight:500}
.japan-time-chevron{font-size:13px;margin-left:4px}
body.workplace-theme[data-theme="japan-office"] .japan-time-dialog{width:min(520px,calc(100vw - 32px));padding:25px;color:var(--t-text)}
.japan-time-dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px}.japan-time-dialog header small{font-size:9px;letter-spacing:1.8px;color:var(--t-muted);font-weight:700}.japan-time-dialog h2{font-size:23px;margin:9px 0}
.japan-time-close{width:36px;font-size:23px}.japan-time-explanation{font-size:13px;color:var(--t-muted);line-height:1.6;margin:12px 0 20px}.japan-time-options{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.japan-time-options button{padding:10px 3px;font-size:12px}.japan-time-options button[aria-pressed="true"]{background:linear-gradient(#69b1ff,#0769dd)!important;color:#fff!important;border-color:#4689d0!important}.japan-time-schedule{font-size:11px;color:var(--t-muted);line-height:1.6;margin-top:18px}.japan-time-status{font-size:12px;line-height:1.6;color:var(--t-text)}
body.workplace-theme[data-theme="japan-office"] dialog::backdrop{background:#071a3380;backdrop-filter:blur(8px)}
body.workplace-theme[data-theme="japan-office"] .modal-backdrop{background:#071a3370;backdrop-filter:blur(7px)!important}
/* Ночь меняет не только фото: поверхности, поля, графики и типографика темнеют вместе. */
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] .crystal-overview{background:linear-gradient(110deg,#1b3554dc,#16325070 65%,#162f4baa)!important}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] :is(.crystal-overview h2,.japan-hero-metrics b){color:#f0f6ff}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] :is(.crystal-eyebrow,.japan-hero-description,.japan-hero-metrics span,.japan-landscape-caption,.japan-chart-heading,.crystal-legend){color:#d4e4f7}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] .japan-hero-chart{background:linear-gradient(135deg,#456387b0,#142b46d9);border-color:#a5c1df60;box-shadow:inset 0 2px 0 #c3dcff57,0 8px 18px #0005}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] :is(.window-bar,.screen,.modal-window,.ready-orders-panel,.japan-time-dialog) button{background:linear-gradient(#466487,#2a4565 45%,#1b304e);color:#e4efff;border-color:#6f8ba8;border-bottom-color:#10243c;box-shadow:inset 0 2px 0 #d5e6ff50,0 3px 0 #07182e65,0 6px 10px #0004}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] :is(.screen,.modal-window) button:is(.active,.primary){background:linear-gradient(#81bdff,#2c85ec 50%,#105ab6);color:#fff;border-color:#68a2e2;border-bottom-color:#073d80}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] :is(.panel,.modal-window,.analytics-grid)>section{background:var(--t-panel);border-color:var(--t-line)}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] table th{background:linear-gradient(#304b6c,#253b58)!important;color:#e5efff;border-color:#4e6683}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] table td{background:#172a43;color:#e9f2ff;border-color:#3b526c}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] table tr:nth-child(even) td{background:#1d324e}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] table tr:hover td,body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] table tr.selected td{background:#2b4c73!important}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] .analytics-kpis article{background:linear-gradient(135deg,#3b577a,#203955)!important;border-color:#9ebade66;border-bottom-color:#0b2037;box-shadow:inset 0 2px 0 #c8e2ff60,0 7px 12px #0004}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] .analytics-kpis article :is(b,span){color:#e5efff}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] .japan-time-icon{color:#b8d7ff;text-shadow:0 0 10px #80afff80}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] .theme-choice-copy{color:#1b314b}
body.workplace-theme[data-theme="japan-office"] :is(button,input,select,textarea):focus-visible{outline:3px solid var(--t-accent);outline-offset:3px}
body.workplace-theme[data-theme="japan-office"] .ready-orders-panel{color:var(--t-text)}
/* Миниатюра новой версии в штатном выборе тем. */
.mini-japan-office{background:linear-gradient(180deg,#266ab14d,#132f5540),url('assets/wallpapers/interwood-office-autumn-day-v7.png') center/cover!important;--mini-ink:#fff}
.mini-japan-office .mini-card{background:#ffffffa0!important;border:1px solid #ffffffc0!important;box-shadow:0 4px 0 #45678b40,0 8px 12px #09254038}
@media(max-width:1100px){body.workplace-theme[data-theme="japan-office"] .window-bar{padding:10px 14px}body.workplace-theme[data-theme="japan-office"] .workspace-search{display:none}body.workplace-theme[data-theme="japan-office"] .screen{padding:20px 24px 145px}}
@media(max-width:760px){body.workplace-theme[data-theme="japan-office"] .screen{padding:16px 14px 145px}body.workplace-theme[data-theme="japan-office"] .crystal-overview{grid-template-columns:1fr;gap:20px;padding:24px 22px 51px}body.workplace-theme[data-theme="japan-office"] .crystal-overview h2{font-size:30px!important}body.workplace-theme[data-theme="japan-office"] .japan-hero-chart{max-width:none}body.workplace-theme[data-theme="japan-office"] .crystal-chart{justify-content:center}body.workplace-theme[data-theme="japan-office"] .crystal-legend{max-width:180px}body.workplace-theme[data-theme="japan-office"] #navigation{grid-template-columns:repeat(3,minmax(0,1fr))}body.workplace-theme[data-theme="japan-office"] .sidebar{bottom:151px;padding:12px}body.workplace-theme[data-theme="japan-office"] #iosDock{gap:7px;padding:8px;bottom:44px}body.workplace-theme[data-theme="japan-office"] .window-bar .japan-time-button{min-width:137px}body.workplace-theme[data-theme="japan-office"] .window-bar strong small{display:none}}
@media(max-width:480px){body.workplace-theme[data-theme="japan-office"] .window-bar{gap:7px;padding:9px 10px}body.workplace-theme[data-theme="japan-office"] .window-bar strong{font-size:14px}body.workplace-theme[data-theme="japan-office"] .window-bar>button{padding:0 8px;font-size:10px}body.workplace-theme[data-theme="japan-office"] #japanTimeControl{margin-left:0}.japan-time-options{grid-template-columns:repeat(3,1fr)}.japan-hero-metrics{gap:13px}.japan-hero-metrics span{min-width:65px;padding-right:12px}.japan-landscape-caption{left:22px;right:22px;font-size:9px}}
@media(prefers-reduced-motion:reduce){#japanLandscape .japan-scene{transition:none}body.workplace-theme[data-theme="japan-office"] *{transition:none!important}}
body.workplace-theme[data-theme="japan-office"][data-theme-motion="false"] .japan-scene{transition:none}
@media(prefers-reduced-transparency:reduce){body.workplace-theme[data-theme="japan-office"] :is(.panel,.home-search-panel,.home-analytics,.crystal-overview,.sidebar,#iosDock,.modal-window){background:var(--t-panel)!important;backdrop-filter:none}}
}
@media print{#japanLandscape,#japanTimeControl,#japanTimeDialog{display:none!important}body.workplace-theme[data-theme="japan-office"]{background:#fff!important}body.workplace-theme[data-theme="japan-office"] *{backdrop-filter:none!important;box-shadow:none!important}}

/* Контраст и фон динамических таблиц с собственными стилями. */
@media screen{
body.workplace-theme[data-theme="japan-office"] #screen :is(.dashboard-heading,.screen-title) p{color:#fff!important;text-shadow:0 1px 5px #183653}
body.workplace-theme[data-theme="japan-office"] .native-ledger :is(header p,.native-ledger-controls label,.native-ledger-footer){color:var(--t-muted)}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] :is(.window-bar,.screen,.modal-window,.ready-orders-panel,.japan-time-dialog) button{background:linear-gradient(#466487,#2a4565 45%,#1b304e)!important;color:#e4efff!important;border-color:#6f8ba8;border-bottom-color:#10243c}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] :is(.screen,.modal-window) button:is(.active,.primary){background:linear-gradient(#81bdff,#2c85ec 50%,#105ab6)!important;color:#fff!important}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] .native-ledger tbody tr.complete td{background:#173e3b!important;color:#daf8e8!important;border-color:#3a635e}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] .native-ledger tbody tr.complete td button{color:#daf8e8!important}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] .screen .native-ledger tbody tr:hover td{background:#335578!important}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] :is(.analytics-grid>section,.client-overview-grid>section,.specification-summary,.order-master-fields,.order-card-fields,.client-card-fields,.dialog-tab-content){background:var(--j-field)!important;color:var(--t-text)!important;border-color:var(--t-line)!important}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] .client-overview-grid :is(h3,p,b,span){color:var(--t-text)!important}
body.workplace-theme[data-theme="japan-office"] .japan-hero-description{display:none}
/* В шапке достаточно места для часов без отдельной строки на широком экране. */
@media(min-width:1350px){body.workplace-theme[data-theme="japan-office"] .workspace-search{flex-basis:120px;max-width:180px}body.workplace-theme[data-theme="japan-office"] .window-bar{gap:7px;padding:12px 14px}body.workplace-theme[data-theme="japan-office"] .window-bar>button{padding-left:9px;padding-right:9px;font-size:11px}body.workplace-theme[data-theme="japan-office"] .window-bar strong small{display:none}body.workplace-theme[data-theme="japan-office"] .window-bar .japan-time-button{min-width:139px}}
}

@media screen{
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] .ready-date-group h3{background:#2a4566;color:#ecf3ff;border-color:#6681a0}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] .ready-orders-panel :is(header,footer,.ready-toolbar){background:transparent;color:var(--t-text)}
body.workplace-theme[data-theme="japan-office"][data-japan-phase="night"] .ready-orders-panel :is(p,small,label){color:var(--t-muted)}
}

@media screen{
body.workplace-theme[data-theme="japan-office"] #japanTimeControl .japan-time-copy{display:flex!important}
body.workplace-theme[data-theme="japan-office"] #japanTimeControl :is(.japan-time-icon,.japan-time-chevron){display:inline-block!important}
body.workplace-theme[data-theme="japan-office"] #japanTimeControl .japan-time-button{min-height:44px!important}
@media(max-width:800px){body.workplace-theme[data-theme="japan-office"] #workspaceSearch{display:none!important}}
}
