:root {
    --page-bg: #f4f5fb;
    --page-accent: #5f8fd5;
    --page-accent-soft: #e9f0ff;
    --page-secondary: #dfe8fb;
    --page-panel: rgba(236, 240, 252, 0.92);
    --page-card: rgba(232, 238, 251, 0.94);
    --page-white: #ffffff;
    --page-line: rgba(98, 114, 152, 0.12);
    --page-text: #262d38;
    --page-muted: #7a8499;
    --page-shadow: 0 20px 45px rgba(108, 124, 164, 0.12);
    --page-radius-xl: 30px;
    --page-radius-lg: 24px;
    --page-radius-md: 18px;
    --page-container: 1360px;
    --page-bg-left-glow: rgba(196, 215, 255, 0.5);
    --page-bg-right-glow: rgba(227, 235, 255, 0.72);
    --page-bg-top: #f6f7fc;
    --page-bg-bottom: #f2f4fb;
    --page-ambient-left: rgba(173, 199, 246, 0.72);
    --page-ambient-right: rgba(229, 236, 255, 0.92);
    --page-brand: #5f84bb;
    --page-surface: rgba(255, 255, 255, 0.75);
    --page-surface-strong: rgba(255, 255, 255, 0.94);
    --page-surface-border: rgba(255, 255, 255, 0.85);
    --page-surface-shadow: 0 10px 20px rgba(120, 132, 159, 0.08);
    --page-surface-shadow-strong: 0 28px 68px rgba(22, 28, 45, 0.18);
    --page-modal-surface: rgba(255, 255, 255, 0.86);
    --page-modal-border: rgba(255, 255, 255, 0.92);
    --page-backdrop: rgba(15, 21, 32, 0.54);
    --page-avatar-start: #f9e4c7;
    --page-avatar-end: #fff8ea;
    --page-option-surface: rgba(236, 241, 249, 0.92);
    --page-helper-surface: rgba(255, 255, 255, 0.82);
    --page-subtle-surface: rgba(244, 247, 255, 0.88);
    --page-input-surface: rgba(250, 251, 255, 0.96);
    --page-theme-panel: rgba(255, 255, 255, 0.92);
    --page-theme-panel-border: rgba(255, 255, 255, 0.88);
    --page-theme-panel-shadow: 0 18px 36px rgba(22, 28, 45, 0.14);
}

body[data-site-theme="sunrise"] {
    --page-bg: #f8efe8;
    --page-accent: #da8f61;
    --page-accent-soft: #fbe3d0;
    --page-secondary: #f3dfd3;
    --page-panel: rgba(247, 237, 231, 0.9);
    --page-card: rgba(250, 242, 237, 0.92);
    --page-line: rgba(163, 122, 104, 0.14);
    --page-text: #3e3435;
    --page-muted: #8f7775;
    --page-shadow: 0 20px 45px rgba(165, 123, 109, 0.14);
    --page-bg-left-glow: rgba(255, 209, 172, 0.42);
    --page-bg-right-glow: rgba(213, 229, 255, 0.46);
    --page-bg-top: #fff4ec;
    --page-bg-bottom: #f6ede8;
    --page-ambient-left: rgba(255, 195, 156, 0.56);
    --page-ambient-right: rgba(189, 212, 255, 0.52);
    --page-brand: #a26d5b;
    --page-surface: rgba(255, 250, 245, 0.76);
    --page-surface-strong: rgba(255, 252, 248, 0.94);
    --page-surface-border: rgba(255, 248, 241, 0.88);
    --page-surface-shadow: 0 10px 20px rgba(171, 128, 111, 0.08);
    --page-surface-shadow-strong: 0 28px 68px rgba(143, 96, 79, 0.16);
    --page-modal-surface: rgba(255, 250, 246, 0.9);
    --page-modal-border: rgba(255, 249, 244, 0.92);
    --page-backdrop: rgba(67, 43, 35, 0.34);
    --page-avatar-start: #f7d8b7;
    --page-avatar-end: #fff2e1;
    --page-option-surface: rgba(249, 234, 223, 0.92);
    --page-helper-surface: rgba(255, 249, 243, 0.84);
    --page-subtle-surface: rgba(250, 242, 236, 0.9);
    --page-input-surface: rgba(255, 251, 247, 0.96);
    --page-theme-panel: rgba(255, 249, 244, 0.94);
    --page-theme-panel-border: rgba(255, 248, 242, 0.9);
    --page-theme-panel-shadow: 0 18px 36px rgba(143, 96, 79, 0.12);
}

body[data-site-theme="sunset"] {
    --page-bg: #f4e4de;
    --page-accent: #c57054;
    --page-accent-soft: #f5d8cf;
    --page-secondary: #eed8d3;
    --page-panel: rgba(242, 228, 225, 0.9);
    --page-card: rgba(246, 236, 233, 0.92);
    --page-line: rgba(144, 99, 98, 0.16);
    --page-text: #392f37;
    --page-muted: #7f6a77;
    --page-shadow: 0 20px 45px rgba(141, 100, 102, 0.16);
    --page-bg-left-glow: rgba(255, 181, 137, 0.36);
    --page-bg-right-glow: rgba(194, 171, 230, 0.38);
    --page-bg-top: #fbede6;
    --page-bg-bottom: #f0e1dd;
    --page-ambient-left: rgba(255, 166, 120, 0.5);
    --page-ambient-right: rgba(186, 169, 236, 0.48);
    --page-brand: #98657a;
    --page-surface: rgba(255, 247, 244, 0.76);
    --page-surface-strong: rgba(255, 249, 247, 0.94);
    --page-surface-border: rgba(255, 244, 241, 0.88);
    --page-surface-shadow: 0 10px 20px rgba(134, 99, 101, 0.08);
    --page-surface-shadow-strong: 0 28px 68px rgba(118, 81, 86, 0.16);
    --page-modal-surface: rgba(255, 248, 245, 0.9);
    --page-modal-border: rgba(255, 244, 241, 0.92);
    --page-backdrop: rgba(54, 34, 39, 0.4);
    --page-avatar-start: #f4cfb6;
    --page-avatar-end: #f8ebdd;
    --page-option-surface: rgba(245, 228, 224, 0.92);
    --page-helper-surface: rgba(255, 248, 245, 0.84);
    --page-subtle-surface: rgba(246, 236, 233, 0.9);
    --page-input-surface: rgba(255, 250, 247, 0.96);
    --page-theme-panel: rgba(255, 248, 245, 0.94);
    --page-theme-panel-border: rgba(255, 243, 239, 0.9);
    --page-theme-panel-shadow: 0 18px 36px rgba(118, 81, 86, 0.12);
}

body[data-site-theme="night"] {
    color-scheme: dark;
    --page-bg: #0f1728;
    --page-accent: #86aeea;
    --page-accent-soft: rgba(75, 109, 171, 0.24);
    --page-secondary: rgba(28, 41, 66, 0.96);
    --page-panel: rgba(14, 24, 40, 0.94);
    --page-card: rgba(16, 27, 45, 0.96);
    --page-line: rgba(121, 145, 191, 0.26);
    --page-text: #edf2ff;
    --page-muted: #93a2bf;
    --page-shadow: 0 24px 56px rgba(2, 7, 18, 0.42);
    --page-bg-left-glow: rgba(54, 84, 149, 0.22);
    --page-bg-right-glow: rgba(82, 41, 112, 0.18);
    --page-bg-top: #111a2d;
    --page-bg-bottom: #0b1220;
    --page-ambient-left: rgba(68, 98, 165, 0.34);
    --page-ambient-right: rgba(101, 70, 165, 0.28);
    --page-brand: #b7c9ee;
    --page-surface: rgba(16, 27, 45, 0.92);
    --page-surface-strong: rgba(20, 32, 54, 0.98);
    --page-surface-border: rgba(83, 108, 156, 0.36);
    --page-surface-shadow: 0 12px 24px rgba(2, 7, 18, 0.26);
    --page-surface-shadow-strong: 0 28px 68px rgba(2, 7, 18, 0.48);
    --page-modal-surface: rgba(12, 20, 35, 0.96);
    --page-modal-border: rgba(83, 108, 156, 0.22);
    --page-backdrop: rgba(3, 7, 15, 0.72);
    --page-avatar-start: #1f3657;
    --page-avatar-end: #17304a;
    --page-option-surface: rgba(23, 37, 61, 0.98);
    --page-helper-surface: rgba(18, 30, 49, 0.96);
    --page-subtle-surface: rgba(20, 32, 52, 0.96);
    --page-input-surface: rgba(16, 27, 45, 0.98);
    --page-theme-panel: rgba(12, 20, 35, 0.96);
    --page-theme-panel-border: rgba(83, 108, 156, 0.24);
    --page-theme-panel-shadow: 0 18px 36px rgba(2, 7, 18, 0.34);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--page-text);
    background:
        radial-gradient(circle at top left, var(--page-bg-left-glow), transparent 28%),
        radial-gradient(circle at top right, var(--page-bg-right-glow), transparent 32%),
        linear-gradient(180deg, var(--page-bg-top) 0%, var(--page-bg-bottom) 100%);
    font-family: "Manrope", sans-serif;
    transition: background 320ms ease, color 220ms ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

svg {
    display: block;
}

.ambient {
    position: fixed;
    z-index: 0;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.65;
    pointer-events: none;
}

.ambient-left {
    top: 2rem;
    left: -8rem;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, var(--page-ambient-left), transparent 70%);
}

.ambient-right {
    top: 6rem;
    right: -7rem;
    width: 19rem;
    height: 19rem;
    background: radial-gradient(circle, var(--page-ambient-right), transparent 72%);
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 2.5rem), var(--page-container));
    margin: 0 auto;
    padding: 1.15rem 0 3.25rem;
}

.site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0.15rem 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    color: var(--page-white);
    background: linear-gradient(135deg, var(--page-accent), #7aa6dd);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 22px rgba(95, 143, 213, 0.24);
}

.brand-copy strong {
    display: block;
    color: var(--page-brand);
    font-family: "Cormorant Garamond", serif;
    font-size: 2.05rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.page-home .brand {
    gap: 0;
}

.page-home .brand-mark {
    display: none;
}

.site-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--page-muted);
    font-size: 0.97rem;
    font-weight: 500;
    transition: color 180ms ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.55rem;
    width: 100%;
    height: 2px;
    background: var(--page-accent);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: var(--page-text);
}

.site-nav a.is-active::after,
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    color: #ffffff;
    background: #d14c5c;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.search-launch-button.is-active,
.search-launch-button:hover,
.search-launch-button:focus-visible {
    color: var(--page-accent);
    background: var(--page-surface-strong);
    border-color: rgba(95, 143, 213, 0.2);
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--page-backdrop);
    backdrop-filter: blur(10px);
}

.search-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 2rem), 58rem);
    margin: 4.5rem auto 0;
    padding: 1.4rem;
    background: var(--page-modal-surface);
    border: 1px solid var(--page-modal-border);
    border-radius: 1.85rem;
    box-shadow: var(--page-surface-shadow-strong);
    backdrop-filter: blur(18px);
}

.search-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-modal-header h2 {
    margin: 0.14rem 0 0;
    font-size: 1.35rem;
}

.search-modal-close {
    flex: 0 0 auto;
}

.search-modal-form {
    display: grid;
    gap: 1rem;
}

.search-modal-input,
.header-search-form {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.15rem 0.38rem 0.15rem 0.95rem;
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 999px;
    box-shadow: var(--page-surface-shadow);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.search-modal-input:hover,
.search-modal-input:focus-within,
.header-search-form:hover,
.header-search-form:focus-within,
.header-search-form.is-active {
    background: var(--page-surface-strong);
    border-color: rgba(95, 143, 213, 0.2);
    box-shadow: 0 14px 28px rgba(120, 132, 159, 0.12);
}

.search-modal-icon,
.header-search-icon {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--page-muted);
}

.search-modal-icon svg,
.header-search-icon svg {
    width: 1rem;
    height: 1rem;
}

.search-modal-input input,
.header-search-input {
    width: 100%;
    min-width: 0;
    min-height: 3.05rem;
    padding: 0;
    color: var(--page-text);
    background: transparent;
    border: 0;
    outline: 0;
}

.search-modal-input input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.search-modal-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.3rem;
    height: 2.3rem;
    margin-right: 0.04rem;
    color: var(--page-muted);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
}

.search-modal-clear:hover,
.search-modal-clear:focus-visible {
    color: var(--page-text);
    background: color-mix(in srgb, var(--page-accent-soft) 70%, transparent);
}

.search-modal-clear svg {
    width: 0.95rem;
    height: 0.95rem;
}

.search-modal-input input::placeholder,
.header-search-input::placeholder {
    color: var(--page-muted);
}

.search-modal-suggestions {
    margin-top: -0.25rem;
}

.search-modal-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: end;
}

.search-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.icon-button,
.avatar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    color: var(--page-text);
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 50%;
    box-shadow: var(--page-surface-shadow);
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.icon-button svg {
    width: 1rem;
    height: 1rem;
}

.icon-button:hover,
.icon-button:focus-visible,
.avatar-button:hover,
.avatar-button:focus-visible {
    transform: translateY(-1px);
    background: var(--page-surface-strong);
}

.avatar-button {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    overflow: hidden;
}

.avatar-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 0.28rem);
    height: calc(100% - 0.28rem);
    background: linear-gradient(135deg, var(--page-avatar-start), var(--page-avatar-end));
    border-radius: 50%;
}

.avatar-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.7rem 1rem;
    color: var(--page-text);
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease;
}

.header-link:hover,
.header-link:focus-visible {
    transform: translateY(-1px);
    background: var(--page-surface-strong);
}

.theme-switcher {
    position: relative;
}

.theme-toggle-button[data-theme-mode="manual"] {
    color: var(--page-accent);
}

.theme-switcher-panel {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    z-index: 25;
    width: min(22rem, calc(100vw - 1.5rem));
    padding: 1rem;
    background: var(--page-theme-panel);
    border: 1px solid var(--page-theme-panel-border);
    border-radius: 1.35rem;
    box-shadow: var(--page-theme-panel-shadow);
    backdrop-filter: blur(18px);
}

.theme-switcher-panel[hidden] {
    display: none;
}

.theme-switcher-header h3 {
    margin: 0.12rem 0 0;
    color: var(--page-text);
    font-size: 1.08rem;
}

.theme-switcher-status {
    margin: 0.9rem 0 0;
    color: var(--page-muted);
    line-height: 1.6;
}

.theme-switcher-options {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
}

.theme-switcher-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    padding: 0.8rem 0.85rem;
    color: var(--page-text);
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.theme-switcher-option:hover,
.theme-switcher-option:focus-visible {
    transform: translateY(-1px);
    background: var(--page-subtle-surface);
}

.theme-switcher-option.is-active {
    background: color-mix(in srgb, var(--page-accent-soft) 76%, transparent);
    border-color: rgba(95, 143, 213, 0.18);
}

.theme-switcher-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 82%, transparent);
    border-radius: 999px;
}

.theme-switcher-option-icon svg {
    width: 1rem;
    height: 1rem;
}

.theme-switcher-option-copy {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
}

