:root {
  color-scheme: light;
  --ink: #183a37;
  --muted: #526763;
  --green: #194743;
  --line: #dce6df;
  --page: #f5f7f3;
  --gold: #e5cc82;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
svg { display: block; width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid #b38737; outline-offset: 4px; }
.wrap { width: min(1216px, calc(100% - 80px)); margin-inline: auto; }
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 48px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; width: 119px; height: auto; }
nav { display: flex; align-items: center; gap: 29px; font-size: 14px; font-weight: 650; }
nav a { padding: 24px 0; color: var(--muted); }
nav a:hover, .nav-start { color: var(--green); }
.nav-start { box-shadow: inset 0 -2px #4e786e; }
.internal { margin-left: auto; padding: 6px 10px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.internal > span { width: 7px; height: 7px; border-radius: 50%; background: #638b72; }
.quick-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.quick-tool { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--green); font-size: 13px; font-weight: 700; }
.quick-tool:hover { border-color: #83a393; background: #f0f5f0; }
.top-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; margin-top: 27px; }
.welcome { position: relative; overflow: hidden; border-radius: 17px; background: #173f3b; color: #fff; }
.welcome-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 31px 33px 30px; }
.welcome-text { min-width: 0; }
.welcome-logo { flex: 0 0 clamp(88px, 32%, 214px); }
.welcome-logo img { display: block; width: 100%; height: auto; }
.welcome-art {
  position: absolute; inset: 0; opacity: .8; pointer-events: none;
  background: radial-gradient(ellipse at 90% 10%, #41766b 0%, transparent 53%),
    repeating-radial-gradient(ellipse at 100% 12%, transparent 0 21px, #c5d6a632 22px 23px, transparent 24px 43px);
  mask-image: linear-gradient(90deg, transparent 26%, #000 70%);
}
.eyebrow { font-size: 10px; font-weight: 820; letter-spacing: .14em; text-transform: uppercase; color: #4f7168; }
.welcome-date { color: #f2d892; }
h1 { margin: 10px 0 12px; font-size: clamp(40px, 5vw, 63px); line-height: .98; letter-spacing: -.06em; }
.welcome-copy { max-width: 365px; line-height: 1.5; color: #e6eee8; font-size: 15px; }
.dialog-button { display: inline-flex; align-items: center; gap: 13px; margin-top: 19px; background: var(--gold); color: #243a31; padding: 10px 13px; border-radius: 7px; border: 0; font-weight: 760; font-size: 13px; }
.dialog-button:hover { background: #f0db9c; }
.panel { border: 1px solid var(--line); background: #fff; border-radius: 17px; }
.news { padding: 28px 25px; display: flex; flex-direction: column; }
h2 { font-size: clamp(22px, 2.5vw, 29px); letter-spacing: -.035em; line-height: 1.15; }
.news h2, .section-title h2 { margin-top: 5px; }
.empty-state { display: flex; align-items: flex-start; gap: 12px; background: #f3f7f4; border: 1px dashed #d4e2d9; padding: 18px 15px; border-radius: 12px; margin: auto 0; }
.empty-state h3 { margin-top: 2px; font-size: 15px; }
.empty-state p, .info-grid p:not(.eyebrow) { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: #e3eee6; color: #326155; }
.icon svg { width: 22px; height: 22px; }
.shortcuts { margin-top: 27px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.section-title > p { color: var(--muted); font-size: 13px; }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 179px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-align: left; transition: border-color .16s ease, box-shadow .16s ease; }
.tile:hover { border-color: #83a393; box-shadow: 0 5px 16px #244d3710; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tile-favorites .icon { background: #f8efdb; color: #805a26; }
.tile-guide .icon { background: #e8eeef; color: #355e62; }
.pill { padding: 4px 7px; border-radius: 99px; background: #f1f4f1; color: #55665d; font-size: 10px; font-weight: 720; white-space: nowrap; }
.pill.active { background: #d4e8da; color: #285646; }
.tile h3, .tile-heading { display: block; margin-top: 11px; font-size: 17px; font-weight: 780; line-height: 1.15; letter-spacing: -.025em; }
.tile p, .tile-description { display: block; margin: 5px 0 11px; color: var(--muted); font-size: 12px; line-height: 1.42; }
.tile-action { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; color: #295b4e; font-size: 12px; font-weight: 750; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.info-grid .panel { display: flex; align-items: flex-start; gap: 12px; padding: 15px 17px; }
.info-grid h2 { margin-top: 4px; font-size: 19px; }
.weather-current { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 5px; font-size: 14px; font-weight: 650; }
#weather-temperature { font-size: 27px; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.info-grid .weather-source { font-size: 11px; }
.weather-source a { text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { text-decoration: underline; }
.footer { display: flex; justify-content: space-between; gap: 10px; padding: 19px 0; font-size: 11px; color: var(--muted); }
dialog { width: min(430px, calc(100% - 28px)); padding: 22px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); box-shadow: 0 20px 75px #102b2660; }
dialog::backdrop { background: #142d2ab0; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.close { display: grid; place-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: #f6f8f5; }
.section-back { margin-top: 0; }
#section-description { margin-top: 9px; color: var(--muted); line-height: 1.5; }
@media (max-width: 920px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { gap: 24px; }
  nav { gap: 18px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 630px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 60px; gap: 12px; flex-wrap: wrap; padding-top: 10px; }
  .brand img { width: 99px; }
  nav { order: 3; width: 100%; gap: 22px; font-size: 13px; }
  nav a { padding: 5px 0 11px; }
  .top-grid, .info-grid { grid-template-columns: 1fr; gap: 12px; }
  .top-grid { margin-top: 15px; }
  .welcome-inner { gap: 10px; padding: 23px 19px; }
  .welcome h1 { font-size: clamp(30px, 7.5vw, 44px); }
  .news { gap: 14px; padding: 17px; }
  .news h2 { margin-top: -9px; }
  .section-title { align-items: flex-start; flex-direction: column; gap: 4px; }
  .tile { min-height: 175px; padding: 12px; }
}
@media (max-width: 355px) {
  .tile-grid { grid-template-columns: 1fr; }
  .tile { min-height: 145px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
}
.birthday-action { padding: 5px 0; border: 0; background: transparent; color: var(--green); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.birthday-action:disabled { opacity: .5; cursor: default; }
#birthday-dialog p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.birthday-fields { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.birthday-fields label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.birthday-fields select { padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font: inherit; }
#birthday-remove { margin-left: 9px; }
#birthday-dialog #birthday-error { margin-top: 5px; color: #963c3b; }
.birthday-manage-field { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: 700; }
.birthday-manage-field input, .birthday-manage-field select, .birthday-manage-field textarea { width: 100%; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font: inherit; }
.events-content { flex: 1; min-width: 0; }
.events-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.add-panel-item { min-width: 36px; min-height: 36px; font-size: 20px; line-height: 1; }
.add-panel-item[hidden] { display: none; }
.dashboard-list-frame { position: relative; margin-top: 6px; }
.dashboard-list-frame:has(#news-list) { margin-top: 11px; }
.dashboard-list { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.dashboard-list.scrollable { max-height: var(--visible-items-height); overflow-y: auto; scrollbar-width: none; margin-right: 24px; }
.dashboard-scrollbar {
  display: none;
  position: absolute;
  inset: 0 0 0 auto;
  width: 16px;
  height: 100%;
  margin: 0;
  writing-mode: vertical-lr;
  direction: ltr;
  appearance: none;
  border: 1px solid #c8d8cf;
  border-radius: 99px;
  background: #e8efe9;
  cursor: ns-resize;
  touch-action: none;
}
.dashboard-scrollbar::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 30px;
  border: 2px solid #e8efe9;
  border-radius: 99px;
  background: var(--green);
}
.dashboard-scrollbar::-moz-range-thumb {
  width: 10px;
  height: 26px;
  border: 2px solid #e8efe9;
  border-radius: 99px;
  background: var(--green);
}
.dashboard-list.scrollable + .dashboard-scrollbar { display: block; }
.dashboard-list-frame:has(.dashboard-list[hidden]) { display: none; }
.dashboard-list-hint { margin-top: 6px; color: var(--muted); font-size: 12px; }
:is(#agenda-list, #birthdays-list):not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
:is(.events, .birthdays) li { display: grid; align-content: start; gap: 4px; overflow-wrap: anywhere; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #f5f8f5; }
:is(.events, .birthdays) li time { color: var(--muted); }
.events li { padding: 0; }
.agenda-card { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 9px; border: 0; border-radius: inherit; background: transparent; text-align: left; overflow-wrap: anywhere; }
.agenda-card:hover { background: #e8f0e9; }
.agenda-card:focus-visible { outline-offset: -3px; }
#agenda-details-title { overflow-wrap: anywhere; }
#agenda-delete { display: block; color: #963c3b; }
#agenda-delete[hidden] { display: none; }
.agenda-error { margin-top: 5px; color: #963c3b; font-size: 13px; }
.birthdays time[aria-current="date"] { color: var(--green); font-weight: 750; }
#news-list { padding-right: 4px; }
#news-list .birthday-action:focus-visible { outline-offset: -2px; }
#news-list li { overflow-wrap: anywhere; }
#news-list li + li { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
#news-list h3 { font-size: 15px; }
#news-list time, .news-feedback { color: var(--muted); font-size: 12px; }
#news-list p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 4px; white-space: pre-wrap; line-height: 1.45; font-size: 13px; }
#news-read-dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow-y: auto; }
#news-read-title, #news-read-body { overflow-wrap: anywhere; }
#news-read-date, .news-author { color: var(--muted); font-size: 12px; }
#news-read-body { margin: 12px 0; white-space: pre-wrap; line-height: 1.55; font-size: 14px; }
#news-delete { color: #963c3b; }
.news-feedback:empty { display: none; }

#news-empty[hidden] { display: none; }
