/* Coffee.FM портал — оформление «Эфир» (как в CRM). Подключается ПОСЛЕ всех остальных
   стилей и меняет только внешний вид: цвета, шрифты, скругления. Расчёты и тексты не затрагиваются.
   Откат: убрать подключение ether.css в base.html (или apply_update.py --rollback). */
@font-face{
font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ether/onest-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
}
@font-face{
font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ether/onest-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
}
@font-face{
font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ether/onest-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
}
@font-face{
font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ether/onest-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
}
@font-face{
font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/ether/onest-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
}
@font-face{
font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/ether/onest-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
}
@font-face{
font-family:'Onest';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/ether/onest-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
}
@font-face{
font-family:'Onest';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/ether/onest-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
}
@font-face{
font-family:'Unbounded';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ether/unbounded-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
}
@font-face{
font-family:'Unbounded';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ether/unbounded-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
}
@font-face{
font-family:'Unbounded';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ether/unbounded-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
}
@font-face{
font-family:'Unbounded';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ether/unbounded-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
}
@font-face{
font-family:'Unbounded';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/ether/unbounded-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
}
@font-face{
font-family:'Unbounded';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/ether/unbounded-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
}
@font-face{
font-family:'Unbounded';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/ether/unbounded-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
}
@font-face{
font-family:'Unbounded';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/ether/unbounded-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
}
:root{
--espresso: #2B1B14; --roast: #7A4B3A; --copper: #C9643B; --latte: #EADDCD; --paper: #F6EFE6;
  --mute: #80695C; --line: #DCCBB8; --dial-text: #BFA897; --dial-tick: #6E5345; --dial-hover: #3A271E; --dial-on: #4A3127;

  --surface-1: #ffffff;
  --page: #F6EFE6;
  --text-primary: #2B1B14;
  --text-secondary: #5E473B;
  --text-muted: #80695C;
  --gridline: #E6D8C7;
  --border: #E8DACA;
  --brand: #BE5B33;
  --brand-dark: #8F3F22;
  --good: #2E7D4F;
  --good-bg: #E1F0E5;
  --warning: #96600A;
  --warning-bg: #F8E8C8;
  --critical: #B83A1F;
  --critical-bg: #F8E0D9;

  --font-body: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: Unbounded, Onest, system-ui, sans-serif;
}
@media screen{
html{
background: var(--page);
}
html body{
font-family: var(--font-body); font-size: 16px; line-height: 1.5; background: var(--page); color: var(--text-primary);
}
html a{
color: var(--roast);
}
html a:hover{
color: var(--copper);
}
html :focus-visible{
outline: 2px solid var(--copper); outline-offset: 2px;
}
html ::selection{
background: #F0C9B3;
}
html .page-title{
font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; margin: 4px 0 8px;
}
html .card h2{
font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--mute);
}
html .verdict h2,
html .inv-status h2,
html .sup-card .sup-name{
font-family: var(--font-body);
}
html .inv-status h2{
font-weight: 600;
}
html .topbar{
background: var(--espresso); color: var(--latte); border-bottom: 0; box-shadow: none; padding: 0 28px; gap: 24px; min-height: 68px;
}
html .topbar .brand{
flex: 0 0 auto; gap: 12px;
}
html .brand-link{
display: inline-flex; align-items: center; text-decoration: none;
}
html .brand-logo{
display: none;
}
html .brand-text{
font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: .02em; color: #fff; line-height: 1;
}
html .brand-text b{
color: var(--copper); font-weight: 700;
}
html .brand-caption{
font-family: var(--font-head); font-weight: 500; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #CDB8A6; padding-left: 12px; border-left: 1px solid var(--dial-tick);
}
@media (max-width: 1099px){
html .topbar .brand{
flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
}
html .brand-caption{
display: block; padding-left: 0; border-left: 0; font-size: 8px; letter-spacing: .12em; line-height: 1; white-space: nowrap;
}

}
html .topbar .who{
color: #CDB8A6; font-size: 14px; gap: 6px 14px;
}
html .menu-btn{
border: 1px solid var(--dial-on); border-radius: 999px; background: transparent; width: 42px; height: 42px;
}
html .menu-btn span{
background: var(--latte);
}
html .menu-btn:hover{
background: var(--dial-hover);
}
html .topbar .badge,
html .topbar .badge:not(.good){
background: var(--dial-on); color: #E8D5C4;
}
html .topbar .badge.good{
background: #2E5F43; color: #BFE8CF;
}
html .tuner{
position: relative; flex: 1 1 auto; max-width: 520px; margin: 0 auto; height: 44px; min-width: 0;
  display: flex; justify-content: space-around; align-items: flex-end; padding-bottom: 3px;
  background:
    repeating-linear-gradient(90deg, #A88B78 0 2px, transparent 2px 25%) 0 0 / 100% 16px no-repeat,
    repeating-linear-gradient(90deg, #6E5345 0 1px, transparent 1px 4.1667%) 0 0 / 100% 9px no-repeat;
  border-top: 1px solid transparent;
}
html .tuner span{
width: 25%; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 10px; letter-spacing: .12em; color: var(--dial-text);
}
html .tuner-needle{
position: absolute; top: -3px; height: 24px; left: 12.5%; width: 3px; margin-left: -1px; border-radius: 2px;
  background: var(--copper); box-shadow: 0 0 12px var(--copper); transition: left .6s ease;
}
@media (max-width: 1199px){
html .topbar .who .who-email{
display: none;
}

}
@media (max-width: 999px){
html .topbar .brand{
flex: 0 0 auto;
}

}
@media (max-width: 599px){
html .tuner{
height: 36px; max-width: none; margin: 0; flex: 1 1 0;
}
html .tuner span{
font-size: 8px; letter-spacing: .06em;
}
html .topbar .brand{
flex: 0 0 auto;
}

}
@media (max-width: 400px){
html .brand-text{
font-size: 15px;
}
html .topbar{
gap: 10px;
}

}
@media (prefers-reduced-motion: reduce){
html .tuner-needle{
transition: none;
}

}
@media (max-width: 700px){
html .topbar{
padding: 0 12px; gap: 12px; min-height: 60px;
}
html .brand-text{
font-size: 17px;
}

}
html .side-overlay{
background: rgba(43, 27, 20, .55);
}
html .side-menu{
background: var(--espresso); color: var(--latte); box-shadow: none;
}
html .side-menu.open{
box-shadow: 6px 0 30px rgba(43, 27, 20, .35);
}
html .side-head{
color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding-top: 18px;
}
html .side-close{
color: #CDB8A6;
}
html .side-close:hover{
background: var(--dial-hover); color: #fff;
}
html .side-nav a{
color: #CDB8A6; border-radius: 12px; font-weight: 500;
}
html .side-nav a:hover{
background: var(--dial-hover); color: #fff;
}
html .side-nav a.active{
background: var(--dial-on); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--copper);
}
html .side-nav a:last-child{
border-top: 1px solid var(--dial-on); color: #9E8576; border-radius: 0 0 12px 12px;
}
html .side-nav a:last-child:hover{
color: #fff;
}
html .side-foot{
border-top: 1px solid var(--dial-on); color: var(--dial-text);
}
html .side-foot .badge{
background: var(--dial-on); color: #fff;
}
html .card,
html .stat-tile,
html .calc-card,
html .login-card{
border-radius: 16px; border: 1px solid var(--border); background: #fff;
}
html .card{
box-shadow: 0 1px 0 rgba(43, 27, 20, .03);
}
html .stat-tile .label{
color: var(--mute); letter-spacing: .05em; font-weight: 500;
}
html .stat-tile .value,
html .inv-kpi-val{
font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em;
}
html .stat-tile .value{
font-size: 22px; margin-top: 8px;
}
html .inv-kpi-val{
font-size: 21px; margin-top: 8px;
}
html .stat-tile .value.value-sm{
font-family: var(--font-body); font-size: 16px; font-weight: 600;
}
@media (max-width: 700px){
html .page-title{
font-size: 19px;
}

}
@media (max-width: 480px){
html .stat-tile .value{
font-size: 16px;
}
html .inv-kpi-val{
font-size: 18px;
}

}
html .verdict{
border-left-width: 5px;
}
html .verdict-warn{
border-left-color: #D79A2B;
}
html .verdict-info{
border-left-color: var(--roast);
}
html .finding-mark{
background: var(--roast);
}
html .finding-warn .finding-mark{
background: #D79A2B;
}
html .recipe-note{
background: var(--warning-bg); border-radius: 12px;
}
html .recipe-side{
background: var(--paper);
}
html table th{
color: var(--mute); font-weight: 600; letter-spacing: .05em; border-bottom: 1px solid var(--line);
}
html table td{
border-bottom-color: var(--gridline);
}
html tr.table-group-header td{
color: var(--roast); border-bottom-color: var(--line);
}
html table.sortable th[data-sort]:hover{
color: var(--copper);
}
html td.best{
background: var(--good-bg);
}
html td.worst{
background: var(--critical-bg);
}
html .inv-report tr.inv-flag td{
background: rgba(184, 58, 31, .08);
}
@media (max-width: 700px){
html .table-scroll tr{
border-radius: 14px;
}
html .inv-card{
border: 0; background: transparent; box-shadow: none; padding: 0;
}

}
html .badge{
font-family: var(--font-body); font-weight: 600;
}
html .badge.unknown{
background: var(--latte); color: var(--roast);
}
html .side-foot .badge:not(.good){
background: var(--latte); color: var(--roast);
}
html .btn{
background: var(--brand); color: #fff; border-radius: 999px; padding: 10px 20px; font-family: var(--font-body); font-weight: 600;
}
html .btn:hover{
background: var(--brand-dark); color: #fff;
}
html .btn-outline{
border: 1px solid var(--line); color: var(--roast); border-radius: 999px; background: transparent; padding: 8px 16px; font-family: var(--font-body);
}
html .btn-outline:hover{
background: var(--latte); border-color: var(--roast); color: var(--espresso);
}
html .tab-btn{
font-family: var(--font-body); border-color: var(--line); background: #fff; color: var(--roast);
}
html .tab-btn:hover{
border-color: var(--roast);
}
html .tab-btn.active,
html .point-tabs a.active,
html .inv-period.active{
background: var(--espresso); border-color: var(--espresso); color: #fff;
}
html .point-tabs a,
html .inv-period{
border-color: var(--line); background: #fff; color: var(--roast);
}
html .point-tabs a:hover,
html .inv-period:hover{
border-color: var(--roast);
}
html .yandex-btn{
border-radius: 999px; border-color: var(--line); background: #fff;
}
html .yandex-btn:hover{
background: #FC3F1D; border-color: #FC3F1D; color: #fff;
}
html input,
html select,
html textarea{
font-family: var(--font-body); color: var(--text-primary);
}
html input[type=number],
html input[type=text],
html input[type=search],
html input[type=email],
html select,
html textarea,
html form.expenses-form input[type=number],
html .period-select select,
html .support-field,
html .catalog-filter,
html .feed-filters .catalog-filter{
border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text-primary);
}
html .catalog-filter,
html .feed-filters .catalog-filter{
border-radius: 999px;
}
html input:focus,
html select:focus,
html textarea:focus,
html .inv-input:focus{
border-color: var(--copper); outline: 2px solid rgba(201, 100, 59, .25);
}
html input[type=checkbox],
html input[type=radio]{
accent-color: var(--copper);
}
html .inv-input{
border: 1.5px solid #CDB8A6; border-radius: 10px; font-family: var(--font-body);
}
html .inv-input.bad{
border-color: var(--critical); background: var(--critical-bg);
}
html .masked-value{
border-color: var(--line);
}
html .period-select select{
background: #fff;
}
html .flash{
background: #fff; color: var(--text-primary); border: 0; border-left: 3px solid var(--copper); border-radius: 0 12px 12px 0; box-shadow: 0 1px 0 rgba(43, 27, 20, .04);
}
html .inv-warn{
background: #FBF0D7; color: #6B4300; border-color: #EBCF95; border-radius: 12px;
}
html .inv-dot{
background: #CDB8A6;
}
html .inv-dot.done{
background: var(--good);
}
html .inv-dot.draft{
background: #D79A2B;
}
html .inv-actions{
background: #fff; border-radius: 20px; box-shadow: 0 6px 24px rgba(43, 27, 20, .22); border: 1px solid var(--border);
}
html .inv-actions-top{
background: none; box-shadow: none; border: 0;
}
html .inv-table:not(.inv-report) .inv-unit,
html .inv-table:not(.inv-report) .inv-sum{
color: var(--mute);
}
html .inv-card.inv-extra{
background: #fff; border: 1px solid var(--border); padding: 16px 18px;
}
html .chart{
--series: var(--copper); --prior: #BFA897; --neg: var(--critical);
}
html .chart-svg .grid{
stroke: var(--gridline);
}
html .chart-svg .axis{
stroke: #CDB8A6;
}
html .chart-svg .hit:hover,
html .chart-svg .hit:focus,
html .chart-svg .hit.on{
fill: rgba(201, 100, 59, .10);
}
html .chart-svg .bar.weekend{
fill: #E3A98C;
}
html .key-weekend{
background: #E3A98C;
}
html .key-bar{
background: var(--copper);
}
html .key-prior{
background: #BFA897;
}
html .key-line{
background: var(--copper);
}
html .hbar-fill{
background: var(--copper);
}
html .hbar-track{
background: #F1E7DB; border-radius: 0 4px 4px 0;
}
html .delta.up{
color: var(--good);
}
html .delta.down{
color: var(--critical);
}
html .login-card{
border-radius: 22px; padding: 40px 34px 34px; border: 0; background: #fff; box-shadow: 0 12px 40px rgba(43, 27, 20, .12);
}
html .login-card h1{
font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -.01em;
}
html .login-card p{
color: var(--mute);
}
html .muted{
color: var(--mute);
}
html .calc-card > summary::before{
color: var(--copper);
}
html details > summary:hover{
color: var(--roast);
}
html .sup-label{
color: var(--mute);
}
html .sup-row{
border-top-color: var(--line);
}
html .menu-row.selected{
background: rgba(201, 100, 59, .10);
}
html .sel-bar{
border-radius: 18px;
}
html .container > .stat-row{
position: relative;
  background: var(--espresso);
  border-radius: 24px;
  padding: 40px 16px 16px;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(43, 27, 20, .18);
}
html .container > .stat-row::before{
content: "";
  position: absolute; left: 24px; right: 24px; top: 16px; height: 14px;
  background:
    repeating-linear-gradient(90deg, #A88B78 0 2px, transparent 2px 60px) 0 100% / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, #6E5345 0 1px, transparent 1px 12px) 0 100% / 100% 8px no-repeat;
  border-bottom: 1px solid #6E5345;
}
html .container > .stat-row::after{
content: "";
  position: absolute; top: 12px; left: 42%; width: 3px; height: 22px; border-radius: 2px;
  background: var(--copper); box-shadow: 0 0 12px var(--copper);
}
html .container > .stat-row .stat-tile{
background: #38251C; border: 0; border-radius: 16px; padding: 16px 16px 14px;
}
html .container > .stat-row .stat-tile .label{
color: var(--dial-text); min-height: 2.6em;
}
html .container > .stat-row .stat-tile .value{
color: #fff; font-size: 26px;
}
html .container > .stat-row .stat-tile .value.value-sm{
color: var(--dial-text);
}
html .container > .stat-row .stat-tile.profit-positive .value{
color: #8FD6A8;
}
html .container > .stat-row .stat-tile.profit-negative .value{
color: #FF9C82;
}
html .container > .stat-row .delta{
color: #E8D5C4;
}
html .container > .stat-row .delta.up{
color: #8FD6A8;
}
html .container > .stat-row .delta.down{
color: #FF9C82;
}
html .container > .stat-row .kpi-sub,
html .container > .stat-row .muted{
color: var(--dial-text);
}
@media (max-width: 700px){
html .container > .stat-row{
grid-template-columns: repeat(2, 1fr); padding: 38px 10px 10px; gap: 8px; border-radius: 20px;
}
html .container > .stat-row .stat-tile{
padding: 12px;
}
html .container > .stat-row .stat-tile .value{
font-size: 17px;
}

}
html .inv-kpi.card{
background: var(--espresso); border: 0; color: #fff; border-radius: 20px; padding: 20px 22px;
}
html .inv-kpi.card .muted{
color: var(--dial-text);
}
html .inv-kpi.card .inv-kpi-val{
color: #fff; font-size: 26px;
}
html .page-title{
font-size: 30px; margin: 6px 0 6px;
}
html .page-title::after{
content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--copper); margin-top: 10px;
}
html .catalog-intro{
margin-bottom: 20px;
}
@media (max-width: 700px){
html .page-title{
font-size: 21px;
}

}
html .card > h2::before,
html .chart-card > h2::before{
content: ""; display: inline-block; width: 16px; height: 3px; border-radius: 2px;
  background: var(--copper); margin-right: 10px; vertical-align: middle;
}
html .card > h2{
display: flex; align-items: center;
}
html table th{
background: #FBF6F0;
}
html table th:first-child{
border-top-left-radius: 10px;
}
html table th:last-child{
border-top-right-radius: 10px;
}
@media (min-width: 701px){
html table tr:hover td{
background: #FBF6F0;
}
html .inv-table .inv-input{
box-shadow: inset 0 1px 2px rgba(43, 27, 20, .06);
}

}
@media (min-width: 701px){
html .point-tabs,
html .tab-nav,
html .inv-periods{
background: var(--latte); padding: 5px; border-radius: 999px; display: inline-flex; flex-wrap: wrap; gap: 4px;
}
html .point-tabs a,
html .tab-btn,
html .inv-period{
border-color: transparent; background: transparent;
}
html .point-tabs a:hover,
html .tab-btn:hover,
html .inv-period:hover{
background: rgba(255, 255, 255, .6); border-color: transparent;
}
html .point-tabs a.active,
html .tab-btn.active,
html .inv-period.active{
background: var(--espresso);
}
html .tab-nav .tab-btn{
padding: 8px 18px;
}
html .inv-actions .tab-btn,
html .inv-actions-top .tab-btn{
background: #fff; border-color: var(--line);
}

}
html .period-select{
background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 8px 6px 16px; display: inline-flex;
}
html .period-select select{
border: 0; background: var(--latte); border-radius: 999px; padding: 7px 14px; font-weight: 600;
}
@media (max-width: 700px){
html .container > .stat-row .stat-tile:nth-child(1),
html .container > .stat-row .stat-tile:nth-child(4){
grid-column: 1 / -1;
}
html .container > .stat-row .stat-tile:nth-child(1) .value,
html .container > .stat-row .stat-tile:nth-child(4) .value{
font-size: 26px;
}
html .container > .stat-row .stat-tile .label{
min-height: 0; font-size: 11px;
}
html .tab-btn,
html .point-tabs a,
html .inv-period,
html .btn-outline{
padding: 10px 16px; font-size: 14px;
}
html .btn{
padding: 12px 22px; font-size: 15px;
}
html input[type=text],
html input[type=number],
html input[type=search],
html input[type=email],
html select,
html textarea{
font-size: 16px;
}
html input[type=text],
html input[type=number],
html input[type=search],
html select{
min-height: 44px;
}
html .period-select select{
min-height: 0;
}
html .muted{
font-size: 13.5px;
}
html .card{
border-radius: 18px;
}
html .card .table-scroll tr{
background: #FBF6F0; border: 0;
}
html .card .table-scroll td{
border-bottom-color: #E9DCCB;
}
html .side-nav a{
padding: 14px 16px; font-size: 16px;
}
html .side-head{
padding-top: 20px;
}
html .inv-actions{
border-radius: 22px; margin-bottom: 10px;
}
html .page-title{
margin-top: 10px;
}

}
@media (max-width: 700px){
html .table-scroll{
overflow-x: auto;
}
html .inv-report{
min-width: 680px;
}
html .table-scroll .inv-report thead{
display: table-header-group;
}
html .table-scroll .inv-report tr{
display: table-row !important; background: none; border: 0; padding: 0; margin: 0; border-radius: 0;
}
html .table-scroll .inv-report td,
html .table-scroll .inv-report th{
display: table-cell !important; text-align: right; border-bottom: 1px solid var(--gridline); padding: 9px 10px; white-space: nowrap;
}
html .table-scroll .inv-report td.inv-name,
html .table-scroll .inv-report th:first-child{
text-align: left; white-space: normal; min-width: 150px; position: sticky; left: 0; background: #fff; z-index: 1;
}
html .table-scroll .inv-report tr.inv-flag td{
background: #FBEDE9;
}
html .table-scroll .inv-report tr.inv-flag td.inv-name{
background: #FBEDE9;
}

}
html body:has(.login-wrap){
background: #fff; color: var(--espresso);
}
html body:has(.login-wrap) .container{
max-width: none; padding: 0; margin: 0;
}
html body:has(.login-wrap) .flash{
background: #FBEDE4; color: var(--espresso); border: 1px solid var(--line); border-radius: 14px; margin: 16px; text-align: center;
}
html .login-wrap{
min-height: 100vh; min-height: 100dvh; padding: 28px 22px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 70% 40% at 50% 28%, rgba(201, 100, 59, .10), transparent 70%);
}
html .login-stage{
width: 100%; max-width: 380px; text-align: center; display: flex; flex-direction: column; align-items: center;
}
html .login-badge{
width: 148px; height: 148px; display: block; filter: drop-shadow(0 10px 22px rgba(43, 27, 20, .22)); animation: login-rise .7s ease both;
}
html .login-word{
margin-top: 22px; font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: .02em; color: var(--espresso); animation: login-rise .7s .08s ease both;
}
html .login-word b{
color: var(--copper);
}
html .login-cap{
margin-top: 8px; font-family: var(--font-head); font-weight: 500; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); animation: login-rise .7s .14s ease both;
}
html .login-tuner{
position: relative; width: 100%; max-width: 300px; height: 44px; margin: 30px 0 26px; display: flex; justify-content: space-around; align-items: flex-end; padding-bottom: 3px;
  background:
    repeating-linear-gradient(90deg, #7A4B3A 0 2px, transparent 2px 25%) 0 0 / 100% 16px no-repeat,
    repeating-linear-gradient(90deg, #C9B5A3 0 1px, transparent 1px 4.1667%) 0 0 / 100% 9px no-repeat;
  animation: login-rise .7s .2s ease both;
}
html .login-tuner span{
width: 25%; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 10px; letter-spacing: .12em; color: var(--mute);
}
html .login-needle{
position: absolute; top: -3px; height: 24px; left: 12.5%; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--copper); box-shadow: 0 0 12px var(--copper);
  animation: login-scan 6s ease-in-out infinite alternate;
}
html .login-text{
margin: 0 0 24px; font-size: 15px; line-height: 1.5; color: var(--mute); max-width: 320px; animation: login-rise .7s .26s ease both;
}
html body:has(.login-wrap) .yandex-btn{
display: flex; justify-content: center; width: 100%; max-width: 320px; padding: 15px 22px; border: 0; border-radius: 999px; background: var(--espresso); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 16px; animation: login-rise .7s .32s ease both;
}
html body:has(.login-wrap) .yandex-btn:hover,
html body:has(.login-wrap) .yandex-btn:focus-visible{
background: #FC3F1D; color: #fff;
}
html .login-act{
position: relative; width: 100%; display: flex; flex-direction: column; align-items: center;
}
html .login-wait{
display: none; position: absolute; left: 0; right: 0; top: 0; bottom: 0; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 500; font-size: 14px; letter-spacing: .04em; color: var(--espresso);
}
html .login-stage.go .yandex-btn,
html .login-stage.go .login-text{
visibility: hidden;
}
html .login-stage.go .login-wait{
display: flex; animation: login-pulse 1.1s ease-in-out infinite;
}
html .login-stage.go .login-needle{
animation: login-scan .9s linear infinite alternate;
}
@keyframes login-scan{
from{
left: 12.5%;
}
to{
left: 87.5%;
}

}
@keyframes login-rise{
from{
opacity: 0; transform: translateY(10px);
}
to{
opacity: 1; transform: none;
}

}
@keyframes login-pulse{
0%, 100%{
opacity: .55;
}
50%{
opacity: 1;
}

}
@media (prefers-reduced-motion: reduce){
html .login-badge,
html .login-word,
html .login-cap,
html .login-tuner,
html .login-text,
html body:has(.login-wrap) .yandex-btn,
html .login-stage.go .login-wait{
animation: none;
}
html .login-needle,
html .login-stage.go .login-needle{
animation: none; left: 50%;
}

}
@media (max-height: 640px){
html .login-badge{
width: 104px; height: 104px;
}
html .login-tuner{
margin: 20px 0 18px;
}

}
html @supports not selector(::-webkit-scrollbar){
html{
scrollbar-width: thin; scrollbar-color: #CDB8A6 #F6EFE6;
}
html .side-nav{
scrollbar-width: thin; scrollbar-color: #6E5345 transparent;
}
html .table-scroll,
html .ing-wrap,
html textarea,
html .preview-box,
html .sel-bar{
scrollbar-width: thin; scrollbar-color: #CDB8A6 transparent;
}
html .side-nav:hover{
scrollbar-color: #8C6A57 transparent;
}

}
html ::-webkit-scrollbar{
width: 10px; height: 10px;
}
html ::-webkit-scrollbar-track{
background: transparent;
}
html ::-webkit-scrollbar-thumb{
background: #CDB8A6; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box;
}
html ::-webkit-scrollbar-thumb:hover{
background: #C9643B; border: 2px solid transparent; background-clip: padding-box;
}
html ::-webkit-scrollbar-button{
display: none; width: 0; height: 0;
}
html .side-nav::-webkit-scrollbar{
width: 8px;
}
html .side-nav::-webkit-scrollbar-thumb{
background: #6E5345; border: 2px solid transparent; background-clip: padding-box;
}
html .side-nav::-webkit-scrollbar-thumb:hover{
background: #C9643B; border: 2px solid transparent; background-clip: padding-box;
}
html html::-webkit-scrollbar-track{
background: #F6EFE6;
}

}