.theme-switcher-option-copy strong {
    color: var(--page-text);
    font-size: 0.92rem;
}

.theme-switcher-option-copy small {
    color: var(--page-muted);
    line-height: 1.45;
}

.flash {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid transparent;
}

.flash-success {
    color: #0d3f2f;
    background: rgba(186, 227, 207, 0.6);
    border-color: rgba(58, 145, 103, 0.18);
}

.flash-error {
    color: #6e1f27;
    background: rgba(252, 219, 224, 0.68);
    border-color: rgba(153, 59, 72, 0.16);
}

.hero-stage,
.home-utility-shell,
.dashboard-section,
.login-shell {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-stage {
    padding: 1.4rem 0 0;
    text-align: center;
}

.hero-kicker {
    margin: 0;
    color: #6d8ab9;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.hero-meta {
    margin: 0.9rem 0 0;
    color: var(--page-muted);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-title {
    margin: 1rem 0 2rem;
    color: var(--page-text);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3.6rem, 7vw, 5.6rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.9;
}

.search-stage-panel {
    width: min(100%, 760px);
    margin: 0 auto;
}

.home-utility-shell {
    margin-top: 1.5rem;
}

.home-highlight-layout {
    display: grid;
    grid-template-columns: minmax(15.5rem, 0.86fr) minmax(0, 1.07fr) minmax(0, 1.07fr);
    gap: 1rem;
    align-items: start;
}

.home-utility-stack {
    display: grid;
    grid-column: span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-content: start;
    align-items: start;
}

.home-utility-stack > * {
    min-width: 0;
}

.home-utility-card {
    min-height: 0;
}

.agenda-card {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.home-featured-photo-card {
    min-height: clamp(14.5rem, 26vh, 18rem);
    max-height: 18.5rem;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.home-featured-photo-card .moments-card-inner {
    padding: 1.65rem;
    gap: 1rem;
}

.home-featured-photo-card.has-photo {
    box-shadow: 0 28px 52px rgba(27, 44, 67, 0.18);
}

.weather-current {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.weather-card {
    position: relative;
    grid-column: 1 / -1;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--page-accent-soft) 74%, transparent) 0%, transparent 44%),
        linear-gradient(180deg, color-mix(in srgb, var(--page-surface) 92%, var(--page-bg-top)), var(--page-surface));
}

.weather-card::after {
    content: "";
    position: absolute;
    inset: auto -2rem -3rem auto;
    width: 10rem;
    height: 10rem;
    background: color-mix(in srgb, var(--page-accent-soft) 28%, transparent);
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
}

.weather-heading-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.weather-source-toolbar {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.weather-source-toolbar[hidden] {
    display: none !important;
}

.weather-source-field,
.weather-manual-row {
    display: grid;
    gap: 0.45rem;
}

.weather-source-field label,
.weather-manual-row label {
    color: var(--page-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.weather-source-field select,
.weather-manual-controls input {
    width: 100%;
    min-width: 0;
    padding: 0.88rem 0.95rem;
    color: var(--page-text);
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
    outline: none;
}

.weather-source-field select:focus,
.weather-manual-controls input:focus {
    border-color: rgba(95, 143, 213, 0.42);
    box-shadow: 0 0 0 4px rgba(95, 143, 213, 0.1);
}

.weather-manual-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
}

.weather-manual-button {
    min-height: 3rem;
    white-space: nowrap;
}

.weather-current-main {
    display: flex;
    align-items: center;
    flex: 1 1 16rem;
    gap: 0.9rem;
    min-width: 0;
}

.weather-current-copy {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
}

.weather-current strong {
    display: block;
    color: var(--page-text);
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.weather-current p {
    margin: 0.35rem 0 0;
    color: var(--page-muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.weather-current-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.45rem;
    min-width: 3.45rem;
    height: 3.45rem;
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 76%, transparent);
    border: 1px solid color-mix(in srgb, var(--page-accent) 14%, transparent);
    border-radius: 1.1rem;
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--page-surface-strong) 56%, transparent);
}

.weather-current-icon svg,
.weather-day-icon svg,
.weather-metric-icon svg {
    display: block;
    width: 1.55rem;
    height: 1.55rem;
}

.weather-current-icon[data-weather-icon="clear"],
.weather-day-icon[data-weather-icon="clear"],
.weather-current-icon[data-weather-icon="mostly-clear"],
.weather-day-icon[data-weather-icon="mostly-clear"] {
    color: #d18a17;
}

.weather-current-icon[data-weather-icon="partly-cloudy"],
.weather-day-icon[data-weather-icon="partly-cloudy"],
.weather-current-icon[data-weather-icon="cloudy"],
.weather-day-icon[data-weather-icon="cloudy"],
.weather-current-icon[data-weather-icon="fog"],
.weather-day-icon[data-weather-icon="fog"] {
    color: #6b7a92;
}

.weather-current-icon[data-weather-icon="drizzle"],
.weather-day-icon[data-weather-icon="drizzle"],
.weather-current-icon[data-weather-icon="rain"],
.weather-day-icon[data-weather-icon="rain"] {
    color: #2f77b6;
}

.weather-current-icon[data-weather-icon="snow"],
.weather-day-icon[data-weather-icon="snow"] {
    color: #5a89b8;
}

.weather-current-icon[data-weather-icon="storm"],
.weather-day-icon[data-weather-icon="storm"] {
    color: #7558b1;
}

.weather-current-temp {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 4.5rem;
    color: var(--page-text);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.weather-current-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.weather-metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-width: 0;
    max-width: 100%;
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    color: var(--page-text);
    background: color-mix(in srgb, var(--page-option-surface) 90%, transparent);
    border: 1px solid var(--page-surface-border);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.weather-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    color: var(--page-accent);
}

.weather-metric-icon[data-weather-icon="precipitation"] {
    color: #2f77b6;
}

.weather-metric-icon[data-weather-icon="wind"] {
    color: #6b7a92;
}

.weather-metric-copy {
    white-space: normal;
    line-height: 1.25;
}

.weather-feedback,
.today-summary-weather {
    margin: 0.95rem 0 0;
    color: var(--page-muted);
    line-height: 1.6;
}

.weather-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
}

.weather-day {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    min-width: 0;
    padding: 0.9rem 0.65rem;
    text-align: center;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.15rem;
    box-shadow: var(--page-surface-shadow);
}

.weather-day-name {
    color: var(--page-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.weather-day-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 68%, transparent);
    border-radius: 999px;
}

.weather-day-summary {
    color: var(--page-text);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.weather-day-temp {
    color: var(--page-text);
    font-size: 0.84rem;
    font-weight: 800;
}

.weather-day-details {
    display: grid;
    gap: 0.35rem;
    width: 100%;
}

.weather-day-details .weather-metric-chip {
    justify-content: center;
    width: 100%;
    color: var(--page-muted);
    background: transparent;
    border-color: color-mix(in srgb, var(--page-line) 22%, transparent);
}

.today-summary-list,
.home-event-list {
    display: grid;
    gap: 0.8rem;
}

.today-summary-item,
.home-event-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.85rem 0.95rem;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.1rem;
}

.today-summary-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 78%, transparent);
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 800;
}

.today-summary-copy,
.home-event-copy {
    min-width: 0;
}

.today-summary-copy strong,
.home-event-copy strong {
    display: block;
    color: var(--page-text);
}

.today-summary-copy p,
.home-event-copy p {
    margin: 0.25rem 0 0;
    color: var(--page-muted);
    line-height: 1.55;
}

.home-event-list-rich {
    gap: 0.9rem;
}

.agenda-card .home-event-list-rich {
    padding-top: 0.15rem;
}

.home-event-item-rich {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: flex-start;
}

.agenda-card .home-event-item-rich {
    padding: 1rem 1.05rem;
    border-radius: 1.2rem;
    box-shadow: var(--page-surface-shadow);
}

.home-event-date-badge {
    display: grid;
    justify-items: center;
    min-width: 4.1rem;
    padding: 0.55rem 0.5rem;
    background: color-mix(in srgb, var(--page-accent-soft) 62%, transparent);
    border-radius: 1rem;
    line-height: 1;
}

.home-event-date-badge strong {
    color: var(--page-accent);
    font-size: 1.15rem;
    font-weight: 800;
}

.home-event-date-badge span {
    margin-top: 0.18rem;
    color: var(--page-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.home-event-tags {
    margin-top: 0.65rem;
}

.home-widget-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.5rem 0.82rem;
    color: var(--page-accent);
    text-decoration: none;
    background: color-mix(in srgb, var(--page-option-surface) 94%, transparent);
    border: 1px solid var(--page-line);
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.home-widget-inline-link:hover,
.home-widget-inline-link:focus-visible {
    color: var(--page-text);
    border-color: color-mix(in srgb, var(--page-accent) 22%, var(--page-line));
}

.search-form {
    display: grid;
    gap: 0.95rem;
}

.search-provider-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    order: 1;
    padding-right: 0.15rem;
    margin-right: 0.15rem;
    border-right: 1px solid var(--page-line);
}

.search-provider-option-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    color: var(--page-muted);
    background: var(--page-option-surface);
    border: 0;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--page-line);
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.search-provider-option-inline:hover,
.search-provider-option-inline:focus-visible {
    color: var(--page-text);
    transform: translateY(-1px);
}

.search-provider-option-inline:disabled {
    color: var(--page-muted);
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.search-provider-option-inline.is-active {
    color: var(--page-text);
    background: color-mix(in srgb, var(--page-accent-soft) 88%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--page-accent) 24%, transparent), 0 10px 20px color-mix(in srgb, var(--page-accent) 16%, transparent);
}

.search-input-wrap-home {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.75rem;
    padding: 0.7rem 0.75rem 0.7rem 0.9rem;
    background: var(--page-surface-strong);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.5rem;
    box-shadow: var(--page-shadow);
}

.provider-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
}

.provider-brand-icon svg,
.search-voice-toggle svg,
.search-submit svg {
    width: 1.15rem;
    height: 1.15rem;
}

.provider-brand-icon-google svg {
    width: 1.3rem;
    height: 1.3rem;
}

.provider-brand-icon-chatgpt svg {
    width: 1.2rem;
    height: 1.2rem;
}

.search-input-wrap-home input {
    flex: 1;
    min-width: 0;
    order: 2;
    padding: 0;
    color: var(--page-text);
    background: transparent;
    border: 0;
    outline: none;
    font-size: 1.03rem;
    font-weight: 600;
}

.search-input-wrap-home input::placeholder {
    color: color-mix(in srgb, var(--page-muted) 84%, transparent);
    font-weight: 500;
}

.search-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    order: 3;
    margin-left: auto;
}

.search-voice-toggle,
.search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.search-voice-toggle {
    color: var(--page-muted);
    background: var(--page-option-surface);
    box-shadow: inset 0 0 0 1px var(--page-line);
}

.search-voice-toggle:hover,
.search-voice-toggle:focus-visible,
.search-submit:hover,
.search-submit:focus-visible {
    transform: translateY(-1px);
}

