/* Days — front-end styles. One file, no framework. */

:root {
	--p: #1a73e8;
	--a: #e8710a;
	--r: 12px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bg: #f8f9fa;
	--surface: #ffffff;
	--surface-2: #f1f3f4;
	--text: #202124;
	--muted: #5f6368;
	--line: #dadce0;
	--line-2: #e8eaed;
	--shadow: 0 1px 2px rgba(60, 64, 67, .12), 0 1px 3px 1px rgba(60, 64, 67, .08);
	--shadow-2: 0 2px 6px 2px rgba(60, 64, 67, .12), 0 1px 2px rgba(60, 64, 67, .2);
	--p-soft: color-mix(in srgb, var(--p) 10%, transparent);
	--h0: #ebedf0;
	--h1: color-mix(in srgb, var(--p) 30%, #ebedf0);
	--h2: color-mix(in srgb, var(--p) 55%, #ebedf0);
	--h3: color-mix(in srgb, var(--p) 78%, #ebedf0);
	--h4: var(--p);
	--hdr: 64px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root[data-mode="auto"] {
		--bg: #111316; --surface: #1b1d21; --surface-2: #24272c; --text: #e8eaed; --muted: #9aa0a6;
		--line: #33363b; --line-2: #2a2d32; --shadow: 0 1px 2px rgba(0, 0, 0, .5); --shadow-2: 0 4px 12px rgba(0, 0, 0, .5);
		--h0: #24272c; --h1: color-mix(in srgb, var(--p) 35%, #24272c); --h2: color-mix(in srgb, var(--p) 58%, #24272c); --h3: color-mix(in srgb, var(--p) 80%, #24272c);
		color-scheme: dark;
	}
}
:root[data-mode="dark"] {
	--bg: #111316; --surface: #1b1d21; --surface-2: #24272c; --text: #e8eaed; --muted: #9aa0a6;
	--line: #33363b; --line-2: #2a2d32; --shadow: 0 1px 2px rgba(0, 0, 0, .5); --shadow-2: 0 4px 12px rgba(0, 0, 0, .5);
	--h0: #24272c; --h1: color-mix(in srgb, var(--p) 35%, #24272c); --h2: color-mix(in srgb, var(--p) 58%, #24272c); --h3: color-mix(in srgb, var(--p) 80%, #24272c);
	color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
.days-app [hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body.days-app { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
.days-app a { color: var(--p); text-decoration: none; }
.days-app a:hover { text-decoration: underline; }
.days-app img { max-width: 100%; height: auto; display: block; }
.days-app h1, .days-app h2, .days-app h3 { line-height: 1.25; margin: 0; font-weight: 500; letter-spacing: -.01em; }
.days-app p { margin: 0 0 1em; }
.days-app button { font: inherit; color: inherit; }
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.sr-only, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow-2); }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.main { min-height: 60vh; padding-bottom: 48px; }

/* Buttons, chips, cards */
.btn {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 20px;
	background: var(--p); color: #fff !important; border: 1px solid var(--p); font-weight: 500; font-size: 14px;
	cursor: pointer; white-space: nowrap; transition: box-shadow .15s, background .15s; text-decoration: none !important;
}
.btn:hover { box-shadow: var(--shadow-2); }
.btn .ic { width: 18px; height: 18px; }
.btn--line { background: var(--surface); color: var(--p) !important; border-color: var(--line); }
.btn--line:hover { background: var(--p-soft); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--p) !important; border-color: transparent; padding: 0 12px; }
.btn--ghost:hover { background: var(--p-soft); box-shadow: none; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0;
	background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.icon-btn.is-done { color: #188038; }

.chip {
	--c: var(--p);
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px;
	border: 1px solid var(--line); background: var(--surface); color: var(--text) !important; font-size: 14px;
	white-space: nowrap; transition: border-color .15s, background .15s; text-decoration: none !important;
}
.chip .ic { width: 16px; height: 16px; color: var(--c); }
.chip small { color: var(--muted); font-size: 12px; }
.chip:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.chip--plain { color: var(--muted) !important; }
.chip--tag { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
a.card { color: var(--text); transition: box-shadow .18s, border-color .18s, transform .18s; text-decoration: none !important; }
a.card:hover { box-shadow: var(--shadow-2); border-color: transparent; transform: translateY(-1px); }

.label { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Header */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); z-index: 50; }
.hdr.is-sticky { position: sticky; top: 0; }
.admin-bar .hdr.is-sticky { top: 32px; }
.hdr__in { display: flex; align-items: center; gap: 24px; height: var(--hdr); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; text-decoration: none !important; flex: none; }
.brand__mark {
	width: 34px; height: 34px; border-radius: 9px; background: var(--p); color: #fff; display: grid; place-items: center;
	font-weight: 700; font-size: 15px; position: relative; overflow: hidden;
}
.brand__mark::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: rgba(0, 0, 0, .18); }
.brand__mark span { position: relative; top: 3px; }
.brand__name { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav a {
	color: var(--muted); padding: 0 14px; height: var(--hdr); display: inline-flex; align-items: center;
	font-size: 14px; font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; text-decoration: none !important;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--p); border-bottom-color: var(--p); }
.hdr__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr__menu { display: none; }
.hsearch { position: relative; display: flex; align-items: center; }
.hsearch > .ic { position: absolute; left: 12px; color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.hsearch input {
	width: 280px; height: 40px; border-radius: 20px; border: 1px solid transparent; background: var(--surface-2);
	padding: 0 16px 0 40px; font: inherit; font-size: 14px; color: var(--text); transition: background .15s, border-color .15s, width .2s;
}
.hsearch input:focus { outline: none; background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); width: 340px; }
.hsearch__res {
	position: absolute; top: 46px; right: 0; width: 380px; max-width: 92vw; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--r); box-shadow: var(--shadow-2); padding: 6px; z-index: 60;
}
.hsearch__res a { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.hsearch__res a:hover, .hsearch__res a.is-active { background: var(--surface-2); }
.hsearch__res .ic { color: var(--c, var(--p)); }
.hsearch__res small { display: block; color: var(--muted); font-size: 12px; }
.hsearch__res .all { justify-content: center; color: var(--p); font-size: 14px; }
.only-dark { display: none; }
:root[data-mode="dark"] .only-dark { display: inline-block; }
:root[data-mode="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
	:root[data-mode="auto"] .only-dark { display: inline-block; }
	:root[data-mode="auto"] .only-light { display: none; }
}

/* Sections */
.sec { margin-top: 40px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-title { font-size: 22px; }
.sec-title--xl { font-size: 28px; }
.sec-sub { color: var(--muted); margin: 4px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 16px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs .ic { width: 14px; height: 14px; }

/* Day card */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.day-card { --c: var(--p); display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; position: relative; }
.day-card__icon {
	width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
	background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c);
}
.day-card__icon .ic { width: 22px; height: 22px; }
.day-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.day-card__title { font-weight: 500; font-size: 16px; line-height: 1.35; }
.day-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: 13px; }
.day-card__sum { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 4px; }
.day-card__rel {
	font-size: 12px; font-weight: 500; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent);
	padding: 0 8px; border-radius: 10px; white-space: nowrap; margin-left: auto;
}

/* Home: today */
.sec--today { margin-top: 24px; }
.today { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.today__date { padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; overflow: hidden; }
.today__date::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--p); }
.today__wd { font-size: 14px; font-weight: 500; color: var(--p); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.today__md { font-size: 22px; color: var(--muted); }
.today__md strong { display: block; font-size: 72px; line-height: 1; font-weight: 400; color: var(--text); letter-spacing: -.03em; }
.today__y { color: var(--muted); }
.today__ring { margin: 14px 0 4px; }
.today__clock { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; margin-bottom: 14px; min-height: 22px; }
.today__main { min-width: 0; }
.today__main .sec-sub { margin-bottom: 16px; }
.today__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.today__none { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 0 0 12px; }
.today__next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.today__next .label { margin-right: 4px; }

.ring { display: block; }
.ring__bg { fill: none; stroke: var(--line-2); stroke-width: 10; }
.ring__fg { fill: none; stroke: var(--p); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s ease; }
.ring__n { text-anchor: middle; font-size: 26px; font-weight: 500; fill: var(--text); }
.ring__l { text-anchor: middle; font-size: 12px; fill: var(--muted); }

.empty { display: flex; align-items: center; gap: 14px; padding: 20px; color: var(--muted); }
.empty p { margin: 0; }
.empty .ic { width: 28px; height: 28px; }

/* Calendar widget */
.cal { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.cal__main { padding: 16px; }
.cal__bar { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.cal__title { font-size: 18px; min-width: 170px; text-align: center; }
.cal__bar .js-cal-today { margin-left: auto; }
.cal__wd, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__wd span { text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); padding: 4px 0; text-transform: uppercase; letter-spacing: .05em; }
.cal__d {
	min-height: 88px; border-radius: 10px; border: 1px solid var(--line-2); padding: 6px 8px; display: flex; flex-direction: column;
	gap: 4px; color: var(--text) !important; background: var(--surface); transition: border-color .15s, background .15s; text-decoration: none !important; min-width: 0;
}
.cal__d.is-pad { border: 0; background: transparent; }
.cal__d:hover { border-color: var(--p); }
.cal__d.has { background: color-mix(in srgb, var(--p) 4%, var(--surface)); }
.cal__n { font-size: 14px; font-weight: 500; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal__d.is-today .cal__n { background: var(--p); color: #fff; }
.cal__d.is-sel { border-color: var(--p); box-shadow: inset 0 0 0 1px var(--p); }
.cal__dots { display: flex; gap: 3px; }
.cal__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.cal__t { font-size: 12px; line-height: 1.3; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal__t b { color: var(--p); font-weight: 500; }
.cal__panel { padding: 16px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--hdr) + 16px); }
.cal__plabel { font-size: 18px; font-weight: 500; }
.cal__plist { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow: auto; }
.cal__plist .day-card { padding: 10px 12px; }
.cal__plist .muted { margin: 0; }
.cal__panel .btn { align-self: flex-start; }
.cal.is-loading .cal__grid { opacity: .5; }

/* Upcoming */
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.up { --c: var(--p); display: flex; gap: 14px; padding: 14px 16px 18px; position: relative; overflow: hidden; }
.up__date {
	flex: none; width: 56px; border-radius: 10px; text-align: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line));
	display: flex; flex-direction: column; align-self: flex-start;
}
.up__date span { background: var(--c); color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 2px 0; }
.up__date strong { font-size: 22px; font-weight: 500; padding: 2px 0 4px; }
.up__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.up__title { font-weight: 500; line-height: 1.35; }
.up__wd { font-size: 13px; color: var(--muted); }
.cd { font-size: 13px; font-weight: 500; color: var(--c); font-variant-numeric: tabular-nums; margin-top: 2px; }
.up__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line-2); }
.up__bar span { display: block; height: 100%; background: var(--c); }

/* Heat map */
.heat-wrap { padding: 20px; }
.heat-scroll { overflow-x: auto; }
.heat { display: block; width: 100%; min-width: 760px; height: auto; }
.heat__c { fill: var(--h0); transition: opacity .15s; }
.heat__c.l1 { fill: var(--h1); } .heat__c.l2 { fill: var(--h2); } .heat__c.l3 { fill: var(--h3); } .heat__c.l4 { fill: var(--h4); }
.heat__c.is-today { stroke: var(--a); stroke-width: 2; }
.heat__c[data-d] { cursor: pointer; }
.heat__c[data-d]:hover { opacity: .7; }
.heat__m, .heat__wd { font-size: 10px; fill: var(--muted); }
.legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--h0); }
.legend .l1 { background: var(--h1); } .legend .l2 { background: var(--h2); } .legend .l3 { background: var(--h3); } .legend .l4 { background: var(--h4); }
.legend span { margin: 0 4px; }

