/* Gravium Seller — light brand layer. Operational app.css stays authoritative. */
:root{--faint:#756e66;--gold:#89652f;--shadow:0 2px 4px #271e1104,0 10px 30px #271e1107}
.brand{flex-direction:column;align-items:flex-start;gap:10px;padding:4px 10px 14px}
.brand-logo{width:110px;height:124px;object-fit:contain;align-self:center}
.brand-account{font-size:12px;color:var(--mute);overflow-wrap:anywhere}
.side{overflow-y:auto}
.main{max-width:1440px;width:100%}
.head h1{font-size:26px;letter-spacing:-.7px}
.card,.tile,.table-wrap{box-shadow:var(--shadow)}
.welcome-card{position:relative;min-height:225px;padding:28px 32px;margin-bottom:18px;overflow:hidden;border-color:#dfd1b8}
.welcome-art{float:right;width:40%;max-width:360px;height:203px;object-fit:contain;margin:-16px -12px -16px 24px}
.eyebrow{display:block;font-size:10px;font-weight:650;letter-spacing:.12em;color:#89652f;margin-bottom:14px}
.welcome-card h2{font-size:23px;letter-spacing:-.5px;margin-bottom:10px}
.welcome-card p{max-width:64ch;line-height:1.7}
.tile{position:relative;min-height:143px;padding:20px}
.tile b{font-size:32px;margin:5px 0 9px}
.tile i{display:block;max-width:26ch;line-height:1.5}
.btn{min-height:40px;transition:background .15s,border-color .15s}
.btn:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #9b773d;outline-offset:3px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.connect-art{float:right;width:160px;height:160px;object-fit:contain;margin:0 0 8px 24px}
.connect-card:after,.welcome-card:after{content:"";display:table;clear:both}
.connect-card form{max-width:680px}
body[data-page="products"] .empty:before,body[data-page="promos"] .empty:before,body[data-page="log"] .empty:before,body[data-page="decisions"] .card .empty:before{content:"";display:block;width:140px;height:140px;margin:0 auto 14px;background:center/contain no-repeat url('brand/10-empty-state.png')}
body[data-page="products"] .empty:before{background-image:url('brand/04-products.png')}
body[data-page="promos"] .empty:before{background-image:url('brand/06-promotions.png')}
body[data-page="decisions"] .card .empty:before{background-image:url('brand/07-decisions.png')}
.empty{padding:28px 20px;line-height:1.7}
.login-card{padding:32px;box-shadow:0 16px 60px #4b39110c}
.login-logo{display:block;margin:0 auto 26px;width:140px;height:158px}
.login-card h2{font-size:23px;margin-bottom:10px;letter-spacing:-.4px}
.login-card form{margin-top:24px!important}
.login-card .field{margin-bottom:18px}
.login-card input{min-height:44px}
.login-card .hint{margin-top:18px;line-height:1.6}
@media(min-width:1100px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:860px){.brand{flex-direction:row;align-items:center;padding:0;gap:12px}.brand-logo{width:58px;height:66px}.brand-account{max-width:170px}.side{overflow:visible}.head h1{font-size:24px}.welcome-card{padding:24px}.welcome-art{width:38%;height:160px;margin:0 0 8px 16px}.side-foot{flex-wrap:wrap}.menu a{min-height:40px}}
@media(max-width:520px){.welcome-art{float:none;display:block;width:100%;max-width:280px;height:158px;margin:0 auto 14px}.welcome-card{padding:20px}.welcome-card h2{font-size:21px}.eyebrow{font-size:9px}.connect-art{width:96px;height:96px;margin-left:10px}.plain{margin:24px auto;padding:0 14px}.login-card{padding:24px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile{padding:14px;min-height:155px}.tile b{font-size:28px}.side-foot{font-size:11px}.log-row{flex-wrap:wrap;gap:4px}.btn{white-space:normal}.side{gap:10px}.brand-account{max-width:125px}}
@media(prefers-reduced-motion:reduce){.btn{transition:none}}

/* Second visual pass: navigation, forms and sign-in composition. */
.menu a{justify-content:flex-start;gap:11px;min-height:42px;padding:10px 12px;border:1px solid transparent}
.menu a em{margin-left:auto}
.menu a:before{content:"";width:17px;height:17px;flex:none;background:currentColor;mask:var(--nav-icon) center/contain no-repeat;-webkit-mask:var(--nav-icon) center/contain no-repeat;opacity:.8}
.menu a.is-on{box-shadow:0 3px 8px #21190d12}
.menu a:hover:not(.is-on){border-color:#e8dfd1;background:#f8f3ea}
.side-foot{padding-top:16px;border-top:1px solid var(--line)}
.picker-solo{font-weight:550;color:var(--ink);overflow-wrap:anywhere}
.table-wrap th{background:#fcfaf6;color:#71685e;padding-top:14px;padding-bottom:14px}
.table-wrap tbody tr:hover{background:#faf7f0}
input:hover,select:hover{border-color:#cdbb9d}
input:focus-visible,select:focus-visible{outline:2px solid #9b773d;outline-offset:2px}
body[data-page="login"] .plain{max-width:1140px;margin:0 auto;min-height:100svh;padding:48px 28px;display:grid;align-items:center}
.login-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.9fr);align-items:center;gap:64px}
.login-intro h1{font-size:clamp(32px,3.6vw,48px);line-height:1.12;letter-spacing:-1.8px;margin:18px 0}
.login-intro>p{font-size:16px;line-height:1.65;max-width:35ch;color:var(--mute)}
.login-illustration{display:block;width:100%;height:auto;aspect-ratio:668/376;object-fit:contain;margin:26px 0 20px;border-radius:24px}
.login-benefits{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:10px 18px;color:#71604a;font-size:12px}
.login-benefits li:before{content:"✓";margin-right:7px;color:#89652f}
.login-card{border-color:#e4d9c7;border-radius:22px;padding:36px}
.login-card h2{text-align:center}.login-card>p{text-align:center;line-height:1.65}
.login-card .btn-primary{min-height:46px;border-radius:12px}
@media(max-width:1000px){.login-layout{gap:32px}}
@media(max-width:860px){.menu{gap:3px}.menu a{padding:8px 10px;font-size:12px;gap:7px}.menu a:before{width:15px;height:15px}.side-foot{border:0;padding:0}.brand-account{font-size:11px}}
@media(max-width:760px){.login-layout{grid-template-columns:1fr;gap:28px;max-width:420px;margin:auto}.login-intro{display:none}body[data-page="login"] .plain{padding:24px 16px;min-height:100svh}.login-card{padding:28px}.login-logo{width:125px;height:142px;margin-bottom:22px}}
@media(max-width:520px){.menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.menu a{flex-direction:column;justify-content:center;gap:4px;padding:8px 3px;font-size:10px;min-height:53px;position:relative}.menu a:before{width:18px;height:18px}.menu a em{position:absolute;top:1px;right:1px;margin:0;padding:0 4px;font-size:9px}.side{gap:8px}.side .brand{margin-right:auto}.picker-solo{font-size:11px;max-width:155px}.mode-chip{font-size:10px}.side-foot{width:100%;justify-content:space-between;margin:0;padding-top:4px}.welcome-art{height:130px;max-width:240px}.empty:before{max-width:110px;max-height:110px}}

.menu a[data-nav="home"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3C/svg%3E")}

.menu a[data-nav="decisions"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%205H5v16h14V5h-4%22/%3E%3Crect%20x%3D%229%22%20y%3D%223%22%20width%3D%226%22%20height%3D%224%22%20rx%3D%221%22/%3E%3Cpath%20d%3D%22m8%2013%203%203%205-6%22/%3E%3C/svg%3E")}

.menu a[data-nav="promos"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M7%203v4m10-4v4M3%2011h18m-14%205h3m4%200h3%22/%3E%3C/svg%3E")}

.menu a[data-nav="ads"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%209h3l8-5v16l-8-5H4a1%201%200%200%201-1-1v-4a1%201%200%200%201%201-1Z%22/%3E%3Cpath%20d%3D%22M18%209.5a4%204%200%200%201%200%205%22/%3E%3C/svg%3E")}
.menu a[data-nav="products"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%209%205v9l-9%205-9-5V8l9-5Zm0%2010v9M3%208l9%205%209-5M7%205.8l9%205%22/%3E%3C/svg%3E")}

.menu a[data-nav="econ"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M9.2%209.2h.01M14.8%2014.8h.01M15.5%208.5l-7%207%22/%3E%3C/svg%3E")}
.menu a[data-nav="tasks"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%206h10M4%2012h10M4%2018h7%22/%3E%3Cpath%20d%3D%22m16%2016%202%202%204-4%22/%3E%3C/svg%3E")}
.menu a[data-nav="log"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h9l4%204v14H6zM14%203v5h5M9%2012h7m-7%204h7%22/%3E%3C/svg%3E")}

.menu a[data-nav="connect"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2010v11h16V10M3%2010l2-7h14l2%207M3%2010c0%204%205%204%205%200%200%204%208%204%208%200%200%204%205%204%205%200M9%2021v-6h6v6%22/%3E%3C/svg%3E")}

.menu a[data-nav="settings"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%206h16M4%2012h16M4%2018h16%22/%3E%3Ccircle%20cx%3D%228%22%20cy%3D%226%22%20r%3D%222%22/%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2212%22%20r%3D%222%22/%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2218%22%20r%3D%222%22/%3E%3C/svg%3E")}

.menu a[data-nav="team"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22/%3E%3Cpath%20d%3D%22M3%2021v-3a6%206%200%200%201%2012%200v3m1-16a3%203%200%200%201%200%206m2%204a5%205%200%200%201%203%205%22/%3E%3C/svg%3E")}

/* Вкладки раздела «Экономика». Лента ссылок, а не кнопки: переходы тут
   частые, и подчёркивание активной читается быстрее любой заливки. */
.econ-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:0 0 14px;border-bottom:1px solid #e8dfd1;padding-bottom:0}
.econ-tabs a{padding:8px 12px;font-size:13px;color:#6b5c47;text-decoration:none;border-bottom:2px solid transparent;white-space:nowrap}
.econ-tabs a:hover{color:#2b2114;background:#f8f3ea}
.econ-tabs a.is-on{color:#2b2114;font-weight:600;border-bottom-color:#b99a5b}
@media(max-width:520px){.econ-tabs{gap:0}.econ-tabs a{padding:7px 9px;font-size:12px}}

/* Столбики графика денег по дням. Своя разметка вместо библиотеки: сорок
   столбиков не стоят постороннего скрипта на странице. */
.bars{display:flex;align-items:flex-end;gap:2px;height:120px;padding:0;margin:10px 0 0}
.bars div{flex:1;min-width:3px;display:flex;flex-direction:column;justify-content:flex-end;gap:1px}
.bars i{display:block;background:#cbb68a;border-radius:2px 2px 0 0}
.bars i.p{background:#8fae7a}
.bars i.n{background:#c98b8b}

/* Доска задач. Колонки, а не таблица: у задачи есть состояние, и его видно
   глазом без чтения колонки «статус». На телефоне колонки встают друг под
   друга — три узких столбца на экране в 400 точек нечитаемы. */
.board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start}
.board-col{background:#f6f1e8;border:1px solid #e8dfd1;border-radius:12px;padding:8px;min-height:80px}
.board-head{display:flex;justify-content:space-between;align-items:baseline;gap:6px;padding:4px 6px 8px}
.task{background:#fff;border:1px solid #e8dfd1;border-radius:10px;padding:9px 10px;margin-bottom:8px}
.task:last-child{margin-bottom:0}
.task-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.task-money{white-space:nowrap;font-weight:600;color:#8a6d3b}
.task-detail{margin-top:5px;line-height:1.35}
.task-meta{margin-top:6px;font-size:11.5px}
.task-do{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.task.is-empty{background:transparent;border-style:dashed;text-align:center;padding:14px}
/* Задача, которую расчёт больше не подтверждает: скорее всего, уже сделана. */
.task.is-stale{border-color:#cdbb92;background:#fffdf7}
@media(max-width:1100px){.board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.board{grid-template-columns:1fr}}

/* Важность задачи. Цвет отвечает на один вопрос: теряем ли мы деньги прямо
   сейчас. Полоса слева, а не заливка всей карточки: заливка съедает
   читаемость текста, а полосу глаз ловит с той же скоростью. */
.task{border-left:3px solid transparent}
.task.is-hot{border-left-color:#c0504d;background:#fffafa}
.task.is-warm{border-left-color:#d9a441;background:#fffdf6}
.task .heat{font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;
  padding:1px 6px;border-radius:99px;white-space:nowrap}
.task.is-hot .heat{background:#f6dedd;color:#8d3a37}
.task.is-warm .heat{background:#f7ecd2;color:#7a5a19}
.task.is-hot .task-money{color:#8d3a37}
/* «Горящих» в колонке может быть много — чтобы шапка колонки тоже об этом
   говорила, а не только карточки. */
.board-head .heat-count{color:#8d3a37;font-weight:600}