.search-voice-toggle.is-listening {
    color: #ffffff;
    background: linear-gradient(135deg, #ef7b7b, #d95a7f);
    box-shadow: 0 12px 28px rgba(217, 90, 127, 0.24);
}

.locale-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 2.5rem;
    padding: 0 0.8rem;
    color: var(--page-accent);
    background: var(--page-accent-soft);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.search-submit {
    color: var(--page-white);
    background: linear-gradient(135deg, var(--page-accent), #78a4de);
    box-shadow: 0 12px 28px rgba(95, 143, 213, 0.32);
}

.search-voice-toggle:disabled,
.search-submit:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}

.search-suggestions {
    background: var(--page-surface-strong);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.35rem;
    box-shadow: var(--page-shadow);
    overflow: hidden;
}

.search-suggestions-list {
    margin: 0;
    padding: 0.45rem;
    list-style: none;
}

.search-helper {
    padding: 0.8rem 1rem;
    color: var(--page-text);
    background: var(--page-helper-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    box-shadow: var(--page-surface-shadow);
}

.assistant-panel {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.2rem;
    background: var(--page-helper-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.5rem;
    box-shadow: var(--page-shadow);
}

.assistant-panel[hidden] {
    display: none !important;
}

.assistant-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.assistant-panel-kicker {
    margin: 0 0 0.4rem;
    color: var(--page-accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.assistant-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.assistant-reset-button {
    min-height: 2.5rem;
    padding: 0.7rem 1rem;
    color: var(--page-accent);
    background: var(--page-option-surface);
    border: 1px solid var(--page-line);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.assistant-reset-button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.assistant-messages {
    display: grid;
    gap: 0.85rem;
    max-height: 26rem;
    overflow-y: auto;
}

.assistant-empty {
    margin: 0;
    padding: 1rem 1.05rem;
    color: var(--page-muted);
    background: var(--page-subtle-surface);
    border-radius: 1.15rem;
    line-height: 1.6;
}

.assistant-message {
    max-width: min(100%, 42rem);
    padding: 0.95rem 1rem;
    border-radius: 1.2rem;
    box-shadow: var(--page-surface-shadow);
}

.assistant-message-user {
    justify-self: end;
    color: var(--page-text);
    background: linear-gradient(135deg, color-mix(in srgb, var(--page-accent-soft) 90%, var(--page-surface)), color-mix(in srgb, var(--page-accent) 12%, var(--page-surface)));
}

.assistant-message-assistant {
    justify-self: start;
    color: var(--page-text);
    background: var(--page-input-surface);
}

.assistant-message-role {
    margin: 0 0 0.4rem;
    color: var(--page-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.assistant-message-body {
    white-space: pre-wrap;
    line-height: 1.65;
}

.search-suggestion {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    color: var(--page-text);
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 1rem;
    cursor: pointer;
}

.search-suggestion:hover,
.search-suggestion.is-active {
    background: rgba(95, 143, 213, 0.1);
}

.search-suggestion-rich {
    display: grid;
    gap: 0.3rem;
}

.search-suggestion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.search-suggestion-label {
    min-width: 0;
    font-size: 0.96rem;
    font-weight: 700;
}

.search-suggestion-type {
    flex: 0 0 auto;
    padding: 0.2rem 0.55rem;
    color: var(--page-accent);
    background: var(--page-accent-soft);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-suggestion-meta {
    color: var(--page-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.dashboard-section {
    margin-top: 3.2rem;
}

.shortcut-display-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.shortcut-display-copy {
    display: grid;
    gap: 0.22rem;
}

.shortcut-display-copy p:last-child {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.5;
}

.shortcut-display-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem;
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 999px;
    box-shadow: var(--page-surface-shadow);
}

.shortcut-display-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.62rem 1rem;
    color: var(--page-muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.shortcut-display-option.is-active {
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 84%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--page-accent) 18%, transparent);
}

.shortcut-display-option[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.shortcut-manager-shell {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.shortcut-manager-panel {
    padding: 1.4rem;
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: var(--page-radius-xl);
    box-shadow: var(--page-shadow);
}

.shortcut-manager-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.shortcut-manager-kicker {
    margin: 0 0 0.4rem;
    color: var(--page-accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.shortcut-manager-panel h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.shortcut-manager-close {
    min-height: 2.5rem;
    padding: 0.7rem 1rem;
    color: var(--page-text);
    background: var(--page-surface-strong);
    border: 1px solid var(--page-surface-border);
    border-radius: 999px;
    cursor: pointer;
}

.shortcut-manager-copy {
    margin: 0.95rem 0 0;
    color: var(--page-muted);
    line-height: 1.7;
}

.shortcut-feedback {
    margin-bottom: 0;
}

.shortcut-manager-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: 1rem;
    margin-top: 1rem;
}

.shortcut-manager-block {
    padding: 1.1rem;
    background: var(--page-subtle-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.35rem;
}

.shortcut-manager-block-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.shortcut-manager-block-kicker {
    margin: 0 0 0.32rem;
    color: var(--page-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shortcut-preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    background: var(--page-option-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.25rem;
}

.shortcut-logo-wrap-preview {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
}

.shortcut-preview-copy {
    display: grid;
    gap: 0.2rem;
}

.shortcut-preview-copy strong {
    font-size: 0.98rem;
}

.shortcut-preview-copy span {
    color: var(--page-muted);
    font-size: 0.9rem;
}

.shortcut-manager-form {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.shortcut-manager-form label {
    font-size: 0.92rem;
    font-weight: 700;
}

.shortcut-manager-form input,
.shortcut-manager-form select {
    width: 100%;
    padding: 1rem;
    color: var(--page-text);
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
    outline: none;
}

.shortcut-manager-form input:focus,
.shortcut-manager-form select:focus {
    border-color: rgba(95, 143, 213, 0.42);
    box-shadow: 0 0 0 4px rgba(95, 143, 213, 0.1);
}

.shortcut-manager-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.shortcut-manager-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shortcut-section-form {
    margin-top: 0.9rem;
}

.shortcut-section-form label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.shortcut-section-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
}

.shortcut-section-row input {
    width: 100%;
    padding: 1rem;
    color: var(--page-text);
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
    outline: none;
}

.shortcut-section-row input:focus {
    border-color: rgba(95, 143, 213, 0.42);
    box-shadow: 0 0 0 4px rgba(95, 143, 213, 0.1);
}

.shortcut-manager-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.35rem;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.shortcut-card,
.moments-card,
.login-card {
    position: relative;
    overflow: hidden;
    background: var(--page-card);
    border: 1px solid var(--page-surface-border);
    border-radius: var(--page-radius-xl);
    box-shadow: var(--page-shadow);
}

.shortcut-card {
    padding: 1.45rem;
}

.shortcut-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.shortcut-card-meta {
    margin: 0 0 0.35rem;
    color: var(--page-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shortcut-card h3,
.moments-card h3 {
    margin: 0;
    color: var(--page-text);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.shortcut-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    color: var(--page-accent);
    background: var(--page-surface);
    border-radius: 0.9rem;
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--page-white) 42%, transparent);
    flex: 0 0 auto;
}

.shortcut-card-icon svg {
    width: 1rem;
    height: 1rem;
}

.shortcut-links {
    display: grid;
    gap: 0.72rem;
}

.shortcut-item {
    position: relative;
}

.shortcut-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.82rem 0.9rem;
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1rem;
    box-shadow: var(--page-surface-shadow);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.shortcut-link:hover,
.shortcut-link:focus-visible {
    transform: translateY(-1px);
    background: var(--page-surface-strong);
    border-color: var(--page-line);
    box-shadow: var(--page-surface-shadow-strong);
}

.shortcut-link-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.shortcut-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    background: var(--page-option-surface);
    border: 1px solid var(--page-line);
    border-radius: 0.8rem;
    flex: 0 0 auto;
}

.shortcut-logo {
    position: relative;
    z-index: 1;
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
}

.shortcut-logo[hidden] {
    display: none;
}

.shortcut-logo-fallback {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--page-muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.shortcut-copy {
    min-width: 0;
    display: grid;
    gap: 0.35rem;
}

.shortcut-link strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--page-text);
    font-size: 0.96rem;
    font-weight: 700;
}

.shortcut-link-tags {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.shortcut-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shortcut-tag-origin {
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 82%, transparent);
}

.shortcut-tag-badge {
    color: var(--page-text);
    background: color-mix(in srgb, var(--page-option-surface) 80%, transparent);
}

.shortcut-empty {
    margin: 0;
    padding: 0.95rem 1rem;
    color: var(--page-muted);
    background: var(--page-helper-surface);
    border: 1px dashed var(--page-line);
    border-radius: 1rem;
    line-height: 1.6;
}

.shortcut-grid.is-compact .shortcut-card {
    padding: 1rem;
    overflow: visible;
    isolation: isolate;
    z-index: 0;
}

.shortcut-grid.is-compact .shortcut-card-header {
    margin-bottom: 0.8rem;
}

.shortcut-grid.is-compact .shortcut-card:hover,
.shortcut-grid.is-compact .shortcut-card:focus-within {
    z-index: 4;
}

.shortcut-grid.is-compact .shortcut-card-meta {
    display: none;
}

.shortcut-grid.is-compact .shortcut-card h3 {
    font-size: 1.12rem;
}

.shortcut-grid.is-compact .shortcut-card-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
}

.shortcut-grid.is-compact .shortcut-links {
    position: relative;
    grid-template-columns: repeat(auto-fill, minmax(3.3rem, 1fr));
    gap: 0.65rem;
    overflow: visible;
    isolation: isolate;
}

.shortcut-grid.is-compact .shortcut-empty {
    grid-column: 1 / -1;
    padding: 0.8rem 0.9rem;
    font-size: 0.88rem;
}

.shortcut-grid.is-compact .shortcut-link {
    position: relative;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0.5rem;
    border-radius: 1rem;
    aspect-ratio: 1 / 1;
    overflow: visible;
    z-index: 0;
}

.shortcut-grid.is-compact .shortcut-item {
    z-index: 0;
}

.shortcut-grid.is-compact .shortcut-item:hover,
.shortcut-grid.is-compact .shortcut-item:focus-within {
    z-index: 6;
}

.shortcut-grid.is-compact .shortcut-link:hover,
.shortcut-grid.is-compact .shortcut-link:focus-visible {
    z-index: 10;
}

.shortcut-grid.is-compact .shortcut-link-main {
    justify-content: center;
    width: 100%;
}

.shortcut-grid.is-compact .shortcut-logo-wrap {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.9rem;
}

.shortcut-grid.is-compact .shortcut-logo {
    width: 1.3rem;
    height: 1.3rem;
}

.shortcut-grid.is-compact .shortcut-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shortcut-grid.is-compact .shortcut-link:hover::after,
.shortcut-grid.is-compact .shortcut-link:focus-visible::after {
    content: attr(data-shortcut-title);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.5rem);
    transform: translateX(-50%);
    min-width: max-content;
    max-width: 12rem;
    padding: 0.4rem 0.65rem;
    color: var(--page-white);
    background: rgba(17, 26, 45, 0.9);
    border-radius: 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    pointer-events: none;
    z-index: 20;
}

.shortcut-item-controls {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 0.55rem;
}

.shortcut-item-move-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shortcut-control-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 2rem;
    padding: 0.45rem 0.8rem;
    color: var(--page-text);
    background: var(--page-surface-strong);
    border: 1px solid var(--page-line);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}

.shortcut-control-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.92rem;
    height: 0.92rem;
}

.shortcut-control-icon svg {
    width: 0.92rem;
    height: 0.92rem;
}

.shortcut-control-button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.shortcut-control-button-danger {
    color: #8d3144;
    border-color: rgba(141, 49, 68, 0.12);
}

.shortcut-drag-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--page-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.shortcut-drag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: var(--page-accent);
}

.shortcut-drag-icon svg {
    width: 0.92rem;
    height: 0.92rem;
}

.shortcut-grid.is-editing .shortcut-item {
    cursor: grab;
}

.shortcut-grid.is-editing .shortcut-item.is-dragging {
    opacity: 0.35;
}

.shortcut-grid.is-editing .shortcut-item.is-dragging-hidden {
    display: none;
}

.shortcut-grid.is-editing .shortcut-item-controls {
    display: flex;
}

.shortcut-grid.is-editing .shortcut-links.is-drag-over {
    background: rgba(95, 143, 213, 0.08);
    box-shadow: inset 0 0 0 1px rgba(95, 143, 213, 0.16);
    border-radius: 1.1rem;
}

.shortcut-drop-placeholder {
    min-height: 4.4rem;
    background: rgba(95, 143, 213, 0.07);
    border: 1.5px dashed rgba(95, 143, 213, 0.35);
    border-radius: 1rem;
}

.moments-card {
    min-height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background:
        linear-gradient(165deg, rgba(18, 92, 151, 0.96) 0%, rgba(24, 117, 168, 0.92) 46%, rgba(62, 153, 195, 0.9) 100%);
}

.moments-card.has-photo::before,
.moments-card.has-photo::after {
    display: none;
}

.moments-card::before,
.moments-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.moments-card::before {
    top: -3rem;
    right: -3rem;
    width: 12rem;
    height: 12rem;
    background: radial-gradient(circle, rgba(124, 214, 231, 0.58), transparent 70%);
}

.moments-card::after {
    bottom: -5rem;
    left: -3rem;
    width: 15rem;
    height: 15rem;
    background: radial-gradient(circle, rgba(0, 57, 108, 0.55), transparent 72%);
}

.moments-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 1.45rem;
    color: var(--page-white);
}

.moments-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.45rem 0.75rem;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.moments-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 2.6rem;
    padding: 0.7rem 1rem;
    color: var(--page-accent);
    background: var(--page-surface-strong);
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.3rem;
}

.toolbar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0.75rem 1.2rem;
    color: var(--page-text);
    background: var(--page-surface-strong);
    border: 1px solid var(--page-line);
    border-radius: 999px;
    box-shadow: var(--page-surface-shadow);
    cursor: pointer;
}

.toolbar-action-secondary {
    background: var(--page-surface-strong);
}

.toolbar-action-success {
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 88%, transparent);
    border-color: color-mix(in srgb, var(--page-accent) 18%, transparent);
}

.toolbar-action[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.toolbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--page-accent);
}

.toolbar-icon svg {
    width: 1rem;
    height: 1rem;
}

.calendar-page {
    display: grid;
    gap: 1.4rem;
}

.calendar-layout {
    display: grid;
    grid-template-columns: minmax(20rem, 0.92fr) minmax(0, 1.08fr);
    gap: 1.2rem;
    align-items: start;
}

.calendar-form {
    display: grid;
    gap: 0.8rem;
}

.calendar-form label {
    color: var(--page-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.calendar-form input,
.calendar-form select,
.calendar-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    color: var(--page-text);
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
    outline: 0;
}

.calendar-form textarea {
    resize: vertical;
    min-height: 8rem;
}

.calendar-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.calendar-event-list {
    display: grid;
    gap: 0.8rem;
}

.calendar-event-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.1rem;
}

.calendar-event-list-compact .calendar-event-card {
    padding-block: 0.9rem;
}

.calendar-event-copy {
    min-width: 0;
}

.calendar-event-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.calendar-event-copy h3 {
    margin: 0.35rem 0 0;
    color: var(--page-text);
    font-size: 1rem;
}

.calendar-event-location,
.calendar-event-description,
.calendar-event-meta {
    margin: 0.35rem 0 0;
    color: var(--page-muted);
    line-height: 1.55;
}

.calendar-event-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.calendar-event-actions form {
    margin: 0;
}

.calendar-intro-copy {
    margin: 0.45rem 0 0;
    color: var(--page-muted);
    line-height: 1.7;
}

.calendar-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(22rem, 0.88fr);
    gap: 1.2rem;
    align-items: start;
}

.calendar-sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.calendar-browser-card {
    display: grid;
    gap: 1rem;
}

.calendar-browser-header,
.calendar-period-bar,
.calendar-day-header,
.calendar-list-month-header,
.calendar-year-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.calendar-browser-actions,
.calendar-period-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.calendar-mode-switch,
.calendar-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem;
    background: var(--page-subtle-surface);
    border: 1px solid var(--page-line);
    border-radius: 999px;
}

.calendar-mode-button,
.calendar-view-button {
    min-height: 2.45rem;
    padding: 0.55rem 0.95rem;
    color: var(--page-muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.calendar-mode-button:hover,
.calendar-mode-button:focus-visible,
.calendar-view-button:hover,
.calendar-view-button:focus-visible {
    transform: translateY(-1px);
}

.calendar-mode-button.is-active,
.calendar-view-button.is-active {
    color: var(--page-text);
    background: var(--page-surface-strong);
    box-shadow: var(--page-surface-shadow);
}

.calendar-view-switch[hidden],
.calendar-view-panel[hidden] {
    display: none !important;
}

.calendar-birthday-spotlight {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1.05rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--page-accent-soft) 74%, transparent), var(--page-subtle-surface));
    border: 1px solid var(--page-surface-border);
    border-radius: 1.25rem;
}

.calendar-birthday-spotlight-copy h3 {
    margin: 0.2rem 0 0;
    color: var(--page-text);
    font-size: 1.08rem;
    font-weight: 800;
}

.calendar-birthday-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.75rem;
}

.calendar-birthday-chip {
    display: grid;
    gap: 0.18rem;
    padding: 0.9rem 0.95rem;
    background: var(--page-surface-strong);
    border: 1px solid var(--page-surface-border);
    border-radius: 1rem;
    box-shadow: var(--page-surface-shadow);
}

.calendar-birthday-chip strong {
    color: var(--page-text);
    font-size: 0.94rem;
}

.calendar-birthday-chip span,
.calendar-birthday-chip small,
.calendar-birthday-empty {
    color: var(--page-muted);
    line-height: 1.5;
}

.calendar-period-label {
    color: var(--page-text);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.calendar-view-panel {
    display: grid;
    gap: 0.9rem;
}

.calendar-weekdays,
.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.65rem;
}

.calendar-weekday {
    padding: 0 0.15rem;
    color: var(--page-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.calendar-day-cell {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    min-height: 9rem;
    padding: 0.75rem;
    color: var(--page-text);
    text-align: left;
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.1rem;
    box-shadow: var(--page-surface-shadow);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.calendar-day-cell:hover,
.calendar-day-cell:focus-visible {
    transform: translateY(-1px);
    background: var(--page-surface-strong);
    border-color: var(--page-line);
    box-shadow: var(--page-surface-shadow-strong);
}

.calendar-day-cell.is-outside-month {
    opacity: 0.56;
}

.calendar-day-cell.is-selected {
    border-color: color-mix(in srgb, var(--page-accent) 45%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--page-accent) 24%, transparent), var(--page-surface-shadow-strong);
}

.calendar-day-cell.is-today .calendar-day-cell-number {
    color: var(--page-accent);
}

.calendar-day-cell.has-birthday {
    background: color-mix(in srgb, var(--page-accent-soft) 26%, var(--page-surface));
}

.calendar-day-cell-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.92rem;
    font-weight: 800;
    border-radius: 999px;
}

.calendar-day-cell-summary,
.calendar-day-list,
.calendar-list,
.calendar-year-grid {
    display: grid;
    gap: 0.55rem;
}

.calendar-day-chip {
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-height: 1.7rem;
    padding: 0.18rem 0.55rem;
    overflow: hidden;
    color: var(--page-text);
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--page-option-surface);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.calendar-day-chip--birthday {
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 88%, transparent);
}

