/* Shared appearance layer. Screen UI only: PDF templates and calculations are untouched. */
:root,:root[data-avi-theme=standard]{--avi-bg:#edf2fa;--avi-surface:#fff;--avi-surface-soft:#f3f6fd;--avi-text:#1e3049;--avi-text-2:#3b526e;--avi-muted:#64758d;--avi-blue:#3764d9;--avi-blue-hover:#2850bc;--avi-blue-soft:#e9efff;--avi-border:#dbe4f2;--avi-green:#137b68;--avi-green-soft:#e4f7ee;--avi-amber:#95600a;--avi-amber-soft:#fff4d9;--avi-red:#b13c58;--avi-red-soft:#fdebf0;--theme-accent:#3764d9;--theme-on-accent:#fff;--theme-canvas:radial-gradient(ellipse at 84% 0%,#e6dcff66,transparent 55%),radial-gradient(ellipse at 4% 10%,#cbf6f066,transparent 45%),#edf2fa;--theme-card:#ffffffed;--theme-panel:#f3f6fc;--theme-nav:#fffffff0;--theme-soft:#eaf0fc;--theme-border:#dbe4f2;--theme-ink:#1e3049;--theme-muted:#60738c;--theme-shadow:0 8px 30px #344e7610;--theme-chart1:#426be8;--theme-chart2:#14a58b;--theme-chart3:#9364df;--theme-chart4:#e5a53f;--theme-chart5:#dc6b88;--soft-text:var(--theme-ink);--soft-secondary:var(--theme-muted);--soft-blue:var(--theme-accent);--soft-blue-hover:var(--avi-blue-hover);--soft-card:var(--theme-card);--soft-panel:var(--theme-panel);--soft-nav:var(--theme-nav);--soft-line:var(--theme-border);--soft-input:var(--theme-card);--soft-shadow:var(--theme-shadow)}
:root[data-avi-theme=ocean]{color-scheme:dark;--avi-bg:#0b1728;--avi-surface:#11243b;--avi-surface-soft:#152c45;--avi-text:#e4f1ff;--avi-text-2:#c1d7eb;--avi-muted:#a0b8cf;--avi-blue:#54d5db;--avi-blue-hover:#87eceb;--avi-blue-soft:#1b3e53;--avi-border:#2d4b66;--avi-green:#77dfb0;--avi-green-soft:#123d37;--avi-amber:#f2c56b;--avi-amber-soft:#433723;--avi-red:#ffa0ae;--avi-red-soft:#452836;--theme-accent:#65dce0;--theme-on-accent:#08232e;--theme-canvas:radial-gradient(ellipse at 0 0,#125b6c77,transparent 50%),radial-gradient(ellipse at 90% 100%,#19357688,transparent 55%),#0b1728;--theme-card:#102239f5;--theme-panel:#152c45;--theme-nav:#0e2035f5;--theme-soft:#1b3e53;--theme-border:#2d4b66;--theme-ink:#e4f1ff;--theme-muted:#a0b8cf;--theme-shadow:0 8px 30px #0003;--theme-chart1:#60d8df;--theme-chart2:#7de2ad;--theme-chart3:#a59af6;--theme-chart4:#f0c66e;--theme-chart5:#f49fb7}
:root[data-avi-theme=lime]{color-scheme:dark;--avi-bg:#080c06;--avi-surface:#10160b;--avi-surface-soft:#17200e;--avi-text:#edf2df;--avi-text-2:#d4dec0;--avi-muted:#aab690;--avi-blue:#bafa35;--avi-blue-hover:#d5ff72;--avi-blue-soft:#25360f;--avi-border:#435824;--avi-green:#bafa35;--avi-green-soft:#24360e;--avi-amber:#eed16e;--avi-amber-soft:#3f361a;--avi-red:#ffb1a4;--avi-red-soft:#422620;--theme-accent:#bafa35;--theme-on-accent:#172005;--theme-canvas:radial-gradient(ellipse at 0 0,#698c2270,transparent 48%),radial-gradient(ellipse at 95% 90%,#52681844,transparent 55%),#080c06;--theme-card:#0e1409f5;--theme-panel:#17200e;--theme-nav:#0d1308f5;--theme-soft:#25360f;--theme-border:#435824;--theme-ink:#edf2df;--theme-muted:#aab690;--theme-shadow:0 10px 34px #0005,0 0 24px #99d22a08;--theme-chart1:#bafa35;--theme-chart2:#86cc5e;--theme-chart3:#e2d67b;--theme-chart4:#73c8ac;--theme-chart5:#baa2e8}
html[data-avi-theme] body.avi-glass-app{background:var(--theme-canvas)!important;background-attachment:fixed!important;color:var(--theme-ink)!important}
html[data-avi-theme=lime] body:before{content:"";position:fixed;inset:0;z-index:9999;pointer-events:none;opacity:.045;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.5' filter='url(%23g)'/%3E%3C/svg%3E")}
html[data-avi-theme] .avi-glass-app :is(.topbar,.sidebar){background:var(--theme-nav)!important;border-color:var(--theme-border)!important;color:var(--theme-ink)!important}
html[data-avi-theme] .avi-glass-app :is(.card,.day-list,.day-counter,.panel,.quote-panel,.form-card,.wizard-card,.step-card,.manual-step,.manual-optional,.manual-product-review,.manager-directory-card,.login-card,.kb-card,.kb-filter-panel,.chat-context-card,.quote-item,.item-card,.flow-card,.crm-card,.lead-card,.crm-kpis>div,.crm-notification-panel,.account-menu,.user-switcher>.user-menu,.assistant-menu,dialog){background:var(--theme-card)!important;color:var(--theme-ink)!important;border-color:var(--theme-border)!important;box-shadow:var(--theme-shadow)}
html[data-avi-theme] .avi-glass-app :is(h1,h2,h3,h4,strong,th,label,.brandmark,.brandmark strong){color:var(--theme-ink)}
html[data-avi-theme] .avi-glass-app :is(.muted,.helper,.eyebrow,small,.user-menu-email,.day-row small,.day-filters label,.main-nav a){color:var(--theme-muted)!important}
html[data-avi-theme] .avi-glass-app :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),select,textarea){background:var(--theme-card)!important;color:var(--theme-ink)!important;border-color:var(--theme-border)!important}
html[data-avi-theme] .avi-glass-app :is(.btn,button,.secondary,.link-button,.account-switcher>summary,.user-switcher>summary,.tenant-chip,.sidebar-toggle,.crm-bell,.assistant-switch summary){background:var(--theme-panel);color:var(--theme-ink);border-color:var(--theme-border)}
html[data-avi-theme] .avi-glass-app :is(.btn.primary,button.primary,.primary,.soft-primary){background:var(--theme-accent)!important;color:var(--theme-on-accent)!important;-webkit-text-fill-color:var(--theme-on-accent)!important;border-color:var(--theme-accent)!important}
html[data-avi-theme] .avi-glass-app :is(.logo,.user-avatar,.brandmark>span,.login-logo){background:var(--theme-accent)!important;color:var(--theme-on-accent)!important}
html[data-avi-theme] .avi-glass-app :is(.sidebar a,.sidebar .nav-group-head){color:var(--theme-muted)!important}
html[data-avi-theme] .avi-glass-app :is(.sidebar a.active,.sidebar a:hover,.main-nav a.active,.main-nav a:hover,.crm-worknav a[aria-current=page],.day-tabs button[aria-pressed=true]){background:var(--theme-soft)!important;color:var(--theme-accent)!important;border-color:var(--theme-border)!important}
html[data-avi-theme] .avi-glass-app :is(.crm-worknav,.conversation-head,.draft-box,.message-stream,.kb-column,.kanban-column,.quote-flow,.quote-summary,.manual-question>span,.day-reason,.price-summary,.item-details){background:var(--theme-panel)!important;color:var(--theme-ink)!important;border-color:var(--theme-border)!important}
html[data-avi-theme] .avi-glass-app :is(.message-bubble-row.in .message-bubble,.message-bubble-row.out .message-bubble){background:var(--theme-card)!important;color:var(--theme-ink)!important;border-color:var(--theme-border)!important}
html[data-avi-theme] .avi-glass-app a{color:var(--avi-blue)}
html[data-avi-theme] .avi-glass-app :is(table,th,td,.day-row,.day-team-head){border-color:var(--theme-border)!important}
html[data-avi-theme] .avi-glass-app :is(button,.btn):disabled{background:var(--theme-panel)!important;color:var(--theme-muted)!important;-webkit-text-fill-color:var(--theme-muted)!important;border-color:var(--theme-border)!important;opacity:.65}
html[data-avi-theme] .avi-glass-app :is(.notice.error,.alert.error,#day-warning){background:var(--avi-amber-soft)!important;color:var(--avi-amber)!important;border-color:var(--avi-amber)!important}
html[data-avi-theme] :focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
.avi-theme-picker{position:relative;flex:0 0 auto;z-index:65}.avi-theme-toggle{display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none;border:1px solid var(--theme-border);border-radius:13px;padding:9px 11px;min-height:42px;background:var(--theme-panel);color:var(--theme-ink);font-size:12px;font-weight:650;white-space:nowrap}.avi-theme-toggle::-webkit-details-marker{display:none}.avi-theme-dot{display:block;width:16px;height:16px;border-radius:50%;background:var(--theme-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 13%,transparent)}.avi-theme-menu{position:absolute;top:calc(100% + 10px);right:0;width:264px;padding:16px;border:1px solid var(--theme-border);border-radius:19px;background:var(--theme-card);color:var(--theme-ink);box-shadow:var(--theme-shadow)}.avi-theme-menu>strong{display:block;font-size:14px;margin-bottom:10px}.avi-theme-menu button{display:flex;width:100%;align-items:center;gap:10px;text-align:left;padding:11px;border:1px solid transparent;border-radius:11px;cursor:pointer;margin:4px 0;background:transparent!important;color:var(--theme-ink)!important;box-shadow:none!important;font-size:13px}.avi-theme-menu button[aria-pressed=true]{border-color:var(--theme-accent)!important;background:var(--theme-soft)!important}.avi-theme-swatch{display:inline-block;flex:0 0 22px;height:22px;border-radius:7px;border:1px solid #8191a34d}.avi-theme-swatch.standard{background:linear-gradient(135deg,#fff 50%,#6690ed 50%)}.avi-theme-swatch.ocean{background:linear-gradient(135deg,#10243b 50%,#65dce0 50%)}.avi-theme-swatch.lime{background:linear-gradient(135deg,#101607 50%,#bafa35 50%)}
html[data-avi-theme] #my-day .day-header{padding:24px 26px;border:1px solid var(--theme-border);border-radius:23px;background:linear-gradient(115deg,var(--theme-panel),var(--theme-card));box-shadow:var(--theme-shadow);position:relative;overflow:hidden}
html[data-avi-theme] #my-day .day-header:before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:4px;background:var(--theme-accent);border-radius:0 4px 4px 0}
html[data-avi-theme] #my-day .day-counter{position:relative;overflow:hidden;border:1px solid var(--theme-border)!important;min-height:116px;padding:18px;border-radius:17px;box-shadow:var(--theme-shadow)}
html[data-avi-theme] #my-day .day-counter:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--metric-color,var(--theme-accent))}
html[data-avi-theme] #my-day .day-counter:after{content:"";position:absolute;width:100px;height:100px;right:-35px;bottom:-47px;border-radius:50%;background:var(--metric-color,var(--theme-accent));opacity:.09;pointer-events:none}
html[data-avi-theme] #my-day .day-counter strong{color:var(--metric-color,var(--theme-accent))!important;font-size:32px;font-weight:700}html[data-avi-theme] #my-day .day-counter span{color:var(--theme-muted)!important}
html[data-avi-theme] #my-day .day-counter:nth-child(6n+1){--metric-color:var(--theme-chart1)}html[data-avi-theme] #my-day .day-counter:nth-child(6n+2){--metric-color:var(--theme-chart3)}html[data-avi-theme] #my-day .day-counter:nth-child(6n+3){--metric-color:var(--theme-chart2)}html[data-avi-theme] #my-day .day-counter:nth-child(6n+4){--metric-color:var(--avi-red)}html[data-avi-theme] #my-day .day-counter:nth-child(6n+5){--metric-color:var(--theme-chart4)}html[data-avi-theme] #my-day .day-counter:nth-child(6n+6){--metric-color:var(--theme-chart5)}
html[data-avi-theme] #my-day .day-counter[aria-pressed=true]{outline:2px solid var(--metric-color);outline-offset:2px}
.day-product-panel{display:grid;grid-template-columns:minmax(210px,.7fr) minmax(0,1.5fr);gap:36px;padding:26px!important;margin:20px 0!important;border-radius:22px!important}.day-product-intro .eyebrow{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--theme-accent)!important;font-weight:750}.day-product-intro h2{font-size:25px!important;margin:8px 0!important;line-height:1.2}.day-product-intro p{font-size:12px;line-height:1.6;color:var(--theme-muted)}.day-product-total{display:flex;align-items:baseline;gap:8px;margin:18px 0}.day-product-total strong{font-size:34px;color:var(--theme-accent)!important}.day-product-total span{font-size:12px;color:var(--theme-muted)}.day-product-period{display:flex;align-items:center;gap:10px;color:var(--theme-muted);font-size:12px}.day-product-period select{width:auto!important;min-width:130px}.day-product-bars{display:grid;gap:14px;align-content:center;min-width:0}.day-product-item{--product-color:var(--theme-chart1)}.day-product-item:nth-child(2){--product-color:var(--theme-chart2)}.day-product-item:nth-child(3){--product-color:var(--theme-chart3)}.day-product-item:nth-child(4){--product-color:var(--theme-chart4)}.day-product-item:nth-child(5){--product-color:var(--theme-chart5)}.day-product-label{display:flex;gap:12px;align-items:baseline;justify-content:space-between;margin-bottom:6px;font-size:13px}.day-product-label strong{color:var(--theme-ink);font-weight:650;min-width:0;overflow-wrap:anywhere}.day-product-label span{color:var(--theme-muted);white-space:nowrap;font-size:12px}.day-product-track{height:9px;overflow:hidden;background:var(--theme-soft);border-radius:20px}.day-product-fill{display:block;height:100%;min-width:3px;background:var(--product-color);border-radius:20px;transition:width .25s ease}.day-product-foot{grid-column:1/-1;margin:0!important;padding-top:12px;border-top:1px solid var(--theme-border);font-size:11px!important;color:var(--theme-muted)}
@media(max-width:760px){.day-product-panel{grid-template-columns:1fr;gap:20px;padding:20px!important}.avi-theme-menu{position:fixed;top:74px;right:12px;width:min(280px,calc(100vw - 24px))}.avi-theme-toggle{padding:8px;min-height:38px}.avi-theme-toggle>span:last-child{display:none}.avi-theme-picker{margin:0!important}html[data-avi-theme] .assistant-switch #assistantModeLabel{max-width:70px}.topbar>.user-menu{flex-wrap:wrap}.day-product-intro h2{font-size:22px!important}html[data-avi-theme] #my-day .day-header{padding:19px}}
@media(prefers-reduced-motion:reduce){.day-product-fill{transition:none}}
@media print{body:before,.avi-theme-picker{display:none!important}}
/* The former glass adapter declares its variables on body; rebind them after theme choice. */
html[data-avi-theme] body.avi-glass-app{--soft-text:var(--theme-ink);--soft-secondary:var(--theme-muted);--soft-blue:var(--theme-accent);--soft-blue-hover:var(--theme-accent);--soft-card:var(--theme-card);--soft-panel:var(--theme-panel);--soft-nav:var(--theme-nav);--soft-line:var(--theme-border);--soft-input:var(--theme-card);--soft-shadow:var(--theme-shadow);--avi-text:var(--theme-ink);--avi-text-2:var(--theme-ink);--avi-muted:var(--theme-muted);--avi-muted-2:var(--theme-muted);--avi-blue:var(--theme-accent);--avi-blue-hover:var(--theme-accent);--avi-accent:var(--theme-accent);--avi-border:var(--theme-border);--avi-blue-soft:var(--theme-soft);--avi-red:var(--theme-danger);scrollbar-color:var(--theme-border) var(--theme-panel)}
:root,:root[data-avi-theme=standard]{--theme-danger:#b13c58}:root[data-avi-theme=ocean]{--theme-danger:#ffa0ae}:root[data-avi-theme=lime]{--theme-danger:#ffb1a4}
html[data-avi-theme] .avi-glass-app .crm-worknav a{color:var(--theme-muted)!important}html[data-avi-theme] .avi-glass-app .crm-worknav a[aria-current=page]{color:var(--theme-accent)!important}
html[data-avi-theme] .avi-glass-app .sidebar .nav-icon{background:var(--theme-panel)!important;color:var(--theme-muted)!important}
html[data-avi-theme] .avi-glass-app :is(.notice.error,.alert.error){background:var(--avi-red-soft)!important;color:var(--theme-danger)!important;border-color:var(--theme-danger)!important}html[data-avi-theme] .avi-glass-app #day-warning{background:var(--avi-amber-soft)!important;color:var(--avi-amber)!important;border-color:var(--avi-amber)!important}
html[data-avi-theme] .avi-glass-app :is(.day-actions a,.day-actions button,.day-tabs button,.day-quick button,.main-nav a){color:var(--theme-ink)}
html[data-avi-theme] .avi-glass-app :is(.message-text,.day-row h3,.day-row>div,.day-list-head span){color:var(--theme-ink)}
html[data-avi-theme] .avi-glass-app :is(.day-row.overdue,.day-row.overdue .day-deadline){color:var(--theme-danger);border-left-color:var(--theme-danger)!important}
html[data-avi-theme] .avi-glass-app .app-footer{background:transparent;color:var(--theme-muted);border-color:var(--theme-border)}
/* КП: form steps and totals use independent components; keep them in the chosen palette. */
html[data-avi-theme] body.avi-glass-app{--navy:var(--theme-ink);--blue:var(--theme-accent);--line:var(--theme-border);--muted:var(--theme-muted)}
html[data-avi-theme] .avi-glass-app :is(.main-nav,.flow-steps li,.flow-product,.flow-discount,.flow-general-discount,.product-methods,.method-tabs,.compact-menu-popover,.manager-card,.quote-card,.quote-table,.quote-filters,.settings-tabs,.quote-empty,.kp-preview-toolbar,.kp-preview-step){background:var(--theme-panel)!important;color:var(--theme-ink)!important;border-color:var(--theme-border)!important}
html[data-avi-theme] .avi-glass-app :is(.flow-steps li.active,.flow-steps li.active button,.product-methods button.active,.method-tab.active,.settings-tabs a.active){background:var(--theme-soft)!important;color:var(--theme-accent)!important;border-color:var(--theme-accent)!important}
html[data-avi-theme] .avi-glass-app #flow-totals{background:var(--theme-card)!important;border-color:var(--theme-border)!important;color:var(--theme-ink)!important;box-shadow:var(--theme-shadow)!important}
html[data-avi-theme] .avi-glass-app #flow-totals>div{color:var(--theme-muted)!important}html[data-avi-theme] .avi-glass-app #flow-totals strong{color:var(--theme-ink)!important}html[data-avi-theme] .avi-glass-app #flow-totals [data-grand] strong{color:var(--theme-accent)!important}
html[data-avi-theme] .avi-glass-app :is(.field-error,#flow-step-error,#flow-error){color:var(--theme-danger)!important}
html[data-avi-theme] .avi-glass-app :is(input,textarea)::placeholder{color:var(--theme-muted)!important;opacity:.8}
html[data-avi-theme] .avi-glass-app :is(.flow-price-note,.flow-discount small,.compact-item-facts,.flow-save-status,#flow-save-status){color:var(--theme-muted)!important}
html[data-avi-theme] .avi-glass-app #flow-add-more,html[data-avi-theme] .avi-glass-app #flow-conditions,html[data-avi-theme] .avi-glass-app #flow-generate{background:var(--theme-accent)!important;color:var(--theme-on-accent)!important;-webkit-text-fill-color:var(--theme-on-accent)!important;border-color:var(--theme-accent)!important}
html[data-avi-theme] .avi-glass-app .soft-skeleton{background:var(--theme-soft)!important}
/* Readability and operator workflow / October 2026. Opaque surfaces keep text clear in every theme. */
:root,:root[data-avi-theme=standard]{--theme-card:#fff;--theme-panel:#f3f6fb;--theme-nav:#fbfdff;--theme-ink:#1b2c43;--theme-muted:#53667e;--theme-border:#d9e3ef;--theme-soft:#e7eefb;--theme-shadow:0 5px 22px #233f640a}
:root[data-avi-theme=ocean]{--theme-card:#14273e;--theme-panel:#1b314a;--theme-nav:#0f2136;--theme-ink:#edf4ff;--theme-muted:#b2c3d8;--theme-border:#35516c;--theme-soft:#23485c;--theme-shadow:0 5px 22px #0002}
:root[data-avi-theme=lime]{--theme-card:#121b0d;--theme-panel:#1c2813;--theme-nav:#10180b;--theme-ink:#f0f5e6;--theme-muted:#b4c3a2;--theme-border:#40562c;--theme-soft:#2b3e16;--theme-shadow:0 5px 22px #0003}
html[data-avi-theme] body.avi-glass-app{font-family:'Segoe UI',Inter,Arial,sans-serif;font-size:14px!important;line-height:1.55!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html[data-avi-theme=lime] body:before{opacity:.022}
html[data-avi-theme] .avi-glass-app :is(button,.btn,input,select,textarea){font-size:13px;line-height:1.45}
html[data-avi-theme] .avi-glass-app :is(button,.btn){font-weight:600;transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease}
html[data-avi-theme] .avi-glass-app :is(button,.btn):active{transform:none}
html[data-avi-theme] .avi-glass-app :is(.muted,.helper,small){font-size:12.5px;line-height:1.5}
html[data-avi-theme] .avi-glass-app :is(.sidebar a,.sidebar .nav-group-head,.crm-worknav a,.main-nav a){font-size:13px!important;line-height:1.45}
html[data-avi-theme] .avi-glass-app :is(.avi-theme-menu,.assistant-menu,.account-menu,.user-switcher>.user-menu,.day-more-menu){background:var(--theme-card)!important;opacity:1;backdrop-filter:none;animation:avi-menu-in .12s ease-out}
@keyframes avi-menu-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
html[data-avi-theme] .avi-glass-app .avi-theme-menu button{min-height:44px;font-size:13.5px}
html[data-avi-theme] #my-day .day-header{padding:17px 22px;border-radius:18px}
html[data-avi-theme] #my-day .day-header h1{font-size:29px;line-height:1.25;font-weight:650;letter-spacing:-.025em}
html[data-avi-theme] #my-day .day-header p{font-size:14px;margin:5px 0 0}
html[data-avi-theme] #my-day .day-counter{min-height:104px;padding:16px!important}
html[data-avi-theme] #my-day .day-counter span{font-size:12.5px!important;line-height:1.45;font-weight:500;min-height:36px}
html[data-avi-theme] #my-day .day-counter strong{font-size:30px!important;letter-spacing:-.025em}
#day-updated{font-size:12px!important;margin:10px 2px 14px!important;line-height:1.4}
#day-warning{padding:11px 15px;border-radius:12px;font-size:13px}
#day-warning[hidden]{display:none!important}
#my-day .day-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start;margin:20px 0}
#my-day #day-work-list{order:1;min-width:0;margin:0;padding:22px;border-radius:18px}
#my-day .day-workspace .day-product-panel{order:2;position:sticky;top:84px;grid-template-columns:minmax(0,1fr);gap:20px;padding:22px!important;margin:0!important;min-width:0;border-radius:18px!important}
#my-day .day-workspace .day-product-intro h2{font-size:22px!important;line-height:1.3}
#my-day .day-product-total{margin:12px 0}
#my-day .day-product-total strong{font-size:30px}
#my-day .day-product-label{font-size:13px;line-height:1.45}
#my-day .day-product-label strong{font-weight:600}
#my-day .day-product-period select{font-size:13px;min-height:38px}
.day-product-help{grid-column:1/-1;border-top:1px solid var(--theme-border);padding-top:10px;font-size:12px;color:var(--theme-muted)}
.day-product-help summary{cursor:pointer;font-size:12px;min-height:28px;display:flex;align-items:center;gap:6px}
.day-product-help summary:after{content:'⌄';font-size:14px}
#my-day .day-product-help .day-product-foot{font-size:12px!important;line-height:1.55;border:0;padding-top:6px}
#my-day #day-work-list h2{font-size:21px;line-height:1.3;font-weight:650;margin:0}
#my-day .day-list-head{margin-bottom:15px}
#my-day .day-tabs{gap:5px;margin-bottom:12px}
#my-day .day-tabs button{padding:9px 11px;font-size:13px;min-height:38px}
#day-active:empty{display:none}
#day-active{font-size:12.5px;margin:10px 0}
#my-day #day-rows{max-height:none!important;overflow:visible!important;padding:0!important}
#my-day .day-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px 18px;padding:20px 0;align-items:start;border-bottom:1px solid var(--theme-border)}
#my-day .day-row>div:first-child{grid-column:1;grid-row:1;min-width:0}
#my-day .day-row h3{font-size:15px!important;line-height:1.4!important;font-weight:650;margin:0 0 5px;color:var(--theme-ink)!important}
#my-day .day-row>div:first-child>div{font-size:14px;line-height:1.5;color:var(--theme-ink)!important;overflow-wrap:anywhere}
#my-day .day-row small{font-size:12px!important;line-height:1.5;color:var(--theme-muted)!important;margin:5px 0 0}
#my-day .day-row-status{grid-column:1;grid-row:2;display:flex;gap:7px;align-items:center;flex-wrap:wrap;min-width:0}
#my-day .day-reason{font-size:11.5px;line-height:1.5;font-weight:550;background:var(--theme-soft)!important;color:var(--theme-muted)!important;border:1px solid var(--theme-border);border-radius:6px;padding:3px 7px;margin:0}
#my-day .day-reason.is-answer,#my-day .day-reason.is-new{color:var(--theme-accent)!important}
#my-day .day-reason.is-overdue{color:var(--theme-danger)!important;border-color:color-mix(in srgb,var(--theme-danger) 35%,var(--theme-border))}
#my-day .day-row .day-deadline{grid-column:1;grid-row:3;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;font-size:12.5px;color:var(--theme-muted)!important}
#my-day .day-row .day-deadline:empty{display:none}
#my-day .day-row .day-actions{grid-column:2;grid-row:1/4;align-self:center;display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:nowrap}
#my-day .day-actions>.btn{min-height:40px;padding:10px 13px;font-size:13px!important;font-weight:650;min-width:92px;white-space:nowrap}
#my-day .day-more{position:relative;flex:0 0 auto}
#my-day .day-more>summary{display:flex;align-items:center;justify-content:center;gap:4px;min-height:40px;padding:9px 8px;box-sizing:border-box;cursor:pointer;border:1px solid transparent;border-radius:9px;color:var(--theme-muted);font-size:12.5px;list-style:none}
#my-day .day-more>summary:after{content:'⌄'}
#my-day .day-more>summary::-webkit-details-marker{display:none}
#my-day .day-more>summary:hover,#my-day .day-more[open]>summary{background:var(--theme-panel);border-color:var(--theme-border);color:var(--theme-ink)}
#my-day .day-more-menu{position:absolute;z-index:70;right:0;top:calc(100% + 6px);display:grid;gap:3px;min-width:214px;max-width:calc(100vw - 32px);padding:7px;border:1px solid var(--theme-border);border-radius:12px;box-shadow:var(--theme-shadow);color:var(--theme-ink)}
#my-day .day-more-menu>.btn{display:block;background:transparent!important;color:var(--theme-ink)!important;border:0!important;border-radius:7px!important;box-shadow:none!important;text-align:left;font-weight:500;font-size:13px!important;padding:10px 11px;min-height:40px;white-space:normal;text-decoration:none}
#my-day .day-more-menu>.btn:hover{background:var(--theme-panel)!important}
.day-diagnostics{margin-top:22px;color:var(--theme-muted);font-size:12px;border-top:1px solid var(--theme-border);padding:12px 0}
.day-diagnostics summary{cursor:pointer;font-size:12px}.day-diagnostics p{white-space:normal;line-height:1.6;max-width:85ch}
html[data-avi-theme] .avi-glass-app .kb{color:var(--theme-ink)}
html[data-avi-theme] .avi-glass-app .kb .kb-toolbar{background:var(--theme-card)!important;border-color:var(--theme-border)!important;box-shadow:none;padding:12px;border-radius:14px}
html[data-avi-theme] .avi-glass-app .kb .kb-toolbar :is(input,select){font-size:13px;height:40px;min-height:40px}
html[data-avi-theme] .avi-glass-app .kb .kb-toolbar :is(.btn,.kb-filter-toggle){height:40px;min-height:40px;font-size:13px}
html[data-avi-theme] .avi-glass-app .kb :is(.kb-total,.kb-nav a,.kb-quick a){font-size:13px!important;color:var(--theme-muted)!important}
html[data-avi-theme] .avi-glass-app .kb .kb-quick :is(.kb-chip,button){background:var(--theme-panel)!important;color:var(--theme-muted)!important;border-color:var(--theme-border)!important;font-size:12.5px;min-height:34px}
html[data-avi-theme] .avi-glass-app .kb .kb-quick :is(.is-active,[aria-pressed=true]){background:var(--theme-soft)!important;color:var(--theme-accent)!important}
html[data-avi-theme] .avi-glass-app .kb .kb-column{background:var(--theme-panel)!important;border:1px solid var(--theme-border)!important;box-shadow:none!important;border-radius:16px;padding:10px}
html[data-avi-theme] .avi-glass-app .kb .kb-column>header{background:color-mix(in srgb,var(--stage-color,#7a91b4) 11%,var(--theme-card))!important;border:1px solid color-mix(in srgb,var(--stage-color,#7a91b4) 30%,var(--theme-border))!important;box-shadow:none;border-radius:10px;padding:15px 12px;min-height:82px}
html[data-avi-theme] .avi-glass-app .kb .kb-column>header::before{background:var(--stage-color,var(--theme-accent));opacity:1;height:3px;width:36px;left:12px}
html[data-avi-theme] .avi-glass-app .kb .kb-column>header h2{color:var(--theme-ink)!important;font-size:14.5px!important;line-height:1.45;font-weight:650;margin:0 0 5px}
html[data-avi-theme] .avi-glass-app .kb .kb-column>header p{color:var(--theme-muted)!important;font-size:12.5px!important;line-height:1.4}
html[data-avi-theme] .avi-glass-app .kb .kb-card{background:var(--theme-card)!important;border:1px solid var(--theme-border)!important;border-radius:11px;box-shadow:0 2px 7px #00000008;padding:14px;color:var(--theme-ink)!important}
html[data-avi-theme] .avi-glass-app .kb .kb-card:hover{border-color:var(--theme-accent)!important;box-shadow:var(--theme-shadow)}
html[data-avi-theme] .avi-glass-app .kb .kb-card :is(h3,.kb-money,.kb-contact-name){color:var(--theme-ink)!important}
html[data-avi-theme] .avi-glass-app .kb .kb-card h3{font-size:14.5px!important;line-height:1.5!important;font-weight:650;margin:3px 0 9px}
html[data-avi-theme] .avi-glass-app .kb :is(.kb-city,.kb-time,.kb-client,.kb-client-missing,.kb-assignee,.kb-empty,.kb-contact-phone,.kb-total){color:var(--theme-muted)!important;font-size:12.5px!important;line-height:1.5}
html[data-avi-theme] .avi-glass-app .kb .kb-money{font-size:18px!important;font-weight:650;margin:7px 0 12px}
html[data-avi-theme] .avi-glass-app .kb .kb-contact-row{background:var(--theme-panel)!important;border:1px solid var(--theme-border)!important;border-radius:9px;padding:9px 10px;margin:10px 0}
html[data-avi-theme] .avi-glass-app .kb .kb-contact-name{font-size:13.5px!important;line-height:1.45;font-weight:600}
html[data-avi-theme] .avi-glass-app .kb .kb-contact-phone{font-size:12.5px!important;line-height:1.5}
html[data-avi-theme] .avi-glass-app .kb :is(.kb-source,.kb-task){background:var(--theme-panel)!important;color:var(--theme-muted)!important;border:1px solid var(--theme-border)!important;border-radius:6px;font-size:11.5px!important;padding:3px 6px}
html[data-avi-theme] .avi-glass-app .kb .kb-task-overdue{color:var(--theme-danger)!important;border-color:var(--theme-danger)!important}
html[data-avi-theme] .avi-glass-app .kb .kb-task-today{color:var(--avi-amber)!important}
html[data-avi-theme] .avi-glass-app .kb .kb-contact-actions{border-color:var(--theme-border)!important}
html[data-avi-theme] .avi-glass-app .kb .kb-contact-action{background:var(--theme-panel)!important;color:var(--theme-accent)!important;border-color:var(--theme-border)!important;width:38px;height:38px;min-width:38px;min-height:38px}
html[data-avi-theme] .avi-glass-app .kb .kb-contact-action[aria-disabled=true]{background:var(--theme-panel)!important;color:var(--theme-muted)!important;opacity:.45}
html[data-avi-theme] .avi-glass-app .kb .kb-column.is-drop-target{background:var(--theme-soft)!important;box-shadow:inset 0 0 0 2px var(--theme-accent)!important}
html[data-avi-theme] .avi-glass-app .kb .kb-more{background:var(--theme-card)!important;border-color:var(--theme-border)!important;color:var(--theme-ink)!important;font-size:13px!important;min-height:40px}
html[data-avi-theme] .avi-glass-app :is(.chat-row,.chat-bulk-row,.chat-avatar,.chat-list-product-image,.chat-admin-modes,.chat-local-status,.chat-draft-badge,.chat-assignee-badge,.chat-assignee-free,.chat-pagination,.chat-page-number,.chat-page-arrow,.chat-sync-note){background-color:var(--theme-card)!important;border-color:var(--theme-border)!important;color:var(--theme-ink)!important}
html[data-avi-theme] .avi-glass-app :is(.chat-last-message,.chat-meta,.chat-local-status,.chat-item-title,.chat-auto-status){color:var(--theme-muted)!important;font-size:12.5px;line-height:1.5}
html[data-avi-theme] .avi-glass-app :is(.chat-row-head strong,.chat-list-product,.chat-list-product-name,.chat-row h3){color:var(--theme-ink)!important;font-size:14.5px!important;line-height:1.45}
html[data-avi-theme] .avi-glass-app .chat-row.has-unread{background-color:color-mix(in srgb,var(--theme-accent) 6%,var(--theme-card))!important}
html[data-avi-theme] .avi-glass-app .chat-row:hover{background-color:var(--theme-panel)!important}
html[data-avi-theme] .avi-glass-app :is(.chat-unread-badge,.chat-page-number.active){background:var(--theme-accent)!important;color:var(--theme-on-accent)!important}
html[data-avi-theme] .avi-glass-app :is(.chat-sync-note summary,.day-diagnostics summary){color:var(--theme-muted)!important;cursor:pointer;font-size:12.5px;line-height:1.5}
html[data-avi-theme] .avi-glass-app :is(.message-text,.message-bubble){font-size:14px!important;line-height:1.65!important}
html[data-avi-theme] .avi-glass-app :is(.form-grid label,.wizard-card label,.flow-discount label){font-size:13.5px!important;line-height:1.45}
html[data-avi-theme] .avi-glass-app :is(.wizard-card input,.wizard-card select,.wizard-card textarea,.flow-discount input,.flow-discount select){font-size:14px!important;min-height:42px!important}
html[data-avi-theme] .avi-glass-app :is(.flow-product h3,.flow-discount strong){font-size:14.5px!important;line-height:1.5!important}
html[data-avi-theme] .avi-glass-app :is(#flow-add-more,#flow-conditions,#flow-generate,.flow-steps li>button){min-height:42px!important;font-size:13px!important}
html[data-avi-theme] .avi-glass-app #flow-totals>div{font-size:12.5px!important}
html[data-avi-theme] .avi-glass-app #flow-totals strong{font-size:20px!important;line-height:1.35}
@media(max-width:1150px){#my-day .day-workspace{grid-template-columns:1fr}#my-day .day-workspace .day-product-panel{position:static;grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr)}#my-day .day-row .day-actions{flex-direction:row}}
@media(max-width:760px){#my-day .day-workspace{gap:16px}#my-day #day-work-list{padding:18px 15px}#my-day .day-workspace .day-product-panel{grid-template-columns:1fr}#my-day .day-row{grid-template-columns:minmax(0,1fr)!important;gap:9px;padding:18px 0}#my-day .day-row .day-actions{grid-column:1;grid-row:4;justify-content:flex-start;margin-top:3px}#my-day .day-actions>.btn{min-height:44px;padding:11px 17px;min-width:112px}#my-day .day-more>summary{min-height:44px;padding:10px 13px}#my-day .day-more-menu{left:0;right:auto}#my-day .day-tabs{display:flex;gap:4px}#my-day .day-tabs button{font-size:12px;padding:9px 8px}html[data-avi-theme] #my-day .day-header{padding:16px 18px}html[data-avi-theme] .avi-glass-app .kb .kb-contact-action{width:42px;height:42px;min-width:42px;min-height:42px}.avi-theme-menu{top:72px}html[data-avi-theme] .avi-glass-app .kb .kb-card h3{font-size:14px!important}}
@media(prefers-reduced-motion:reduce){html[data-avi-theme] .avi-glass-app *,html[data-avi-theme] .avi-glass-app *:before,html[data-avi-theme] .avi-glass-app *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Final responsive polish: no reserved technical-banner space or pale tab strip. */
html[data-avi-theme] body.avi-glass-app #my-day #day-warning[hidden]{display:none!important;visibility:hidden!important;min-height:0!important;margin:0!important;padding:0!important}
html[data-avi-theme] body.avi-glass-app #my-day .day-tabs{background:transparent!important;border:1px solid var(--theme-border)!important;border-radius:11px;padding:4px;box-shadow:none!important;width:fit-content;max-width:100%}
html[data-avi-theme] body.avi-glass-app #my-day .day-tabs button{background:transparent!important;color:var(--theme-muted)!important;border:1px solid transparent!important;box-shadow:none!important;border-radius:8px}
html[data-avi-theme] body.avi-glass-app #my-day .day-tabs button[aria-pressed=true]{background:var(--theme-soft)!important;color:var(--theme-accent)!important;border-color:var(--theme-border)!important}
@media(min-width:761px){html[data-avi-theme] .avi-glass-app .assistant-switch{flex:0 1 auto;min-width:0;max-width:250px}html[data-avi-theme] .avi-glass-app .assistant-switch #assistantModeLabel{display:block;max-width:194px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.avi-glass-app .topbar-actions{min-width:0}}
