/* Вариант D «Свечение» по образцу владельца (TG 1124): чёрный фон, мятное свечение, стекло, тонкие крупные цифры */
:root {
  color-scheme: dark;
  --bg: #060807; --surface: rgba(255,255,255,.045); --surface-2: rgba(255,255,255,.08); --current: rgba(62,224,160,.07);
  --solid: #0c100e; --glass-line: rgba(255,255,255,.09);
  --text: #f2f5f3; --hint: #8d9a94; --accent: #4fe3a8; --on-accent: #04130c; --line: rgba(255,255,255,.08); --pressed: rgba(255,255,255,.1);
  --plus: #4fe3a8; --minus: #ff7b7b; --attention: #f0c36a;
  --serif: "Cormorant Garamond", Georgia, serif;
}
html, body { background: var(--bg); color: var(--text); }
body { font-family: "Manrope", sans-serif; font-weight: 450; }
body::before { content: ""; position: fixed; inset: -20% -40% auto auto; width: 120vw; height: 90vh; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(79,227,168,.30), rgba(79,227,168,.10) 55%, transparent 75%);
  transform: rotate(-24deg); filter: blur(30px); }
body::after { content: ""; position: fixed; left: -30vw; bottom: 10vh; width: 80vw; height: 50vh; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(40,160,120,.14), transparent 70%); filter: blur(40px); }
.app { position: relative; z-index: 1; }

/* стекло */
.card, .current, .alert, .order, .plat, .att-row, .add, .refresh-box, .seg, #refresh-btn, .chips button {
  background: var(--surface); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.card, .current { border-radius: 26px; padding: 18px; }
.current { background: linear-gradient(160deg, rgba(79,227,168,.13), rgba(255,255,255,.03) 60%); border-color: rgba(79,227,168,.22); }

/* заголовки: курсив с засечками как в образце */
h1 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 40px; letter-spacing: 0; }
h2 { font-family: inherit; font-style: normal; font-weight: 650; font-size: 15px; line-height: 1.3; color: var(--hint); }
.sheet-heading h2 { font-size: 20px; color: var(--text); }
.hero .lbl { font-family: var(--serif); font-style: italic; font-size: 20px; font-weight: 500; color: var(--hint); }