.calendar-day-chip--private {
    background: color-mix(in srgb, var(--page-helper-surface) 84%, transparent);
}

.calendar-entry-card {
    display: grid;
    gap: 0.7rem;
    padding: 1rem 1.05rem;
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.1rem;
    box-shadow: var(--page-surface-shadow);
}

.calendar-entry-card.is-birthday {
    background: color-mix(in srgb, var(--page-accent-soft) 24%, var(--page-surface));
}

.calendar-entry-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.calendar-entry-title {
    margin: 0;
    color: var(--page-text);
    font-size: 1.02rem;
    font-weight: 800;
}

.calendar-entry-copy p,
.calendar-entry-meta,
.calendar-list-month-count {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.6;
}

.calendar-entry-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.calendar-entry-actions form {
    margin: 0;
}

.calendar-year-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calendar-year-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem;
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.1rem;
    box-shadow: var(--page-surface-shadow);
}

.calendar-year-card-title {
    color: var(--page-text);
    font-size: 0.96rem;
    font-weight: 800;
}

.calendar-year-card-meta {
    color: var(--page-muted);
    font-size: 0.8rem;
}

.calendar-year-mini-weekdays,
.calendar-year-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.calendar-year-mini-weekday,
.calendar-year-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.8rem;
    border-radius: 0.55rem;
    font-size: 0.72rem;
}

.calendar-year-mini-weekday {
    color: var(--page-muted);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.calendar-year-day {
    color: var(--page-text);
    background: var(--page-input-surface);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.calendar-year-day.is-outside {
    opacity: 0.32;
}

.calendar-year-day.has-entry {
    background: color-mix(in srgb, var(--page-option-surface) 82%, transparent);
}

.calendar-year-day.has-birthday {
    background: color-mix(in srgb, var(--page-accent-soft) 88%, transparent);
    color: var(--page-accent);
}

.calendar-year-day:hover,
.calendar-year-day:focus-visible {
    transform: translateY(-1px);
    border-color: var(--page-line);
}

.calendar-list-month-group {
    display: grid;
    gap: 0.75rem;
}

.calendar-list-month-title {
    margin: 0;
    color: var(--page-text);
    font-size: 1rem;
    font-weight: 800;
}

.calendar-sidebar-card {
    display: grid;
    gap: 0.85rem;
}

.calendar-birthday-sidebar-list {
    display: grid;
    gap: 0.75rem;
}

.calendar-birthday-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
}

.calendar-birthday-sidebar-item strong {
    display: block;
    color: var(--page-text);
}

.calendar-birthday-sidebar-item p {
    margin: 0.25rem 0 0;
    color: var(--page-muted);
}

.info-pill-birthday {
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 88%, transparent);
}

.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
}

.button-icon svg {
    width: 1rem;
    height: 1rem;
}

.login-shell {
    max-width: 54rem;
    margin: 4rem auto 0;
}

.login-card {
    padding: 1.6rem;
}

.section-heading h1,
.section-heading h2,
.login-shell h1 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.94;
}

.section-heading p,
.login-shell p,
.login-note {
    color: var(--page-muted);
    line-height: 1.75;
}

.login-form {
    display: grid;
    gap: 0.85rem;
}

.login-form label {
    font-size: 0.92rem;
    font-weight: 700;
}

.login-form input {
    padding: 1rem 1rem;
    color: var(--page-text);
    background: var(--page-input-surface);
    border: 1px solid rgba(98, 114, 152, 0.12);
    border-radius: 1rem;
    outline: none;
}

.login-form input:focus {
    border-color: rgba(95, 143, 213, 0.42);
    box-shadow: 0 0 0 4px rgba(95, 143, 213, 0.1);
}

.admin-shell {
    margin-top: 1rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-stat-card,
.admin-card {
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.5rem;
    box-shadow: var(--page-shadow);
}

.admin-stat-card {
    padding: 1.1rem 1.2rem;
}

.admin-stat-card strong {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.admin-stat-card span {
    color: var(--page-muted);
    font-size: 0.88rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.admin-card {
    padding: 1.4rem;
}

.admin-card h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.admin-card-copy,
.admin-empty {
    color: var(--page-muted);
    line-height: 1.7;
}

.admin-card-copy {
    margin: 0.65rem 0 1rem;
}

.admin-form {
    display: grid;
    gap: 0.85rem;
}

.admin-form label {
    font-size: 0.92rem;
    font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 1rem;
    color: var(--page-text);
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
    outline: none;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: rgba(95, 143, 213, 0.42);
    box-shadow: 0 0 0 4px rgba(95, 143, 213, 0.1);
}

.admin-form textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.admin-form button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-user-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.admin-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    background: var(--page-input-surface);
    border: 1px solid rgba(98, 114, 152, 0.08);
    border-radius: 1rem;
}

.admin-user-main strong {
    display: block;
    font-size: 1rem;
}

.admin-user-main span {
    display: block;
    margin-top: 0.22rem;
    color: var(--page-muted);
    font-size: 0.9rem;
}

.admin-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.admin-user-meta small {
    color: var(--page-muted);
    font-size: 0.8rem;
}

.profile-grid {
    grid-template-columns: minmax(340px, 1fr) minmax(280px, 0.92fr);
}

.profile-avatar-section {
    display: grid;
    grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.22fr);
    gap: 1rem;
    padding: 1.1rem;
    margin-bottom: 0.35rem;
    background: var(--page-subtle-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.35rem;
}

.profile-avatar-preview-card {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1rem;
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.2rem;
    text-align: center;
}

.profile-avatar-kicker,
.profile-avatar-presets-title {
    margin: 0;
    color: var(--page-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-avatar-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6.8rem;
    height: 6.8rem;
    overflow: hidden;
    color: var(--page-text);
    background: linear-gradient(135deg, var(--page-avatar-start), var(--page-avatar-end));
    border-radius: 50%;
    box-shadow: var(--page-shadow);
    font-size: 1.7rem;
    font-weight: 800;
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-preview-copy {
    display: grid;
    gap: 0.35rem;
}

.profile-avatar-preview-copy strong {
    color: var(--page-text);
    font-size: 1rem;
}

.profile-avatar-preview-copy p {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.6;
}

.profile-avatar-controls {
    display: grid;
    gap: 1rem;
}

.profile-avatar-mode-group {
    display: grid;
    gap: 0.6rem;
}

.profile-avatar-mode-group label {
    color: var(--page-text);
    font-size: 0.92rem;
    font-weight: 700;
}

.profile-avatar-mode-select {
    position: relative;
}

.profile-avatar-mode-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.15rem;
    width: 0.72rem;
    height: 0.72rem;
    border-right: 2px solid color-mix(in srgb, var(--page-text) 72%, transparent);
    border-bottom: 2px solid color-mix(in srgb, var(--page-text) 72%, transparent);
    pointer-events: none;
    transform: translateY(-62%) rotate(45deg);
}

.profile-avatar-mode-group select {
    appearance: none;
    width: 100%;
    min-height: 3.2rem;
    padding: 0 3rem 0 0.95rem;
    color: var(--page-text);
    background: linear-gradient(180deg, color-mix(in srgb, var(--page-input-surface) 94%, white 6%), var(--page-input-surface));
    border: 1px solid var(--page-line);
    border-radius: 1rem;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.profile-avatar-mode-group select:focus {
    border-color: rgba(95, 143, 213, 0.42);
    box-shadow: 0 0 0 4px rgba(95, 143, 213, 0.1);
}

.profile-avatar-upload {
    display: grid;
    gap: 0.45rem;
}

.profile-avatar-upload[hidden],
.profile-avatar-presets[hidden],
.profile-avatar-initials-panel[hidden] {
    display: none !important;
}

.profile-avatar-presets {
    display: grid;
    gap: 0.8rem;
}

.profile-avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11.2rem, 1fr));
    gap: 0.9rem;
}

.profile-avatar-choice {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    align-content: start;
    padding: 0.95rem;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    text-align: center;
    cursor: pointer;
    min-height: 13.5rem;
    overflow: hidden;
    position: relative;
}

.profile-avatar-choice input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.profile-avatar-choice.is-selected {
    border-color: color-mix(in srgb, var(--page-accent) 28%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--page-accent-soft) 64%, transparent);
}

.profile-avatar-choice:hover {
    transform: translateY(-1px);
}

.profile-avatar-choice-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6.9rem;
    height: 6.9rem;
    overflow: hidden;
    border-radius: 1.45rem;
    background: var(--page-surface);
    box-shadow: var(--page-surface-shadow);
}

.profile-avatar-choice-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-choice-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.6rem;
    padding-inline: 0.2rem;
}

