@font-face {
  font-family: Manrope;
  src: url("./fonts/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-display: swap;
  font-weight: 300 500;
  src: url(./fonts/unbounded-cyrillic-wght-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-display: swap;
  font-weight: 300 500;
  src: url(./fonts/unbounded-latin-wght-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 {
  color-scheme: light;
  --paper: #f3f1ec;
  --card: #fbfaf7;
  --ink: #1f1c19;
  --muted: #625d56;
  --line: #e4dfd6;
  --soft: #ece7df;
  --work: #3a63b8;
  --personal: #b8487a;
  --display: Unbounded, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.45 Manrope, -apple-system, system-ui, sans-serif; }
button, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #3a63b8; outline-offset: 3px; }
.page { max-width: 1360px; margin: auto; padding: 26px 32px 56px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.month-nav, .month-heading { display: flex; align-items: center; gap: 10px; }
.month-nav { flex-wrap: wrap; }
.month-heading { display: contents; }
#month { min-width: 230px; text-align: center; font: 400 24px/1.2 var(--display); }
#month-kind { order: 4; padding: 5px 11px; border-radius: 999px; background: var(--soft); color: #4e4943; font-size: 13px; font-weight: 700; }
.arrow { width: 44px; height: 44px; flex: none; padding: 0 0 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 27px; line-height: 1; }
.tabs { margin-left: auto; display: flex; align-items: center; gap: 2px; padding: 4px; background: var(--soft); border-radius: 999px; }
.tabs > * { display: grid; place-items: center; padding: 10px 12px; font-weight: 700; font-size: 14px; white-space: nowrap; border-radius: 999px; }
.tabs a { text-decoration: none; background: var(--ink); color: white; }
.tabs span { color: #6a655d; }
main { display: flex; flex-direction: column; gap: 22px; margin-top: 21px; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; }
h1 { font-size: 26px; line-height: 1.3; }
h2 { font-size: 18px; }
.intro { display: grid; gap: 8px; }
.intro p, .seasons-head p { color: var(--muted); line-height: 1.5; }
.notice { padding: 10px 14px; margin-top: 8px; border-radius: 12px; background: var(--soft); font-size: 14px; }
.podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
[data-group="work"] { --accent: var(--work); }
[data-group="personal"] { --accent: var(--personal); }
.priority { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-top: 4px solid var(--accent,#c2b9ac); border-radius: 16px; background: white; }
.priority[data-group=""] { background: var(--paper); }
.priority > strong { font: 300 30px/1 var(--display); }
.priority div { min-width: 0; }
.priority b { font-size: 17px; }
.priority p { color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 3px; white-space: pre-line; overflow-wrap: anywhere; }
.groups { display: grid; gap: 18px; align-items: start; grid-template-columns: repeat(2, minmax(0,1fr)); }
.group, .seasons { display: grid; gap: 8px; min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.group h2 { padding-bottom: 4px; }
.direction { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; background: var(--paper); }
.direction.selected { background: white; border-color: var(--ink); box-shadow: inset 0 0 0 .4px var(--ink); }
.direction-head { display: flex; align-items: center; gap: 8px; }
.direction-head label { flex: 1; min-width: 0; font-weight: 800; }
.dot { width: 12px; height: 12px; flex: none; border-radius: 4px; background: var(--accent); }
.places { display: flex; gap: 4px; }
.place { width: 42px; height: 42px; padding: 0; flex: none; border-radius: 50%; border: 1px dashed #a39a8e; background: transparent; color: var(--muted); font-size: 14px; font-weight: 800; }
.place[aria-pressed="true"] { border: 1px solid var(--ink); background: var(--ink); color: white; }
textarea { display: block; width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #d8d0c4; border-radius: 10px; background: white; font-size: 14px; line-height: 1.35; resize: vertical; }
textarea::placeholder { color: #777067; opacity: 1; }
.seasons { gap: 12px; }
.seasons-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.seasons-head p { font-size: 14px; }
.rail { display: flex; gap: 10px; min-width: 0; overflow-x: auto; padding: 4px 3px 8px; scroll-snap-type: x proximity; }
.season { flex: 0 0 200px; min-width: 0; display: grid; gap: 6px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-align: left; scroll-snap-align: start; }
.season[aria-pressed="true"] { background: white; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.season-head { display: flex; gap: 5px; align-items: baseline; justify-content: space-between; }
.season-head small { color: var(--muted); font-size: 12px; }
.chip { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 5px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: white; background: var(--accent); }
.chip[data-group=""] { color: var(--muted); background: var(--soft); }
@media (hover: hover) {
  .arrow:hover, .place[aria-pressed="false"]:hover, .season:hover { border-color: var(--ink); }
}
@media (max-width: 760px) {
  .page { padding: max(14px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) calc(88px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
  .toolbar { padding: 0 2px 8px; border: 0; }
  .month-nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; }
  .month-heading { display: flex; flex-direction: column; gap: 2px; }
  #month { min-width: 0; font-size: 17px; }
  #month-kind { padding: 0; background: transparent; font-size: 12px; }
  .tabs { position: fixed; z-index: 1; bottom: 0; left: 0; right: 0; padding: 6px max(5px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left)); margin: 0; overflow-x: auto; border-top: 1px solid var(--line); border-radius: 0; background: var(--card); }
  .tabs > * { flex: 1 0 auto; min-height: 44px; padding: 0 5px; font-size: 11.5px; border-radius: 12px; }
  main { gap: 10px; margin-top: 0; }
  h1 { font-size: 18px; }
  .intro p { display: none; }
  .intro .notice { margin: 0; padding: 7px 10px; font-size: 12px; }
  .podium { grid-template-columns: 1fr; gap: 8px; }
  .priority { padding: 11px 14px; }
  .priority > strong { font-size: 24px; }
  .priority b { font-size: 15px; }
  .priority p { font-size: 12.5px; }
  .seasons { order: 2; padding: 0; gap: 5px; border: 0; background: transparent; }
  .groups { order: 3; grid-template-columns: 1fr; gap: 14px; }
  .group { padding: 0; border: 0; background: transparent; }
  .group h2, .seasons h2 { padding: 4px 0 0; font: 800 12px/1.4 Manrope, system-ui, sans-serif; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
  .seasons-head p { display: none; }
  .rail { gap: 8px; }
  .season { flex-basis: 150px; }
  .direction { padding: 10px 12px; background: var(--card); }
  .direction-head { gap: 6px; }
  .direction-head label { font-size: 14.5px; }
  .places { gap: 3px; }
  .place { width: 44px; height: 44px; }
  textarea { font-size: 16px; }
}
