:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;color:#0d1526;background:#fff;font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
html{min-height:100%;background:#fff}
body{min-width:320px;min-height:100dvh;margin:0}
.launch-splash{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff;opacity:1;visibility:visible;pointer-events:none;transition:opacity .7s cubic-bezier(.22,1,.36,1),visibility .7s}
.launch-splash::before{content:"";position:absolute;width:520px;height:520px;right:-310px;top:-255px;border-radius:50%;background:radial-gradient(circle,#e1edff 0%,#f5f9ff 58%,transparent 73%)}
.launch-splash::after{content:"";position:absolute;width:740px;height:540px;left:-390px;bottom:-400px;border-radius:50%;background:radial-gradient(ellipse,#dcecff 5%,#edf5ff 48%,transparent 74%)}
.launch-splash-center{position:relative;z-index:1;display:flex;align-items:center;justify-content:center}
.launch-symbol{display:block;width:min(43vw,157px);height:auto;object-fit:contain;animation:msLogoAppear 1.05s cubic-bezier(.18,.85,.26,1) both}
.launch-splash.is-hiding{opacity:0;visibility:hidden}
@keyframes msLogoAppear{from{opacity:0;transform:translateY(10px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
@media (prefers-reduced-motion:reduce){.launch-splash{transition:none}.launch-symbol{animation:none}}
button,input,select,textarea{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button:disabled{opacity:.55;cursor:wait}
button:active:not(:disabled){transform:scale(.985)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #67a7fb;outline-offset:2px}
.svg-defs{width:0;height:0;position:absolute;overflow:hidden}
.icon,.feature-icon,.chevron{display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.icon{width:25px;height:25px}
.app-bg{position:fixed;z-index:0;bottom:calc(78px + env(safe-area-inset-bottom));left:0;right:0;height:min(44vh,390px);pointer-events:none;overflow:hidden}
.app-bg svg{display:block;width:100%;height:100%}
.app-shell{position:relative;z-index:1;max-width:660px;min-height:100dvh;margin:0 auto;padding:calc(44px + env(safe-area-inset-top)) 14px calc(185px + env(safe-area-inset-bottom))}
.app-header{display:flex;gap:12px;align-items:center;min-height:64px}
.brand-logo{width:60px;height:60px;object-fit:cover;mix-blend-mode:multiply;flex:none;border-radius:12px}
.brand-text{min-width:0;flex:1}
.brand-text strong{display:block;white-space:nowrap;font-weight:800;font-size:clamp(16px,4.6vw,23px);letter-spacing:-.65px;color:#10377d;line-height:1.1}
.brand-text span{display:block;margin-top:8px;color:#63728d;font-size:clamp(12px,3.35vw,16px);line-height:1.2}
.notification-button{width:53px;height:53px;flex:none;display:grid;place-items:center;border:1px solid #eef3fb;border-radius:50%;box-shadow:0 3px 10px #254f8930;background:#fff;color:#082d79;position:relative}
.notification-button .icon{width:27px;height:27px;stroke-width:1.9}
.notification-dot{position:absolute;right:7px;top:6px;width:10px;height:10px;border-radius:50%;background:#ff3147;box-shadow:0 0 0 3px white}
.notification-count{position:absolute;right:-3px;top:-4px;min-width:21px;height:21px;border-radius:11px;padding:3px 5px;color:#fff;background:#f03e50;box-shadow:0 0 0 3px white;font-weight:800;font-size:11px;line-height:15px;text-align:center}
[hidden]{display:none!important}
.screen{display:none;animation:screen-in .18s ease-out}
.screen.active{display:block}
@keyframes screen-in{from{opacity:.65;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:54px}
.feature-card{min-height:161px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:linear-gradient(142deg,#f3f8ff 0%,#eaf3ff 95%);border:1px solid #e0ebfe;border-radius:25px;padding:18px 17px 19px;color:#101522;box-shadow:none}
.feature-icon{width:56px;height:56px;stroke-width:2.6;color:#0759c8;flex:none}
.truck-icon{width:62px;margin-left:-4px}
.feature-title{display:flex;align-items:center;justify-content:space-between;width:100%;gap:3px;font-size:clamp(20px,5.6vw,27px);font-weight:800;line-height:1.1;letter-spacing:-.5px;margin-top:12px}
.feature-title .chevron{width:23px;height:23px;stroke-width:2.7;flex:none}
.feature-subtitle{margin-top:7px;font-size:clamp(12px,3.5vw,16px);font-weight:450;color:#61718f;line-height:1.36}
.create-button{border:0;border-radius:21px;min-height:61px;width:100%;display:flex;align-items:center;justify-content:center;gap:15px;color:white;background:linear-gradient(100deg,#0968e5 0%,#0046b5 100%);font-size:clamp(20px,5.4vw,25px);font-weight:760;letter-spacing:-.5px;box-shadow:0 9px 20px #0753cf15}
.create-button .icon{width:30px;height:30px;stroke-width:2.5}
#home>.create-button{margin-top:30px}
.home-summary{margin-top:24px;max-width:100%;padding:12px 16px;border:1px solid #e4edfa;border-radius:16px;background:#ffffffd9;color:#61718f;font-size:13px;line-height:1.5;text-align:center}
.home-summary strong{color:#075ac6}
.bottom-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;padding:10px 12px calc(16px + env(safe-area-inset-bottom));border-radius:29px 29px 0 0;box-shadow:0 -3px 30px #1948860a;background:#ffffffed;border-top:1px solid #e9f0fa;backdrop-filter:blur(17px);-webkit-backdrop-filter:blur(17px)}
.nav-inner{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;max-width:660px;margin:auto}
.nav-item{border:0;background:transparent;color:#65728a;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;border-radius:17px;padding:8px 3px;min-height:61px;font-size:13px;font-weight:540}
.nav-item .icon{width:29px;height:29px;stroke-width:1.85}
.nav-item.active{color:#0066ea;background:linear-gradient(130deg,#e8f2ff,#dbeaff);font-weight:750}
.nav-item.active .icon{stroke-width:2.5}
.page-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:42px 0 26px}
.eyebrow{font-size:12px;letter-spacing:.07em;color:#0866d9;text-transform:uppercase;font-weight:750;margin:0 0 8px}
h1{font-size:32px;letter-spacing:-1px;line-height:1.1;margin:0;color:#12213c}
.page-subtitle{font-size:14px;line-height:1.4;color:#6d7c93;margin:8px 0 0}
.refresh-button,.back-button{border:1px solid #e3eefe;box-shadow:0 4px 14px #0d4c9d11;width:43px;height:43px;border-radius:14px;background:#f4f8ff;color:#0c5cc3;flex:none;display:grid;place-items:center}
.filter-row{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:8px;margin-bottom:14px}
.filter-row::-webkit-scrollbar{display:none}
.filter-chip{white-space:nowrap;border:1px solid #e5eefc;background:#f2f7fe;border-radius:999px;padding:10px 17px;color:#687b99;font-size:13px;font-weight:650}
.filter-chip.active{color:#fff;background:#075ad0;border-color:#075ad0}
.cards-list{display:grid;gap:11px}
.task-card{border:1px solid #e7eef9;border-radius:21px;background:#fff;box-shadow:0 6px 22px #194a9810;padding:17px}
.task-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.task-type{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#0b5dc7}
.task-title{font-size:17px;line-height:1.32;letter-spacing:-.2px;margin:9px 0 7px;color:#142039;overflow-wrap:anywhere}
.task-route{color:#67788f;font-size:13px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.task-meta{margin-top:12px;display:flex;gap:7px;flex-wrap:wrap}
.meta-pill{border-radius:8px;background:#eff5ff;padding:6px 8px;color:#516988;font-size:11px}
.meta-pill.urgent{color:#b23f35;background:#ffedea}
.task-note{margin:11px 0 0;color:#566987;line-height:1.5;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.status-badge{white-space:nowrap;border-radius:9px;background:#e7f1ff;color:#0c58c0;font-weight:750;font-size:11px;padding:7px 9px}
.status-badge.wait{background:#fff2d9;color:#ad6900}
.status-badge.done{background:#dcf7e9;color:#137b49}
.status-badge.late{background:#ffe7e7;color:#bf313d}
.advance-button{display:block;margin-top:15px;border:0;background:#edf5ff;color:#0a5fd3;font-weight:750;border-radius:11px;padding:12px;width:100%;font-size:13px}
.empty-state{background:#ffffffed;border:1px solid #ebf0fa;color:#6c7c93;text-align:center;padding:35px 19px;border-radius:20px;line-height:1.5;font-size:14px}
.empty-state .empty-icon{font-size:29px;display:block;margin-bottom:6px}
.inline-create{margin:25px 0 28px;font-size:17px;min-height:54px;border-radius:15px}
.inline-create .icon{width:23px;height:23px}
.account-card{margin:26px 0 0;background:#fff;border:1px solid #e9effa;border-radius:17px;padding:15px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.account-card strong{display:block;font-size:14px}.account-card p{margin:5px 0 0;font-size:12px;color:#6a7b94;overflow-wrap:anywhere;max-width:240px}
.account-card button{border:0;border-radius:10px;background:#edf5ff;color:#135bbb;padding:11px 14px;font-weight:750;flex:none}
.create-heading{justify-content:flex-start;align-items:flex-start;margin:36px 0 22px}
.create-heading .back-button{margin-top:4px}
.task-form{border:1px solid #e8f0fa;border-radius:21px;padding:19px;background:#fff;box-shadow:0 6px 30px #1f51800d}
.form-group{margin:0 0 16px;min-width:0}
.form-group label{display:block;font-size:13px;font-weight:750;color:#435777;margin-bottom:7px}
input,select,textarea{display:block;width:100%;min-width:0;max-width:100%;border:1px solid #d9e5f5;border-radius:12px;padding:13px 12px;font-size:15px;color:#17243a;background:#fff;outline:none}
textarea{resize:vertical;min-height:94px;line-height:1.4}
.two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.form-submit{font-size:18px;border-radius:14px;min-height:55px;margin-top:7px}
.form-submit .icon{width:25px;height:25px}
.toast{position:fixed;z-index:80;left:50%;bottom:calc(98px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 36px);transform:translateX(-50%);border-radius:14px;background:#172741;color:#fff;font-size:13px;line-height:1.45;text-align:center;padding:13px 17px;box-shadow:0 10px 35px #17386b44}
.auth-overlay{position:fixed;inset:0;z-index:60;background:linear-gradient(155deg,#edf5ff,#fff 55%,#e8f2ff);display:flex;justify-content:center;align-items:center;padding:20px;overflow-y:auto}
.auth-box{width:100%;max-width:400px;border-radius:26px;background:#fff;box-shadow:0 20px 60px #164a9220;padding:26px}
.auth-box>img{width:66px;height:66px;object-fit:cover;border-radius:13px;mix-blend-mode:multiply}
.auth-box h2{margin:12px 0 2px;color:#153b7f;font-size:25px}
.auth-caption{margin:8px 0 21px;color:#687a95;line-height:1.5;font-size:14px}
.auth-box .create-button{font-size:17px;min-height:51px;border-radius:14px;letter-spacing:0}
.text-button{display:block;background:none;border:0;padding:15px 0;color:#075cc8;font-size:14px;font-weight:750}
.register-link{display:block;width:100%;min-height:45px;margin-top:11px;border:1px solid #bad6ff;border-radius:13px;background:#eef6ff;color:#075cc8;font-size:15px;font-weight:760;text-align:center}
.auth-message,.auth-error{font-size:13px;line-height:1.5;overflow-wrap:anywhere;margin:8px 0}.auth-message{color:#0866b8}.auth-error{color:#b63b46}
.auth-message:empty,.auth-error:empty{display:none}
.auth-help{font-size:12px;line-height:1.5;color:#8390a3;margin:14px 0 0}
@media(max-width:360px){.app-shell{padding-left:12px;padding-right:12px}.brand-logo{width:50px;height:50px}.notification-button{width:44px;height:44px}.app-header{gap:8px}.home-actions{gap:9px}.feature-card{padding:16px 12px;min-height:156px}.feature-title{font-size:20px}.feature-subtitle{font-size:12px}.feature-icon{width:48px;height:48px}.truck-icon{width:55px}.nav-item{font-size:12px}}
@media(min-width:700px){.app-shell{padding-top:46px}.home-actions{margin-top:65px}.feature-card{min-height:180px;padding:26px}.feature-title{font-size:27px}.bottom-nav{left:50%;width:700px;transform:translateX(-50%);border-left:1px solid #e9f0fa;border-right:1px solid #e9f0fa}}
@media(prefers-reduced-motion:reduce){.screen{animation:none}}
.push-card{background:linear-gradient(135deg,#eff6ff,#fff);border:1px solid #dceaff;border-radius:21px;padding:20px;margin:2px 0 24px;box-shadow:0 6px 18px #164d9110}
.push-card-heading{display:flex;align-items:center;gap:10px;color:#12428e;font-size:16px}.push-card-heading .icon{width:25px;height:25px}
.push-status{color:#5d7090;font-size:13px;line-height:1.5;margin:12px 0}
.push-button{width:100%;min-height:47px;border:0;border-radius:12px;background:#0b61d9;color:#fff;font-size:14px;font-weight:750;padding:12px}
.push-hint{font-size:12px;line-height:1.5;color:#72839b;margin:11px 0 0}
.notifications-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;gap:10px}.notifications-title h2{margin:0;font-size:20px;color:#172945;letter-spacing:-.3px}
.notifications-title button{border:0;background:transparent;color:#0c5ec7;font-size:12px;font-weight:750;padding:9px 3px}
.notification-card{width:100%;display:block;text-align:left;border:1px solid #e7eef9;border-radius:17px;background:#fff;padding:15px 16px;box-shadow:0 4px 17px #194a9810;color:#1b2b42}
.notification-card.unread{background:#eef6ff;border-color:#cde2ff}
.notification-card-title{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:780}
.unread-mark{width:7px;height:7px;border-radius:50%;background:#0871ef;flex:none}
.notification-card-body{font-size:13px;color:#536683;line-height:1.45;margin-top:8px;overflow-wrap:anywhere}
.notification-card-time{font-size:11px;color:#8c9ab0;margin-top:9px}
.task-status-line{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;align-items:center}
.task-status-line .status-badge{padding:7px 10px}

/* v5.7 — компактный и понятный мобильный интерфейс. */
.app-shell{padding-top:calc(22px + env(safe-area-inset-top));padding-bottom:calc(132px + env(safe-area-inset-bottom))}
.app-header{gap:11px;min-height:58px}
.brand-logo{width:52px;height:52px;object-fit:contain;mix-blend-mode:normal;border-radius:0}
.brand-text strong{font-size:clamp(17px,4.7vw,21px);letter-spacing:.045em;color:#1b427e}
.brand-text span{margin-top:5px;font-size:12px;color:#77869b}
.notification-button{width:49px;height:49px;box-shadow:0 3px 14px #164e9210}
.app-bg{opacity:.58}
.home-intro{margin-top:30px}
.home-intro .eyebrow{margin-bottom:9px;font-size:11px;letter-spacing:.09em}
.home-intro h1{font-size:clamp(30px,8.2vw,39px);letter-spacing:-1.1px}
.home-intro>p:last-child{margin:10px 0 0;color:#70819a;font-size:14px;line-height:1.4}
.home-actions{margin-top:24px;gap:11px}
.feature-card{min-height:181px;padding:16px 15px 17px;border-radius:23px;background:linear-gradient(155deg,#f0f6ff,#e8f1ff);box-shadow:0 8px 22px #0e4c9c0b;transition:box-shadow .18s ease,transform .18s ease}
.feature-card:active{box-shadow:0 3px 12px #0e4c9c0f}
.feature-top{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:39px}
.feature-icon,.truck-icon{width:38px;height:38px;margin:0;stroke-width:2;color:#125ac3}
.feature-top .chevron{width:20px;height:20px;color:#779cce;stroke-width:2.3}
.feature-number{display:block;margin-top:12px;font-size:34px;line-height:1.02;letter-spacing:-1.2px;font-weight:800;color:#14274a}
.feature-title{display:block;margin-top:7px;font-size:clamp(16px,4.2vw,19px);font-weight:790;letter-spacing:-.35px;line-height:1.2;color:#223655}
.feature-subtitle{margin-top:4px;color:#6f829e;font-size:11.5px;line-height:1.3}
.home-summary{margin-top:13px;padding:10px 15px;text-align:left;color:#466389;background:#eaf4ff;border-color:#d5e8ff;font-size:13px;font-weight:600}
.home-quick-actions{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:10px;margin-top:18px}
.home-quick-actions .create-button,.secondary-button{width:100%;min-height:54px;border-radius:16px;padding:10px 9px;font-size:clamp(14px,4vw,17px);font-weight:760;letter-spacing:-.3px;gap:8px}
.home-quick-actions .create-button .icon,.secondary-button .icon{width:22px;height:22px;stroke-width:2.1;flex:none}
.secondary-button{display:flex;align-items:center;justify-content:center;border:1px solid #c7ddfc;background:#f0f6ff;color:#115bbd}
.home-work{margin-top:32px}
.home-work-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.home-work-heading h2{font-size:20px;letter-spacing:-.5px;margin:0;color:#172c4e}
.home-work-heading button{display:flex;align-items:center;gap:2px;border:0;background:transparent;color:#0e61ce;font-size:13px;font-weight:760;min-height:44px;padding:5px 0 5px 10px}
.home-work-heading .icon{height:16px;width:16px}
.home-work-list{display:grid;gap:9px}
.home-work-item{width:100%;min-height:73px;border:1px solid #e4ecfa;border-radius:17px;background:#fff;display:flex;align-items:center;text-align:left;padding:13px 12px;gap:11px;box-shadow:0 4px 15px #204d8b08;color:#243654}
.home-task-mark{display:grid;place-items:center;width:41px;height:41px;flex:none;border-radius:13px;background:#edf5ff;color:#0c5fcf}
.home-task-mark .icon{width:23px;height:23px}
.home-task-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.home-task-info strong{font-size:14px;line-height:1.32;font-weight:730;overflow-wrap:anywhere}
.home-task-info small{font-size:12px;color:#7b8ca3}
.home-task-arrow{width:18px;height:18px;color:#8299b6;flex:none}
.home-work-empty{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #e4ecf8;padding:16px;border-radius:18px;color:#657894;font-size:13px;line-height:1.5}
.home-work-empty span{font-weight:800;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:#14895a;background:#e0f7ec;font-size:20px;flex:none}
.home-work-empty p{margin:0}
.page-heading{margin:31px 0 22px}
.page-heading h1{font-size:31px}
.page-subtitle{font-size:13px}
.refresh-button,.back-button{width:48px;height:48px}
.inline-create{min-height:52px;margin:0 0 21px;border-radius:15px;box-shadow:0 4px 16px #0753cf14;font-size:16px}
.filter-row{margin-bottom:16px;padding-bottom:5px}
.filter-chip{min-height:44px;padding:11px 17px;font-size:13px}
.status-badge{font-size:12px}
.meta-pill{font-size:12px;line-height:1.25}
.task-title{font-size:18px}
.task-note,.task-route{font-size:14px}
.advance-button{min-height:46px;font-size:14px}
.account-card button{min-height:44px}
.task-form{padding:18px;border-radius:20px}
.form-group label{font-size:14px}
input,select,textarea{font-size:16px;min-height:49px}
textarea{min-height:96px}
.optional-fields{margin:2px 0 18px;border:1px solid #e2ebf8;border-radius:15px;background:#fbfdff;overflow:hidden}
.optional-fields summary{list-style:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px;min-height:53px;padding:12px 15px;font-size:14px;font-weight:730;color:#31547e;cursor:pointer}
.optional-fields summary::-webkit-details-marker{display:none}
.optional-fields summary::after{content:"⌄";font-size:22px;line-height:12px;color:#0f68d3;margin-left:auto;transition:transform .15s ease}
.optional-fields[open] summary::after{transform:rotate(180deg)}
.optional-fields summary span{font-size:11px;font-weight:520;color:#8b9bb0}
.optional-fields[open] summary{border-bottom:1px solid #e2ebf8}
.optional-fields>.form-group{margin:15px 14px 16px}
.form-submit{font-size:17px}
.notifications-title button{min-height:44px;font-size:13px}
.push-button{min-height:48px}
.notification-card{min-height:72px}
.auth-box>img{object-fit:contain;mix-blend-mode:normal;border-radius:0}
.bottom-nav{padding-top:7px;padding-bottom:calc(10px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0}
.nav-item{min-height:61px;font-size:12.5px;gap:5px}
@media(max-width:360px){.brand-logo{width:46px;height:46px}.notification-button{width:46px;height:46px}.brand-text strong{font-size:16px}.feature-card{min-height:181px;padding:15px 12px}.feature-title{font-size:16px}.feature-subtitle{font-size:11px}}
@media(max-width:480px){.optional-fields .two-columns{grid-template-columns:1fr}}
@media(min-width:700px){.app-shell{padding-top:46px}.home-actions{margin-top:24px}.feature-card{min-height:190px;padding:22px}.feature-title{font-size:19px}}
@media(prefers-reduced-motion:reduce){.feature-card,.optional-fields summary::after{transition:none}}

/* v5.8 — один способ навигации: разделы только в нижнем меню. */
.home-overview{margin-top:26px;padding:21px 19px 19px;background:linear-gradient(160deg,#f1f7ff,#eaf3ff);border:1px solid #dceaff;border-radius:23px}
.home-overview>h2{margin:0 0 17px;color:#36557f;font-size:15px;font-weight:750;letter-spacing:-.2px}
.home-overview-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.overview-stat{display:flex;flex-direction:column;gap:8px;padding-left:2px;min-width:0}
.overview-stat+.overview-stat{border-left:1px solid #c7dcf6;padding-left:20px}
.overview-stat strong{font-size:37px;line-height:1;letter-spacing:-1px;font-weight:800;color:#163466}
.overview-stat span{color:#657c9c;font-size:12px;line-height:1.4}
.home-work{margin-top:28px}
.home-work-heading{margin-bottom:12px}
.home-work-heading h2{font-size:19px}
.home-summary{margin-top:13px}

/* v5.9 — вся рабочая сводка на первом мобильном экране. */
.app-shell{padding-top:calc(12px + env(safe-area-inset-top));padding-bottom:calc(121px + env(safe-area-inset-bottom))}
.app-header{min-height:48px;gap:10px}
.brand-logo{width:44px;height:44px}
.brand-text strong{font-size:clamp(16px,4.45vw,20px)}
.brand-text span{margin-top:3px;font-size:11px}
.notification-button{width:46px;height:46px}
.home-intro{margin-top:19px}
.home-intro h1{font-size:clamp(28px,7.5vw,34px);letter-spacing:-.7px}
.home-intro>p:last-child{font-size:13px;margin-top:6px}
.home-overview{margin-top:16px;padding:14px 16px 15px;border-radius:19px}
.home-overview>h2{font-size:13px;margin-bottom:10px}
.overview-stat{gap:5px}
.overview-stat+.overview-stat{padding-left:17px}
.overview-stat strong{font-size:32px}
.overview-stat span{font-size:11px}
.home-summary{margin-top:10px;padding:8px 12px;font-size:12px;border-radius:12px}
.home-work{margin-top:19px}
.home-work-heading{margin-bottom:10px}
.home-work-heading h2{font-size:18px}
.home-work-list{gap:7px}
.home-work-item{min-height:59px;padding:9px 11px;gap:10px;border-radius:14px}
.home-task-mark{width:36px;height:36px;border-radius:11px}
.home-task-mark .icon{width:21px;height:21px}
.home-task-info{gap:3px}
.home-task-info strong{font-size:13px}
.home-task-info small{font-size:11px}
.home-work-empty{padding:12px;font-size:12px}
.home-work-empty span{width:34px;height:34px}
@media(max-width:360px){.brand-logo{width:42px;height:42px}.notification-button{width:44px;height:44px}.home-intro{margin-top:16px}.home-overview{padding:13px 12px}.overview-stat+.overview-stat{padding-left:12px}}
@media(min-width:700px){.app-shell{padding-top:38px}}

/* v5.10 — сдержанный премиальный стиль в фирменной бело-синей гамме. */
:root{color:#1b2d48;background:#fcfdff}
html,body{background:#fcfdff}
.app-bg{opacity:.35}
.brand-text strong{color:#173d70;letter-spacing:.07em;font-weight:830}
.brand-text span{color:#8291a6}
.notification-button{border-color:#e6edf6;background:#fff;box-shadow:0 5px 22px #17395d12;color:#1f568f}
.notification-button .icon{stroke-width:1.7}
.notification-count{background:#e65367;box-shadow:0 0 0 3px #fcfdff}
.home-intro h1{color:#172942;font-weight:810;letter-spacing:-.8px}
.home-intro>p:last-child{color:#8391a5}
.home-overview{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(128deg,#122c51 0%,#194273 65%,#24518a 100%);border:1px solid #285182;box-shadow:0 12px 29px #0f37642b;border-radius:20px}
.home-overview::before{content:"";position:absolute;z-index:0;pointer-events:none;right:-54px;top:-95px;width:225px;height:225px;border-radius:50%;background:radial-gradient(circle,#7cafff33,transparent 67%)}
.home-overview::after{content:"";position:absolute;pointer-events:none;left:14px;right:14px;top:0;height:1px;background:linear-gradient(90deg,transparent,#ffffff54,transparent)}
.home-overview>h2,.home-overview-stats{position:relative;z-index:1}
.home-overview>h2{color:#c0d2ec;letter-spacing:.06em;text-transform:uppercase;font-size:11px;font-weight:710}
.overview-stat strong{color:#fff;font-weight:820;text-shadow:0 1px 9px #071f3a29}
.overview-stat span{color:#d5e2f4;font-size:11px}
.overview-stat+.overview-stat{border-left:1px solid #ffffff30}
.home-summary{background:#eef6ff;border:1px solid #d7e7f8;color:#305679;font-weight:650;box-shadow:0 3px 10px #134c9510}
.home-summary::before{content:"";display:inline-block;width:7px;height:7px;margin-right:9px;border-radius:50%;background:#2a72cd;vertical-align:1px;box-shadow:0 0 0 3px #daeaff}
.home-summary strong{color:#174e98}
.home-work-heading h2{color:#1c304d;letter-spacing:-.4px;font-weight:800}
.home-work-item{background:#fff;border:1px solid #e6ebf3;border-radius:16px;box-shadow:0 7px 24px #143b6910;transition:box-shadow .18s ease,border-color .18s ease,transform .18s ease}
.home-work-item:active{border-color:#c4d9f7;box-shadow:0 3px 13px #143b6917}
.home-task-mark{background:linear-gradient(145deg,#eff5ff,#e5efff);color:#255c9f;border:1px solid #e3edfc}
.home-task-mark .icon{stroke-width:1.7}
.home-task-info strong{color:#1f3352;font-weight:755;letter-spacing:-.1px}
.home-task-status{display:inline-flex;align-self:flex-start;align-items:center;min-height:18px;padding:2px 7px;border-radius:7px;font-weight:660;background:#edf3fa;color:#667e9d;line-height:1.25}
.home-task-status.is-urgent,.home-task-status.is-late{background:#fff0ed;color:#b84c41}
.home-task-status.is-active{background:#e6f2ff;color:#1b62ad}
.home-task-status.is-new{background:#f1f5fa;color:#70829a}
.home-task-arrow{color:#96a8bd;stroke-width:1.8}
.bottom-nav{background:#fffffff2;border-color:#e7eef7;box-shadow:0 -8px 32px #173b6314;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.nav-item{color:#8492a6}
.nav-item.active{color:#174e99;background:linear-gradient(145deg,#ecf4ff,#e5f0ff);box-shadow:inset 0 0 0 1px #e1ecfa;font-weight:770}
.nav-item.active .icon{stroke-width:2.1}
.page-heading h1{color:#172b49;font-weight:820}
.page-subtitle{color:#7d8da3}
.eyebrow{color:#3168ac}
.filter-chip{background:#f5f8fc;border-color:#e6ecf4;color:#607894}
.filter-chip.active{background:#234e87;border-color:#234e87;box-shadow:0 3px 12px #1e4b8b20}
.task-card,.notification-card{border:1px solid #e6ecf4;box-shadow:0 7px 25px #15395e0f;border-radius:18px}
.task-title{color:#1c304d}
.task-type{color:#265d9e}
.status-badge{border-radius:8px}
.advance-button{background:#edf4ff;color:#245b9e;border:1px solid #dfeafe;border-radius:12px}
.create-button{background:linear-gradient(105deg,#1f64b6,#174786);box-shadow:0 9px 19px #174f9827;border-radius:16px;font-weight:770}
.refresh-button,.back-button{background:#f2f7fe;border-color:#e1eaf7;color:#245b9e;box-shadow:0 3px 12px #19497c0c}
.task-form{border-color:#e5ecf6;box-shadow:0 12px 32px #133e6913}
input,select,textarea{border-color:#dbe5f1;background:#fff;color:#1d3150}
input:focus,select:focus,textarea:focus{border-color:#6b9bdc;box-shadow:0 0 0 3px #e5efff}
.optional-fields{border-color:#dfe8f4;background:#fbfcff}
.optional-fields summary{color:#355b88}
.push-card{background:linear-gradient(145deg,#f0f6ff,#fff);border-color:#dce7f6;box-shadow:0 8px 24px #16467f0f}
.push-button{background:linear-gradient(105deg,#1f64b6,#174786)}
.auth-overlay{background:radial-gradient(circle at 12% 0%,#e4efff,transparent 52%),linear-gradient(#f8fbff,#edf4fc)}
.auth-box{border:1px solid #e6edf6;box-shadow:0 22px 65px #102f5e1f}
.auth-box h2{color:#173d70}
.register-link{background:#edf5ff;color:#235c9f}
@media(prefers-reduced-motion:reduce){.home-work-item{transition:none}}

/* v5.11 — фирменный голубой фон, спокойный контраст премиальных карточек. */
:root{background:#edf5ff}
html{background:#edf5ff}
body{background:radial-gradient(ellipse at 87% 8%,#d8e8ff 0%,transparent 38%),radial-gradient(ellipse at 5% 90%,#d7e8ff 0%,transparent 43%),linear-gradient(165deg,#f8fbff 0%,#ebf4ff 51%,#e1eeff 100%);background-attachment:fixed}
.app-bg{opacity:.45}
.home-work-item,.task-card,.notification-card,.task-form,.account-card{background:#fff}
.bottom-nav{background:#fffffff0}
.home-summary{background:#edf6ff;border-color:#cddff6}
@media(min-width:700px){body{background:radial-gradient(ellipse at 72% 10%,#d8e8ff,transparent 42%),linear-gradient(165deg,#f8fbff 0%,#e4f0ff 100%)}}

/* v5.12 — один маршрут для каждого действия, персональная главная. */
.home-intro{margin-top:23px}
.home-intro-top{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.home-avatar{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #dceaf9;border-radius:50%;background:linear-gradient(155deg,#fff,#eaf4ff);box-shadow:0 7px 19px #1d508d12;color:#1e5c9f}
.home-avatar .icon{width:23px;height:23px;stroke-width:1.8}
.home-greeting{min-width:0;flex:1 1 155px}
.home-greeting h1{font-size:clamp(22px,5.8vw,30px);line-height:1.16;font-weight:820;letter-spacing:-.7px;color:#183658;overflow-wrap:anywhere}
.home-greeting p{font-size:13px;color:#70839e;line-height:1.4;margin:4px 0 0}
.home-greeting .home-position{display:inline-flex;align-items:center;margin-top:8px;padding:5px 10px;border:1px solid #cae0fb;border-radius:999px;background:#eaf4ff;color:#1a5aa0;font-size:11px;line-height:1.2;font-weight:780}
.home-date{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;white-space:nowrap;padding:9px 10px;border:1px solid #dce9f9;border-radius:18px;background:#f5f9ffb9;color:#2b5b93;font-size:11px;font-weight:690;box-shadow:0 3px 10px #285e9a0a}
.home-date .icon{width:16px;height:16px;stroke-width:1.8}
.home-account{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:15px;background:#ffffffd9;border:1px solid #dfeaf8;border-radius:15px;padding:10px 11px 10px 13px;box-shadow:0 5px 18px #1c538a0d}
.home-account-details{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:7px;row-gap:3px;min-width:0;line-height:1.35}
.home-account-label{font-size:11px;color:#7587a1;white-space:nowrap}
.home-account-details strong{display:block;min-width:0;color:#1b477a;font-size:12px;font-weight:730;overflow-wrap:anywhere}
.home-account button{min-width:54px;min-height:35px;flex:none;border:1px solid #d8e6f7;border-radius:10px;background:#f0f6ff;color:#255b9a;padding:7px 10px;font-size:12px;font-weight:750}
.home-overview{margin-top:17px;padding:19px 19px 21px;border-radius:23px;background:linear-gradient(125deg,#0e3665 0%,#14569d 67%,#1b67b8 100%);border-color:#306fae;box-shadow:0 14px 28px #153e7226}
.home-overview::before{right:-25px;top:-155px;width:290px;height:290px;background:radial-gradient(circle,#a9d0ff45,transparent 65%)}
.home-overview>h2{font-size:12px;letter-spacing:.13em;color:#cee3ff;margin-bottom:14px}
.overview-stat strong{font-size:39px;letter-spacing:-1.5px}
.overview-stat span{font-size:12px;line-height:1.45}
.home-work{margin-top:23px}
.home-work-heading h2{font-size:20px;letter-spacing:-.4px}
.home-work-empty{background:#fffffff5;border-color:#e3ebf7;padding:14px 13px;box-shadow:0 7px 24px #143b6910}
.home-work-empty span{width:38px;height:38px}
.bottom-nav{padding-top:6px;padding-bottom:calc(8px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0}
.nav-item{min-height:59px;gap:5px;font-size:12px}
.nav-item .icon{width:27px;height:27px}
@media(max-width:380px){.home-intro-top{gap:8px}.home-avatar{width:40px;height:40px}.home-greeting{flex-basis:145px}.home-date{padding:7px 8px}.home-overview{padding:17px 15px 18px}.overview-stat strong{font-size:35px}}

/* v5.13 — три понятных действия в уведомлениях без повторов. */
.notifications-title{margin-bottom:10px}
.notification-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:15px}
.notification-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:46px;padding:8px 10px;border-radius:13px;border:1px solid #dbe8f8;background:#ffffffeb;box-shadow:0 4px 15px #1d518a0c;color:#235b9d;font-size:12px;font-weight:740;line-height:1.25;text-align:center}
.notification-action .icon{width:17px;height:17px;stroke-width:2.1;flex:none}
#markAllReadBtn{grid-column:1/-1;background:linear-gradient(120deg,#edf6ff,#e5f0ff);border-color:#cfe0f6;color:#1c569a}
.notification-action-danger{color:#ae3e49;background:#fff8f8;border-color:#f2d8db}
.notification-action:disabled{opacity:.42;box-shadow:none}

/* v5.14 — элементы экрана не попадают под системное время iPhone при прокрутке. */
html{scroll-padding-top:calc(env(safe-area-inset-top,0px) + 80px)}
body::before{content:"";position:fixed;top:0;left:0;right:0;height:calc(env(safe-area-inset-top,0px) + 5px);z-index:35;pointer-events:none;background:linear-gradient(180deg,#edf5ff 30%,#edf5fff2);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.app-header{position:sticky;top:calc(env(safe-area-inset-top,0px) + 5px);z-index:15;min-height:54px;margin:-4px -6px 0;padding:4px 6px;border-radius:17px;border:1px solid #e5eef9c9;background:#f8fbfff0;box-shadow:0 5px 21px #1c528711;-webkit-backdrop-filter:blur(19px);backdrop-filter:blur(19px)}
#notifications .page-heading{margin:22px 0 17px}
#notifications .page-heading h1{font-size:clamp(27px,7vw,31px)}
#notifications .page-subtitle{font-size:13px;margin-top:6px}
#notifications .push-card{padding:16px;margin:0 0 20px;border-radius:18px}
#notifications .push-card-heading{gap:9px;font-size:14px}
#notifications .push-card-heading .icon{width:22px;height:22px}
#notifications .push-status{font-size:12px;margin:9px 0}
#notifications .push-button{min-height:44px;font-size:13px;border-radius:12px}
#notifications .push-hint{font-size:11px;margin-top:9px}
#notifications .notifications-title{margin:0 0 12px}
#notifications .notifications-title h2{font-size:19px;line-height:1.35}
#notifications .notification-actions{gap:8px;margin-bottom:14px}
#notifications .notification-action{min-height:48px;font-size:12px;border-radius:14px}
#notifications .notification-card{border-color:#e1eaf6;box-shadow:0 7px 24px #153b6912;border-radius:18px;padding:15px 16px}
#notifications .notification-card.unread{background:#edf5ff;border-color:#c9dcf5}
@media(max-width:360px){.app-header{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}#notifications .notification-action{font-size:11px;padding:8px 6px}#notifications .push-card{padding:14px}}

/* v5.15 — переключатель темы в общей шапке. */
.theme-toggle{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:15px;border:1px solid #dce8f7;background:#f8fbff;color:#245d9e;box-shadow:0 5px 17px #1a4e8414}
.theme-toggle .icon{width:22px;height:22px;stroke-width:1.9}
.app-header{gap:8px}
.theme-toggle,.notification-button{min-width:40px}
@media(max-width:390px){.app-header{gap:6px}.brand-logo{width:40px;height:40px}.brand-text strong{font-size:clamp(14px,3.85vw,18px);letter-spacing:.035em}.brand-text span{font-size:10px}.theme-toggle,.notification-button{width:41px;height:41px}.theme-toggle .icon{width:21px;height:21px}}
@media(prefers-reduced-motion:no-preference){body,.app-header,.bottom-nav,.theme-toggle,.notification-button,.task-card,.notification-card,.home-account,.home-work-item{transition:background-color .24s ease,border-color .24s ease,color .24s ease,box-shadow .24s ease}}

/* Тёмная тема применяется ко всем экранам, включая регистрацию и формы. */
html[data-theme="dark"]{color-scheme:dark;background:#091323;color:#eaf3ff}
html[data-theme="dark"] body{color:#eaf3ff;background:radial-gradient(ellipse at 88% 6%,#18385d 0%,transparent 39%),radial-gradient(ellipse at 6% 90%,#102c4e 0%,transparent 42%),linear-gradient(160deg,#0a1527,#0e2037 56%,#091526);background-attachment:fixed}
html[data-theme="dark"] body::before{background:linear-gradient(180deg,#0b192c 25%,#0b192cf5)}
html[data-theme="dark"] .app-bg{opacity:.48}
html[data-theme="dark"] .app-bg path:first-child{fill:#173456}
html[data-theme="dark"] .app-bg path:last-child{fill:#20426b}
html[data-theme="dark"] .launch-splash{background:linear-gradient(150deg,#0a1629,#122a48)}
html[data-theme="dark"] .launch-splash::before{background:radial-gradient(circle,#285a923d,transparent 71%)}
html[data-theme="dark"] .launch-splash::after{background:radial-gradient(ellipse,#183d653d,transparent 71%)}
html[data-theme="dark"] .launch-symbol,html[data-theme="dark"] .brand-logo,html[data-theme="dark"] .auth-box>img{filter:brightness(0) saturate(100%) invert(81%) sepia(32%) saturate(576%) hue-rotate(180deg) brightness(106%);mix-blend-mode:normal}
html[data-theme="dark"] .app-header{background:#13263fee;border-color:#304765;box-shadow:0 8px 24px #02091466}
html[data-theme="dark"] .brand-text strong{color:#dcecff}
html[data-theme="dark"] .brand-text span{color:#9bb1ce}
html[data-theme="dark"] .theme-toggle,html[data-theme="dark"] .notification-button{color:#a8d2ff;background:#1d3453;border:1px solid #335779;box-shadow:0 5px 19px #07111e77}
html[data-theme="dark"] .notification-count{background:#e75c78;box-shadow:0 0 0 3px #14243a}
html[data-theme="dark"] h1,html[data-theme="dark"] .page-heading h1,html[data-theme="dark"] .home-greeting h1{color:#f2f7ff}
html[data-theme="dark"] .page-subtitle,html[data-theme="dark"] .home-greeting p{color:#9baec9}
html[data-theme="dark"] .eyebrow{color:#80baff}
html[data-theme="dark"] .home-avatar,html[data-theme="dark"] .home-date{background:#172d49;border-color:#2c4969;color:#aed7ff;box-shadow:0 7px 22px #07132147}
html[data-theme="dark"] .home-account{background:#162943ed;border-color:#2c4767;box-shadow:0 8px 22px #04112366}
html[data-theme="dark"] .home-account-label{color:#9bb0cd}
html[data-theme="dark"] .home-account-details strong{color:#d3e8ff}
html[data-theme="dark"] .home-greeting .home-position{background:#193e69;border-color:#315b84;color:#c5e5ff}
html[data-theme="dark"] .home-account button{background:#224166;border-color:#345879;color:#cce4ff}
html[data-theme="dark"] .home-overview{background:linear-gradient(123deg,#08264b 0%,#10437e 65%,#165ba5 100%);border-color:#316496;box-shadow:0 14px 35px #030d2073}
html[data-theme="dark"] .home-overview>h2{color:#c4ddf8}
html[data-theme="dark"] .overview-stat span{color:#d4e3f6}
html[data-theme="dark"] .home-summary{background:#1a3657;border-color:#315779;color:#c1d7f3}
html[data-theme="dark"] .home-summary strong{color:#b8ddff}
html[data-theme="dark"] .home-work-heading h2,html[data-theme="dark"] .notifications-title h2,html[data-theme="dark"] .task-title{color:#ecf4ff}
html[data-theme="dark"] .home-work-item,html[data-theme="dark"] .home-work-empty,html[data-theme="dark"] .task-card,html[data-theme="dark"] .notification-card,html[data-theme="dark"] .empty-state{background:#172a43;border-color:#2a4565;color:#dfeeff;box-shadow:0 7px 24px #040d1c59}
html[data-theme="dark"] .home-work-empty p,html[data-theme="dark"] .task-route,html[data-theme="dark"] .task-note{color:#a8bbd4}
html[data-theme="dark"] .home-task-mark{background:#203e62;border-color:#335579;color:#a6d0ff}
html[data-theme="dark"] .home-task-info strong{color:#e4f0ff}
html[data-theme="dark"] .home-task-status{background:#2b4160;color:#b7cde7}
html[data-theme="dark"] .home-task-status.is-urgent,html[data-theme="dark"] .home-task-status.is-late{background:#5a3039;color:#ffb8b9}
html[data-theme="dark"] .home-task-status.is-active{background:#20496d;color:#b6deff}
html[data-theme="dark"] .home-task-status.is-new{background:#2a405d;color:#c0d2e6}
html[data-theme="dark"] .home-task-arrow{color:#8ba9c9}
html[data-theme="dark"] .bottom-nav{background:#101f34f7;border-color:#315072;box-shadow:0 -10px 34px #020b1b77}
html[data-theme="dark"] .nav-item{color:#9bb2cf}
html[data-theme="dark"] .nav-item.active{background:linear-gradient(145deg,#224e83,#173c6c);color:#e9f4ff;box-shadow:inset 0 0 0 1px #3d6b9e}
html[data-theme="dark"] .filter-chip{background:#1a304d;border-color:#315170;color:#b3cbe6}
html[data-theme="dark"] .filter-chip.active{background:#3265a1;border-color:#497ebc;color:#fff}
html[data-theme="dark"] .task-type{color:#98caff}
html[data-theme="dark"] .meta-pill{background:#233d5f;color:#c6d9ee}
html[data-theme="dark"] .meta-pill.urgent{background:#592e38;color:#ffc2bc}
html[data-theme="dark"] .status-badge{background:#1d496c;color:#b5dfff}
html[data-theme="dark"] .status-badge.wait{background:#5b4524;color:#ffe2a9}
html[data-theme="dark"] .status-badge.done{background:#1b4e40;color:#a6e6c2}
html[data-theme="dark"] .status-badge.late{background:#5b2c39;color:#ffb0b8}
html[data-theme="dark"] .advance-button{background:#224567;border-color:#345e84;color:#cce7ff}
html[data-theme="dark"] .create-button,html[data-theme="dark"] .push-button{background:linear-gradient(110deg,#2d7bd8,#16529b);box-shadow:0 9px 24px #020d1f77;color:#fff}
html[data-theme="dark"] .refresh-button,html[data-theme="dark"] .back-button{background:#1d3859;border-color:#345779;color:#b6daff;box-shadow:none}
html[data-theme="dark"] .task-form,html[data-theme="dark"] .account-card{background:#162840;border-color:#304b6b;box-shadow:0 9px 30px #040e2066}
html[data-theme="dark"] .form-group label{color:#c3d8ef}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0e1c30;border:1px solid #355171;color:#e7f2ff}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#819ab8}
html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{border-color:#62a6ff;box-shadow:0 0 0 3px #2e5d9d75}
html[data-theme="dark"] .optional-fields{background:#10213a;border-color:#344e6d}
html[data-theme="dark"] .optional-fields summary{color:#b6d8ff}
html[data-theme="dark"] .optional-fields summary span{color:#849dbd}
html[data-theme="dark"] .push-card{background:linear-gradient(145deg,#192f4c,#152640);border-color:#305171;box-shadow:0 8px 24px #030e1f50}
html[data-theme="dark"] .push-card-heading{color:#cce4ff}
html[data-theme="dark"] .push-status,html[data-theme="dark"] .push-hint{color:#a5bbd6}
html[data-theme="dark"] .notification-action{background:#1b3453;border-color:#355777;color:#bcdcff;box-shadow:0 4px 17px #040f2060}
html[data-theme="dark"] #markAllReadBtn{background:linear-gradient(120deg,#1e4978,#15395e);border-color:#37648b;color:#d6eaff}
html[data-theme="dark"] .notification-action-danger{background:#3a2433;border-color:#6c4352;color:#ffbac5}
html[data-theme="dark"] #notifications .notification-card{background:#172a43;border-color:#2c4767;box-shadow:0 8px 23px #020b1b55}
html[data-theme="dark"] #notifications .notification-card.unread{background:#193b60;border-color:#366993}
html[data-theme="dark"] .notification-card-title{color:#e9f4ff}
html[data-theme="dark"] .notification-card-body{color:#b4c9e2}
html[data-theme="dark"] .notification-card-time{color:#94acc8}
html[data-theme="dark"] .unread-mark{background:#65b5ff}
html[data-theme="dark"] .auth-overlay{background:radial-gradient(ellipse at 10% 0%,#203e65,transparent 55%),linear-gradient(155deg,#101c30,#0b172b)}
html[data-theme="dark"] .auth-box{background:#162941;border:1px solid #2c4b70;box-shadow:0 22px 60px #020a1b9c}
html[data-theme="dark"] .auth-box h2{color:#e2f0ff}
html[data-theme="dark"] .auth-caption,html[data-theme="dark"] .auth-help{color:#a3bbd9}
html[data-theme="dark"] .register-link{background:#203e60;border-color:#416b97;color:#d7eaff}
html[data-theme="dark"] .text-button{color:#8bc6ff}
html[data-theme="dark"] .auth-message{color:#83c9ff}
html[data-theme="dark"] .auth-error{color:#ffb7bf}
html[data-theme="dark"] .toast{background:#254267;border:1px solid #4a688a;color:#fff;box-shadow:0 10px 32px #0106149a}
html[data-theme="dark"] .feature-card{background:linear-gradient(145deg,#1a3150,#132844);border-color:#315273;color:#e9f4ff}
html[data-theme="dark"] .feature-subtitle{color:#a3bbd8}
html[data-theme="dark"] .feature-title{color:#e3efff}

/* v5.16 — действия карточки и понятный режим редактирования. */
.card-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:9px;margin-top:15px}
.card-actions .advance-button{flex:1 1 160px;margin-top:0;min-height:46px;width:auto}
.edit-card-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 1 auto;min-height:46px;padding:10px 14px;border:1px solid #cddff3;border-radius:12px;background:#f7fbff;color:#225d9e;font-size:13px;font-weight:760;box-shadow:0 3px 11px #124d8610}
.edit-card-button .icon{width:19px;height:19px;stroke-width:1.9}
.edit-card-button:active{background:#e7f2ff}
.cancel-edit-button{display:block;margin:11px auto 0;min-height:45px;padding:9px 18px;border:0;border-radius:12px;background:transparent;color:#4c6d92;font-size:14px;font-weight:720}
.edit-field-hint{margin:7px 2px 0;color:#6c7f99;font-size:12px;line-height:1.5}
@media(max-width:420px){.card-actions .advance-button{flex-basis:100%}.card-actions .edit-card-button{margin-left:auto}}
html[data-theme="dark"] .edit-card-button{background:#203956;border-color:#375d81;color:#bde0ff;box-shadow:0 4px 17px #05132857}
html[data-theme="dark"] .edit-card-button:active{background:#294c72}
html[data-theme="dark"] .cancel-edit-button{color:#a8c6e5}
html[data-theme="dark"] .edit-field-hint{color:#a7bed8}

/* v5.17 — персональный Telegram без лишней вкладки в нижнем меню. */
.telegram-card{margin:17px 0 24px;padding:19px;border:1px solid #cddff6;border-radius:20px;background:linear-gradient(135deg,#fff,#f0f8ff);box-shadow:0 8px 24px #1751970b}
.telegram-card-title{display:flex;align-items:center;gap:10px;color:#174f94;font-size:16px}
.telegram-card-title span{display:grid;place-items:center;width:33px;height:33px;border-radius:12px;background:#d9efff;color:#0684cc;font-size:23px}
.telegram-status{margin:12px 0 14px;color:#5a708e;font-size:13px;line-height:1.5}
.telegram-connect-button,.telegram-open-link{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:11px 14px;border:0;border-radius:13px;background:#1587d5;color:white;font-size:14px;font-weight:760;text-decoration:none;text-align:center}
.telegram-open-link{margin-top:9px;background:#e2f2ff;border:1px solid #b9ddf8;color:#1167ad}
.telegram-check-button,.telegram-disconnect-button{display:block;min-height:44px;margin:10px 0 0;padding:9px 10px;border:0;background:transparent;color:#1764ad;font-size:13px;font-weight:700}
.telegram-disconnect-button{color:#a34f5e}
.telegram-help{margin:8px 0 0;color:#7386a1;font-size:12px;line-height:1.45}
.telegram-card [hidden]{display:none!important}
.telegram-card button:disabled{opacity:.55}
html[data-theme="dark"] .telegram-card{background:linear-gradient(130deg,#1b3856,#182f4d);border-color:#365c82;box-shadow:0 9px 28px #020a1955}
html[data-theme="dark"] .telegram-card-title{color:#d6ebff}
html[data-theme="dark"] .telegram-card-title span{background:#1d5277;color:#8edaff}
html[data-theme="dark"] .telegram-status{color:#b7cee7}
html[data-theme="dark"] .telegram-open-link{background:#244d6d;border-color:#447499;color:#d3edff}
html[data-theme="dark"] .telegram-check-button{color:#9cd4ff}
html[data-theme="dark"] .telegram-disconnect-button{color:#ffb2bd}
html[data-theme="dark"] .telegram-help{color:#a0b5d1}

/* v5.21 — фотографии с телефона для задач и доставок. */
.photo-inline-button{display:inline-flex;align-items:center;gap:5px;margin:10px 0 2px;padding:8px 13px;min-height:37px;border:1px solid #cfe2f7;border-radius:999px;background:#f0f7ff;color:#2162a1;font-size:12px;font-weight:750}
.photo-form-hint{margin:10px 5px 0;text-align:center;color:#687f9e;font-size:12px;line-height:1.45}
.photo-inline-button:active{background:#e1f0ff}
.photo-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(470px,calc(100vw - 26px));max-height:min(82dvh,760px);overflow:auto;padding:21px 19px 19px;border:1px solid #d4e5f8;border-radius:23px;background:#fff;color:#1c3757;box-shadow:0 20px 70px #09244550}
.photo-dialog::backdrop{background:#061b37ac;backdrop-filter:blur(3px)}
.photo-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.photo-eyebrow{color:#3775b8;font-size:10px;font-weight:760;letter-spacing:.08em;text-transform:uppercase}
.photo-dialog-head h2{margin:6px 0 0;font-size:21px;line-height:1.2;overflow-wrap:anywhere}
.photo-dialog-close{display:grid;place-items:center;flex:none;width:39px;height:39px;border:1px solid #d7e5f5;border-radius:13px;background:#edf6ff;color:#1f5694;font-size:26px;line-height:1}
.photo-dialog-hint{margin:12px 0;color:#6a7d99;font-size:13px;line-height:1.5}
.photo-dialog-controls{margin:12px 0 14px}
.photo-upload-button{min-height:45px;padding:10px 16px;border:0;border-radius:13px;background:linear-gradient(120deg,#218af0,#1762be);color:#fff;font-size:14px;font-weight:770}
.photo-upload-button:disabled{opacity:.55}
.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.photo-tile{min-width:0;padding:7px;border:1px solid #deebf8;border-radius:16px;background:#f7fbff}
.photo-preview-button{display:block;overflow:hidden;width:100%;padding:0;border:0;border-radius:11px;background:#edf4fb;cursor:zoom-in}
.photo-tile img{display:block;width:100%;height:155px;object-fit:cover}
.photo-remove-button{width:100%;min-height:37px;margin-top:7px;padding:7px;border:1px solid #f0d9db;border-radius:9px;background:#fff6f6;color:#a74251;font-size:12px;font-weight:720}
.photo-empty{grid-column:1/-1;padding:30px 10px;text-align:center;color:#7285a0;background:#f4f9ff;border:1px dashed #bfd6ef;border-radius:15px;font-size:14px}
.photo-message{margin:14px 0 0;min-height:20px;color:#64809e;font-size:12px;line-height:1.5}
.photo-zoom{position:fixed;inset:0;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:18px;background:#07172cf5}
.photo-zoom img{display:block;max-width:100%;max-height:78dvh;object-fit:contain;border-radius:10px}
.photo-zoom-close{align-self:flex-end;flex:none;padding:12px 16px;min-height:42px;border:1px solid #567da4;border-radius:12px;background:#183f69;color:#fff;font-size:14px;font-weight:750}
html[data-theme="dark"] .photo-inline-button{background:#1b3b5d;border-color:#315b85;color:#bbdfff}
html[data-theme="dark"] .photo-form-hint{color:#b1c8e3}
html[data-theme="dark"] .photo-dialog{background:#152943;color:#edf7ff;border-color:#365575}
html[data-theme="dark"] .photo-dialog-close{background:#264567;border-color:#456990;color:#d3ebff}
html[data-theme="dark"] .photo-dialog-hint,html[data-theme="dark"] .photo-message{color:#a5bed8}
html[data-theme="dark"] .photo-tile{background:#1d3753;border-color:#345879}
html[data-theme="dark"] .photo-preview-button{background:#132842}
html[data-theme="dark"] .photo-remove-button{background:#3a283b;color:#ffc9d2;border-color:#784b62}
html[data-theme="dark"] .photo-empty{background:#1c3550;border-color:#426080;color:#b7cce1}
@media(max-width:370px){.photo-dialog{padding:17px 14px}.photo-tile img{height:127px}}