.profile-avatar-choice-copy strong {
    color: var(--page-text);
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

.profile-avatar-initials-panel {
    padding: 0.95rem 1rem;
    color: var(--page-muted);
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
    line-height: 1.6;
}

.profile-inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.form-hint {
    margin: 0.45rem 0 0;
    color: var(--page-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.profile-side-card {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.profile-summary-list {
    display: grid;
    gap: 0.8rem;
}

.profile-summary-item {
    padding: 1rem 1.05rem;
    background: var(--page-subtle-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.15rem;
}

.profile-summary-item strong {
    display: block;
    color: var(--page-text);
    font-size: 0.98rem;
}

.profile-summary-item p {
    margin: 0.45rem 0 0;
    color: var(--page-muted);
    line-height: 1.65;
}

.profile-meta-card {
    padding: 1rem 1.05rem;
    background: var(--page-subtle-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.15rem;
}

.profile-meta-card h3 {
    margin: 0 0 0.9rem;
    color: var(--page-text);
    font-size: 1rem;
    font-weight: 800;
}

.profile-meta-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.profile-meta-list div {
    display: grid;
    gap: 0.2rem;
}

.profile-meta-list dt {
    color: var(--page-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-meta-list dd {
    margin: 0;
    color: var(--page-text);
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.8rem;
    height: 2rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-role-admin {
    color: #205e9a;
    background: rgba(95, 143, 213, 0.14);
}

.admin-role-member {
    color: #4b5c79;
    background: rgba(75, 92, 121, 0.12);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.2rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.button-primary {
    color: var(--page-white);
    background: linear-gradient(135deg, var(--page-accent), #78a4de);
    box-shadow: 0 16px 34px rgba(95, 143, 213, 0.28);
}

.button-secondary {
    color: var(--page-text);
    background: var(--page-surface-strong);
    border: 1px solid var(--page-line);
}

.site-footer {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 0;
    color: var(--page-muted);
    font-size: 0.92rem;
    border-top: 1px solid var(--page-line);
}

.site-footer-copy p {
    margin: 0;
}

.site-footer-nav {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer-nav a {
    color: var(--page-accent);
    font-weight: 700;
}

.notification-button {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -0.28rem;
    right: -0.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.28rem;
    color: #fff;
    background: #d84f61;
    border: 2px solid #f6f3f2;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.moments-page,
.page-search,
.notifications-page {
    display: grid;
    gap: 1.45rem;
}

.moments-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 0.9fr);
    gap: 1.2rem;
    align-items: stretch;
}

.moments-hero-copy,
.moments-stats,
.moments-panel {
    padding: 1.4rem;
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.7rem;
    box-shadow: var(--page-shadow);
    backdrop-filter: blur(14px);
}

.moments-hero-copy h1 {
    margin: 0.25rem 0 0.55rem;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.8rem, 5vw, 4.3rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.moments-hero-copy p:last-child {
    margin: 0;
    max-width: 48rem;
    color: var(--page-muted);
    font-size: 1rem;
    line-height: 1.72;
}

.moments-stats {
    display: grid;
    gap: 0.85rem;
}

.moment-stat-card {
    display: grid;
    gap: 0.22rem;
    padding: 1rem 1.05rem;
    background: var(--page-subtle-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.25rem;
}

.moment-stat-card strong {
    color: var(--page-text);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
}

.moment-stat-card span {
    color: var(--page-muted);
    font-size: 0.92rem;
}

.moments-layout {
    display: grid;
    grid-template-columns: minmax(19rem, 25rem) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
}

.moments-sidebar,
.moments-main {
    display: grid;
    gap: 1.2rem;
}

.moments-callout {
    padding: 1rem 1.15rem;
    border-radius: 1.3rem;
    font-size: 0.96rem;
    line-height: 1.6;
}

.moments-callout-error {
    color: #8c3043;
    background: rgba(216, 79, 97, 0.11);
    border: 1px solid rgba(216, 79, 97, 0.18);
}

.moments-callout-warning {
    color: #7f5e27;
    background: rgba(244, 203, 112, 0.16);
    border: 1px solid rgba(244, 203, 112, 0.24);
}

.portal-search-page {
    display: grid;
    gap: 1.35rem;
}

.portal-search-panel {
    padding: 1.45rem;
    background: var(--page-surface);
    border: 1px solid var(--page-modal-border);
    border-radius: 1.7rem;
    box-shadow: 0 20px 44px rgba(124, 136, 162, 0.1);
    backdrop-filter: blur(14px);
}

.portal-search-intro h1 {
    margin: 0.3rem 0 0.45rem;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 4vw, 3.55rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.portal-search-intro p:last-child {
    margin: 0;
    max-width: 48rem;
    color: var(--page-muted);
    line-height: 1.7;
}

.portal-search-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

.portal-search-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
    min-height: 4.25rem;
    padding: 0 1.2rem;
    background: var(--page-input-surface);
    border: 1px solid rgba(120, 132, 159, 0.12);
    border-radius: 1.45rem;
}

.portal-search-input-icon {
    display: inline-flex;
    color: var(--page-muted);
}

.portal-search-input-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.portal-search-input input {
    width: 100%;
    min-width: 0;
    min-height: 3rem;
    padding: 0;
    color: var(--page-text);
    background: transparent;
    border: 0;
    outline: 0;
}

.portal-search-input input::placeholder {
    color: var(--page-muted);
}

.portal-search-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: end;
}

.portal-filter-field {
    display: grid;
    gap: 0.45rem;
}

.portal-filter-field span {
    color: var(--page-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.portal-filter-field select,
.portal-filter-field input {
    min-height: 2.9rem;
    width: 100%;
    padding: 0 0.9rem;
    color: var(--page-text);
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
    outline: 0;
}

.portal-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.portal-search-notices {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.portal-search-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.portal-search-summary h2 {
    margin: 0.1rem 0 0;
    font-size: 1.25rem;
}

.portal-search-counts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.portal-search-empty {
    padding: 1.15rem 1.2rem;
}

.portal-search-results {
    display: grid;
    gap: 0.95rem;
}

.portal-search-result-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.35rem;
    box-shadow: var(--page-surface-shadow);
}

.portal-search-result-media {
    display: inline-flex;
    width: 5.2rem;
    height: 5.2rem;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(95, 143, 213, 0.16), rgba(250, 232, 199, 0.36));
}

.portal-search-result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-search-result-body {
    display: grid;
    gap: 0.5rem;
}

.portal-search-result-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.portal-search-inline-meta {
    color: var(--page-muted);
    font-size: 0.86rem;
}

.portal-search-result-body h3 {
    margin: 0;
    font-size: 1.05rem;
}

.portal-search-result-body h3 a {
    color: var(--page-text);
}

.portal-search-result-body p {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.65;
}

.portal-search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    color: var(--page-muted);
    font-size: 0.84rem;
}

.guide-page {
    display: grid;
    gap: 1.45rem;
}

.guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.guide-hero-copy h1,
.guide-article-header h1 {
    margin: 0.25rem 0 0.55rem;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.6rem, 4.6vw, 4rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.guide-hero-copy p:last-child,
.guide-article-header p {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.72;
}

.guide-search-inline {
    display: grid;
    gap: 0.6rem;
    padding: 1rem 1.05rem;
    background: var(--page-subtle-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.25rem;
}

.guide-search-inline label {
    color: var(--page-text);
    font-size: 0.92rem;
    font-weight: 700;
}

.guide-search-inline-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.guide-search-inline input {
    width: 100%;
    padding: 1rem;
    color: var(--page-text);
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
    outline: none;
}

.guide-section {
    display: grid;
    gap: 1rem;
}

.guide-grid,
.guide-grid-featured {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.guide-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.2rem;
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.4rem;
    box-shadow: var(--page-shadow);
}

.guide-card-featured {
    background: linear-gradient(180deg, color-mix(in srgb, var(--page-accent-soft) 54%, var(--page-surface)), var(--page-surface));
}

.guide-card-topline,
.guide-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.guide-card-date {
    color: var(--page-muted);
    font-size: 0.82rem;
}

.guide-card h3,
.guide-sidebar-card h2 {
    margin: 0;
    color: var(--page-text);
    font-size: 1.18rem;
    font-weight: 800;
}

.guide-card p,
.guide-related-item p {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.65;
}

.guide-article-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.75fr);
    gap: 1rem;
    align-items: start;
}

.guide-article-main,
.guide-sidebar-card {
    display: grid;
    gap: 1rem;
}

.guide-article-content {
    display: grid;
    gap: 1.2rem;
}

.guide-article-section {
    display: grid;
    gap: 0.7rem;
}

.guide-article-section h2 {
    margin: 0;
    color: var(--page-text);
    font-size: 1.2rem;
    font-weight: 800;
}

.guide-article-section p,
.guide-faq-item p {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.72;
}

.guide-faq-list,
.guide-related-list {
    display: grid;
    gap: 0.75rem;
}

.guide-faq-item,
.guide-related-item {
    padding: 0.95rem 1rem;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
}

.guide-related-item strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--page-text);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-heading-secondary {
    margin-top: 1.2rem;
}

.panel-heading h2,
.panel-heading h3 {
    margin: 0.12rem 0 0;
    color: var(--page-text);
    font-size: 1.1rem;
}

.panel-eyebrow {
    margin: 0;
    color: var(--page-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.panel-empty,
.mini-empty {
    padding: 1rem;
    color: var(--page-muted);
    background: var(--page-subtle-surface);
    border-radius: 1.2rem;
    line-height: 1.6;
}

.album-list {
    display: grid;
    gap: 0.75rem;
}

.album-list-card {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 1.25rem;
    color: inherit;
    background: var(--page-input-surface);
    border: 1px solid rgba(123, 137, 165, 0.1);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.album-list-card:hover,
.album-list-card:focus-visible,
.album-list-card.is-active {
    transform: translateY(-1px);
    border-color: rgba(95, 143, 213, 0.22);
    box-shadow: 0 16px 30px rgba(120, 132, 159, 0.12);
}

.album-list-media {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    overflow: hidden;
    color: var(--page-accent);
    background: linear-gradient(135deg, rgba(95, 143, 213, 0.2), rgba(128, 188, 210, 0.18));
    border-radius: 1rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.album-list-media.is-shared {
    color: #4f6d95;
    background: linear-gradient(135deg, rgba(250, 232, 199, 0.56), rgba(196, 220, 245, 0.34));
}

.album-list-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-list-copy {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
}

.album-list-copy strong {
    color: var(--page-text);
    font-size: 0.98rem;
}

.album-list-copy small {
    color: var(--page-muted);
    line-height: 1.45;
}

.stack-form {
    display: grid;
    gap: 1rem;
}

.stack-form-compact {
    margin-top: 0.8rem;
}

.field {
    display: grid;
    gap: 0.42rem;
}

.field span,
.member-picker legend {
    color: var(--page-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.field input[type="text"],
.field input[type="file"],
.field textarea,
.field select {
    width: 100%;
    padding: 0.95rem 1rem;
    color: var(--page-text);
    background: var(--page-input-surface);
    border: 1px solid rgba(122, 134, 160, 0.14);
    border-radius: 1rem;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
    resize: vertical;
    min-height: 6rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(95, 143, 213, 0.36);
    box-shadow: 0 0 0 4px rgba(95, 143, 213, 0.12);
}

.field-help {
    margin: 0;
    color: var(--page-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.member-picker {
    margin: 0;
    padding: 1rem;
    background: var(--page-subtle-surface);
    border: 1px solid rgba(122, 134, 160, 0.12);
    border-radius: 1.2rem;
}

.member-picker legend {
    padding: 0 0.25rem;
}

.member-checklist {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.member-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.72rem;
    align-items: flex-start;
    padding: 0.75rem 0.82rem;
    background: var(--page-input-surface);
    border-radius: 0.95rem;
}

.member-option input {
    margin-top: 0.2rem;
}

.member-option span {
    display: grid;
    gap: 0.12rem;
}

.member-option strong {
    color: var(--page-text);
    font-size: 0.92rem;
}

.member-option small {
    color: var(--page-muted);
    line-height: 1.45;
}

.form-actions,
.inline-actions,
.notification-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.primary-button,
.secondary-button,
.ghost-danger-button,
.inline-danger-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-button,
.secondary-button,
.ghost-danger-button,
.inline-danger-button {
    border: 0;
    cursor: pointer;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--page-accent), #78a4de);
    box-shadow: 0 16px 30px rgba(95, 143, 213, 0.24);
}

.secondary-button {
    color: var(--page-text);
    background: var(--page-surface-strong);
    border: 1px solid var(--page-line);
}

.ghost-danger-button,
.inline-danger-button {
    color: #b64557;
    background: rgba(216, 79, 97, 0.1);
}

.text-link {
    min-height: auto;
    padding: 0;
    color: var(--page-accent);
}

button.text-link {
    background: transparent;
    border: 0;
    cursor: pointer;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-danger-button:hover,
.inline-danger-button:hover,
.text-link:hover {
    transform: translateY(-1px);
}

.album-showcase-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.album-showcase-header h2 {
    margin: 0.12rem 0 0.42rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    line-height: 0.96;
}

.album-meta-line,
.photo-card-head p,
.notification-meta {
    margin: 0;
    color: var(--page-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.album-description,
.photo-caption,
.notification-body {
    margin: 0.75rem 0 0;
    color: var(--page-text);
    line-height: 1.72;
}

.album-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.32rem 0.8rem;
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 76%, transparent);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.comment-stream {
    display: grid;
    gap: 0.8rem;
}

.comment-stream-photo {
    margin-top: 0.95rem;
}

.comment-card {
    padding: 0.9rem 1rem;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.05rem;
}

.comment-card-compact {
    padding: 0.8rem 0.9rem;
}

.comment-card header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.35rem;
}

.comment-card header strong {
    color: var(--page-text);
}

.comment-card header span {
    color: var(--page-muted);
    font-size: 0.82rem;
}

.comment-card p {
    margin: 0;
    color: var(--page-text);
    line-height: 1.65;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.photo-card {
    overflow: hidden;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.35rem;
}

.photo-card-media {
    aspect-ratio: 16 / 11;
    background: linear-gradient(135deg, rgba(95, 143, 213, 0.16), rgba(250, 232, 199, 0.34));
}

.photo-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-card-body {
    display: grid;
    gap: 0.82rem;
    padding: 1rem;
}

.photo-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.photo-card-head h3,
.notification-title {
    margin: 0;
    color: var(--page-text);
    font-size: 1.02rem;
}

.photo-card-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: var(--page-muted);
    font-size: 0.86rem;
}

.notifications-panel {
    display: grid;
    gap: 1rem;
}

.notification-list {
    display: grid;
    gap: 0.9rem;
}

.notification-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.2rem;
}

.notification-card.is-unread {
    background: color-mix(in srgb, var(--page-accent-soft) 20%, var(--page-input-surface));
    border-color: color-mix(in srgb, var(--page-accent) 26%, var(--page-line));
}

.notification-copy {
    display: grid;
    gap: 0.28rem;
}

.notification-body {
    margin-top: 0;
}

.moments-overview,
.moments-detail-page,
.moments-manage-page {
    display: grid;
    gap: 1.4rem;
}

.moments-overview-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.moments-overview-title h1 {
    margin: 0.18rem 0 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.moments-section {
    display: grid;
    gap: 1rem;
}

.moments-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

body.is-overlay-open {
    overflow: hidden;
}

.moments-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.moments-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--page-muted);
    font-size: 0.9rem;
}

.moments-breadcrumbs a {
    color: var(--page-accent);
}

.album-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.album-card-minimal {
    overflow: hidden;
    background: var(--page-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.45rem;
    box-shadow: var(--page-shadow);
}

.album-card-link {
    display: grid;
    gap: 0;
    color: inherit;
}

.album-card-cover {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    color: var(--page-accent);
    background: linear-gradient(135deg, rgba(95, 143, 213, 0.16), rgba(250, 232, 199, 0.36));
}

.album-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-card-cover span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    font-weight: 800;
}

.album-card-body {
    display: grid;
    gap: 0.5rem;
    padding: 1rem 1rem 1.1rem;
}

.album-card-body strong {
    color: var(--page-text);
    font-size: 1.02rem;
}

.album-card-body small {
    color: var(--page-muted);
    line-height: 1.55;
}

.album-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.album-card-date {
    color: var(--page-muted);
    font-size: 0.82rem;
}

.simple-album-list,
.simple-note-list,
.related-photo-list {
    display: grid;
    gap: 0.7rem;
}

.simple-album-row,
.related-photo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    color: inherit;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.1rem;
}

.simple-album-row span,
.related-photo-row span:last-child {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.simple-album-row strong,
.related-photo-row strong {
    color: var(--page-text);
}

.simple-album-row small,
.related-photo-row small,
.simple-album-row em {
    color: var(--page-muted);
    font-size: 0.84rem;
    font-style: normal;
}

.album-hero-card {
    display: grid;
    grid-template-columns: minmax(17rem, 1fr) minmax(0, 1.15fr);
    gap: 1.2rem;
    align-items: stretch;
}

.album-hero-media {
    position: relative;
    overflow: hidden;
    border-radius: 1.45rem;
    aspect-ratio: 5 / 4;
    background: linear-gradient(135deg, rgba(95, 143, 213, 0.16), rgba(250, 232, 199, 0.36));
}

.album-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-hero-media span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--page-accent);
    font-size: 3.2rem;
    font-weight: 800;
}

.album-hero-copy {
    display: grid;
    align-content: center;
    gap: 0.75rem;
}

.album-hero-copy h1,
.photo-stage-aside h1,
.moments-manage-page .moments-hero-copy h1 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.photo-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.photo-teaser-card {
    overflow: hidden;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.35rem;
}

.photo-teaser-preview {
    display: block;
    width: 100%;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: zoom-in;
}

.photo-teaser-media {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
}

.photo-teaser-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-teaser-body {
    display: grid;
    gap: 0.28rem;
    padding: 0.95rem 1rem 1.05rem;
}

.photo-teaser-body strong {
    color: var(--page-text);
}

.photo-teaser-body small {
    color: var(--page-muted);
    line-height: 1.55;
}

.photo-teaser-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.photo-teaser-actions form {
    margin: 0;
}

.photo-focus-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.75fr);
    gap: 1.2rem;
    align-items: start;
}

.photo-stage {
    padding: 0;
    overflow: hidden;
}

.photo-stage-trigger {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: zoom-in;
}

.photo-stage-media {
    background: var(--page-subtle-surface);
}

.photo-stage-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 76vh;
    object-fit: contain;
}

.photo-stage-aside {
    display: grid;
    gap: 0.75rem;
}

.photo-stage-footer {
    padding: 0.9rem 1rem 1rem;
}

.related-photo-row {
    justify-content: flex-start;
}

.related-photo-thumb {
    display: inline-flex;
    flex: 0 0 4rem;
    width: 4rem;
    height: 4rem;
    overflow: hidden;
    border-radius: 0.95rem;
}

.related-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manage-photo-preview {
    overflow: hidden;
    border-radius: 1.25rem;
    background: var(--page-subtle-surface);
}

.manage-photo-preview img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.photo-dropzone {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 11.5rem;
    padding: 1.4rem;
    text-align: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--page-accent-soft) 16%, var(--page-input-surface)), var(--page-subtle-surface));
    border: 1px dashed rgba(95, 143, 213, 0.35);
    border-radius: 1.35rem;
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.photo-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.photo-dropzone-copy {
    display: grid;
    gap: 0.45rem;
    pointer-events: none;
}

.photo-dropzone-copy strong {
    color: var(--page-text);
    font-size: 1rem;
}

.photo-dropzone-copy small {
    color: var(--page-muted);
    line-height: 1.6;
}

.photo-dropzone.is-drag-over {
    border-color: rgba(95, 143, 213, 0.72);
    box-shadow: 0 18px 36px rgba(95, 143, 213, 0.12);
    transform: translateY(-1px);
}

.photo-upload-summary {
    color: var(--page-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.photo-upload-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.photo-upload-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.8rem;
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 78%, transparent);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.moments-viewer {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.moments-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 24, 0.78);
    backdrop-filter: blur(10px);
}

.moments-viewer-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    width: min(100% - 2rem, 92rem);
    height: min(100% - 2rem, 56rem);
    margin: 1rem auto;
    padding: 1rem;
}

.moments-viewer-stage {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
    margin: 0;
}

.moments-viewer-stage img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 11rem);
    object-fit: contain;
    border-radius: 1.3rem;
    background: rgba(18, 23, 34, 0.9);
}

.moments-viewer-caption {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    color: #f7f7fb;
    background: rgba(18, 23, 34, 0.7);
    border-radius: 1rem;
}

.moments-viewer-caption strong {
    font-size: 1rem;
}

.moments-viewer-caption p {
    margin: 0;
    color: rgba(245, 247, 252, 0.82);
    line-height: 1.6;
}

.moments-viewer-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.moments-viewer-close,
.moments-viewer-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: #f8f8fc;
    background: rgba(18, 23, 34, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    cursor: pointer;
}

.moments-viewer-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    font-size: 1.6rem;
}

.moments-viewer-nav {
    font-size: 2rem;
}

.text-link-danger {
    color: #b64557;
}

.moments-cta-row form {
    margin: 0;
}

.home-collaboration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.home-collaboration-card {
    display: grid;
    gap: 1rem;
}

.home-collaboration-copy {
    margin: -0.25rem 0 0;
    color: var(--page-muted);
    line-height: 1.7;
}

.home-widget-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-widget-metric {
    display: grid;
    gap: 0.22rem;
    padding: 0.9rem 0.95rem;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.1rem;
}

.home-widget-metric strong {
    color: var(--page-text);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.home-widget-metric span {
    color: var(--page-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.home-widget-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.home-widget-section-heading strong {
    color: var(--page-text);
    font-size: 0.96rem;
    letter-spacing: -0.02em;
}

.home-widget-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-widget-actions-row .secondary-button {
    min-height: 2.55rem;
    padding-inline: 1rem;
}

.home-quick-list-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(180deg, color-mix(in srgb, var(--page-accent-soft) 42%, var(--page-surface)) 0%, var(--page-input-surface) 100%);
    border: 1px solid color-mix(in srgb, var(--page-accent) 14%, var(--page-line));
    border-radius: 1.2rem;
    box-shadow: var(--page-surface-shadow);
}

.home-quick-list-card:hover,
.home-quick-list-card:focus-visible {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--page-accent) 24%, var(--page-line));
    box-shadow: var(--page-shadow);
}

.home-quick-list-copy {
    display: grid;
    gap: 0.3rem;
}

.home-quick-list-copy strong {
    color: var(--page-text);
    font-size: 1.02rem;
}

.home-quick-list-copy p:last-child {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.6;
}

.home-quick-list-meta,
.home-task-tags,
.home-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.contextual-shortcut-list,
.contextual-action-list,
.shared-task-list,
.collaboration-group-list,
.task-stream {
    display: grid;
    gap: 0.8rem;
}

.contextual-shortcut-row,
.contextual-action-row,
.shared-task-row,
.shared-list-chip,
.lists-sidebar-row,
.task-card,
.collaboration-group-card {
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.15rem;
}

.contextual-shortcut-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.85rem 0.95rem;
    color: inherit;
}

.contextual-shortcut-copy {
    min-width: 0;
    display: grid;
    gap: 0.3rem;
}

.contextual-shortcut-copy strong {
    color: var(--page-text);
    font-size: 0.98rem;
}

.contextual-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    color: inherit;
}

.contextual-action-row span,
.shared-task-row div {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.contextual-action-row strong,
.shared-task-row strong,
.lists-sidebar-row strong,
.lists-detail-header h3,
.collaboration-group-card strong {
    color: var(--page-text);
}

.contextual-action-row small,
.shared-task-row small,
.lists-sidebar-row small,
.lists-detail-copy,
.lists-detail-meta,
.collaboration-group-description {
    color: var(--page-muted);
    line-height: 1.6;
}

.contextual-action-row em,
.lists-sidebar-row em {
    color: var(--page-accent);
    font-style: normal;
    font-weight: 700;
}

.shared-task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
}

.home-shared-task-row {
    color: inherit;
    text-decoration: none;
}

.home-shared-task-row:hover,
.home-shared-task-row:focus-visible {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--page-accent) 24%, var(--page-line));
    box-shadow: var(--page-surface-shadow);
}

.shared-list-chip-grid,
.collaboration-member-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.home-list-chip-grid {
    align-items: stretch;
}

.shared-list-chip,
.collaboration-member-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.95rem;
}

.shared-list-chip {
    flex-direction: column;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
}

.shared-list-chip small,
.collaboration-member-chip {
    color: var(--page-muted);
    font-size: 0.84rem;
}

.shared-list-chip.is-quick {
    background: color-mix(in srgb, var(--page-accent-soft) 38%, var(--page-input-surface));
    border-color: color-mix(in srgb, var(--page-accent) 18%, var(--page-line));
}

.lists-page,
.sharing-page {
    display: grid;
    gap: 1.35rem;
}

.lists-workspace {
    display: grid;
    grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
}

.lists-sidebar,
.lists-main {
    display: grid;
    gap: 1rem;
}

.lists-sidebar-list {
    display: grid;
    gap: 0.7rem;
}

.lists-sidebar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    color: inherit;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.lists-sidebar-row:hover,
.lists-sidebar-row:focus-visible,
.lists-sidebar-row.is-active {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--page-accent) 26%, var(--page-line));
    box-shadow: var(--page-surface-shadow);
}

