@font-face {
  font-family: Lora;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/lora-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Lora;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/lora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
:root {
  color-scheme: light;
  --paper: #f5f6ef;
  --sidebar: #f0f2e8;
  --white: #fcfdf9;
  --ink: #203229;
  --muted: #526457;
  --line: #dce2d5;
  --leaf: #244b3a;
  --active: #e0ead8;
  --hero: #dce9d3;
  --error: #9a3428;
  --display-font: Lora, Georgia, serif;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--leaf);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
::selection { color: var(--ink); background: #d0e0c3; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-underline-offset: .18em; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #467d51; outline-offset: 3px; }
button:focus:not(:focus-visible) { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; }
h1 { font: 650 2.75rem/1.16 var(--display-font); letter-spacing: -.035em; }
h2 { font-size: 1.3rem; letter-spacing: -.024em; }
h3 { font-size: 1rem; }
svg { width: 20px; height: 20px; display: block; flex: none; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 4; padding: .5rem; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { display: flex; flex-direction: column; min-width: 0; height: 100dvh; position: sticky; top: 0; padding: 2rem 1.25rem 1.4rem; border-right: 1px solid var(--line); background: var(--sidebar); }
.brand { display: flex; width: fit-content; align-items: center; gap: .75rem; margin: 0 .45rem 3rem; text-decoration: none; }
.brand img { border-radius: 12px; }
.brand strong { display: block; font-family: var(--display-font); font-size: 1.55rem; font-weight: 700; line-height: 1.04; letter-spacing: -.03em; }
.brand small { display: block; margin-top: .2rem; color: var(--muted); font-size: .79rem; white-space: nowrap; }
.navigation { display: grid; gap: .35rem; }
.nav-link { display: flex; align-items: center; gap: .78rem; min-height: 47px; padding: .65rem .8rem; border-radius: 9px; color: var(--muted); font-size: .96rem; font-weight: 550; text-decoration: none; }
.nav-link:hover, .install:hover, .icon-button:hover { background: #e8eee1; }
.nav-link[aria-current="page"] { color: var(--leaf); background: var(--active); font-weight: 700; }
.sidebar-foot { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.install, .storage { display: flex; gap: .55rem; align-items: center; padding: .55rem .35rem; color: var(--muted); }
.install { width: 100%; min-height: 44px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: .87rem; font-weight: 600; }
.storage { font-size: .76rem; }
.storage svg, .install svg { width: 17px; height: 17px; }
.main { width: 100%; max-width: 1310px; margin-inline: auto; padding: 0 clamp(1.5rem, 3.65vw, 3.6rem) 3rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; color: var(--muted); font-size: .9rem; }
.breadcrumb { display: flex; align-items: center; gap: .55rem; }
.breadcrumb svg { width: 16px; height: 16px; }
.topbar time { font-weight: 550; }
.top-install { display: none !important; }
.banner { position: relative; display: flex; isolation: isolate; overflow: hidden; min-height: 208px; justify-content: space-between; align-items: center; padding: 1.9rem 2.2rem; border-radius: 16px; background: var(--hero); }
.banner::before, .banner::after { position: absolute; z-index: -1; width: 353px; height: 353px; right: -72px; top: -128px; content: ""; border: 1px solid #bacfb4; border-radius: 50%; pointer-events: none; }
.banner::after { width: 315px; height: 315px; top: -108px; right: -52px; }
.banner-copy { position: relative; min-width: 0; }
.banner p, .page-head p { margin-top: .55rem; color: var(--muted); }
.day-display { display: grid; justify-items: center; min-width: 145px; margin: .15rem 1.1rem 0 1.25rem; padding: .1rem 0 .25rem; border: 0; border-radius: 12px; background: transparent; color: var(--leaf); }
.day-display:hover { background: #ccdfc3; }
.day-display strong { font: 4.7rem/.95 var(--display-font); letter-spacing: -.035em; font-variant-numeric: lining-nums; }
.day-display span { display: flex; align-items: center; gap: .35rem; margin-top: .55rem; font-size: .94rem; font-weight: 650; }
.day-display svg { width: 15px; height: 15px; }
.button, .icon-button, .plain-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-weight: 650; }
.button { padding: .55rem .85rem; white-space: nowrap; color: #fff; background: var(--leaf); }
.button:hover { background: #1b3c2d; }
.button.secondary { color: var(--leaf); border-color: var(--line); background: var(--white); }
.button.secondary:hover { background: var(--sidebar); }
.button.button-small { min-height: 38px; padding-block: .35rem; font-size: .88rem; }
.icon-button, .plain-button { padding: .4rem; color: var(--muted); background: transparent; }
.icon-button { min-width: 42px; }
.plain-button { padding-inline: .5rem; font-size: .9rem; }
.plain-button:hover { background: var(--sidebar); }
.day-today { margin-top: 1.05rem; padding-inline: .65rem; background: #edf4e7; color: var(--leaf); }
.day-today:hover { background: #f1f7ed; }
.day-today svg { width: 16px; height: 16px; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 1.4rem; align-items: start; margin-top: 1.4rem; }
.stack { display: grid; gap: 1.15rem; min-width: 0; }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; background: var(--white); }
.panel-head, .page-head, .form-actions, .dialog-head, .calendar-head { display: flex; gap: .75rem; justify-content: space-between; align-items: center; }
.panel-head { margin-bottom: 1.05rem; }
.panel-head .count { color: var(--muted); font-size: .88rem; }
.composer { display: flex; gap: .55rem; align-items: start; }
.composer > :first-child { flex: 1; min-width: 0; }
input, textarea { width: 100%; min-width: 0; min-height: 44px; padding: .6rem .7rem; border: 1px solid #cdd7c9; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { display: block; resize: vertical; }
input::placeholder, textarea::placeholder { color: #64746a; opacity: 1; }
.task-date { width: 147px; flex: none; }
.date-field { display: flex; position: relative; border-radius: 8px; }
.date-field > input[type="text"] { padding-right: 39px; font-variant-numeric: tabular-nums; }
.date-control { position: absolute; inset: 0 0 0 auto; display: grid; place-items: center; width: 39px; color: var(--muted); border-radius: 0 8px 8px 0; }
.date-control:focus-within { outline: 2px solid #467d51; outline-offset: -2px; }
.date-control svg { width: 17px; height: 17px; }
.date-control input { position: absolute; inset: 0; width: 100%; min-height: 100%; padding: 0; opacity: 0; cursor: pointer; }
.date-control input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; cursor: pointer; }
.form-error { display: block; margin-top: .45rem; min-height: 0; color: var(--error); font-size: .9rem; }
.form-error:empty { display: none; }
.small { font-size: .87rem; color: var(--muted); }
.date-hint { margin-top: .45rem; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.filter { border: 1px solid transparent; min-height: 37px; border-radius: 7px; padding: .35rem .65rem; color: var(--muted); background: transparent; font-size: .88rem; font-weight: 650; }
.filter:hover { background: var(--sidebar); }
.filter[aria-pressed="true"] { color: var(--leaf); background: var(--active); }
.empty { display: grid; justify-items: center; text-align: center; margin-top: .85rem; padding: 2.15rem .75rem 1.65rem; border-top: 1px solid var(--line); }
.empty > span { display: grid; width: 49px; height: 49px; place-items: center; margin-bottom: .65rem; background: var(--sidebar); color: var(--leaf); border-radius: 12px; }
.empty p { margin-top: .35rem; color: var(--muted); font-size: .925rem; max-width: 38ch; }
.calendar-head { margin-bottom: .55rem; }
.calendar-head h2 { font-size: 1.12rem; }
.calendar-head .icon-button { min-width: 38px; min-height: 40px; }
.calendar-head .icon-button svg { width: 17px; height: 17px; }
.calendar-tools { display: flex; margin-right: -.3rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .17rem; margin: 0 -.16rem; }
.calendar-grid :is(button, span) { min-width: 0; display: grid; place-items: center; min-height: 34px; }
.calendar-grid > span { font-size: .8rem; color: var(--muted); }
.calendar-grid button { position: relative; border: 1px solid transparent; border-radius: 8px; padding: 0; color: var(--ink); background: transparent; font-size: .92rem; font-variant-numeric: tabular-nums; }
.calendar-grid button:hover { background: var(--sidebar); }
.calendar-grid .today { border-color: #9fb69f; }
.calendar-grid button[aria-pressed="true"] { background: var(--leaf); color: #fff; font-weight: 650; }
.calendar-grid .marked::after { position: absolute; content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; bottom: 3px; }
.calendar-key { display: flex; gap: .5rem; align-items: center; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.calendar-key i { width: 5px; height: 5px; background: var(--leaf); border-radius: 50%; }
.entries { list-style: none; padding: 0; margin: .85rem 0 0; }
.entry { display: flex; align-items: center; gap: .55rem; min-height: 57px; padding: .3rem 0; border-top: 1px solid var(--line); }
.entry label, .entry .entry-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.entry label { display: flex; align-items: center; min-height: 44px; gap: .6rem; cursor: pointer; }
.entry input[type="checkbox"] { width: 19px; min-height: 19px; height: 19px; flex: none; margin: 0; cursor: pointer; }
.entry label span { min-width: 0; }
.entry label small { display: block; color: var(--muted); }
.entry.done label .entry-title { text-decoration: line-through; color: var(--muted); }
.entry .icon-button svg { width: 17px; height: 17px; }
.entry .entry-body { padding-block: .55rem; }
.entry .entry-body p { white-space: pre-wrap; margin-top: .2rem; }
.entry .entry-body time { display: block; margin-top: .15rem; }
.page-head { padding: .65rem 0 1.45rem; }
.page-head h1 { font-size: 2.55rem; }
.page-body { max-width: 940px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.field { display: grid; gap: .3rem; align-content: start; min-width: 0; }
.field > span { font-size: .9rem; font-weight: 650; }
.wide { grid-column: 1 / -1; }
.form-actions { justify-content: flex-start; margin-top: 1rem; }
.import-line { display: flex; gap: .55rem; align-items: end; }
.import-line .field { flex: 1; }
.import-hint { margin: .35rem 0 1rem; }
.inline-status { color: var(--muted); font-size: .9rem; margin: -.4rem 0 .85rem; }
.inline-status:empty { display: none; }
.imported-photo { width: 62px; height: 62px; border-radius: 8px; object-fit: cover; background: var(--sidebar); align-self: end; }
.amount { width: 125px; flex: none; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.media-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.media-image { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; color: var(--leaf); background: var(--active); }
.media-image img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: cover; }
.media-image.poster img { object-fit: contain; }
.media-image > svg { width: 31px; height: 31px; }
.media-card-body { display: flex; flex-direction: column; align-items: start; flex: 1; gap: .45rem; padding: .85rem; }
.media-card h2 { font-size: 1.06rem; overflow-wrap: anywhere; }
.media-card p { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.media-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem; width: 100%; margin-top: auto; }
.media-actions a { display: inline-flex; align-items: center; min-height: 43px; color: var(--leaf); font-size: .9rem; font-weight: 650; }
.media-actions .icon-button { width: 39px; min-width: 39px; }
.film-toolbar { margin-bottom: .95rem; }
.film-toolbar .filters { margin-top: 0; }
.film-source { margin-bottom: 1rem; }
.loading { min-height: 114px; }
dialog { max-width: min(460px, calc(100vw - 2rem)); padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--white); }
dialog::backdrop { background: rgb(25 48 36 / .45); }
dialog p { margin-top: .65rem; }
.data-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.data-section .form-actions { flex-wrap: wrap; }
.account-form { display: grid; gap: .65rem; margin-block: .7rem; }
.account-form .form-actions { margin-top: 0; }
.remember { display: flex; align-items: start; gap: .55rem; font-size: .9rem; }
.remember input { width: 18px; height: 18px; min-height: 18px; flex: none; margin: .15rem 0 0; }
.data-section p[role="status"]:empty { display: none; }
#notice { position: fixed; z-index: 3; right: 1.2rem; bottom: 1.1rem; max-width: min(31rem, calc(100% - 2.4rem)); border-radius: 10px; padding: .65rem .9rem; color: #fff; background: var(--leaf); box-shadow: 0 5px 16px #0002; }
#notice:empty { display: none; }
@media (max-width: 1120px) {
  .shell { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding-inline: .85rem; }
  .columns { grid-template-columns: minmax(0, 1fr) 280px; gap: .85rem; }
  .panel { padding: 1rem; }
  .composer.task-composer { flex-wrap: wrap; }
  .task-composer > :first-child { flex-basis: 100%; }
}
@media (max-width: 850px) {
  .shell { grid-template-columns: 180px minmax(0, 1fr); }
  .main { padding-inline: 1.15rem; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .calendar-panel { max-width: 370px; width: 100%; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .shell { display: block; }
  .sidebar { display: flex; position: static; height: auto; padding: max(1rem, env(safe-area-inset-top)) 1rem 0; border: 0; background: transparent; }
  .brand { margin: 0; }
  .brand img { width: 36px; height: 36px; border-radius: 10px; }
  .brand strong { font-size: 1.4rem; }
  .brand small { margin-top: .15rem; font-size: .75rem; }
  .navigation { position: fixed; z-index: 2; inset: auto 0 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: .35rem .2rem max(.37rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
  .nav-link { flex-direction: column; justify-content: center; gap: .25rem; min-height: 49px; padding: .25rem .05rem; font-size: .75rem; line-height: 1.1; white-space: nowrap; }
  .nav-link svg { width: 19px; height: 19px; }
  .sidebar-foot, .breadcrumb, .topbar time { display: none; }
  .topbar { position: absolute; top: max(.85rem, env(safe-area-inset-top)); right: .75rem; min-height: 39px; gap: .15rem; }
  .top-install { display: inline-flex !important; min-height: 39px; }
  body.installed .top-install[data-action="install"] { display: none !important; }
  .main { padding: .95rem .85rem calc(5.2rem + env(safe-area-inset-bottom)); }
  h1, .page-head h1 { font-size: 2.18rem; }
  .banner { min-height: 136px; padding: 1.05rem .95rem; }
  .banner::before { width: 245px; height: 245px; top: -91px; right: -92px; }
  .banner::after { width: 210px; height: 210px; top: -74px; right: -74px; }
  .banner p { font-size: .91rem; }
  .day-display { min-width: 74px; margin: 0 0 0 .35rem; }
  .day-display strong { font-size: 3.25rem; }
  .day-display span { font-size: .82rem; gap: .18rem; }
  .day-display svg { width: 13px; height: 13px; }
  .day-today { margin-top: .6rem; }
  .columns { margin-top: .85rem; }
  .panel { padding: .85rem; }
  .empty { margin-top: .65rem; padding-block: .9rem .75rem; }
  .empty > span { width: 38px; height: 38px; margin-bottom: .45rem; }
  .calendar-panel { max-width: none; }
  .calendar-grid :is(button, span) { min-height: 42px; }
  .calendar-grid > span { min-height: 25px; }
  .page-head { align-items: start; padding: .35rem 0 1rem; }
  .page-head p { font-size: .94rem; }
  .page-head .button > svg { display: none; }
  #notice { bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 470px) {
  .composer.editing { flex-wrap: wrap; }
  .composer.editing > :first-child { flex-basis: 100%; }
}
@media (max-width: 380px) {
  .form-grid { grid-template-columns: 1fr; }
  .amount { width: 84px; }
  .media-grid { grid-template-columns: 1fr; }
  .import-line { flex-wrap: wrap; }
  .import-line .field { flex-basis: 100%; }
}
