:root {
  --header-height: 70px;
  --nav-height: 74px;
  --content-max: 1380px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 8px 24px rgba(42, 35, 62, .10);
  --shadow-lg: 0 24px 70px rgba(31, 26, 48, .22);
  --transition: 160ms ease;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .56; }
svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--accent); }
[hidden] { display: none !important; }

body[data-theme="pastel"] {
  --bg: #f7f3fb;
  --bg-pattern: radial-gradient(circle at 10% 10%, rgba(231, 210, 244, .65), transparent 32%), radial-gradient(circle at 88% 12%, rgba(202, 229, 244, .7), transparent 30%), linear-gradient(145deg, #fbf8fd, #f3f0f9);
  --surface: rgba(255, 255, 255, .88);
  --surface-strong: #ffffff;
  --surface-soft: #eee8f5;
  --text: #342e3d;
  --muted: #746b7e;
  --accent: #7c6fa8;
  --accent-strong: #65578f;
  --accent-soft: #e4dcf0;
  --border: rgba(105, 88, 128, .16);
  --danger: #a94758;
  --success: #3e8064;
  --card-a: #fff9f6;
  --card-b: #f6fbff;
}

body[data-theme="nature"] {
  --bg: #eaf0e7;
  --bg-pattern: radial-gradient(circle at 12% 5%, rgba(175, 205, 154, .55), transparent 34%), radial-gradient(circle at 95% 18%, rgba(206, 226, 184, .7), transparent 30%), linear-gradient(145deg, #edf4e9, #dde9dd);
  --surface: rgba(249, 252, 245, .91);
  --surface-strong: #fbfdf8;
  --surface-soft: #dce8d5;
  --text: #26382c;
  --muted: #617064;
  --accent: #4f7b5e;
  --accent-strong: #365f46;
  --accent-soft: #cfe1d2;
  --border: rgba(54, 95, 70, .19);
  --danger: #9a4c4c;
  --success: #3e7952;
  --card-a: #f7f5e9;
  --card-b: #eef7ef;
}

body[data-theme="love"] {
  --bg: #f8ecef;
  --bg-pattern: radial-gradient(circle at 8% 6%, rgba(241, 182, 199, .48), transparent 34%), radial-gradient(circle at 92% 15%, rgba(250, 214, 213, .72), transparent 30%), linear-gradient(145deg, #fff5f6, #f4e8ed);
  --surface: rgba(255, 251, 251, .91);
  --surface-strong: #fffdfd;
  --surface-soft: #f5dfe5;
  --text: #4b2e37;
  --muted: #80636b;
  --accent: #ae6078;
  --accent-strong: #8e455e;
  --accent-soft: #f0d2dc;
  --border: rgba(142, 69, 94, .17);
  --danger: #a73f55;
  --success: #607d65;
  --card-a: #fff6f2;
  --card-b: #fff8fb;
}

body[data-theme="blues"] {
  --bg: #e8f0f7;
  --bg-pattern: radial-gradient(circle at 12% 7%, rgba(144, 191, 229, .45), transparent 34%), radial-gradient(circle at 90% 13%, rgba(185, 216, 239, .76), transparent 31%), linear-gradient(145deg, #f1f7fb, #dfeaf4);
  --surface: rgba(248, 252, 255, .91);
  --surface-strong: #fbfdff;
  --surface-soft: #d7e6f2;
  --text: #253849;
  --muted: #607386;
  --accent: #4c78a0;
  --accent-strong: #355f84;
  --accent-soft: #cbdfee;
  --border: rgba(53, 95, 132, .18);
  --danger: #a34955;
  --success: #39786a;
  --card-a: #f4fbff;
  --card-b: #f8f8ff;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17171d;
  --bg-pattern: radial-gradient(circle at 10% 4%, rgba(102, 87, 145, .28), transparent 34%), radial-gradient(circle at 92% 10%, rgba(53, 91, 108, .32), transparent 32%), linear-gradient(145deg, #1f1e27, #111217);
  --surface: rgba(39, 38, 47, .93);
  --surface-strong: #2d2b35;
  --surface-soft: #34323e;
  --text: #f3eff8;
  --muted: #b7b0c0;
  --accent: #ad9ad8;
  --accent-strong: #c5b5eb;
  --accent-soft: #443d55;
  --border: rgba(226, 218, 239, .14);
  --danger: #ef8b9a;
  --success: #86c5a7;
  --card-a: #2c2933;
  --card-b: #252d33;
  --shadow-sm: 0 8px 26px rgba(0, 0, 0, .28);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .52);
}

body[data-theme="warm"] {
  --bg: #f3ede2;
  --bg-pattern: radial-gradient(circle at 8% 4%, rgba(225, 180, 121, .40), transparent 34%), radial-gradient(circle at 92% 12%, rgba(236, 208, 159, .62), transparent 30%), linear-gradient(145deg, #faf5e9, #ece3d4);
  --surface: rgba(255, 252, 245, .92);
  --surface-strong: #fffdf8;
  --surface-soft: #ece0cc;
  --text: #463729;
  --muted: #7a6b5c;
  --accent: #a46e3f;
  --accent-strong: #82532d;
  --accent-soft: #edd5bb;
  --border: rgba(130, 83, 45, .17);
  --danger: #a24747;
  --success: #547a54;
  --card-a: #fff8ec;
  --card-b: #f9f0e5;
}

body { color: var(--text); background: var(--bg-pattern); }

.auth-page { min-height: 100vh; min-height: 100dvh; }
.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 440px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(28px, 5vw, 48px); backdrop-filter: blur(18px); }
.auth-card-wide { width: min(100%, 560px); }
.auth-card h1 { margin: 4px 0 10px; font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.045em; }
.brand-mark { width: 58px; height: 58px; display: grid; place-items: center; background: var(--accent); color: #fff; border-radius: 20px; font-size: 2rem; box-shadow: var(--shadow-sm); }
.eyebrow { margin: 18px 0 2px; color: var(--accent-strong); text-transform: uppercase; letter-spacing: .11em; font-size: .72rem; font-weight: 800; }
.auth-intro { color: var(--muted); line-height: 1.55; margin: 0 0 26px; }
.auth-footnote { color: var(--muted); margin: 22px 0 0; text-align: center; font-size: .92rem; }

.stack-form { display: grid; gap: 17px; }
.compact-stack { gap: 13px; }
label { display: grid; gap: 7px; font-weight: 700; font-size: .9rem; }
label > span small { font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; color: var(--text); background: var(--surface-strong); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 13px; outline: none; transition: border-color var(--transition), box-shadow var(--transition), background var(--transition); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.check-row { grid-template-columns: auto 1fr; align-items: center; font-weight: 600; color: var(--muted); }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-error { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 24%, transparent); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; }

.primary-button, .secondary-button, .compact-button { border: 0; border-radius: var(--radius-sm); font-weight: 800; transition: transform var(--transition), background var(--transition), box-shadow var(--transition); }
.primary-button { padding: 13px 18px; background: var(--accent); color: #fff; box-shadow: 0 7px 16px color-mix(in srgb, var(--accent) 24%, transparent); }
.primary-button:hover { background: var(--accent-strong); transform: translateY(-1px); }
.secondary-button { padding: 12px 17px; background: var(--accent-soft); color: var(--accent-strong); }
.secondary-button:hover { filter: brightness(.97); transform: translateY(-1px); }
.compact-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; color: var(--accent-strong); background: var(--accent-soft); }
.compact-primary { padding: 9px 12px; font-size: .76rem; }
.compact-secondary { padding: 7px 9px; border-radius: 9px; font-size: .68rem; white-space: nowrap; }
.text-button { padding: 4px 6px; border: 0; color: var(--accent-strong); background: transparent; font-size: .7rem; font-weight: 850; }
.text-button:hover { text-decoration: underline; }
.danger-text-button { color: var(--danger); }

.app-page { height: 100vh; height: 100dvh; overflow: hidden; --header-height: 58px; --nav-height: 64px; }
.app-header { position: fixed; inset: 0 0 auto 0; z-index: 30; height: calc(var(--header-height) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 7px; background: color-mix(in srgb, var(--surface) 93%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(20px); }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 11px; color: var(--text); background: transparent; }
.icon-button:hover { background: var(--accent-soft); color: var(--accent-strong); }
.app-title-wrap { min-width: 0; }
.app-title { overflow: hidden; font-weight: 900; letter-spacing: -.025em; font-size: 1.08rem; white-space: nowrap; text-overflow: ellipsis; }
.sync-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .7rem; font-weight: 800; padding-right: 2px; }
.sync-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--muted); }
.sync-indicator.online .sync-dot { background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 13%, transparent); }
.sync-indicator.error .sync-dot { background: var(--danger); }

.app-main { position: fixed; z-index: 1; inset: calc(var(--header-height) + env(safe-area-inset-top)) 0 calc(var(--nav-height) + env(safe-area-inset-bottom)) 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.canvas-view, .calendar-view, .list-data-view { width: min(100%, var(--content-max)); margin: 0 auto; padding: 8px max(10px, env(safe-area-inset-left)) 24px max(10px, env(safe-area-inset-right)); }
.view-heading { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.view-heading h1 { min-width: 0; overflow: hidden; margin: 0; font-size: 1.08rem; letter-spacing: -.025em; white-space: nowrap; text-overflow: ellipsis; }
.view-heading .compact-button { width: 34px; height: 34px; justify-content: center; padding: 0; }
.view-heading .compact-button span { display: none; }
.canvas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 8px; }

.widget-card { position: relative; overflow: hidden; height: 132px; display: flex; flex-direction: column; background: linear-gradient(145deg, var(--card-a), var(--card-b)); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 4px 14px rgba(42, 35, 62, .08); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.widget-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(42, 35, 62, .13); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.widget-card.widget-note { isolation: isolate; border-color: rgba(135, 112, 39, .26); background: linear-gradient(151deg, #fff4a8 0%, #ffe985 68%, #f7dc70 100%); box-shadow: 1px 4px 11px rgba(89, 70, 21, .18), inset 0 -1px rgba(120, 94, 23, .10); transform: rotate(-.35deg); }
.widget-card.widget-note:nth-child(even) { transform: rotate(.28deg); }
.widget-card.widget-note:hover { transform: translateY(-2px) rotate(0); border-color: rgba(120, 91, 19, .38); box-shadow: 2px 10px 22px rgba(89, 70, 21, .22); }
.widget-card.widget-note::before { content: ''; position: absolute; z-index: 3; top: 0; left: 50%; width: 42px; height: 8px; transform: translateX(-50%) rotate(-1deg); border-radius: 0 0 3px 3px; background: rgba(255, 255, 255, .42); box-shadow: 0 1px 2px rgba(90, 72, 27, .08); pointer-events: none; }
.widget-card.widget-note .widget-card-main { position: relative; z-index: 1; color: #4d421f; }
.widget-card.widget-note .widget-type-icon { background: rgba(255, 255, 255, .42); }
.widget-card.widget-note .widget-title { font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", ui-rounded, cursive; letter-spacing: -.025em; }
.widget-card.widget-note .widget-preview { color: #62562d; font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", ui-rounded, cursive; }
.widget-card.widget-note .widget-card-footer { position: relative; z-index: 2; border-top-color: rgba(118, 93, 27, .17); background: rgba(255, 244, 167, .68); }
.widget-card.widget-note .widget-type-label, .widget-card.widget-note .card-action { color: #67592d; }
.widget-card.widget-note .card-action:hover { color: #3f3518; background: rgba(255, 255, 255, .35); }
.widget-card-main { min-height: 0; flex: 1; display: flex; flex-direction: column; text-align: left; border: 0; color: inherit; background: transparent; padding: 8px 8px 3px; }
.widget-card-top { min-width: 0; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 6px; }
.widget-type-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); font-size: .9rem; }
.widget-title { min-width: 0; margin: 0; font-size: .84rem; line-height: 1.12; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.widget-privacy { font-size: .65rem; }
.widget-preview { margin: 7px 1px 0; color: var(--muted); font-size: .72rem; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.widget-mini-meta { margin-top: auto; padding-top: 3px; overflow: hidden; color: var(--accent-strong); font-size: .62rem; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; }
.widget-list-preview { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 2px; }
.widget-list-preview li { min-width: 0; display: grid; grid-template-columns: 11px minmax(0,1fr); align-items: center; gap: 4px; color: var(--muted); font-size: .68rem; line-height: 1.15; }
.widget-list-preview li > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.widget-list-preview li.checked { opacity: .55; text-decoration: line-through; }
.preview-check { width: 10px; height: 10px; border: 1.5px solid var(--accent); border-radius: 3px; }
.widget-list-preview li.checked .preview-check { background: var(--accent); box-shadow: inset 0 0 0 2px var(--surface); }
.widget-list-preview .preview-more { display: block; padding-left: 15px; color: var(--accent-strong); font-size: .6rem; }
.widget-photo-preview { width: 100%; height: 65px; margin-top: 5px; object-fit: cover; border-radius: 8px; background: var(--surface-soft); }
.widget-photo-placeholder { min-height: 57px; display: grid; place-items: center; margin-top: 6px; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); font-size: .7rem; }
.widget-card-footer { height: 31px; flex: 0 0 31px; display: flex; align-items: center; gap: 6px; padding: 3px 6px 4px 9px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 58%, transparent); }
.widget-type-label { min-width: 0; flex: 1; overflow: hidden; color: var(--muted); font-size: .63rem; font-weight: 850; white-space: nowrap; text-overflow: ellipsis; }
.card-action { width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.card-action:hover { color: var(--accent-strong); background: var(--accent-soft); }
.card-action svg { width: 15px; height: 15px; }
.widget-card.reminder-safe { border-color: color-mix(in srgb, var(--success) 48%, var(--border)); background: linear-gradient(145deg, color-mix(in srgb, var(--success) 8%, var(--card-a)), var(--card-b)); }
.widget-card.reminder-soon, .widget-card.reminder-overdue { border-color: color-mix(in srgb, var(--danger) 62%, var(--border)); background: linear-gradient(145deg, color-mix(in srgb, var(--danger) 11%, var(--card-a)), var(--card-b)); }
.widget-card.reminder-soon .widget-mini-meta, .widget-card.reminder-overdue .widget-mini-meta { color: var(--danger); }
.countdown-today { border-color: color-mix(in srgb, var(--accent) 68%, var(--border)); }
.countdown-decoration { pointer-events: none; position: absolute; inset: auto 2px 32px auto; max-width: 85%; opacity: .68; font-size: .9rem; letter-spacing: -.12em; transform: rotate(-5deg); }
.joke-card-preview { display: grid; gap: 4px; margin-top: 10px; }
.joke-card-preview span { width: var(--joke-bar-width, 78%); height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 28%, transparent); filter: blur(.8px); }
.joke-card-preview span:nth-child(even) { justify-self: end; }

.empty-state { min-height: 55vh; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; color: var(--muted); }
.empty-state h2, .empty-state p { margin: 0; }
.empty-icon { font-size: 2rem; }

.list-data-topbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.list-data-topbar .eyebrow { margin: 0; }
.list-data-topbar h1 { margin: 2px 0 0; font-size: 1.12rem; letter-spacing: -.025em; }
.list-data-topbar p:last-child { max-width: 650px; margin: 3px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.3; }
.list-data-scope-tabs { width: fit-content; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 0 0 9px; padding: 3px; border: 1px solid var(--border); border-radius: 11px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.list-data-scope-tabs button { min-width: 104px; padding: 7px 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: .72rem; font-weight: 850; }
.list-data-scope-tabs button.active { color: #fff; background: var(--accent); box-shadow: 0 3px 9px color-mix(in srgb, var(--accent) 22%, transparent); }
.list-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.saved-list-card { min-width: 0; overflow: hidden; display: grid; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 14px rgba(42,35,62,.07); }
.saved-list-card-main { min-width: 0; display: grid; gap: 7px; padding: 10px; border: 0; text-align: left; color: inherit; background: transparent; }
.saved-list-card-heading { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 6px; }
.saved-list-card-heading h2 { min-width: 0; overflow: hidden; margin: 0; font-size: .84rem; white-space: nowrap; text-overflow: ellipsis; }
.saved-list-owner { overflow: hidden; color: var(--muted); font-size: .58rem; white-space: nowrap; text-overflow: ellipsis; }
.saved-list-count { padding: 3px 6px; border-radius: 99px; color: var(--accent-strong); background: var(--accent-soft); font-size: .56rem; font-weight: 850; white-space: nowrap; }
.saved-list-preview { min-width: 0; display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.saved-list-preview li { min-width: 0; display: grid; gap: 0; color: var(--text); font-size: .69rem; }
.saved-list-preview li > span, .saved-list-preview li > small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.saved-list-preview li > small { color: var(--muted); font-size: .59rem; }
.saved-list-preview .saved-list-more { color: var(--accent-strong); font-size: .61rem; font-weight: 800; }
.saved-list-card footer { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 5px 7px; border-top: 1px solid var(--border); background: var(--surface-soft); }
.saved-list-card footer > small { min-width: 0; overflow: hidden; color: var(--muted); font-size: .56rem; white-space: nowrap; text-overflow: ellipsis; }
.saved-list-card-actions { display: flex; gap: 1px; }
.list-data-empty { min-height: 48vh; }

.bottom-nav { position: fixed; z-index: 35; inset: auto 0 0 0; height: calc(var(--nav-height) + env(safe-area-inset-bottom)); padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; background: color-mix(in srgb, var(--surface) 95%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(20px); }
.nav-button { min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: transparent; color: var(--muted); font-size: .61rem; font-weight: 850; }
.nav-button svg { width: 20px; height: 20px; }
.nav-button.active { color: var(--accent-strong); }
.nav-button.active svg { stroke-width: 2.4; }
.add-circle { width: 34px; height: 34px; display: grid; place-items: center; margin-top: -14px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 1.4rem; line-height: 1; box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.nav-add { color: var(--accent-strong); }

.drawer-backdrop { position: fixed; z-index: 48; inset: 0; background: rgba(20, 17, 25, .36); backdrop-filter: blur(2px); }
.side-drawer { position: fixed; z-index: 50; inset: 0 auto 0 0; width: min(91vw, 390px); overflow-y: auto; padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom)); background: var(--surface-strong); box-shadow: var(--shadow-lg); transform: translateX(-105%); transition: transform 220ms ease; }
.side-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: start; justify-content: space-between; padding: 2px 2px 10px; }
.drawer-header .eyebrow { margin: 0; }
.drawer-header h2 { margin: 2px 0 0; font-size: 1.35rem; }
.drawer-section { padding: 13px 0; border-top: 1px solid var(--border); }
.drawer-section h3 { margin: 0 0 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.drawer-actions { display: grid; gap: 3px; }
.widget-type-actions { grid-template-columns: 1fr 1fr; gap: 4px; }
.drawer-action { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 0; border-radius: 10px; text-align: left; color: var(--text); background: transparent; font-size: .82rem; }
.drawer-action:hover { background: var(--surface-soft); }
.drawer-action > span:first-child { width: 25px; display: grid; place-items: center; font-size: 1rem; }
.drawer-action > span:nth-child(2) { display: grid; gap: 1px; }
.drawer-action small { color: var(--muted); font-size: .68rem; font-weight: 500; }
.avatar { height: 28px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 900; }
.danger-action { color: var(--danger); }
.logout-form { margin: 3px 0 0; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.theme-choice { display: flex; align-items: center; gap: 7px; padding: 7px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); font-size: .76rem; font-weight: 800; }
.theme-choice:hover, .theme-choice.active { border-color: var(--accent); background: var(--surface-soft); }
.theme-swatch { width: 22px; height: 22px; border-radius: 7px; border: 1px solid rgba(0, 0, 0, .1); }
.theme-swatch.pastel { background: linear-gradient(135deg, #d8c4ec, #c6e4ef); }
.theme-swatch.nature { background: linear-gradient(135deg, #7ba382, #d5dc9f); }
.theme-swatch.love { background: linear-gradient(135deg, #d989a3, #f5c7bd); }
.theme-swatch.blues { background: linear-gradient(135deg, #558bb6, #b8d9ee); }
.theme-swatch.dark { background: linear-gradient(135deg, #24222c, #64597c); }
.theme-swatch.warm { background: linear-gradient(135deg, #b77843, #ead09c); }

.modal { width: 100%; max-width: none; height: 100%; max-height: none; padding: 12px; border: 0; background: transparent; color: var(--text); }
.modal::backdrop { background: rgba(25, 20, 30, .48); backdrop-filter: blur(4px); }
.modal[open] { display: grid; place-items: center; }
.modal-card { width: min(100%, 500px); max-height: calc(100dvh - 24px); overflow-y: auto; display: grid; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-strong); box-shadow: var(--shadow-lg); }
.modal-card-wide { width: min(100%, 660px); }
.modal-header { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.modal-header .eyebrow { margin: 0; }
.modal-header h2 { margin: 2px 0 0; font-size: 1.3rem; }
.modal-actions { display: flex; justify-content: end; gap: 8px; margin-top: 2px; }
.modal-divider { width: 100%; border: 0; border-top: 1px solid var(--border); margin: 2px 0; }
.muted { color: var(--muted); }
.member-list { display: grid; gap: 7px; }
.member-row { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.member-row .avatar { width: 32px; flex: 0 0 32px; display: grid; place-items: center; }
.member-info { min-width: 0; flex: 1; display: grid; gap: 1px; }
.member-info strong, .member-info small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-info small { color: var(--muted); font-size: .75rem; }
.role-chip { padding: 4px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-strong); font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.pending-heading { margin: 10px 0 0; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; }
.pending-invite-actions { display: grid; justify-items: end; gap: 4px; }
.invite-result { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 7px; padding: 10px; border-radius: 11px; background: var(--surface-soft); }
.invite-result label { min-width: 0; }

.saved-list-dialog-card, .list-picker-card { max-height: min(90dvh, 760px); }
.saved-list-items-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.saved-list-items-heading > div { display: grid; gap: 1px; }
.saved-list-items-heading small { color: var(--muted); font-size: .66rem; }
.saved-list-items { display: grid; gap: 6px; }
.saved-list-item-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.saved-list-item-fields { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 6px; }
.saved-list-item-fields input { min-width: 0; padding: 8px 9px; border-radius: 9px; font-size: .78rem; }
.sticky-modal-actions { position: sticky; bottom: -18px; z-index: 2; padding: 9px 0 0; background: linear-gradient(transparent, var(--surface-strong) 28%); }
.list-picker-tools { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.list-picker-items { min-height: 130px; max-height: 48dvh; overflow-y: auto; display: grid; align-content: start; gap: 5px; padding: 1px; }
.list-picker-item { grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: opacity var(--transition), background var(--transition), border-color var(--transition); }
.list-picker-item.selected { opacity: .62; border-color: var(--accent); background: var(--accent-soft); }
.list-picker-item input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--accent); }
.list-picker-item > span { min-width: 0; display: grid; gap: 1px; }
.list-picker-item strong, .list-picker-item small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.list-picker-item strong { font-size: .78rem; }
.list-picker-item small { color: var(--muted); font-size: .66rem; }
.list-picker-empty { min-height: 130px; display: grid; place-items: center; line-height: 1.35; }

.editor-panel { position: fixed; z-index: 60; inset: 0; display: grid; grid-template-rows: auto auto 1fr; color: var(--text); background: var(--bg-pattern); }
.editor-header { min-height: calc(54px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)); display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 7px; background: color-mix(in srgb, var(--surface) 95%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(20px); }
.editor-heading-wrap { min-width: 0; }
.editor-heading-wrap .eyebrow { margin: 0; font-size: .58rem; }
.editor-heading-wrap h2 { margin: 0; font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-header .compact-button { padding: 7px 9px; font-size: .72rem; }
.conflict-banner { padding: 7px 12px; text-align: center; color: var(--danger); background: color-mix(in srgb, var(--danger) 13%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--danger) 25%, var(--border)); font-size: .76rem; font-weight: 700; }
.conflict-banner button { border: 0; color: inherit; text-decoration: underline; background: transparent; font-weight: 900; }
.editor-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.editor-form { width: min(100%, 900px); margin: 0 auto; display: grid; gap: 9px; padding: 9px max(9px, env(safe-area-inset-left)) calc(18px + env(safe-area-inset-bottom)); }
.editor-settings-card, .editor-content-card { padding: 11px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: 0 4px 14px rgba(42, 35, 62, .07); }
.compact-settings { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(125px, .8fr); gap: 9px; align-items: start; }
.editor-form label { gap: 4px; font-size: .76rem; }
.editor-form input, .editor-form select, .editor-form textarea { padding: 8px 9px; border-radius: 9px; font-size: .84rem; }
.editor-form label small { line-height: 1.15; color: var(--muted); font-size: .62rem; }
.form-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.compact-two-column { gap: 8px; }
.editor-content-card h3 { margin: 0; font-size: .9rem; }
.editor-content-card textarea { min-height: 100px; }
.note-textarea { min-height: 190px !important; }
.compact-textarea { min-height: 80px !important; }
.editor-meta { color: var(--muted); font-size: .63rem; text-align: center; }
.editor-save-row { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 7px; border: 1px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--surface-strong) 95%, transparent); box-shadow: var(--shadow-sm); backdrop-filter: blur(18px); }
.editor-save-row #editorSaveStatus { min-width: 0; flex: 1; font-size: .68rem; text-align: right; }
.editor-save-row .primary-button { padding: 8px 15px; }
.editor-form.list-autosave-mode .editor-save-row { min-height: 38px; justify-content: center; }
.editor-form.list-autosave-mode .editor-save-row #editorSaveStatus { flex: 0 1 auto; text-align: center; }
.editor-content-card.sticky-note-editor { border-color: rgba(135, 112, 39, .28); background: linear-gradient(151deg, #fff4a8, #ffe985 72%, #f6dd76); box-shadow: 2px 7px 18px rgba(89, 70, 21, .17); transform: rotate(-.12deg); }
.editor-content-card.sticky-note-editor h3 { color: #514620; font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", ui-rounded, cursive; }
.editor-content-card.sticky-note-editor .note-textarea { min-height: 240px; border-color: transparent; color: #4d421f; background: transparent; box-shadow: none; font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", ui-rounded, cursive; line-height: 1.45; }
.editor-content-card.sticky-note-editor .note-textarea:focus { border-color: rgba(117, 91, 22, .38); box-shadow: 0 0 0 4px rgba(132, 103, 27, .10); }
.compact-field-grid { display: grid; gap: 9px; }
.content-section-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.inline-check { width: fit-content; display: inline-flex; grid-template-columns: none; align-items: center; gap: 6px; color: var(--muted); font-size: .74rem !important; font-weight: 750; }
.inline-check input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--accent); box-shadow: none; }
.auto-archive-check { padding: 7px 8px; border-radius: 9px; background: var(--surface-soft); color: var(--text); }
.compact-empty { margin: 0; padding: 8px; color: var(--muted); text-align: center; font-size: .75rem; }

.list-editor { display: grid; gap: 8px; }
.list-items { display: grid; gap: 5px; }
.list-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-strong); }
.list-item.completed { opacity: .68; }
.list-item-check { width: 18px !important; height: 18px !important; margin: 7px 0 0; padding: 0 !important; accent-color: var(--accent); }
.list-item-fields { min-width: 0; display: grid; gap: 4px; }
.list-item-topline { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px; }
.list-item-topline input:first-child { min-width: 0; font-weight: 750; }
.quantity-input { width: 70px !important; }
.item-note-input { padding-block: 6px !important; color: var(--muted); font-size: .75rem !important; }
.remove-item-button { width: 29px; height: 29px; padding: 0; border: 0; border-radius: 8px; color: var(--danger); background: transparent; font-size: 1.05rem; }
.remove-item-button:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.add-item-button { justify-self: start; padding: 8px 11px; font-size: .75rem; }
.list-editor-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-editor { display: grid; gap: 9px; }
.photo-editor img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 11px; background: var(--surface-soft); }
.photo-placeholder-large { min-height: 145px; display: grid; place-items: center; border: 1px dashed var(--border); border-radius: 11px; color: var(--muted); }
.photo-upload-status { color: var(--muted); font-size: .7rem; }
.member-picker { display: grid; gap: 6px; margin: 0; padding: 8px; border: 1px solid var(--border); border-radius: 10px; }
.member-picker legend { padding: 0 4px; color: var(--text); font-size: .75rem; font-weight: 800; }
.member-chip-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.member-check-chip { width: auto; display: inline-flex; grid-template-columns: none; align-items: center; gap: 5px; padding: 5px 7px 5px 5px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-strong); font-size: .7rem !important; }
.member-check-chip.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.member-check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mini-avatar { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 99px; background: var(--accent); color: #fff; font-size: .62rem; font-weight: 900; }

.poll-editor { display: grid; gap: 8px; }
.poll-vote-grid, .poll-option-editor-list { display: grid; gap: 5px; }
.poll-vote-option { position: relative; overflow: hidden; min-height: 45px; display: grid; gap: 1px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 9px; text-align: left; color: var(--text); background: var(--surface-strong); }
.poll-vote-option.selected { border-color: var(--accent); }
.poll-vote-option > span:not(.poll-result-bar), .poll-vote-option small { position: relative; z-index: 1; }
.poll-vote-option > span:first-child { font-size: .8rem; font-weight: 800; }
.poll-vote-option small { color: var(--muted); font-size: .66rem; }
.poll-result-bar { position: absolute; z-index: 0; inset: 0 auto 0 0; width: var(--poll-width); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.compact-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px; }

.recurrence-preview { padding: 7px 9px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); font-size: .72rem; font-weight: 750; }
.recurring-personal-control { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-strong); }
.recurring-personal-control > div { min-width: 0; display: grid; gap: 1px; }
.recurring-personal-control strong { font-size: .76rem; }
.recurring-personal-control small { color: var(--muted); font-size: .64rem; line-height: 1.2; }
.recurring-personal-control button { padding: 7px 9px; font-size: .68rem; white-space: nowrap; }
.joke-editor { display: grid; gap: 8px; }
.joke-mode-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.joke-mode-heading h3 { margin: 0; }
.joke-edit-button, .joke-reset-button { padding: 7px 10px; font-size: .7rem; white-space: nowrap; }
.joke-edit-help { margin: -2px 0 0; color: var(--muted); font-size: .69rem; line-height: 1.3; }
.joke-teller { display: grid; gap: 5px; padding: 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-strong); }
.joke-line { width: fit-content; max-width: 92%; padding: 6px 8px; border: 0; border-radius: 9px 9px 9px 3px; text-align: left; color: var(--text); background: var(--surface-soft); font-size: .8rem; line-height: 1.25; }
.joke-line.was-hidden { justify-self: end; border-radius: 9px 9px 3px 9px; background: var(--accent-soft); color: var(--accent-strong); }
.joke-line.censored { min-width: 108px; overflow: hidden; color: color-mix(in srgb, var(--accent-strong) 42%, transparent); letter-spacing: .06em; filter: blur(.7px); user-select: none; }
.joke-line.censored.revealable { cursor: pointer; outline: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); }
.joke-line.censored.revealable:hover { filter: blur(.3px); }
.joke-line.censored:disabled { opacity: .62; }
.joke-line-editor-list { display: grid; gap: 5px; }
.joke-line-editor { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 5px; }
.small-check { min-width: 59px; justify-content: center; padding: 5px; border-radius: 8px; background: var(--surface-soft); }

.calendar-view { padding-top: 9px; }
.calendar-topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.calendar-topbar .eyebrow { margin: 0; font-size: .6rem; }
.calendar-topbar h1 { margin: 0; font-size: 1.2rem; }
.calendar-date-nav { display: flex; align-items: center; gap: 2px; }
.calendar-date-nav .compact-button { padding: 7px 9px; font-size: .72rem; }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0; }
.calendar-toolbar h2 { min-width: 0; margin: 0; overflow: hidden; font-size: .87rem; white-space: nowrap; text-overflow: ellipsis; }
.calendar-view-buttons { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--surface-soft); }
.calendar-view-buttons button { padding: 5px 7px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: .66rem; font-weight: 850; }
.calendar-view-buttons button.active { color: var(--accent-strong); background: var(--surface-strong); box-shadow: 0 2px 7px rgba(0,0,0,.08); }
.calendar-content { min-height: 250px; }
.calendar-list { display: grid; gap: 8px; }
.calendar-list-day { display: grid; gap: 4px; }
.calendar-list-day > h3, .calendar-day-section > h3 { position: sticky; top: 0; z-index: 2; margin: 0; padding: 5px 2px; color: var(--muted); background: color-mix(in srgb, var(--bg) 90%, transparent); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.calendar-event-row { width: 100%; min-height: 45px; display: grid; grid-template-columns: 58px 28px minmax(0,1fr); align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; text-align: left; color: var(--text); background: var(--surface); }
.calendar-event-row:hover { border-color: var(--accent); }
.calendar-event-time { color: var(--muted); font-size: .67rem; font-weight: 750; }
.calendar-event-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); font-size: .82rem; }
.calendar-event-info { min-width: 0; display: grid; gap: 1px; }
.calendar-event-info strong, .calendar-event-info small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.calendar-event-info strong { font-size: .78rem; }
.calendar-event-info small { color: var(--muted); font-size: .66rem; }
.calendar-day-view { display: grid; gap: 9px; }
.calendar-day-section { display: grid; gap: 4px; }
.calendar-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; }
.calendar-week-day { min-width: 0; min-height: 250px; display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.calendar-week-day.today { border-color: var(--accent); }
.calendar-week-day > h3 { display: grid; justify-items: center; gap: 1px; margin: 0 0 2px; color: var(--muted); font-size: .58rem; text-transform: uppercase; }
.calendar-week-day > h3 strong { color: var(--text); font-size: .86rem; }
.calendar-day-view, .calendar-week-time-view { --calendar-hour-height: 48px; }
.calendar-all-day-strip { display: grid; align-items: stretch; margin-bottom: 5px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.calendar-all-day-strip.day { grid-template-columns: 54px minmax(0,1fr); }
.calendar-all-day-strip.week { grid-template-columns: 54px repeat(7, minmax(0,1fr)); }
.calendar-all-day-label { display: grid; place-items: center; padding: 5px 2px; border-right: 1px solid var(--border); color: var(--muted); font-size: .57rem; font-weight: 850; text-transform: uppercase; }
.calendar-all-day-cell { min-width: 0; min-height: 34px; display: grid; align-content: start; gap: 2px; padding: 3px; border-right: 1px solid var(--border); }
.calendar-all-day-cell:last-child { border-right: 0; }
.calendar-time-grid { display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: start; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.calendar-time-axis { position: relative; height: calc(24 * var(--calendar-hour-height)); display: grid; grid-template-rows: repeat(24, var(--calendar-hour-height)); background: var(--surface-soft); }
.calendar-hour-label { display: flex; justify-content: flex-end; align-items: flex-start; padding: 2px 6px 0 2px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .56rem; font-weight: 750; white-space: nowrap; }
.calendar-day-end-label { position: absolute; right: 6px; bottom: 1px; color: var(--muted); font-size: .52rem; font-weight: 750; white-space: nowrap; }
.calendar-time-track { position: relative; height: calc(24 * var(--calendar-hour-height)); min-width: 0; border-left: 1px solid var(--border); background: var(--surface); }
.calendar-hour-slot { height: var(--calendar-hour-height); border-bottom: 1px solid var(--border); }
.calendar-hour-slot:nth-child(2n) { background: color-mix(in srgb, var(--surface-soft) 38%, transparent); }
.calendar-timed-event { position: absolute; z-index: 2; left: calc(4px + var(--collision-offset, 0px)); right: 4px; min-height: 34px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 5px; overflow: hidden; padding: 4px 6px; border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border)); border-radius: 7px; text-align: left; color: var(--accent-strong); background: color-mix(in srgb, var(--accent-soft) 92%, var(--surface)); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.calendar-timed-event strong { min-width: 0; overflow: hidden; font-size: .7rem; white-space: nowrap; text-overflow: ellipsis; }
.calendar-timed-event small { color: var(--muted); font-size: .58rem; white-space: nowrap; }
.calendar-week-time-view { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.calendar-week-time-header { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 54px repeat(7, minmax(0,1fr)); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(12px); }
.calendar-week-time-header > span { display: grid; place-items: center; color: var(--muted); font-size: .56rem; font-weight: 850; text-transform: uppercase; }
.calendar-week-time-day { min-width: 0; display: grid; justify-items: center; gap: 0; padding: 4px 1px; border-left: 1px solid var(--border); color: var(--muted); font-size: .55rem; text-transform: uppercase; }
.calendar-week-time-day strong { color: var(--text); font-size: .78rem; }
.calendar-week-time-day.today { color: var(--accent-strong); background: var(--accent-soft); }
.calendar-week-time-view > .calendar-all-day-strip { margin: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.calendar-week-time-body { display: grid; grid-template-columns: 54px repeat(7, minmax(0,1fr)); align-items: start; }
.calendar-week-time-body .calendar-time-axis { border-right: 0; }
.calendar-week-time-body .calendar-time-track { border-left: 1px solid var(--border); }
.calendar-timed-event.compact { left: calc(2px + var(--collision-offset, 0px)); right: 2px; min-height: 28px; grid-template-columns: auto minmax(0,1fr); gap: 2px; padding: 3px; border-radius: 5px; }
.calendar-timed-event.compact strong { font-size: .53rem; line-height: 1.05; }
.calendar-timed-event.compact span { font-size: .58rem; }
.calendar-event-pill { width: 100%; overflow: hidden; padding: 4px; border: 0; border-radius: 6px; text-align: left; color: var(--accent-strong); background: var(--accent-soft); font-size: .56rem; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; }
.week-day-empty { margin: auto; color: var(--muted); }
.calendar-month { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.calendar-month-weekday { padding: 7px 5px; border-bottom: 1px solid var(--border); color: var(--muted); text-align: center; font-size: .66rem; font-weight: 850; }
.calendar-month-day { min-width: 0; min-height: 100px; display: flex; flex-direction: column; gap: 3px; padding: 5px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.calendar-month-day:nth-child(7n + 7) { border-right: 0; }
.calendar-month-day.outside-month { opacity: .45; background: var(--surface-soft); }
.calendar-month-day.today > strong { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 99px; color: #fff; background: var(--accent); }
.calendar-month-day > strong { font-size: .72rem; }
.month-more { color: var(--muted); font-size: .56rem; }
.calendar-empty { min-height: 45vh; display: grid; place-items: center; align-content: center; gap: 5px; color: var(--muted); text-align: center; }
.calendar-empty span { font-size: 2rem; }
.calendar-empty p { margin: 0; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 10px); transform: translateX(-50%); max-width: min(90vw, 520px); padding: 9px 12px; border-radius: 10px; color: #fff; background: #2e2a35; box-shadow: var(--shadow-lg); font-weight: 700; font-size: .78rem; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }

@media (min-width: 700px) {
  .app-page { --header-height: 64px; --nav-height: 68px; }
  .app-header { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); grid-template-columns: 42px 1fr auto; }
  .app-title { font-size: 1.22rem; }
  .canvas-view, .calendar-view, .list-data-view { padding: 14px max(18px, env(safe-area-inset-left)) 110px max(18px, env(safe-area-inset-right)); }
  .view-heading { min-height: 42px; margin-bottom: 10px; }
  .view-heading h1 { font-size: 1.3rem; }
  .view-heading .compact-button { width: auto; height: auto; padding: 8px 10px; }
  .view-heading .compact-button span { display: inline; }
  .canvas-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px; }
  .list-data-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
  .widget-card { height: 150px; }
  .widget-card-main { padding: 10px 10px 4px; }
  .widget-title { font-size: .92rem; }
  .widget-preview { font-size: .77rem; }
  .bottom-nav { left: 50%; right: auto; bottom: 14px; transform: translateX(-50%); width: min(520px, calc(100% - 36px)); height: var(--nav-height); padding: 0 8px; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); }
  .app-main { bottom: 0; }
  .toast { bottom: 96px; }
  .editor-form { padding-top: 13px; }
}

@media (min-width: 1000px) {
  .canvas-grid { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px; }
  .list-data-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
  .widget-card { height: 158px; }
  .calendar-month-day { min-height: 116px; }
}

@media (max-width: 899px) and (orientation: portrait) {
  .calendar-view-buttons [data-calendar-mode="week"],
  .calendar-view-buttons [data-calendar-mode="month"] { display: none; }
  .calendar-month { display: none; }
}

@media (max-width: 899px) and (orientation: landscape) {
  .app-page { --header-height: 48px; --nav-height: 54px; }
  .calendar-view { padding-top: 5px; }
  .calendar-topbar .eyebrow, .calendar-topbar h1 { display: none; }
  .calendar-toolbar { margin: 3px 0 5px; }
  .calendar-view-buttons [data-calendar-mode="list"],
  .calendar-view-buttons [data-calendar-mode="day"],
  .calendar-view-buttons [data-calendar-mode="month"] { display: none; }
  .calendar-week-time-view { font-size: .9em; }
  .calendar-timed-event.compact strong { font-size: .5rem; }
}


.selection-editor { display: grid; gap: 11px; }
.selection-question { margin: 0; font-size: .95rem; font-weight: 800; line-height: 1.4; }
.selection-choice-area { display: grid; gap: 7px; }
.selection-choice-area > label { display: grid; gap: 5px; }
.selection-choice-list { display: grid; gap: 7px; margin: 0; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-strong); }
.selection-choice-list legend { padding: 0 5px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.selection-choice { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); cursor: pointer; }
.selection-choice input { width: 17px; height: 17px; margin: 0; flex: 0 0 auto; }
.selection-choice span { font-size: .8rem; font-weight: 700; }
.selection-clear-button { justify-self: start; padding: 5px 2px; }
.selection-results { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.selection-results h4 { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.selection-result-row { display: grid; grid-template-columns: minmax(90px, .65fr) minmax(0, 1fr); gap: 8px; align-items: baseline; }
.selection-result-row strong { font-size: .76rem; }
.selection-result-row span { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.selection-options-panel { display: grid; gap: 8px; padding: 10px; border: 1px dashed var(--border); border-radius: 10px; background: color-mix(in srgb, var(--surface-soft) 82%, transparent); }
.selection-options-panel > h3 { margin: 0; }
.selection-question-input { min-height: 92px; }
.selection-option-editor-list { display: grid; gap: 5px; }
.selection-edit-options-button { justify-self: start; padding: 7px 10px; font-size: .72rem; }

@media (max-width: 520px) {
  .selection-result-row { grid-template-columns: 1fr; gap: 2px; }
  input, select, textarea,
  .editor-form input, .editor-form select, .editor-form textarea,
  .item-note-input { font-size: 16px !important; }
  .sync-indicator span:last-child { display: none; }
  .compact-settings { grid-template-columns: minmax(0,1.45fr) minmax(110px,.8fr); gap: 6px; }
  .editor-settings-card, .editor-content-card { padding: 9px; }
  .editor-form { gap: 7px; padding-inline: max(7px, env(safe-area-inset-left)); }
  .editor-save-row { gap: 6px; }
  .editor-save-row #editorSaveStatus { font-size: .62rem; }
  .modal { padding: 0; }
  .modal[open] { align-items: end; }
  .modal-card { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; border-bottom: 0; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .modal-actions > button { flex: 1; }
  .invite-result { grid-template-columns: 1fr; }
  .nav-button { font-size: .55rem; }
  .nav-button svg { width: 19px; height: 19px; }
  .list-data-topbar { align-items: start; }
  .list-data-topbar p:last-child { max-width: 230px; }
  .list-data-scope-tabs { width: 100%; }
  .list-data-scope-tabs button { min-width: 0; }
  .saved-list-item-fields { grid-template-columns: 1fr; }
  .saved-list-dialog-card, .list-picker-card { gap: 10px; }
  .pending-invite-actions .compact-secondary { padding: 6px 7px; font-size: .61rem; }
  .calendar-topbar h1 { font-size: 1.05rem; }
  .calendar-event-row { grid-template-columns: 52px 25px minmax(0,1fr); padding-inline: 6px; }
  .recurring-personal-control { grid-template-columns: 1fr; }
  .recurring-personal-control button { justify-self: start; }
}

@media (max-width: 370px) {
  .widget-card { height: 126px; }
  .widget-title { font-size: .78rem; }
  .compact-settings { grid-template-columns: 1fr; }
  .widget-type-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.offline-link { display: inline-block; text-decoration: none; text-align: center; }

/* Widget refinements */
.widget-card-footer { height: 39px; flex-basis: 39px; padding: 5px 8px 5px 11px; }
.widget-type-label { font-size: .7rem; }
.card-action { width: 32px; height: 32px; }
.card-action svg { width: 17px; height: 17px; }
.countdown-decoration { bottom: 40px; }

.auto-archive-controls { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.auto-archive-title { font-size: .76rem; font-weight: 850; }
.auto-archive-quick-row { display: flex; flex-wrap: wrap; gap: 5px; }
.auto-archive-chip { padding: 6px 9px; border: 1px solid var(--border); border-radius: 99px; color: var(--accent-strong); background: var(--surface-strong); font-size: .68rem; font-weight: 800; }
.auto-archive-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.auto-archive-date-row { display: flex; align-items: center; gap: 7px; }
.auto-archive-date { width: min(220px, 100%); }
.auto-archive-clear { padding: 6px 8px; }
.auto-archive-controls small { color: var(--muted); font-size: .64rem; }

.list-header-actions { display: flex; align-items: center; gap: 7px; }
.tidy-list-button { padding: 6px 9px; font-size: .68rem; white-space: nowrap; }

.note-editor-header { align-items: flex-start; }
.note-color-picker { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.note-color-swatch { width: 25px; height: 25px; padding: 0; border: 2px solid rgba(0,0,0,.09); border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.note-color-swatch.selected { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.note-color-swatch[data-color="yellow"] { background: #ffe985; }
.note-color-swatch[data-color="pink"] { background: #ffc6dc; }
.note-color-swatch[data-color="blue"] { background: #bfe5ff; }
.note-color-swatch[data-color="green"] { background: #c9efb5; }
.note-color-swatch[data-color="purple"] { background: #dcc9ff; }
.note-color-swatch[data-color="orange"] { background: #ffd19a; }

.widget-card.widget-note[data-note-color="pink"] { background: linear-gradient(151deg, #ffe0eb, #ffc6dc 70%, #f4abc9); }
.widget-card.widget-note[data-note-color="blue"] { background: linear-gradient(151deg, #ddf2ff, #bfe5ff 70%, #9dd3f4); }
.widget-card.widget-note[data-note-color="green"] { background: linear-gradient(151deg, #e0f7d5, #c9efb5 70%, #a9dd90); }
.widget-card.widget-note[data-note-color="purple"] { background: linear-gradient(151deg, #eee5ff, #dcc9ff 70%, #c2a8ef); }
.widget-card.widget-note[data-note-color="orange"] { background: linear-gradient(151deg, #ffe5c5, #ffd19a 70%, #f0b96f); }
.widget-card.widget-note[data-note-color="pink"] .widget-card-footer { background: rgba(255, 207, 226, .72); }
.widget-card.widget-note[data-note-color="blue"] .widget-card-footer { background: rgba(202, 234, 255, .72); }
.widget-card.widget-note[data-note-color="green"] .widget-card-footer { background: rgba(211, 242, 195, .72); }
.widget-card.widget-note[data-note-color="purple"] .widget-card-footer { background: rgba(226, 211, 255, .72); }
.widget-card.widget-note[data-note-color="orange"] .widget-card-footer { background: rgba(255, 216, 170, .72); }

.editor-content-card.sticky-note-editor[data-note-color="pink"] { background: linear-gradient(151deg, #ffe0eb, #ffc6dc 72%, #f4abc9); }
.editor-content-card.sticky-note-editor[data-note-color="blue"] { background: linear-gradient(151deg, #ddf2ff, #bfe5ff 72%, #9dd3f4); }
.editor-content-card.sticky-note-editor[data-note-color="green"] { background: linear-gradient(151deg, #e0f7d5, #c9efb5 72%, #a9dd90); }
.editor-content-card.sticky-note-editor[data-note-color="purple"] { background: linear-gradient(151deg, #eee5ff, #dcc9ff 72%, #c2a8ef); }
.editor-content-card.sticky-note-editor[data-note-color="orange"] { background: linear-gradient(151deg, #ffe5c5, #ffd19a 72%, #f0b96f); }

.poll-edit-options-button { justify-self: start; padding: 7px 10px; font-size: .72rem; }
.poll-options-panel { display: grid; gap: 6px; padding-top: 2px; }

.joke-reveal-instruction { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 11px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border)); border-radius: 9px; background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface-strong)); color: var(--text); font-size: .75rem; font-weight: 750; line-height: 1.3; text-align: center; }
.joke-teller { display: flex; flex-direction: column; align-items: stretch; gap: 7px; padding: 14px; text-align: center; }
.joke-line, .joke-line.was-hidden { width: 100%; max-width: none; justify-self: auto; padding: 8px 10px; border-radius: 8px; text-align: center; background: transparent; color: var(--text); }
.joke-line.was-hidden { background: transparent; color: var(--text); }
.joke-line.censored { margin: 0 auto; background: var(--accent-soft); color: color-mix(in srgb, var(--accent-strong) 50%, transparent); filter: none; }
.joke-line.censored.revealable { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; min-height: 48px; border: 2px dashed color-mix(in srgb, var(--accent) 82%, var(--accent-strong)); background: color-mix(in srgb, var(--accent-soft) 84%, var(--surface-strong)); box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 16%, transparent); cursor: pointer; }
.joke-line.censored.revealable:hover { filter: none; transform: translateY(-1px); box-shadow: 0 5px 14px color-mix(in srgb, var(--accent) 24%, transparent); }
.joke-line.censored.revealable:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.joke-blurred-text { display: inline-block; max-width: 100%; color: var(--text); filter: blur(6px); opacity: .82; user-select: none; pointer-events: none; transform: translateZ(0); }
.joke-reveal-label { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border-radius: 999px; background: var(--accent-strong); color: var(--surface-strong); font-size: .7rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.joke-reset-button { justify-self: center; }

@media (max-width: 520px) {
  .content-section-header { align-items: flex-start; }
  .list-header-actions { flex-direction: column; align-items: flex-end; gap: 5px; }
}
.auto-archive-controls[hidden] { display: none !important; }


/* Shared widget appearance controls and attention animations. */
.widget-card.widget-custom-background {
  background: linear-gradient(145deg, color-mix(in srgb, var(--widget-custom-bg) 84%, white), var(--widget-custom-bg)) !important;
  color: var(--widget-custom-text) !important;
  border-color: color-mix(in srgb, var(--widget-custom-text) 20%, var(--widget-custom-bg)) !important;
}
.widget-card.widget-custom-background .widget-card-main,
.widget-card.widget-custom-background .widget-title { color: var(--widget-custom-text) !important; }
.widget-card.widget-custom-background .widget-preview,
.widget-card.widget-custom-background .widget-list-preview li,
.widget-card.widget-custom-background .widget-type-label,
.widget-card.widget-custom-background .card-action { color: color-mix(in srgb, var(--widget-custom-text) 74%, transparent) !important; }
.widget-card.widget-custom-background .widget-mini-meta { color: var(--widget-custom-text) !important; opacity: .78; }
.widget-card.widget-custom-background .widget-type-icon { background: color-mix(in srgb, var(--widget-custom-text) 13%, transparent); }
.widget-card.widget-custom-background .widget-card-footer {
  background: color-mix(in srgb, var(--widget-custom-text) 8%, transparent) !important;
  border-top-color: color-mix(in srgb, var(--widget-custom-text) 16%, transparent) !important;
}

.countdown-display { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; text-align: center; }
.countdown-number { display: block; font-size: clamp(2.05rem, 11vw, 3rem); font-weight: 950; line-height: .82; letter-spacing: -.07em; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.countdown-number-word { font-size: clamp(1.42rem, 7.8vw, 2.15rem); letter-spacing: -.045em; }
.countdown-unit { align-self: flex-end; margin-bottom: 4px; max-width: 48px; font-size: .56rem; font-weight: 950; line-height: .92; letter-spacing: .055em; color: var(--muted); text-align: left; }
.widget-card.widget-custom-background .countdown-number,
.widget-card.widget-custom-background .countdown-unit { color: var(--widget-custom-text); }

.widget-option-section { display: grid; gap: 6px; }
.widget-option-section + .widget-option-section { padding-top: 9px; border-top: 1px solid var(--border); }
.widget-option-label { font-size: .7rem; font-weight: 800; color: var(--muted); }
.widget-background-swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.widget-background-swatch { position: relative; width: 29px; height: 29px; padding: 0; border: 2px solid transparent; border-radius: 9px; background: var(--swatch-color, var(--surface-strong)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent); }
.widget-background-swatch.default-swatch { background: linear-gradient(135deg, var(--surface-strong) 0 42%, var(--accent-soft) 42% 58%, var(--surface-strong) 58%); }
.widget-background-swatch.selected { border-color: var(--accent-strong); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.widget-custom-color-row { width: max-content; display: flex !important; grid-template-columns: none !important; flex-direction: row; align-items: center; gap: 8px !important; font-size: .7rem !important; font-weight: 800; color: var(--muted); }
.widget-custom-color-row input[type="color"] { width: 42px; height: 30px; padding: 2px; border-radius: 8px; cursor: pointer; }
.widget-animation-field { max-width: 320px; }

.widget-animation-vibrate,
.widget-animation-wiggle,
.widget-animation-pulse,
.widget-animation-bounce,
.widget-animation-glow,
.widget-animation-tilt {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-origin: center center;
  transform-origin: center center;
  will-change: transform, box-shadow;
  -webkit-animation-play-state: running !important;
  animation-play-state: running !important;
  -webkit-animation-iteration-count: infinite !important;
  animation-iteration-count: infinite !important;
}
.widget-animation-vibrate {
  -webkit-animation-name: widget-vibrate;
  animation-name: widget-vibrate;
  -webkit-animation-duration: 2.4s !important;
  animation-duration: 2.4s !important;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
}
.widget-animation-wiggle {
  -webkit-animation-name: widget-wiggle;
  animation-name: widget-wiggle;
  -webkit-animation-duration: 3s !important;
  animation-duration: 3s !important;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
}
.widget-animation-pulse {
  -webkit-animation-name: widget-pulse;
  animation-name: widget-pulse;
  -webkit-animation-duration: 2s !important;
  animation-duration: 2s !important;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
}
.widget-animation-bounce {
  -webkit-animation-name: widget-bounce;
  animation-name: widget-bounce;
  -webkit-animation-duration: 2.8s !important;
  animation-duration: 2.8s !important;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
}
.widget-animation-glow {
  -webkit-animation-name: widget-glow;
  animation-name: widget-glow;
  -webkit-animation-duration: 2.4s !important;
  animation-duration: 2.4s !important;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
}
.widget-animation-tilt {
  -webkit-animation-name: widget-tilt;
  animation-name: widget-tilt;
  -webkit-animation-duration: 3.2s !important;
  animation-duration: 3.2s !important;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
}

@-webkit-keyframes widget-vibrate {
  0%, 18%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  2%, 6%, 10%, 14% { -webkit-transform: translate3d(-1.5px, 1px, 0); transform: translate3d(-1.5px, 1px, 0); }
  4%, 8%, 12%, 16% { -webkit-transform: translate3d(1.5px, -1px, 0); transform: translate3d(1.5px, -1px, 0); }
}
@keyframes widget-vibrate {
  0%, 18%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  2%, 6%, 10%, 14% { -webkit-transform: translate3d(-1.5px, 1px, 0); transform: translate3d(-1.5px, 1px, 0); }
  4%, 8%, 12%, 16% { -webkit-transform: translate3d(1.5px, -1px, 0); transform: translate3d(1.5px, -1px, 0); }
}
@-webkit-keyframes widget-wiggle {
  0%, 22%, 100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  4%, 12%, 20% { -webkit-transform: rotate(-1.7deg); transform: rotate(-1.7deg); }
  8%, 16% { -webkit-transform: rotate(1.7deg); transform: rotate(1.7deg); }
}
@keyframes widget-wiggle {
  0%, 22%, 100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  4%, 12%, 20% { -webkit-transform: rotate(-1.7deg); transform: rotate(-1.7deg); }
  8%, 16% { -webkit-transform: rotate(1.7deg); transform: rotate(1.7deg); }
}
@-webkit-keyframes widget-pulse {
  0%, 100% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); }
  50% { -webkit-transform: scale3d(1.045, 1.045, 1); transform: scale3d(1.045, 1.045, 1); }
}
@keyframes widget-pulse {
  0%, 100% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); }
  50% { -webkit-transform: scale3d(1.045, 1.045, 1); transform: scale3d(1.045, 1.045, 1); }
}
@-webkit-keyframes widget-bounce {
  0%, 18%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  7% { -webkit-transform: translate3d(0, -5px, 0); transform: translate3d(0, -5px, 0); }
  12% { -webkit-transform: translate3d(0, 1px, 0); transform: translate3d(0, 1px, 0); }
}
@keyframes widget-bounce {
  0%, 18%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  7% { -webkit-transform: translate3d(0, -5px, 0); transform: translate3d(0, -5px, 0); }
  12% { -webkit-transform: translate3d(0, 1px, 0); transform: translate3d(0, 1px, 0); }
}
@-webkit-keyframes widget-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(42, 35, 62, .08); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent), 0 10px 26px color-mix(in srgb, var(--accent) 34%, transparent); }
}
@keyframes widget-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(42, 35, 62, .08); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent), 0 10px 26px color-mix(in srgb, var(--accent) 34%, transparent); }
}
@-webkit-keyframes widget-tilt {
  0%, 100% { -webkit-transform: rotate(-1deg); transform: rotate(-1deg); }
  50% { -webkit-transform: rotate(1deg); transform: rotate(1deg); }
}
@keyframes widget-tilt {
  0%, 100% { -webkit-transform: rotate(-1deg); transform: rotate(-1deg); }
  50% { -webkit-transform: rotate(1deg); transform: rotate(1deg); }
}
