@font-face {
  font-family: Golos;
  src: url('/golos-cyrillic.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Golos;
  src: url('/golos-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  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+20A0-20AB,U+20AD-20C0,U+2113,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  --ground: #f6f5ed;
  --paper: #fffef9;
  --ink: #212c23;
  --muted: #555f54;
  --green: #294c36;
  --green-dark: #203c2b;
  --line: #dddcd0;
  --soft-green: #e8eee1;
  --soft-ochre: #f4e7d4;
  --ochre: #9b642f;
  --radius: 22px;
  font: 100% Golos, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ground); color: var(--ink); line-height: 1.5; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #618266; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 680; line-height: 1.08; letter-spacing: -.05em; }
h2 { font-size: 1.32rem; font-weight: 670; line-height: 1.25; letter-spacing: -.027em; }
strong, b { font-weight: 660; }
small { font-size: .83rem; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell { width: min(100% - 64px, 1104px); margin-inline: auto; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.12rem; font-weight: 680; text-decoration: none; letter-spacing: -.033em; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; background: var(--green); color: var(--paper); }
.brand-icon .icon { width: 23px; height: 23px; }
.navigation { display: flex; align-items: center; gap: 6px; }
.navigation a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px; text-decoration: none; border-radius: 11px; color: var(--muted); font-size: .92rem; font-weight: 570; }
.navigation a:hover { background: #f2f3eb; }
.navigation a[aria-current] { color: var(--green-dark); background: var(--soft-green); font-weight: 650; }
.sign-out { margin-left: 3px; }
.sign-out button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: .91rem; font-weight: 570; }
.sign-out button:hover { background: #f2f3eb; color: var(--green-dark); }
.sign-out .icon { width: 17px; height: 17px; }
main { padding-bottom: 58px; }
.page-heading { margin: 42px 0 28px; }
.page-heading p { margin-top: 9px; color: var(--muted); }
.page-date { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: var(--green); font-size: .92rem; font-weight: 570; }
.page-date .icon { width: 17px; height: 17px; }
.load-status { margin-top: 44px; color: var(--muted); }
.panel { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.today-layout, .calendar-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.entry { padding: 27px; scroll-margin-top: 14px; }
.entry-header { display: flex; min-height: 28px; align-items: start; gap: 8px; justify-content: space-between; }
.entry-header h2 { font-size: 1.44rem; }
.entry-availability { margin-top: 10px; padding: 9px 11px; border-radius: 9px; background: #efefe7; color: #50574d; font-size: .91rem; }
.muted { color: var(--muted); }
.saved-flag { display: flex; align-items: center; gap: 5px; color: var(--green); font-size: .84rem; white-space: nowrap; }
.saved-flag .icon { width: 16px; height: 16px; }
fieldset { margin: 23px 0 0; padding: 0; border: 0; min-width: 0; }
legend, .egg-heading { display: block; font-weight: 620; margin: 0 0 10px; padding: 0; }
.feed-picker { display: grid; grid-template-columns: 1.12fr 1fr; gap: 9px; }
.feed-option { position: relative; min-width: 0; cursor: pointer; }
.feed-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.feed-option > span {
  position: relative;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 67px;
  height: 100%;
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .98rem;
  font-weight: 550;
  line-height: 1.23;
}
.feed-option .icon { width: 25px; height: 25px; }
.feed-option input:checked + span { background: var(--soft-green); border-color: #6e896f; color: var(--green-dark); font-weight: 660; }
.feed-option input:checked + span::after {
  content: '';
  flex: 0 0 9px;
  height: 9px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px #cad8c6;
}
.feed-option input:focus-visible + span { outline: 3px solid #618266; outline-offset: 3px; }
.egg-section { margin-top: 23px; }
.stepper { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 7px; padding: 8px; min-height: 78px; border: 1px solid var(--line); border-radius: 16px; background: #f8f8ef; }
.stepper button, .icon-button { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--green-dark); }
.stepper button { min-height: 58px; }
.stepper button:enabled:hover, .icon-button:enabled:hover { border-color: #8c9c88; background: var(--soft-green); }
.stepper button:disabled, .icon-button:disabled { opacity: .45; }
.stepper .icon { height: 23px; width: 23px; stroke-width: 2; }
.egg-value { display: grid; justify-items: center; line-height: 1; gap: 2px; padding-bottom: 2px; }
.egg-value input { width: min(100%, 9rem); background: transparent; border: 0; padding: 0; font-size: 2.75rem; font-weight: 660; line-height: 1.05; letter-spacing: -.06em; text-align: center; font-variant-numeric: tabular-nums; }
.egg-value input::placeholder { color: #646b5d; opacity: 1; }
.egg-value span { font-size: .83rem; color: var(--muted); }
.egg-hint { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-top: 6px; color: var(--muted); font-size: .84rem; }
.text-button { border: 0; background: transparent; padding: 8px 0; color: var(--green); min-height: 39px; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.text-button:disabled { visibility: hidden; }
.primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border: 1px solid transparent; border-radius: 13px; background: var(--green); color: #fffef9; font-weight: 640; font-size: 1.03rem; padding: 10px 15px; }
.primary:enabled:hover { background: var(--green-dark); }
.primary:disabled { opacity: .66; }
.entry-closed .feed-option, .entry-closed .feed-option input { cursor: default; }
.entry-closed .feed-option > span { background: #f8f8f1; color: #555c52; }
.entry-closed .feed-option input:checked + span { border-color: #9da096; background: #e9eae2; }
.entry-closed .feed-option input:checked + span::after { background: #71786d; box-shadow: 0 0 0 3px #d5d9d0; }
.entry-closed .egg-value input { color: #60655d; opacity: 1; }
.entry-closed .stepper { background: #f2f2eb; }
.entry-closed .stepper button:disabled { color: #656961; background: #ecece3; opacity: .64; }
.entry-closed .primary:disabled { color: #595e55; background: #e5e6dc; opacity: 1; }
.save-button { margin-top: 16px; }
.form-status { margin-top: 10px; color: var(--green); font-size: .92rem; }
.form-status.error { color: #8a3022; }
.daily-overview { display: grid; gap: 14px; }
.photo-card {
  min-height: 206px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  padding: 23px;
  color: #fffdf5;
  background: linear-gradient(90deg, #1a3024ed, #1a30242b 79%), #233d2d url('/hen.webp') 63% 53% / cover no-repeat;
}
.photo-label, .photo-card div { display: flex; align-items: center; gap: 8px; }
.photo-label { font-size: .98rem; font-weight: 570; }
.photo-label .icon { width: 18px; height: 18px; }
.photo-card div { align-items: baseline; gap: 10px; }
.photo-card strong { font-size: clamp(3.4rem, 6vw, 4.8rem); line-height: .94; letter-spacing: -.07em; }
.photo-card div span { font-size: .98rem; }
.week-card { display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 17px; }
.week-card div:nth-child(2) { display: grid; gap: 2px; }
.week-card div:nth-child(2) span { font-size: .87rem; color: var(--muted); }
.week-card strong { font-size: 1.26rem; line-height: 1.18; }
.week-card small { margin-left: auto; color: var(--muted); text-align: right; }
.soft-icon { display: grid; place-items: center; flex: 0 0 auto; width: 41px; height: 41px; border-radius: 12px; background: var(--soft-green); color: var(--green); }
.tomorrow-card { display: flex; align-items: start; gap: 10px; padding: 12px 14px; color: var(--green-dark); }
.tomorrow-card .icon { margin-top: 2px; }
.tomorrow-card p { margin-top: 3px; color: var(--muted); font-size: .92rem; }
.calendar-panel { padding: 22px; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.calendar-arrows { display: flex; gap: 6px; }
.icon-button { width: 44px; height: 44px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.weekday { color: var(--muted); text-align: center; font-size: .87rem; padding: 3px 0 6px; }
.calendar-day {
  display: grid;
  place-content: center;
  min-width: 0;
  min-height: 56px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #f6f6ef;
  line-height: 1.15;
  text-align: center;
}
.calendar-day span { margin-top: 3px; color: var(--muted); font-size: .81rem; }
.calendar-day.has-record { background: var(--soft-green); color: var(--green-dark); }
.calendar-day:enabled:hover { border-color: #6e896f; }
.calendar-day.is-today { border-color: #7e9177; }
.calendar-day[aria-pressed="true"] { background: var(--green); color: #fffef9; }
.calendar-day[aria-pressed="true"] span { color: #f2f5eb; }
.calendar-day.is-future { color: #656b61; background: transparent; }
.calendar-day.is-future[aria-pressed="true"] { color: var(--ink); background: #e6e7dc; border-color: #9da396; }
.calendar-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 13px; color: var(--muted); font-size: .85rem; }
.calendar-caption i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid #859881; background: var(--soft-green); }
.stats-heading { margin-bottom: 18px; }
.period-filter { max-width: 370px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.period-filter summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 9px 14px; border-radius: inherit; list-style: none; cursor: pointer; }
.period-filter summary::-webkit-details-marker { display: none; }
.period-filter summary > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; }
.period-label { color: var(--muted); font-size: .9rem; }
.period-filter summary > .icon { color: var(--green); }
.period-filter[open] summary > .icon { transform: rotate(180deg); }
.period-options { display: grid; gap: 3px; padding: 6px 8px 8px; border-top: 1px solid var(--line); }
.period-options button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 45px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.period-options button:hover, .period-options button[aria-pressed="true"] { background: var(--soft-green); }
.period-options button[aria-pressed="true"] { color: var(--green-dark); font-weight: 620; }
.period-options button[aria-pressed="true"]::after { content: ''; width: 11px; height: 7px; margin-right: 4px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.summary-grid { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr); gap: 13px; margin-bottom: 15px; }
.totals-photo { min-height: 235px; background: linear-gradient(90deg, #172c20f5, #1a302430 83%), #233d2d url('/eggs.webp') 63% 56% / cover no-repeat; }
.stat-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.summary-card { display: flex; align-items: start; gap: 10px; padding: 14px; border-radius: 17px; }
.metric-daily { background: #eef2e8; border-color: #d5dfd1; }
.metric-monthly { background: #faf1e2; border-color: #e8dcc9; }
.metric-monthly .soft-icon { color: #845a32; background: #f0e2ca; }
.summary-card div { display: grid; gap: 4px; min-width: 0; }
.summary-card div > span, .summary-card small { color: var(--muted); line-height: 1.3; }
.summary-card div > span { font-size: .91rem; }
.summary-card strong { font-size: 2rem; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-range { grid-column: 1 / -1; align-items: center; }
.metric-range .range-metrics { flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.range-metrics > div { grid-template-rows: 1fr auto; }
.range-metrics > div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.statistics-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 15px; }
.stats-details { margin-top: 15px; align-items: start; }
.stat-panel { padding: 21px; }
.stat-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.stat-description, .pair-count { margin-top: 7px; font-size: .92rem; line-height: 1.45; }
.segments { display: inline-flex; gap: 2px; background: #f0f1e7; border-radius: 10px; padding: 3px; }
.segments button { border: 0; border-radius: 8px; background: transparent; padding: 7px 10px; min-height: 38px; color: var(--muted); font-size: .87rem; }
.segments button[aria-pressed="true"] { background: var(--paper); color: var(--green-dark); font-weight: 650; }
.chart-scroll, .table-scroll { overflow-x: auto; }
.bar-chart { display: grid; gap: 6px; grid-template-columns: repeat(var(--columns), minmax(36px, 1fr)); margin-top: 31px; min-width: calc(var(--columns) * 41px); }
.bar-column { min-width: 0; text-align: center; }
.bar-track { height: 137px; display: flex; align-items: end; justify-content: center; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #ecece2 calc(25% - 1px), #ecece2 25%); }
.bar { position: relative; width: min(64%, 47px); height: var(--bar-height); border-radius: 5px 5px 0 0; background: #738b6e; }
.bar span { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); color: var(--ink); font-size: .84rem; font-weight: 600; }
.bar.no-bar span { color: var(--muted); font-weight: 400; }
.bar-date { display: block; padding-top: 7px; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.chart-note { margin-top: 8px; font-size: .84rem; }
#feed-comparison { margin-top: 17px; }
.comparison-row + .comparison-row { margin-top: 16px; }
.comparison-label, .comparison-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.comparison-label strong { font-size: .93rem; }
.comparison-label b { font-size: 1.52rem; letter-spacing: -.06em; line-height: 1.1; }
.comparison-track { height: 9px; margin-top: 7px; background: #ecece2; border-radius: 9px; overflow: hidden; }
.comparison-track span { display: block; height: 100%; border-radius: inherit; background: #678568; }
.comparison-row.mix .comparison-track span { background: #ac804d; }
.comparison-meta { margin-top: 5px; color: var(--muted); font-size: .81rem; }
.pair-count { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.table-scroll { margin-top: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; }
th, td { padding: 8px 6px; border-bottom: 1px solid #eae9df; }
th:first-child { padding-left: 0; }
td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
thead th:not(:first-child) { text-align: right; white-space: nowrap; }
thead th { color: var(--muted); font-weight: 560; }
tbody th { font-weight: 530; }
tbody tr:last-child > * { border-bottom: 0; }
.empty-state { margin-top: 17px; padding: 13px; border-radius: 11px; background: #f3f3eb; color: var(--muted); }
.login-page { min-height: 100vh; display: grid; align-items: center; }
.login-shell { width: min(100% - 48px, 840px); margin: 30px auto; padding: 0; }
.login-panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.login-photo { display: block; width: 100%; height: 100%; min-height: 0; max-height: 680px; object-fit: cover; object-position: 69% center; }
.login-form { padding: 32px; border: 0; border-radius: 0; }
.login-brand { display: flex; align-items: center; gap: 10px; font-weight: 660; margin-bottom: 22px; }
.login-form h1 { font-size: clamp(2rem, 4.2vw, 2.75rem); }
.login-form > p { margin: 7px 0 17px; }
.login-form label { display: block; font-size: .97rem; font-weight: 610; margin: 13px 0 5px; }
.login-form input { width: 100%; min-height: 48px; border: 1px solid #cbcfc2; border-radius: 9px; padding: 8px 11px; background: #fcfcf7; }
.login-form > .form-status { margin: 11px 0 0; }
.login-form .primary { margin-top: 17px; }

@media (max-width: 1010px) {
  .summary-card .soft-icon { width: 33px; height: 33px; }
  .calendar-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .98fr); }
  .calendar-layout .feed-picker { grid-template-columns: 1fr; }
  .calendar-layout .feed-option > span { min-height: 54px; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 530px); }
  .topbar-inner { min-height: 58px; }
  .brand { font-size: 1.06rem; }
  .brand-icon { width: 34px; height: 34px; border-radius: 10px; }
  .brand-icon .icon { width: 21px; height: 21px; }
  .navigation { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 5px 9px calc(5px + env(safe-area-inset-bottom)); min-height: 64px; border-top: 1px solid var(--line); background: var(--paper); }
  .navigation a { flex-direction: column; justify-content: center; gap: 3px; min-height: 52px; padding: 5px 2px; font-size: .86rem; }
  .navigation .icon { width: 20px; height: 20px; }
  main { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .page-heading { margin: 22px 0 17px; }
  h1 { font-size: clamp(1.8rem, 7.7vw, 2.55rem); }
  .page-date { margin-bottom: 7px; }
  .today-layout, .calendar-layout, .statistics-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .panel { border-radius: 17px; }
  .entry, .calendar-panel, .stat-panel { padding: 16px; }
  .entry-header h2 { font-size: 1.26rem; }
  fieldset, .egg-section { margin-top: 15px; }
  .feed-picker { grid-template-columns: 1fr; gap: 7px; }
  .feed-option > span { min-height: 54px; font-size: .98rem; }
  .stepper { min-height: 72px; padding: 6px; }
  .stepper button { min-height: 58px; }
  .primary { min-height: 52px; }
  .save-button { margin-top: 9px; }
  .photo-card { min-height: 150px; padding: 16px; border-radius: 17px; background-position: 60% 49%; }
  .photo-card strong { font-size: 3.45rem; }
  .daily-overview { gap: 9px; }
  .tomorrow-card { padding: 8px 6px; }
  .calendar-grid { gap: 3px; }
  .calendar-day { min-height: 44px; border-radius: 8px; }
  .period-filter { max-width: none; margin-bottom: 11px; }
  .summary-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; margin-bottom: 13px; }
  .totals-photo { min-height: 172px; background-position: 63% 56%; }
  .stat-metrics { gap: 8px; }
  .summary-card { padding: 11px; gap: 7px; border-radius: 13px; }
  .summary-card strong { font-size: 1.8rem; }
  .summary-card .soft-icon { width: 28px; height: 28px; border-radius: 8px; }
  .summary-card .soft-icon .icon { width: 16px; height: 16px; }
  .calendar-caption { font-size: .81rem; }
  .login-page { align-items: start; }
  .login-shell { width: min(100% - 32px, 420px); margin: 25px auto; }
  .login-panel { grid-template-columns: minmax(0, 1fr); }
  .login-photo { height: 125px; object-position: 62% 25%; }
  .login-form { padding: 19px; }
  .login-brand { margin-bottom: 14px; }
}
@media (max-width: 365px) {
  .shell { width: calc(100% - 24px); }
  .summary-card .soft-icon { display: none; }
  .entry, .calendar-panel { padding: 12px; }
}