/* Browse */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.type { --c: var(--p); padding: 18px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; row-gap: 2px; }
.type__icon { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.type__name { font-weight: 500; font-size: 17px; }
.type__count { color: var(--muted); font-size: 13px; }
.type__desc { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin-top: 10px; line-height: 1.5; }

/* Months */
.months { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.months__chart { padding: 20px 20px 8px; }
.mchart { width: 100%; height: auto; display: block; }
.mchart__grid { stroke: var(--line-2); stroke-width: 1; }
.mchart__bar rect { fill: color-mix(in srgb, var(--p) 45%, var(--surface)); transition: fill .15s; }
.mchart__bar:hover rect, .mchart__bar.is-now rect { fill: var(--p); }
.mchart__v { text-anchor: middle; font-size: 13px; fill: var(--muted); }
.mchart__l { text-anchor: middle; font-size: 13px; fill: var(--muted); }
.months__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mtile { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mtile__n { font-weight: 500; }
.mtile__c { font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 0 8px; }
.mtile.is-now { border-color: var(--p); }
.mtile.is-now .mtile__c { background: var(--p); color: #fff; }

/* Featured */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.feat { --c: var(--p); display: flex; flex-direction: column; overflow: hidden; }
.feat__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 85%, #000) 0%, var(--c) 60%, color-mix(in srgb, var(--c) 60%, #fff) 100%); display: block; }
.feat__media img { width: 100%; height: 100%; object-fit: cover; }
.feat__art { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .92); }
.feat__art .ic { width: 56px; height: 56px; stroke-width: 1.4; transition: transform .3s; }
.feat:hover .feat__art .ic { transform: scale(1.08) rotate(-4deg); }
.feat__badge { position: absolute; left: 12px; bottom: 12px; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 12px; }
.feat__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.feat__title { font-weight: 500; font-size: 17px; }
.feat__sum { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Finder */
.finder { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.finder .sec-head { margin: 0; }
.find { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.find label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.find select {
	height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
	padding: 0 32px 0 12px; font: inherit; font-size: 15px; min-width: 90px;
}

/* About */
.about { padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.about__text p:last-child { margin-bottom: 0; }
.about__text .sec-title { margin-bottom: 12px; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { min-width: 140px; padding: 14px 18px; border-radius: var(--r); background: var(--surface-2); display: flex; flex-direction: column; }
.stat strong { font-size: 28px; font-weight: 500; color: var(--p); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }

/* Page header */
.phead { display: flex; align-items: center; gap: 18px; margin: 20px 0 24px; flex-wrap: wrap; }
.phead__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--p-soft); color: var(--p); display: grid; place-items: center; flex: none; }
.phead__icon .ic { width: 28px; height: 28px; }
.phead__text { flex: 1; min-width: 240px; }
.phead__title { font-size: 30px; }
.phead__intro { color: var(--muted); margin: 4px 0 0; }
.pager { display: flex; gap: 8px; }

.list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.list-layout.no-aside { grid-template-columns: minmax(0, 1fr); }
.list-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--hdr) + 16px); }
.lgroup { margin-bottom: 28px; }
.lgroup__h { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; }
.lgroup__h a { color: var(--text); display: inline-flex; align-items: center; gap: 12px; }
.lgroup__d { width: 36px; height: 36px; border-radius: 10px; background: var(--p); color: #fff; display: grid; place-items: center; font-size: 15px; }
.side { padding: 18px; }
.side:has(.ring) { display: flex; align-items: center; gap: 16px; }
.side__t { display: flex; flex-direction: column; }
.side__t strong { font-size: 20px; font-weight: 500; }
.side__t span { color: var(--muted); font-size: 14px; }
.side__h { font-size: 15px; margin-bottom: 12px; }
.side .find { flex-direction: column; align-items: stretch; }
.side .chips { margin: 0; }
.mlinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mlinks a { text-align: center; padding: 6px 0; border-radius: 8px; color: var(--text); font-size: 14px; }
.mlinks a:hover { background: var(--surface-2); text-decoration: none; }
.mlinks a[aria-current] { background: var(--p); color: #fff; }
.az { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.az a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 500; }
.az a:hover { border-color: var(--p); color: var(--p); text-decoration: none; }
.bigsearch { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 6px 6px 6px 18px; margin-bottom: 24px; max-width: 760px; }
.bigsearch .ic { color: var(--muted); }
.bigsearch input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--text); height: 44px; min-width: 0; }
.bigsearch input:focus { outline: none; }

/* Mini months */
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mini { padding: 14px; }
.mini__h { display: flex; justify-content: space-between; align-items: center; font-weight: 500; color: var(--text) !important; margin-bottom: 8px; }
.mini__h small { color: var(--muted); font-weight: 400; }
.mini__wd, .mini__g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.mini__wd span { font-size: 11px; color: var(--muted); }
.mini__g a, .mini__g span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; font-size: 12px; color: var(--text); text-decoration: none; }
.mini__g a.l1 { background: var(--h1); } .mini__g a.l2 { background: var(--h2); } .mini__g a.l3, .mini__g a.l4 { background: var(--h3); color: #fff; }
.mini__g a.is-today { box-shadow: inset 0 0 0 2px var(--a); font-weight: 700; }
.mini__g a:hover { background: var(--p); color: #fff; }

/* Single day */
.day { --c: var(--p); }
.dhero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: center; margin: 20px 0 8px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); position: relative; overflow: hidden; }
.dhero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.dhero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dhero__title { font-size: 40px; font-weight: 500; letter-spacing: -.02em; }
.dhero__year { color: var(--c); font-weight: 400; }
.dhero__sum { font-size: 18px; color: var(--muted); margin: 12px 0 20px; line-height: 1.55; }
.dhero__when { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.when { display: flex; flex-direction: column; }
.when__l { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
.when__d { font-size: 20px; font-weight: 500; }
.when__s { font-size: 13px; color: var(--muted); }
.cdown { display: flex; gap: 8px; }
.cdown div { min-width: 64px; text-align: center; padding: 8px 6px; border-radius: 10px; background: color-mix(in srgb, var(--c) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 20%, var(--line)); }
.cdown strong { display: block; font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--c); line-height: 1.2; }
.cdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cdown.is-today strong { font-size: 18px; }
.dhero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.share { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.dhero__art { display: grid; place-items: center; }
.dhero__img { width: 100%; border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; }
.dtile {
	width: 260px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-2); overflow: hidden; text-align: center; position: relative;
	animation: dtile-in .6s ease both;
}
.dtile__m { background: var(--c); color: #fff; padding: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 15px; }
.dtile__d { font-size: 110px; line-height: 1.05; font-weight: 300; letter-spacing: -.04em; padding-top: 6px; }
.dtile__w { color: var(--muted); padding-bottom: 54px; }
.dtile__i { position: absolute; right: 14px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
@keyframes dtile-in { from { opacity: 0; transform: translateY(10px) rotate(-2deg); } to { opacity: 1; transform: none; } }

.dlayout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; margin-top: 24px; align-items: start; }
.dlayout.no-toc { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: calc(var(--hdr) + 16px); }
.toc__in { display: flex; flex-direction: column; gap: 12px; }
.toc__h { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font-weight: 500; font-size: 14px; color: var(--text); cursor: default; }
.toc__chev { display: none; margin-left: auto; transition: transform .2s; }
.toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-2); }
.toc__list a { display: block; padding: 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; text-decoration: none; line-height: 1.4; }
.toc__list a:hover { color: var(--text); }
.toc__list a.is-active { color: var(--c); border-left-color: var(--c); font-weight: 500; }
.toc__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0; }
.toc__meta .ic { width: 16px; height: 16px; }

.dcontent { min-width: 0; }
.dsec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 28px; margin-bottom: 16px; }
.dsec__h { font-size: 22px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.dsec__h::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--c); }
.prose { font-size: 17px; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose h2 { font-size: 22px; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 18px; margin: 1.2em 0 .4em; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; }
.fact { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.fact dt { display: flex; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500; }
.fact dt .ic { width: 15px; height: 15px; color: var(--c); }
.fact dd { margin: 4px 0 0; font-weight: 500; line-height: 1.45; }

.timeline { list-style: none; margin: 20px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 87px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 36px; padding: 8px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 81px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c); box-sizing: border-box; }
.timeline__y { font-weight: 600; color: var(--c); font-variant-numeric: tabular-nums; text-align: right; }
.timeline__t { line-height: 1.55; }

.themes { display: flex; flex-direction: column; gap: 8px; }
.theme { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 10px 6px 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); }
.theme__y { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.theme.is-now { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.theme.is-now .theme__y { color: var(--c); }
.theme__t { font-weight: 500; }

.stats--day { margin-bottom: 18px; }
.stats--day .stat strong { color: var(--c); }

.how { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.how__item { padding: 18px; border-radius: var(--r); border: 1px solid var(--line-2); position: relative; transition: border-color .15s, box-shadow .15s; }
.how__item:hover { border-color: var(--c); box-shadow: var(--shadow); }
.how__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); margin-bottom: 10px; }
.how__n { position: absolute; top: 14px; right: 16px; font-size: 28px; font-weight: 300; color: var(--line); }
.how__item h3 { font-size: 16px; margin-bottom: 6px; }
.how__item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.trad { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.trad__item { padding: 16px 18px; border-radius: var(--r); background: var(--surface-2); }
.trad__item h3 { font-size: 16px; margin-bottom: 6px; }
.trad__item p { margin: 0; font-size: 15px; line-height: 1.6; }

.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.quote { margin: 0; padding: 20px 20px 12px; border-radius: var(--r); border: 1px solid var(--line-2); position: relative; display: flex; flex-direction: column; }
.quote__mark { width: 28px; height: 28px; color: var(--c); opacity: .6; margin-bottom: 6px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; flex: 1; }
.quote figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.quote figcaption::before { content: "— "; }
.quote__act { display: flex; justify-content: flex-end; }

.msgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.msg { display: flex; gap: 8px; align-items: flex-start; padding: 14px 8px 14px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--c) 5%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 15%, var(--line-2)); }
.msg p { margin: 0; flex: 1; line-height: 1.55; }
.msg__act { display: flex; flex: none; }
.msg__act .icon-btn { width: 36px; height: 36px; }
.msgs--cap .msg { background: var(--surface-2); border-color: var(--line-2); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.tags__l { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; margin-right: 4px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery__i { margin: 0; }
.gallery__i img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; transition: transform .25s; }
.gallery__i a { display: block; overflow: hidden; border-radius: 10px; }
.gallery__i a:hover img { transform: scale(1.04); }
.gallery__i figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.tbl tr.is-now td { background: color-mix(in srgb, var(--c) 7%, transparent); font-weight: 500; }
.tbl tr.is-now td:first-child { box-shadow: inset 3px 0 0 var(--c); }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 14px 0 0; }