/* цифры тонкие и крупные */
.hero-num b { font-size: clamp(52px, 16vw, 68px); font-weight: 300; letter-spacing: -.04em; line-height: 1.05; }
.cell { background: rgba(0,0,0,.25); border: 1px solid var(--glass-line); border-radius: 18px; padding: 12px; }
.cell b { font-size: 30px; font-weight: 300; letter-spacing: -.03em; color: #fff; }
.current .cell:first-child b { color: var(--accent); }
.stats dd { font-size: 28px; font-weight: 300; letter-spacing: -.02em; }
.order .top strong, .alert b, .row b, .brk-row b { font-weight: 500; color: #fff; }
.delta { color: var(--accent); }

/* переключатель периода и кнопки как «Start now» */
.seg { border-radius: 999px; padding: 4px; }
.seg button { border-radius: 999px; color: var(--hint); }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 24px rgba(79,227,168,.35); }
#refresh-btn { border-radius: 999px; color: var(--accent); border-color: rgba(79,227,168,.35); }
.chips button { border-radius: 999px; }
.chips button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.add { border-radius: 999px; color: var(--accent); }
.info { border-radius: 50%; border: 1px solid var(--glass-line); min-width: 36px; min-height: 36px; }

.alert { border-radius: 18px; font-weight: 550; }
.alert::before { box-shadow: 0 0 10px currentColor; }
.alert.bad::before { color: var(--minus); } .alert::before { color: var(--attention); }
.order, .plat { border-radius: 20px; }
.rows { border-color: var(--line); }

/* график: мятные столбики со свечением */
.day i { width: 56%; border-radius: 999px; background: linear-gradient(180deg, #7cf3c4, #1f9e70); box-shadow: 0 0 12px rgba(79,227,168,.35); }
.day.zero i { background: rgba(255,255,255,.1); box-shadow: none; }
.day.extra i { background: rgba(79,227,168,.35); box-shadow: none; }
.day.today i { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }

.pill { background: rgba(255,255,255,.07); }
.pill.bad { background: rgba(255,123,123,.13); } .pill.warn { background: rgba(240,195,106,.13); }
.pill.good { background: rgba(79,227,168,.13); } .pill.work { background: rgba(79,227,168,.13); color: var(--accent); }
.banner { background: rgba(240,195,106,.12); color: #f6dba4; border: 1px solid rgba(240,195,106,.25); }
.banner.bad { background: rgba(255,123,123,.12); color: #ffc4c4; border-color: rgba(255,123,123,.25); }
.banner button { background: rgba(255,255,255,.08); color: inherit; border-radius: 999px; }

/* нижняя панель: круглые кнопки, активная мятная */
.tabs { left: 12px; right: 12px; bottom: calc(10px + var(--bottom-inset)); padding: 6px; border-radius: 999px; border: 1px solid var(--glass-line);
  background: rgba(12,16,14,.78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.tabs button { border-radius: 999px; color: var(--hint); font-size: 10.5px; }
.tabs button[aria-current="page"] { color: var(--on-accent); background: var(--accent); box-shadow: 0 0 22px rgba(79,227,168,.4); }
.app { padding-bottom: calc(110px + var(--bottom-inset)); }

/* лист расшифровки */
.sheet-overlay { background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet, .sheet-heading { background: var(--solid); }
.sheet { border: 1px solid rgba(79,227,168,.2); border-bottom: 0; box-shadow: 0 -20px 60px rgba(79,227,168,.12); }
.sheet:focus-visible { outline: none; }
.actions button { background: var(--surface-2); border-radius: 999px; }
.entry input, .entry select { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--glass-line); }
.sk { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; }
:focus-visible { outline-color: var(--accent); }
 .cap .muted { white-space: nowrap; }

/* TG 1131: кнопки с характером. Иконки масками, цвет от currentColor */
:root {
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  --i-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  --i-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10a6 6 0 0 1 0 12h-3'/%3E%3C/svg%3E");
  --i-sync: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-14.6-4.5L4 8M4 4v4h4M4 13a8 8 0 0 0 14.6 4.5L20 16M20 20v-4h-4'/%3E%3C/svg%3E");
}
/* главная кнопка: мятная заливка, белый кружок с иконкой слева, как «Start free trial» */
.add, .actions button[data-act="paid"], .actions button[data-act="open"], #retry, .entry button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px 0 6px; min-height: 48px; border: 0;
  border-radius: 999px; color: var(--on-accent); font-weight: 750;
  background: linear-gradient(180deg, #6ff0bd, #33c98f); box-shadow: 0 8px 28px rgba(79,227,168,.28), inset 0 1px 0 rgba(255,255,255,.45); }
.add::before, .actions button[data-act="paid"]::before, .actions button[data-act="open"]::before, #retry::before {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff center / 18px no-repeat; }
.add::before, .actions button[data-act="paid"]::before { background-image: var(--i-plus); }
.actions button[data-act="open"]::before { background-image: var(--i-back); }
#retry::before { background-image: var(--i-sync); width: 30px; height: 30px; background-size: 15px; }
#retry { min-height: 40px; padding-right: 14px; color: var(--on-accent); }
.add { width: 100%; }

/* второстепенные: стекло и иконка в кружке справа, как «Receive / Transfer» */
.actions { gap: 8px; }
.actions button:not([data-act="paid"]):not([data-act="open"]) {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 6px 0 16px; min-height: 48px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); color: var(--text); font-weight: 650; }
.actions button:not([data-act="paid"]):not([data-act="open"])::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); 
  -webkit-mask: none; box-shadow: inset 0 0 0 1px var(--glass-line); }
.actions button[data-act="closed"]:not([data-act="paid"]):not([data-act="open"])::after { background: #6ff0bd var(--i-check) center / 16px no-repeat; box-shadow: 0 0 14px rgba(79,227,168,.45); }
.actions button[data-act="not_agreed"]:not([data-act="paid"]):not([data-act="open"])::after { background: rgba(255,255,255,.88) var(--i-pause) center / 16px no-repeat; }
.actions button[data-act="cancelled"]:not([data-act="paid"]):not([data-act="open"]) { color: var(--minus); background: rgba(255,123,123,.08); border-color: rgba(255,123,123,.25); }
.actions button[data-act="cancelled"]:not([data-act="paid"]):not([data-act="open"])::after { background: #ff8a8a var(--i-x) center / 15px no-repeat; box-shadow: 0 0 14px rgba(255,123,123,.35); }

/* «Обновить»: иконка синхронизации, мятный контур с подсветкой */
#refresh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 8px; background: rgba(79,227,168,.1); }
#refresh-btn::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  -webkit-mask: var(--i-sync) center / 15px no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* всё, что раскрывается: стрелка ↗ в стеклянном кружке */
.alert::after, .row::after, .order .top::after, .brk-row[data-order]::after, .brk-row[data-sheet]::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.07) var(--i-arrow) center / 14px no-repeat; box-shadow: inset 0 0 0 1px var(--glass-line); filter: invert(1) hue-rotate(180deg) brightness(.9); }
.alert.ok::after { display: none; }
.row b { margin-left: auto; }
.cell, .hero { position: relative; }
.cell::after, .hero::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.07) var(--i-arrow) center / 14px no-repeat; box-shadow: inset 0 0 0 1px var(--glass-line); filter: invert(1) hue-rotate(180deg) brightness(.9); }
.current .cell:first-child::after { background-color: rgba(79,227,168,.0); filter: none; background-image: none; background: var(--accent);
  -webkit-mask: var(--i-arrow) center / 14px no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; box-shadow: 0 0 16px rgba(79,227,168,.5); }
.hero::after { top: 4px; right: 0; }
.order .top { align-items: center; }

.cell .lbl { padding-right: 34px; }

/* календарь (TG 1135): тёмные клетки, мятная яркость по сумме, выбранный день белой рамкой */
.cal-cap b { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cal-cap b i { font-style: normal; font-weight: 650; font-size: 15px; color: var(--hint); }
.cal-cap b span { font-weight: 500; color: var(--accent); font-size: 15px; }
.cal-day { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.04); border-radius: 14px; min-height: 54px; }
.cal-day b { font-weight: 500; color: #d9e2dd; }
.cal-day small { color: var(--accent); }
.cal-day.l1 { background: rgba(79,227,168,.10); } .cal-day.l2 { background: rgba(79,227,168,.18); }
.cal-day.l3 { background: rgba(79,227,168,.28); } .cal-day.l4 { background: rgba(79,227,168,.42); box-shadow: 0 0 18px rgba(79,227,168,.25); }
.cal-day.l3 small, .cal-day.l4 small { color: #b8ffe0; }
.cal-day.picked { box-shadow: inset 0 0 0 2px #fff, 0 0 18px rgba(255,255,255,.12); }
.cal-day.today b { text-decoration-color: var(--accent); }
.cal-day:disabled { opacity: .3; }
.daybox { border-color: var(--line); }
.daybox-head b:last-child { color: var(--accent); }

/* нижняя панель (TG 1135): контурные иконки, активная вкладка: мятная иконка и подпись со свечением, точка снизу */
.tabs { padding: 6px 8px; }
.tabs button[aria-current="page"] { background: rgba(79,227,168,.12); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(79,227,168,.3); }
.tabs button[aria-current="page"] svg { filter: drop-shadow(0 0 6px rgba(79,227,168,.7)); stroke-width: 2.1; }
.tabs svg { stroke-width: 1.7; }

/* TG 1139 совет */
.seg { padding: 3px; }
.seg button { min-height: 36px; }
.seg button[aria-selected="true"] { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
#updated.chip { background: var(--surface); border: 1px solid var(--glass-line); color: var(--text); }
#updated.chip.good::before { box-shadow: 0 0 8px var(--plus); }
#refresh-btn { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.06); border-color: var(--glass-line); }
#refresh-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#refresh-btn::before { width: 18px; height: 18px; background: #fff; -webkit-mask: var(--i-sync) center / 18px no-repeat; mask: var(--i-sync) center / 18px no-repeat; border-radius: 0; }
:root { --i-arrow-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E"); }
.alert::after, .row::after, .order .top::after, .brk-row[data-order]::after, .brk-row[data-sheet]::after, .cell::after, .hero::after {
  width: 32px; height: 32px; filter: none; background: rgba(255,255,255,.12) var(--i-arrow-w) center / 15px no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.current .cell:first-child::after { -webkit-mask: none; mask: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304130c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / 15px no-repeat; }
.cell .lbl { padding-right: 36px; }
.tabs { background: rgba(10,13,12,.9); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); }
#orders-badge, #leads-badge { background: var(--accent); color: var(--on-accent); }
.cal-day.today b { text-decoration: none; color: var(--accent); }
.actions button[data-act="paid"], .actions button[data-act="open"] { width: 100%; }
.act-pair button { width: 100%; justify-content: space-between; }
.srcbox summary h2 { color: var(--text); }
.alert.bad { color: #fff; } .alert.bad span { color: #fff; }
.bell { background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); }
.bell[aria-current="page"] { color: var(--accent); }
.golink { border-radius: 22px; }
.golink::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.12) var(--i-arrow-w) center / 15px no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.golink b { font-size: 16px; font-weight: 650; }
.pill.good { color: var(--accent); }
.tabs button { font-size: 11px; }