.lists-sidebar-row span {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.lists-sidebar-row em {
    min-width: 2rem;
    text-align: right;
}

.lists-detail-card {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    background: var(--page-subtle-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.2rem;
}

.lists-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.lists-detail-header h3 {
    margin: 0.1rem 0 0;
}

.lists-detail-copy,
.lists-detail-meta {
    margin: 0;
}

.task-card {
    display: grid;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
}

.task-card.is-done {
    background: color-mix(in srgb, var(--page-accent-soft) 24%, var(--page-input-surface));
}

.task-card-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.task-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: transparent;
    background: var(--page-surface);
    border: 1px solid var(--page-line);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
}

.task-toggle-button.is-done {
    color: #ffffff;
    background: linear-gradient(135deg, var(--page-accent), #78a4de);
    border-color: transparent;
}

.task-card-copy {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
}

.task-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.task-card-head strong {
    color: var(--page-text);
    font-size: 1rem;
}

.task-card-pills,
.task-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.task-card-copy p,
.task-card-meta {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.6;
}

.task-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    justify-content: flex-end;
}

.task-card-actions form {
    margin: 0;
}

.collaboration-split-grid {
    align-items: start;
}

.collaboration-group-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1.05rem;
}

.collaboration-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.collaboration-group-head div {
    display: grid;
    gap: 0.18rem;
}

.collaboration-group-head small {
    color: var(--page-muted);
}

.collaboration-group-description {
    margin: 0;
}

.collaboration-note-list {
    margin-top: 0.4rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lists-shell {
    display: grid;
    gap: 1.2rem;
}

.lists-hero-header {
    align-items: end;
}

.lists-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.lists-toolbar-button,
.lists-inline-close,
.lists-quick-submit {
    width: 2.9rem;
    height: 2.9rem;
}

.lists-toolbar-button svg,
.lists-inline-close svg,
.lists-quick-submit svg,
.lists-current-actions .secondary-button svg,
.lists-check-actions .text-link svg,
.lists-check-actions .text-link-danger svg {
    width: 1rem;
    height: 1rem;
}

.lists-composer-panel,
.lists-current-panel,
.lists-meta-panel,
.lists-settings-panel,
.lists-task-editor {
    display: grid;
    gap: 1rem;
}

.lists-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.lists-panel-heading h2,
.lists-panel-heading h3 {
    margin: 0.1rem 0 0;
    color: var(--page-text);
}

.lists-form-grid,
.lists-sharing-grid,
.lists-inline-fields {
    display: grid;
    gap: 0.9rem;
}

.lists-form-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(13rem, 0.75fr);
}

.lists-sharing-grid,
.lists-inline-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lists-browser-panel {
    display: grid;
    gap: 1rem;
}

.lists-empty-browser {
    justify-items: start;
    gap: 0.75rem;
}

.lists-empty-browser strong {
    color: var(--page-text);
    font-size: 1.02rem;
}

.lists-empty-browser p {
    margin: 0;
}

.lists-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 86%, transparent);
    border-radius: 1rem;
}

.lists-empty-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.lists-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
    gap: 0.95rem;
}

.lists-board-card {
    display: grid;
    gap: 0.65rem;
    padding: 1rem 1.05rem;
    color: inherit;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.25rem;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.lists-board-card:hover,
.lists-board-card:focus-visible,
.lists-board-card.is-active {
    transform: translateY(-1px);
    background: var(--page-surface-strong);
    border-color: color-mix(in srgb, var(--page-accent) 24%, var(--page-line));
    box-shadow: var(--page-surface-shadow);
}

.lists-board-card-top {
    display: grid;
    gap: 0.55rem;
}

.lists-board-card strong,
.lists-current-head h2,
.lists-check-head strong,
.lists-meta-card strong {
    color: var(--page-text);
}

.lists-board-card p,
.lists-current-copy,
.lists-meta-card p,
.lists-check-copy p,
.lists-check-meta {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.6;
}

.lists-board-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: var(--page-muted);
    font-size: 0.88rem;
}

.lists-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.85fr);
    gap: 1.2rem;
    align-items: start;
}

.lists-current-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.lists-current-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.lists-current-actions .secondary-button,
.lists-check-actions .text-link,
.lists-check-actions .text-link-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.lists-quick-form,
.lists-task-editor {
    padding: 1rem 1.05rem;
    background: var(--page-subtle-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.25rem;
}

.lists-quick-input-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
}

.lists-quick-circle {
    width: 1.35rem;
    height: 1.35rem;
    border: 1.5px solid color-mix(in srgb, var(--page-accent) 28%, var(--page-line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--page-surface) 88%, transparent);
}

.lists-quick-input {
    display: block;
    min-width: 0;
}

.lists-quick-input input {
    width: 100%;
    padding: 0.45rem 0;
    color: var(--page-text);
    background: transparent;
    border: 0;
    outline: none;
    font-size: 1.04rem;
    font-weight: 600;
}

.lists-quick-input input::placeholder {
    color: color-mix(in srgb, var(--page-muted) 84%, transparent);
    font-weight: 500;
}

.lists-quick-submit {
    color: var(--page-white);
    background: linear-gradient(135deg, var(--page-accent), #78a4de);
    border: 0;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--page-accent) 22%, transparent);
}

.lists-quick-options {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.lists-quick-options summary {
    color: var(--page-accent);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    list-style: none;
}

.lists-quick-options summary::-webkit-details-marker {
    display: none;
}

.lists-items-section {
    display: grid;
    gap: 0.9rem;
}

.lists-items-section-completed {
    padding-top: 0.25rem;
    border-top: 1px solid var(--page-line);
}

.lists-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lists-section-heading h3 {
    margin: 0.12rem 0 0;
    color: var(--page-text);
}

.lists-checklist {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lists-check-item {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.2rem;
}

.lists-check-item.is-done {
    background: color-mix(in srgb, var(--page-accent-soft) 18%, var(--page-input-surface));
}

.lists-check-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.lists-check-copy {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.lists-check-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.lists-check-head strong {
    font-size: 1rem;
}

.lists-check-meta,
.lists-check-head .task-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.lists-check-item.is-done .lists-check-head strong {
    color: var(--page-muted);
    text-decoration: line-through;
}

.lists-check-item .task-toggle-button {
    margin-top: 0.15rem;
}

.lists-check-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-left: 2.9rem;
}

.lists-check-actions form {
    margin: 0;
}

.lists-meta-stack,
.lists-sharing-summary {
    display: grid;
    gap: 0.9rem;
}

.lists-meta-card {
    padding: 0.95rem 1rem;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
}

.lists-settings-panel {
    padding-top: 0.15rem;
    border-top: 1px solid var(--page-line);
}

.lists-settings-panel[hidden],
.lists-composer-panel[hidden] {
    display: none;
}

.lists-sharing-summary .shared-list-chip {
    min-width: 0;
}

.lists-page-header {
    margin-bottom: -0.35rem;
}

.lists-keep-shell {
    display: grid;
    gap: 1.2rem;
}

.lists-compose-card {
    width: min(100%, 44rem);
    margin: 0 auto;
}

.lists-compose-card.is-expanded .lists-compose-collapsed {
    display: none;
}

.lists-compose-collapsed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
    padding: 0.85rem 1rem 0.85rem 1.2rem;
    color: var(--page-muted);
    background: var(--page-surface-strong);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.2rem;
    box-shadow: var(--page-shadow);
}

.lists-compose-collapsed span:first-child {
    font-size: 1rem;
    font-weight: 600;
}

.lists-compose-collapsed-actions {
    display: inline-flex;
    align-items: center;
}

.lists-compose-form {
    display: grid;
    gap: 0.95rem;
    padding: 1rem 1.05rem;
    background: var(--page-surface-strong);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.35rem;
    box-shadow: var(--page-shadow);
}

.lists-compose-main {
    display: grid;
    gap: 0.8rem;
}

.lists-compose-title input,
.lists-compose-item input {
    width: 100%;
    padding: 0.2rem 0;
    color: var(--page-text);
    background: transparent;
    border: 0;
    outline: none;
}

.lists-compose-title input {
    font-size: 1.05rem;
    font-weight: 700;
}

.lists-compose-item input {
    font-size: 0.96rem;
    font-weight: 500;
}

.lists-compose-title input::placeholder,
.lists-compose-item input::placeholder {
    color: color-mix(in srgb, var(--page-muted) 84%, transparent);
}

.lists-compose-details,
.lists-inline-details,
.lists-completed-block,
.lists-settings-block {
    display: grid;
    gap: 0.9rem;
    padding-top: 0.1rem;
}

.lists-compose-details summary,
.lists-inline-details summary,
.lists-completed-block summary,
.lists-settings-block summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: var(--page-accent);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    list-style: none;
}

.lists-compose-details summary::-webkit-details-marker,
.lists-inline-details summary::-webkit-details-marker,
.lists-completed-block summary::-webkit-details-marker,
.lists-settings-block summary::-webkit-details-marker {
    display: none;
}

.lists-compose-details-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lists-compose-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.lists-focus-panel {
    display: grid;
    gap: 1rem;
}

.lists-focus-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.lists-focus-head h2,
.lists-section-header h3 {
    margin: 0.1rem 0 0;
    color: var(--page-text);
}

.lists-focus-copy {
    margin: 0.35rem 0 0;
    color: var(--page-muted);
    line-height: 1.6;
}

.lists-focus-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.lists-focus-meta .secondary-button,
.lists-focus-item-actions .text-link,
.lists-focus-item-actions .text-link-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.lists-quick-add {
    display: grid;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    background: var(--page-subtle-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.2rem;
}

.lists-quick-add-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
}

.lists-quick-add-field input {
    width: 100%;
    padding: 0.35rem 0;
    color: var(--page-text);
    background: transparent;
    border: 0;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
}

.lists-quick-add-field input::placeholder {
    color: color-mix(in srgb, var(--page-muted) 84%, transparent);
}

.lists-quick-add-submit {
    color: var(--page-white);
    background: linear-gradient(135deg, var(--page-accent), #78a4de);
    border: 0;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--page-accent) 18%, transparent);
}

.lists-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lists-focus-section {
    display: grid;
    gap: 0.9rem;
}

.lists-focus-items {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lists-focus-item {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem 0.95rem;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.15rem;
}

.lists-focus-item.is-done {
    background: color-mix(in srgb, var(--page-accent-soft) 18%, var(--page-input-surface));
}

.lists-focus-item-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.lists-focus-item-copy {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.lists-focus-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.lists-focus-item-head strong {
    color: var(--page-text);
    font-size: 1rem;
}

.lists-focus-item-copy p,
.lists-focus-item-meta {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.6;
}

.lists-focus-item-meta,
.lists-focus-item-head .task-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.lists-focus-item.is-done .lists-focus-item-head strong {
    color: var(--page-muted);
    text-decoration: line-through;
}

.lists-focus-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.95rem;
    align-items: center;
    margin-left: 2.85rem;
}

.lists-focus-item-actions form {
    margin: 0;
}

.lists-edit-inline,
.lists-settings-stack {
    display: grid;
    gap: 0.95rem;
}

.lists-edit-inline {
    padding: 0.95rem 1rem;
    background: var(--page-subtle-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.2rem;
}

.lists-settings-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.lists-grid-section {
    display: grid;
}

.lists-empty-state {
    width: min(100%, 32rem);
}

.lists-keep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 19rem));
    gap: 1rem;
    align-items: start;
    justify-content: center;
}