.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 500; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq__a { padding: 0 0 14px; color: var(--muted); line-height: 1.7; }
.faq__a p:last-child { margin: 0; }
.sources { margin: 0; padding-left: 1.2em; }
.sources li { margin-bottom: 4px; }
.updated { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.updated .ic { width: 16px; height: 16px; }

/* Ads */
.ad { margin: 24px auto; text-align: center; overflow: hidden; max-width: 100%; }
.ad__label { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.toc .ad { margin: 8px 0 0; }

/* Generic page */
.page { padding: 32px 40px; margin-top: 20px; }
.page__title { font-size: 32px; margin-bottom: 16px; }
.page__img { margin-bottom: 20px; }
.page__img img { border-radius: var(--r); }

/* 404 / offline */
.nf { text-align: center; padding-top: 40px; display: flex; flex-direction: column; align-items: center; }
.nf__art svg { display: block; }
.nf__page { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.nf__top { fill: var(--p); }
.nf__ring { stroke: var(--muted); stroke-width: 6; stroke-linecap: round; }
.nf__num { text-anchor: middle; font-size: 56px; font-weight: 500; fill: var(--text); }
.nf__tear { fill: var(--bg); }
.nf__ic { width: 96px; height: 96px; color: var(--p); stroke-width: 1.2; }
.nf__title { font-size: 30px; margin: 20px 0 8px; }
.nf__text { color: var(--muted); max-width: 640px; }
.nf .bigsearch { width: 100%; margin: 12px auto 16px; }
.nf__links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.nf .sec { width: 100%; text-align: left; }

/* Footer */
.ftr { background: var(--surface); border-top: 1px solid var(--line); margin-top: 48px; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.ftr__text { color: var(--muted); font-size: 14px; margin-top: 12px; }
.ftr__h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; margin: 0 0 12px; }
.ftr__h + .ftr__list + .ftr__h, .ftr__list + .ftr__h { margin-top: 20px; }
.ftr__list { list-style: none; margin: 0; padding: 0; }
.ftr__list li { margin-bottom: 8px; }
.ftr__list a, .ftr__months a, .ftr__social a { color: var(--text); font-size: 14px; }
.ftr__months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 6px 14px; justify-content: start; }
.ftr__social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.ftr .btn { margin-top: 12px; }
.ftr__bottom { border-top: 1px solid var(--line-2); padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }

/* App tab bar (phones) */
.tabbar { display: none; }

/* Toast, lightbox */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #202124; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 90; box-shadow: var(--shadow-2); }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .86); z-index: 95; display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: 8px; }
.lightbox__x { position: absolute; top: 16px; right: 16px; color: #fff; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1180px) {
	.hsearch input { width: 200px; }
	.hsearch input:focus { width: 240px; }
	.cal { grid-template-columns: minmax(0, 1fr) 320px; }
	.dhero { grid-template-columns: minmax(0, 1fr) 300px; }
	.dtile { width: 230px; }
	.months { grid-template-columns: 1fr; }
	.months__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
	.nav { position: fixed; top: var(--hdr); left: 0; right: 0; background: var(--surface); flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); display: none; }
	.admin-bar .nav { top: calc(var(--hdr) + 46px); }
	.nav.is-open { display: flex; }
	.nav a { height: 48px; padding: 0 24px; border-bottom: 0; border-left: 3px solid transparent; }
	.nav a[aria-current="page"] { border-left-color: var(--p); background: var(--p-soft); }
	.hdr__menu { display: inline-grid; }
	.today { grid-template-columns: 1fr; }
	.today__date { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "wd ring" "md ring" "y ring" "clock btn"; align-items: center; text-align: left; gap: 0 16px; padding: 20px; }
	.today__wd { grid-area: wd; margin: 0; }
	.today__md { grid-area: md; display: flex; align-items: baseline; gap: 10px; }
	.today__md strong { display: inline; font-size: 56px; order: -1; }
	.today__y { grid-area: y; }
	.today__ring { grid-area: ring; margin: 0; }
	.today__ring .ring { width: 104px; height: 104px; }
	.today__clock { grid-area: clock; margin: 12px 0 0; min-height: 0; }
	.today__date .btn { grid-area: btn; margin-top: 12px; justify-self: end; }
	.cal { grid-template-columns: 1fr; }
	.cal__panel { position: static; }
	.dhero { grid-template-columns: 1fr; }
	.dhero__art { order: -1; justify-items: start; }
	.dtile { width: 100%; display: grid; grid-template-columns: auto 1fr; text-align: left; align-items: center; }
	.dtile__m { grid-column: 1 / -1; }
	.dtile__d { font-size: 64px; padding: 6px 20px; }
	.dtile__w { padding: 0; }
	.dlayout { grid-template-columns: 1fr; }
	.toc { position: static; }
	.toc__in { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
	.toc__h { cursor: pointer; width: 100%; }
	.toc__chev { display: inline-block; }
	.toc.is-closed .toc__list, .toc.is-closed .toc__meta { display: none; }
	.toc.is-closed .toc__chev { transform: rotate(-90deg); }
	.list-layout { grid-template-columns: 1fr; }
	.list-aside { position: static; }
	.about { grid-template-columns: 1fr; }
	.ftr__grid { grid-template-columns: 1fr 1fr; }
	.ftr__about { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
	.admin-bar .hdr.is-sticky { top: 46px; }
}
@media (max-width: 680px) {
	.wrap { padding: 0 16px; }
	body.days-app { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.hsearch { display: none; }
	.hsearch.is-open { display: flex; position: fixed; top: 8px; left: 8px; right: 8px; z-index: 70; }
	.hsearch.is-open input, .hsearch.is-open input:focus { width: 100%; height: 48px; background: var(--surface); box-shadow: var(--shadow-2); border-color: var(--line); }
	.hsearch.is-open .hsearch__res { top: 54px; width: 100%; left: 0; }
	.brand__name { font-size: 18px; }
	.sec { margin-top: 32px; }
	.sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.sec-title--xl { font-size: 24px; }
	.today__list, .card-grid, .up-grid, .quotes, .msgs, .trad { grid-template-columns: 1fr; }
	.cal__main { padding: 10px; }
	.cal__wd, .cal__grid { gap: 3px; }
	.cal__d { min-height: 48px; padding: 4px; align-items: center; }
	.cal__t { display: none; }
	.cal__title { min-width: 0; font-size: 16px; flex: 1; }
	.months__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.phead__title { font-size: 24px; }
	.pager { width: 100%; }
	.pager .btn { flex: 1; justify-content: center; }
	.dhero { padding: 20px 16px; }
	.dhero__title { font-size: 30px; }
	.dhero__sum { font-size: 16px; }
	.share { margin-left: 0; }
	.cdown div { min-width: 0; flex: 1; }
	.dsec { padding: 18px 16px; }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.fact { padding: 10px 12px; }
	.fact dd { font-size: 15px; }
	.prose { font-size: 16px; }
	.timeline::before { left: 7px; }
	.timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 28px; }
	.timeline li::before { left: 2px; }
	.timeline__y { text-align: left; padding: 0; }
	.theme { grid-template-columns: 52px 1fr auto; gap: 8px; }
	.page { padding: 20px 16px; }
	.ftr__grid { grid-template-columns: 1fr; gap: 24px; }
	.tabbar {
		display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
		background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
	}
	.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; color: var(--muted); font-size: 11px; border: 0; background: none; text-decoration: none !important; }
	.tabbar [aria-current="page"] { color: var(--p); }
	.tabbar [aria-current="page"] .ic { background: var(--p-soft); border-radius: 12px; width: 52px; }
	.toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media print {
	.hdr, .ftr, .tabbar, .toc, .ad, .share, .dhero__act, #related { display: none !important; }
	.dsec { border: 0; padding: 0; }
}

/* Grouped lists: one full-width row per day so the line uses the available width */
.lgroup .card-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.lgroup .day-card { align-items: center; }
.lgroup .day-card__body { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); grid-template-areas: "t s" "m s"; column-gap: 24px; align-items: center; }
.lgroup .day-card__title { grid-area: t; }
.lgroup .day-card__meta { grid-area: m; }
.lgroup .day-card__sum { grid-area: s; margin: 0; }
@media (max-width: 680px) {
	.lgroup .day-card__body { display: flex; }
}

/* This week strip (homepage) */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.week__d { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; min-height: 118px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--text) !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.week__d:hover { border-color: var(--p); box-shadow: var(--shadow); }
.week__d.is-today { border-color: var(--p); box-shadow: inset 0 3px 0 var(--p); }
.week__wd { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.week__d.is-today .week__wd { color: var(--p); }
.week__n { font-size: 22px; font-weight: 500; line-height: 1.1; }
.week__n small { font-size: 12px; color: var(--muted); font-weight: 400; }
.week__t { font-size: 12px; line-height: 1.35; padding-left: 8px; border-left: 3px solid var(--c); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.week__more { font-size: 12px; color: var(--p); }
.week__none { color: var(--line); }
@media (max-width: 1180px) {
	.week { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
	.week__d { flex: 0 0 140px; scroll-snap-align: start; }
}
@media (max-width: 680px) {
	.week { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
	.week__d { flex: 0 0 132px; scroll-snap-align: start; min-height: 104px; }
}

/* Greeting card maker */
.gcard { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.gcard__preview { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 1; background: var(--surface-2); }
.gcard__preview canvas { width: 100%; height: 100%; display: block; }
.gcard__ctl { display: flex; flex-direction: column; gap: 14px; }
.gcard__ctl label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.gcard__ctl select, .gcard__ctl input { height: 42px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 12px; font: inherit; font-size: 15px; width: 100%; }
.gcard__styles { display: flex; gap: 8px; flex-wrap: wrap; }
.gcard__styles button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.gcard__styles button.is-on { border-color: var(--text); box-shadow: 0 0 0 3px var(--surface) inset; }
.gcard__act { display: flex; gap: 8px; flex-wrap: wrap; }
.gcard__hint { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .gcard { grid-template-columns: 1fr; } }