.lists-note-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1rem 0.9rem;
    background: var(--page-surface-strong);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.15rem;
    box-shadow: var(--page-surface-shadow);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.lists-note-card:hover,
.lists-note-card:focus-within,
.lists-note-card.is-active {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--page-accent) 24%, var(--page-line));
    box-shadow: var(--page-shadow);
}

.lists-note-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    color: inherit;
}

.lists-note-title strong {
    color: var(--page-text);
    font-size: 1.08rem;
    line-height: 1.35;
}

.lists-note-items {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lists-note-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
}

.lists-note-item a,
.lists-note-empty {
    color: var(--page-text);
    line-height: 1.55;
}

.lists-note-empty {
    color: var(--page-muted);
}

.lists-note-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
    padding-top: 0.75rem;
    color: var(--page-muted);
    font-size: 0.86rem;
    border-top: 1px solid var(--page-line);
}

.lists-note-card .task-toggle-button,
.lists-focus-item .task-toggle-button {
    margin-top: 0.1rem;
}

.lists-header-simple {
    align-items: flex-start;
}

.lists-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.lists-action-button,
.lists-item-action,
.lists-header-add-button,
.lists-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    min-height: 2.55rem;
    padding: 0.62rem 1rem;
    color: var(--page-text);
    background: var(--page-surface-strong);
    border: 1px solid var(--page-line);
    border-radius: 999px;
    box-shadow: var(--page-surface-shadow);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.lists-action-button:hover,
.lists-item-action:hover,
.lists-header-add-button:hover,
.lists-back-link:hover,
.lists-action-button:focus-visible,
.lists-item-action:focus-visible,
.lists-header-add-button:focus-visible,
.lists-back-link:focus-visible {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--page-accent) 24%, var(--page-line));
    box-shadow: var(--page-shadow);
}

.lists-action-button svg,
.lists-item-action svg,
.lists-header-add-button svg,
.lists-back-link svg {
    width: 1rem;
    height: 1rem;
}

.lists-action-button-secondary,
.lists-action-button-ghost {
    background: var(--page-surface-strong);
}

.lists-action-button-danger,
.lists-item-action-danger {
    color: #b64557;
    background: color-mix(in srgb, rgba(216, 79, 97, 0.12) 86%, var(--page-surface));
    border-color: color-mix(in srgb, rgba(216, 79, 97, 0.24) 68%, var(--page-line));
}

.lists-item-action {
    min-height: 2.2rem;
    padding: 0.48rem 0.82rem;
    font-size: 0.84rem;
    background: var(--page-input-surface);
    box-shadow: none;
}

.lists-header-add-button {
    width: 2.95rem;
    height: 2.95rem;
    padding: 0;
    border-radius: 1rem;
}

.lists-plus-menu[open] .lists-header-add-button,
.lists-inline-settings-toggle[open] > summary {
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 58%, var(--page-surface));
    border-color: color-mix(in srgb, var(--page-accent) 24%, var(--page-line));
}

.lists-back-link svg {
    width: 1rem;
    height: 1rem;
}

.lists-plus-menu {
    position: relative;
}

.lists-plus-menu summary {
    list-style: none;
    cursor: pointer;
}

.lists-plus-menu summary::-webkit-details-marker {
    display: none;
}

.lists-plus-popover {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    z-index: 20;
    display: grid;
    gap: 0.6rem;
    width: min(24rem, calc(100vw - 2rem));
    padding: 0.8rem;
    background: var(--page-modal-surface);
    border: 1px solid var(--page-modal-border);
    border-radius: 1.15rem;
    box-shadow: var(--page-shadow);
    backdrop-filter: blur(18px);
}

.lists-plus-action {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
    color: inherit;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
}

.lists-plus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 82%, transparent);
    border-radius: 0.85rem;
}

.lists-plus-icon svg {
    width: 1rem;
    height: 1rem;
}

.lists-plus-action strong,
.lists-card-title strong,
.lists-detail-item-head strong,
.lists-section-title h2,
.lists-section-title h3,
.lists-inline-settings-panel strong {
    color: var(--page-text);
}

.lists-plus-action small,
.lists-card-empty,
.lists-detail-description,
.lists-detail-item-meta {
    color: var(--page-muted);
    line-height: 1.6;
}

.lists-overview-shell,
.lists-detail-shell {
    display: grid;
    gap: 1.2rem;
}

.lists-top-card,
.lists-detail-panel,
.lists-edit-card {
    display: grid;
    gap: 1rem;
}

.lists-section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.lists-section-title h2,
.lists-section-title h3 {
    margin: 0.1rem 0 0;
}

.lists-simple-form,
.lists-quicklist-form {
    display: grid;
    gap: 0.95rem;
}

.lists-simple-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.lists-simple-details,
.lists-completed-collapse,
.lists-inline-settings-toggle {
    display: grid;
    gap: 0.85rem;
}

.lists-simple-details summary,
.lists-completed-collapse summary,
.lists-inline-settings-toggle summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: var(--page-accent);
    cursor: pointer;
    list-style: none;
    font-size: 0.92rem;
    font-weight: 700;
}

.lists-inline-settings-toggle {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 0;
}

.lists-inline-settings-toggle > summary {
    justify-content: center;
    color: var(--page-text);
}

.lists-simple-details summary::-webkit-details-marker,
.lists-completed-collapse summary::-webkit-details-marker,
.lists-inline-settings-toggle summary::-webkit-details-marker {
    display: none;
}

.lists-quicklist-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.95rem 1rem;
    background: var(--page-subtle-surface);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.15rem;
}

.lists-quicklist-circle {
    width: 1.35rem;
    height: 1.35rem;
    border: 1.5px solid color-mix(in srgb, var(--page-accent) 28%, var(--page-line));
    border-radius: 999px;
}

.lists-quicklist-field input {
    width: 100%;
    padding: 0.2rem 0;
    color: var(--page-text);
    background: transparent;
    border: 0;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
}

.lists-quicklist-field input::placeholder {
    color: color-mix(in srgb, var(--page-muted) 84%, transparent);
}

.lists-quicklist-submit {
    color: var(--page-white);
    background: linear-gradient(135deg, var(--page-accent), #78a4de);
    border: 0;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--page-accent) 18%, transparent);
}

.lists-overview-group {
    display: grid;
    gap: 1rem;
}

.lists-section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
}

.lists-order-help,
.lists-reorder-feedback {
    margin: 0;
    color: var(--page-muted);
    font-size: 0.9rem;
}

.lists-reorder-feedback[data-state="error"] {
    color: var(--page-danger, #b95b66);
}

.lists-reorder-feedback[data-state="success"] {
    color: color-mix(in srgb, var(--page-accent) 72%, var(--page-text));
}

.lists-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 18.5rem));
    gap: 1rem;
    align-items: start;
}

.lists-card-grid.is-orderable {
    align-items: stretch;
}

.lists-card-grid.is-drag-active {
    user-select: none;
}

.lists-card-grid.is-saving {
    pointer-events: none;
}

.lists-card-grid-shared {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 16rem));
}

.lists-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1rem 0.98rem;
    background: var(--page-surface-strong);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.15rem;
    box-shadow: var(--page-surface-shadow);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.lists-card.is-orderable {
    cursor: default;
}

.lists-card:hover,
.lists-card:focus-within,
.lists-card.is-highlighted {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--page-accent) 24%, var(--page-line));
    box-shadow: var(--page-shadow);
}

.lists-card.is-highlighted {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--page-accent) 22%, transparent), var(--page-shadow);
}

.lists-card.is-dragging {
    z-index: 8;
    border-color: color-mix(in srgb, var(--page-accent) 36%, var(--page-line));
    box-shadow: 0 22px 45px color-mix(in srgb, var(--page-shadow) 72%, transparent);
}

.lists-card.is-dragging-hidden {
    opacity: 0.12;
}

.lists-card.is-drag-over {
    border-color: color-mix(in srgb, var(--page-accent) 36%, var(--page-line));
}

.lists-card-drop-placeholder {
    min-height: 10rem;
    background: color-mix(in srgb, var(--page-accent-soft) 36%, var(--page-surface-strong));
    border: 1.5px dashed color-mix(in srgb, var(--page-accent) 32%, var(--page-line));
    box-shadow: none;
}

.lists-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.lists-card-title {
    color: inherit;
}

.lists-card-title strong {
    font-size: 1.05rem;
    line-height: 1.4;
}

.lists-card-handle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--page-muted);
    background: color-mix(in srgb, var(--page-subtle-surface) 92%, transparent);
    border: 1px solid var(--page-line);
    border-radius: 999px;
    cursor: grab;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.lists-card-handle:hover {
    color: var(--page-text);
    border-color: color-mix(in srgb, var(--page-accent) 28%, var(--page-line));
}

.lists-card-handle:active {
    cursor: grabbing;
}

.lists-card-handle svg {
    width: 1rem;
    height: 1rem;
}

.lists-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: var(--page-muted);
    font-size: 0.88rem;
}

.lists-visibility-pill {
    flex: 0 0 auto;
    white-space: nowrap;
}

.lists-card-items {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lists-card-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    color: var(--page-text);
    line-height: 1.55;
}

.lists-card-bullet {
    width: 1rem;
    height: 1rem;
    margin-top: 0.18rem;
    border: 1.5px solid color-mix(in srgb, var(--page-accent) 24%, var(--page-line));
    border-radius: 999px;
}

.lists-card-empty {
    margin: 0;
}

.lists-card-footer {
    padding-top: 0.75rem;
    color: var(--page-muted);
    font-size: 0.86rem;
    border-top: 1px solid var(--page-line);
}

.lists-detail-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
}

.lists-inline-settings-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    z-index: 25;
    width: min(38rem, calc(100vw - 2rem));
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    background: var(--page-modal-surface);
    border: 1px solid var(--page-modal-border);
    border-radius: 1.2rem;
    box-shadow: var(--page-shadow);
    backdrop-filter: blur(18px);
}

.lists-inline-settings-copy {
    display: grid;
    gap: 0.35rem;
    padding-bottom: 0.1rem;
}

.lists-inline-settings-copy strong {
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.lists-inline-settings-copy p:last-child {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.6;
}

.lists-detail-description {
    margin: 0;
}

.lists-detail-group {
    display: grid;
    gap: 0.9rem;
}

.lists-detail-items {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lists-detail-item {
    display: grid;
    gap: 0.7rem;
    padding: 0.9rem 0.95rem;
    background: var(--page-surface-strong);
    border: 1px solid var(--page-line);
    border-radius: 1.1rem;
}

.lists-detail-item.is-done {
    background: color-mix(in srgb, var(--page-accent-soft) 18%, var(--page-input-surface));
}

.lists-detail-item-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.lists-detail-item-copy {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.lists-detail-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.lists-detail-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.lists-detail-item.is-done .lists-detail-item-head strong {
    color: var(--page-muted);
    text-decoration: line-through;
}

.lists-detail-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-left: 2.85rem;
}

.lists-detail-item-actions form {
    margin: 0;
}

.lists-detail-item-actions svg {
    width: 1rem;
    height: 1rem;
}

.lists-completed-collapse > summary {
    padding: 0.3rem 0;
}

.lists-inline-settings-panel .form-actions {
    padding-top: 0.25rem;
    border-top: 1px solid color-mix(in srgb, var(--page-line) 72%, transparent);
}

.messages-page {
    display: grid;
    gap: 1.35rem;
}

.messages-header {
    margin-bottom: 0.1rem;
}

.chat-shell {
    display: grid;
    grid-template-columns: minmax(19rem, 24rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.chat-sidebar,
.chat-detail-panel {
    min-height: 42rem;
}

.chat-sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.chat-sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.chat-sidebar-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-compose-sheet {
    position: relative;
    flex: 0 0 auto;
}

.chat-compose-sheet > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    list-style: none;
    color: var(--page-white);
    background: linear-gradient(135deg, var(--page-accent), #7ca9e0);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--page-accent) 26%, transparent);
    cursor: pointer;
}

.chat-compose-sheet > summary::-webkit-details-marker {
    display: none;
}

.chat-compose-sheet > summary svg {
    width: 1.2rem;
    height: 1.2rem;
}

.chat-compose-sheet[open] > summary {
    color: var(--page-accent);
    background: var(--page-option-surface);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--page-accent) 18%, transparent);
}

.chat-compose-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    z-index: 20;
    width: min(28rem, calc(100vw - 2rem));
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    background: var(--page-modal-surface);
    border: 1px solid var(--page-modal-border);
    border-radius: 1.35rem;
    box-shadow: var(--page-shadow);
    backdrop-filter: blur(18px);
}

.chat-compose-panel-head {
    display: grid;
    gap: 0.25rem;
}

.chat-compose-panel-head h3 {
    margin: 0;
    font-size: 1.02rem;
}

.chat-create-form {
    display: grid;
    gap: 0.9rem;
}

.chat-create-form label {
    display: block;
    margin-bottom: 0.38rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.chat-create-form input,
.chat-create-form select {
    width: 100%;
    min-width: 0;
    padding: 0.9rem 0.95rem;
    color: var(--page-text);
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
    outline: none;
}

.chat-create-form input:focus,
.chat-create-form select:focus {
    border-color: color-mix(in srgb, var(--page-accent) 28%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--page-accent) 10%, transparent);
}

.chat-choice-group {
    display: grid;
    gap: 0.7rem;
}

.chat-choice-group > strong {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--page-text);
    font-size: 0.9rem;
}

.chat-choice-group > strong svg {
    width: 1rem;
    height: 1rem;
    color: var(--page-accent);
}

.chat-choice-grid {
    display: grid;
    gap: 0.7rem;
    max-height: 14rem;
    overflow-y: auto;
    padding-right: 0.1rem;
}

.chat-choice-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    padding: 0.85rem 0.9rem;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
    cursor: pointer;
}

.chat-choice-card input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.18rem;
}

.chat-choice-card span {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.chat-choice-card strong {
    font-size: 0.92rem;
}

.chat-choice-card small {
    color: var(--page-muted);
    line-height: 1.5;
}

.chat-create-actions {
    display: flex;
    justify-content: flex-end;
}

.chat-sidebar-list {
    min-height: 0;
}

.chat-empty-sidebar {
    min-height: 10rem;
}

.chat-conversation-list {
    display: grid;
    gap: 0.75rem;
}

.chat-conversation-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.95rem 1rem;
    color: inherit;
    text-decoration: none;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.2rem;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.chat-conversation-row:hover,
.chat-conversation-row:focus-visible,
.chat-conversation-row.is-selected {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--page-accent) 20%, var(--page-line));
    box-shadow: var(--page-surface-shadow);
}

.chat-conversation-row.is-unread {
    background: color-mix(in srgb, var(--page-accent-soft) 22%, var(--page-input-surface));
}

.chat-conversation-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 78%, transparent);
    border-radius: 1rem;
    font-size: 0.92rem;
    font-weight: 800;
}

.chat-conversation-avatar.is-group {
    color: var(--page-text);
    background: color-mix(in srgb, var(--page-secondary) 88%, transparent);
}

.chat-conversation-copy {
    display: grid;
    gap: 0.24rem;
    min-width: 0;
}

.chat-conversation-copy strong,
.chat-detail-title-row h2,
.chat-message-author {
    color: var(--page-text);
}

.chat-conversation-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.96rem;
}

.chat-conversation-copy small {
    color: var(--page-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.45;
}

.chat-conversation-meta {
    display: grid;
    justify-items: end;
    gap: 0.45rem;
    color: var(--page-muted);
    font-size: 0.78rem;
}

.chat-unread-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    color: #ffffff;
    background: linear-gradient(135deg, #dd6674, #c24658);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.chat-detail-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 1rem;
    min-width: 0;
}

.chat-detail-empty {
    display: grid;
    place-items: center;
    min-height: 100%;
}

.chat-detail-empty-card {
    display: grid;
    gap: 0.5rem;
    max-width: 28rem;
    text-align: center;
}

.chat-detail-empty-card h2 {
    margin: 0;
    font-size: 1.5rem;
}

.chat-detail-empty-card p:last-child {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.7;
}

.chat-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.chat-detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.chat-detail-title-row h2 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.chat-detail-subline,
.chat-security-note {
    margin: 0.25rem 0 0;
    color: var(--page-muted);
    line-height: 1.6;
}

.chat-security-note {
    max-width: 16rem;
    text-align: right;
    font-size: 0.86rem;
}

.chat-message-list {
    display: grid;
    gap: 0.9rem;
    min-height: 20rem;
    max-height: 34rem;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.chat-message-empty {
    min-height: 12rem;
}

.chat-day-separator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-day-separator span {
    padding: 0.38rem 0.75rem;
    color: var(--page-muted);
    background: color-mix(in srgb, var(--page-option-surface) 86%, transparent);
    border: 1px solid color-mix(in srgb, var(--page-line) 82%, transparent);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chat-message {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: end;
    max-width: min(100%, 46rem);
}

.chat-message.is-own {
    justify-self: end;
    grid-template-columns: minmax(0, 1fr);
}

.chat-message-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    color: var(--page-accent);
    background: color-mix(in srgb, var(--page-accent-soft) 78%, transparent);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.chat-message-stack {
    display: grid;
    gap: 0.32rem;
}

.chat-message-author {
    padding-left: 0.2rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.chat-message-bubble {
    display: grid;
    gap: 0.6rem;
    max-width: min(100%, 34rem);
    padding: 0.85rem 0.95rem;
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1.2rem 1.2rem 1.2rem 0.5rem;
    box-shadow: var(--page-surface-shadow);
}

.chat-message.is-own .chat-message-bubble {
    justify-self: end;
    color: var(--page-text);
    background: linear-gradient(135deg, color-mix(in srgb, var(--page-accent-soft) 88%, var(--page-surface)), color-mix(in srgb, var(--page-accent) 9%, var(--page-surface)));
    border-radius: 1.2rem 1.2rem 0.5rem 1.2rem;
}

.chat-message-bubble p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.chat-attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.6rem;
}

.chat-attachment-link {
    display: block;
    overflow: hidden;
    background: var(--page-surface-strong);
    border: 1px solid color-mix(in srgb, var(--page-line) 88%, transparent);
    border-radius: 1rem;
    aspect-ratio: 1 / 1;
}

.chat-attachment-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-message-meta {
    display: flex;
    justify-content: flex-end;
    color: var(--page-muted);
    font-size: 0.72rem;
}

.chat-composer-shell {
    display: grid;
    gap: 0.7rem;
    padding-top: 0.2rem;
}

.chat-composer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: end;
    padding: 0.8rem;
    background: var(--page-surface-strong);
    border: 1px solid var(--page-surface-border);
    border-radius: 1.35rem;
    box-shadow: var(--page-surface-shadow);
}

.chat-composer-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-tool-button,
.chat-send-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    color: var(--page-muted);
    background: var(--page-option-surface);
    border: 1px solid var(--page-line);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.chat-tool-button:hover,
.chat-tool-button:focus-visible,
.chat-send-button:hover,
.chat-send-button:focus-visible {
    transform: translateY(-1px);
    color: var(--page-text);
    border-color: color-mix(in srgb, var(--page-accent) 24%, var(--page-line));
}

.chat-tool-button svg,
.chat-send-button svg {
    width: 1.15rem;
    height: 1.15rem;
}

.chat-send-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--page-accent), #7ca9e0);
    border-color: transparent;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--page-accent) 24%, transparent);
}

.chat-composer-input {
    display: block;
}

.chat-composer-input textarea {
    width: 100%;
    min-height: 2.9rem;
    max-height: 9rem;
    padding: 0.8rem 0.95rem;
    color: var(--page-text);
    background: var(--page-input-surface);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
    outline: none;
    resize: vertical;
}

.chat-composer-input textarea:focus {
    border-color: color-mix(in srgb, var(--page-accent) 24%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--page-accent) 10%, transparent);
}

.chat-emoji-picker {
    position: relative;
}

.chat-emoji-panel {
    position: absolute;
    bottom: calc(100% + 0.6rem);
    left: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.4rem;
    width: 15rem;
    padding: 0.7rem;
    background: var(--page-modal-surface);
    border: 1px solid var(--page-modal-border);
    border-radius: 1rem;
    box-shadow: var(--page-shadow);
}

.chat-emoji-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0.7rem;
    cursor: pointer;
    font-size: 1.15rem;
}

.chat-emoji-button:hover,
.chat-emoji-button:focus-visible {
    background: var(--page-option-surface);
}

.chat-attachments-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.chat-attachment-preview-card {
    overflow: hidden;
    width: 5.25rem;
    height: 5.25rem;
    background: var(--page-surface-strong);
    border: 1px solid var(--page-line);
    border-radius: 1rem;
}

.chat-attachment-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1180px) {
    .site-header {
        grid-template-columns: 1fr;
        justify-items: center;
        padding-bottom: 1.5rem;
    }

    .header-actions {
        justify-content: center;
        width: 100%;
    }

    .moments-hero,
    .moments-layout,
    .home-highlight-layout,
    .home-collaboration-grid,
    .calendar-layout,
    .calendar-workspace,
    .lists-workspace,
    .chat-shell {
        grid-template-columns: 1fr;
    }

    .album-card-grid,
    .photo-teaser-grid,
    .moments-split-grid,
    .album-hero-card,
    .photo-focus-layout {
        grid-template-columns: 1fr;
    }

    .moments-viewer-dialog {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .moments-viewer-nav {
        display: none;
    }

    .shortcut-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-utility-stack {
        grid-column: auto;
    }

    .lists-detail-layout {
        grid-template-columns: 1fr;
    }

    .lists-compose-details-grid {
        grid-template-columns: 1fr;
    }

    .lists-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    }

    .chat-sidebar,
    .chat-detail-panel {
        min-height: 0;
    }

    .chat-compose-panel {
        width: min(calc(100vw - 2rem), 30rem);
    }

    .portal-search-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-modal-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-featured-photo-card {
        min-height: 18.5rem;
        max-height: none;
    }

    .calendar-year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-widget-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .page-shell {
        width: min(calc(100% - 1rem), var(--page-container));
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 1rem 1.4rem;
    }

    .search-modal-dialog {
        margin-top: 2rem;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 4.6rem);
    }

    .shortcut-manager-panel-header,
    .shortcut-manager-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .shortcut-display-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .shortcut-display-toggle {
        width: 100%;
    }

    .shortcut-display-option {
        flex: 1 1 0;
    }

    .lists-current-head,
    .lists-section-heading,
    .lists-panel-heading,
    .chat-detail-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .lists-current-actions,
    .lists-check-actions {
        margin-left: 0;
        justify-content: flex-start;
    }

    .lists-focus-head,
    .lists-focus-meta,
    .lists-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .lists-focus-meta {
        justify-content: flex-start;
    }

    .lists-section-title,
    .lists-detail-meta-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .lists-section-actions {
        justify-content: flex-start;
    }

    .lists-inline-settings-toggle {
        width: 100%;
    }

    .lists-inline-settings-toggle > summary {
        width: 100%;
    }

    .lists-inline-settings-panel {
        position: static;
        width: 100%;
    }

    .shortcut-manager-layout,
    .shortcut-manager-grid-three {
        grid-template-columns: 1fr;
    }

    .shortcut-manager-grid {
        grid-template-columns: 1fr;
    }

    .shortcut-section-row {
        grid-template-columns: 1fr;
    }

    .search-input-wrap-home {
        min-height: auto;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 1rem;
        border-radius: 1.35rem;
    }

    .search-provider-inline {
        border-right: 0;
        padding-right: 0;
        margin-right: 0;
    }

    .search-input-wrap-home input {
        width: 100%;
        order: 2;
    }

    .search-actions {
        width: 100%;
        margin-left: auto;
        justify-content: flex-end;
    }

    .assistant-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-browser-header,
    .calendar-period-bar,
    .calendar-day-header,
    .calendar-list-month-header,
    .calendar-year-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .shortcut-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .profile-inline-grid {
        grid-template-columns: 1fr;
    }

    .calendar-birthday-list,
    .calendar-year-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .album-card-grid,
    .photo-teaser-grid {
        grid-template-columns: 1fr;
    }

    .moments-copy {
        margin-top: 4rem;
    }

    .dashboard-toolbar {
        flex-direction: column;
    }

    .weather-forecast,
    .calendar-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chat-composer {
        grid-template-columns: 1fr;
    }

    .chat-composer-toolbar {
        order: 2;
    }

    .chat-send-button {
        justify-self: end;
    }

    .home-widget-metrics {
        grid-template-columns: 1fr;
    }

    .home-widget-section-heading,
    .home-widget-actions-row,
    .home-event-item-rich,
    .home-shared-task-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-event-item-rich {
        grid-template-columns: 1fr;
    }

    .home-event-date-badge {
        min-width: 3.5rem;
    }

    .home-widget-inline-link {
        margin-top: 0.25rem;
    }

    .weather-manual-controls {
        grid-template-columns: 1fr;
    }

    .portal-search-summary,
    .moments-overview-header,
    .site-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-search-counts {
        justify-content: flex-start;
    }

    .portal-search-filters {
        grid-template-columns: 1fr;
    }

    .lists-form-grid,
    .lists-sharing-grid,
    .lists-inline-fields {
        grid-template-columns: 1fr;
    }

    .lists-compose-card {
        width: 100%;
    }

    .lists-simple-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-avatar-section,
    .guide-hero,
    .guide-article-shell,
    .guide-grid,
    .guide-grid-featured {
        grid-template-columns: 1fr;
    }

    .profile-avatar-mode-group {
        gap: 0.5rem;
    }

    .search-modal-filters,
    .search-modal-header,
    .search-modal-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .theme-switcher-panel {
        right: 0;
        left: auto;
    }

    .home-utility-stack,
    .today-summary-item,
    .home-event-item,
    .shared-task-row,
    .calendar-event-card,
    .guide-search-inline-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .lists-quick-input-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .lists-quick-submit {
        grid-column: 1 / -1;
        width: 100%;
        height: 2.95rem;
        justify-self: stretch;
    }

    .lists-quick-add-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .lists-quick-add-submit {
        grid-column: 1 / -1;
        width: 100%;
        justify-self: stretch;
    }

    .lists-keep-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .lists-plus-popover {
        width: min(100vw - 1rem, 22rem);
        right: -0.15rem;
    }

    .lists-quicklist-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .lists-quicklist-submit {
        grid-column: 1 / -1;
        width: 100%;
        justify-self: stretch;
    }

    .lists-detail-item-head,
    .lists-detail-item-actions {
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-mode-switch,
    .calendar-view-switch,
    .calendar-browser-actions,
    .calendar-period-nav {
        width: 100%;
    }

    .calendar-mode-switch,
    .calendar-view-switch {
        justify-content: space-between;
    }

    .calendar-mode-button,
    .calendar-view-button,
    .calendar-period-nav .secondary-button {
        flex: 1 1 0;
    }

    .calendar-day-cell {
        min-height: 7.8rem;
        padding: 0.62rem;
    }

    .contextual-action-row,
    .lists-sidebar-row,
    .task-card-head,
    .collaboration-group-head,
    .lists-detail-header {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 560px) {
    .brand-copy strong {
        font-size: 1.7rem;
    }

    .brand-mark {
        width: 2rem;
        height: 2rem;
    }

    .page-shell {
        padding-top: 0.8rem;
    }

    .hero-kicker,
    .hero-meta {
        letter-spacing: 0.16em;
    }

    .search-stage-panel,
    .shortcut-card,
    .moments-card,
    .login-card,
    .admin-card,
    .admin-stat-card {
        border-radius: 1.55rem;
    }

    .shortcut-card,
    .moments-card-inner,
    .login-card,
    .admin-card {
        padding: 1.2rem;
    }

    .admin-user-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-user-meta {
        align-items: flex-start;
    }

    .shortcut-link {
        padding: 0.78rem 0.8rem;
    }

    .shortcut-preview-card {
        align-items: flex-start;
    }

    .calendar-weekdays {
        display: none;
    }

    .calendar-month-grid,
    .weather-forecast,
    .calendar-form-grid {
        grid-template-columns: 1fr;
    }

    .calendar-day-cell {
        min-height: auto;
    }

    .calendar-day-cell.is-outside-month {
        display: none;
    }

    .shortcut-item-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .shortcut-drag-hint {
        justify-content: center;
    }

    .header-link {
        padding-inline: 0.85rem;
    }

    .chat-compose-panel {
        position: static;
        width: 100%;
    }

    .chat-message {
        max-width: 100%;
    }

    .chat-message-bubble {
        max-width: min(100%, 100%);
    }

    .chat-attachments-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-actions {
        width: 100%;
    }

    .search-modal-dialog {
        width: min(calc(100% - 1rem), 58rem);
        padding: 1.05rem;
        border-radius: 1.45rem;
    }

    .theme-switcher-panel {
        right: -0.2rem;
        width: min(calc(100vw - 1rem), 22rem);
    }

    .search-modal-input {
        padding-left: 0.85rem;
    }

    .album-list-card {
        grid-template-columns: 3.4rem minmax(0, 1fr);
    }

    .album-list-media {
        width: 3.4rem;
        height: 3.4rem;
    }

    .moments-hero-copy,
    .moments-stats,
    .moments-panel {
        padding: 1.1rem;
    }

    .album-showcase-header,
    .photo-card-head,
    .notification-card {
        flex-direction: column;
    }

    .simple-album-row,
    .related-photo-row,
    .album-card-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .notification-actions,
    .form-actions {
        align-items: stretch;
    }

    .weather-forecast {
        grid-template-columns: repeat(7, minmax(4.6rem, 1fr));
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .profile-avatar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .today-summary-value {
        width: 3rem;
    }

    .task-card-main {
        grid-template-columns: 1fr;
    }

    .portal-search-panel {
        padding: 1.15rem;
    }

    .portal-search-input {
        padding-inline: 1rem;
    }

    .portal-search-result-card {
        grid-template-columns: 1fr;
    }

    .portal-search-result-media {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .site-footer-nav {
        gap: 0.7rem;
    }

    .calendar-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .profile-avatar-grid {
        grid-template-columns: 1fr;
    }
}
