:root {
    --bg: #f4efe7;
    --bg-accent: #d8ecec;
    --panel: rgba(255, 251, 245, 0.88);
    --panel-solid: #fffaf4;
    --panel-border: rgba(255, 255, 255, 0.58);
    --line: #e1d7ca;
    --text: #23313a;
    --title: #14242d;
    --muted: #6a7a85;
    --primary: #0f766e;
    --primary-strong: #115e59;
    --secondary: #f59e0b;
    --secondary-soft: #fde7b8;
    --danger: #c2410c;
    --danger-soft: #ffe0d5;
    --success: #15803d;
    --success-soft: #dbf8e2;
    --neutral-soft: #edf3f4;
    --shadow: 0 18px 40px rgba(35, 49, 58, 0.12);
    --shadow-soft: 0 10px 24px rgba(35, 49, 58, 0.08);
    --shadow-card: 0 20px 44px rgba(35, 49, 58, 0.12);
    --shadow-strong: 0 26px 58px rgba(35, 49, 58, 0.18);
    --radius: 22px;
    --content-max: 1520px;
    --gutter: clamp(16px, 3vw, 32px);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.55;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.18), transparent 32%),
        radial-gradient(circle at 82% 12%, rgba(15, 118, 110, 0.22), transparent 28%),
        linear-gradient(160deg, #faf5ed 0%, #edf5f7 45%, #f5f0ea 100%);
    text-rendering: optimizeLegibility;
}

.language-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(35, 49, 58, 0.1);
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 28px rgba(35, 49, 58, 0.14);
}

.language-toggle-option {
    min-width: 46px;
    padding: 8px 12px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.language-toggle-option:hover {
    transform: translateY(-1px);
}

.language-toggle-option.active {
    color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    box-shadow: 0 10px 20px rgba(17, 94, 89, 0.22);
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 0;
}

img {
    display: block;
    max-width: 100%;
}

.hidden {
    display: none !important;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(244, 239, 231, 0.4) 0%, rgba(237, 245, 247, 0.72) 100%),
        url("assets/images/login/bg1.png") center/cover no-repeat;
    opacity: 0.32;
    z-index: -1;
}

.login-panel,
.card,
.modal-dialog {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 251, 245, 0.92) 100%),
        var(--panel);
    backdrop-filter: blur(18px);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.login-panel {
    width: min(460px, 100%);
    padding: 30px;
    position: relative;
    display: grid;
    overflow: hidden;
}

.login-panel::after {
    content: "";
    position: absolute;
    inset: -40% auto auto 56%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.18) 0%, rgba(15, 118, 110, 0) 72%);
    pointer-events: none;
}

.login-panel > * {
    position: relative;
    z-index: 1;
}

.login-brand-image {
    width: 88px;
    height: 88px;
    display: block;
    margin: 18px auto 12px;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(15, 118, 110, 0.16));
}
 

.field-hint,
.page-subtitle,
.card-head p,
.detail-panel p {
    color: var(--muted);
    line-height: 1.65;
} 

.auth-tabs,
.tab-row,
.chip-group,
.action-row,
 .preset-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-tabs {
    margin: 20px 0;
    border-bottom: 1px solid var(--line);
}

.auth-form,
.stack-form {
    display: grid;
    gap: 16px;
}

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

.verification-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

@media (max-width: 640px) {
    .verification-row {
        grid-template-columns: 1fr;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: center;
}

.auth-tab,
.nav-item,
.chip,
.tab-btn,
.btn {
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.auth-tab {
    padding: 12px 4px;
    background: transparent;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-weight: 700;
}

.auth-tab.active {
    color: var(--primary-strong);
    border-bottom-color: var(--primary);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.form-field label,
.stack-form label {
    font-weight: 700;
    font-size: 14px;
}

.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
    font: inherit;
    box-shadow: inset 0 1px 2px rgba(35, 49, 58, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input::placeholder {
    color: #8a98a2;
}

.input:focus,
.rich-editor:focus {
    outline: none;
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.textarea {
    resize: vertical;
}

.search-input {
    padding-left: 46px;
    background-image: url("assets/images/shell/search.png");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 18px 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    padding: 11px 18px;
    font: inherit;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.btn-media {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn:hover,
.nav-item:hover,
.chip:hover,
.tab-btn:hover,
.btn-icon:hover {
    transform: translateY(-2px);
}

.btn:active,
.nav-item:active,
.chip:active,
.tab-btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    box-shadow: 0 14px 28px rgba(17, 94, 89, 0.22);
}

.btn-primary .btn-media img {
    filter: brightness(0) saturate(100%) invert(100%);
}

.btn-secondary {
    color: #7a4200;
    background: linear-gradient(135deg, #fde7b8 0%, #f8c45b 100%);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.2);
}

.btn-secondary .btn-media img {
    filter: brightness(0) saturate(100%) invert(21%) sepia(41%) saturate(1866%) hue-rotate(15deg) brightness(96%) contrast(101%);
}

.btn-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(35, 49, 58, 0.08);
    box-shadow: 0 10px 22px rgba(35, 49, 58, 0.06);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
}

.app-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 18px;
    background: linear-gradient(180deg, rgba(12, 39, 48, 0.96) 0%, rgba(19, 54, 61, 0.94) 100%);
    color: #eef8f8;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-brand h2,
.sidebar-brand p {
    margin: 0;
}

.sidebar-brand p {
    color: rgba(238, 248, 248, 0.7);
    font-size: 13px;
}

.sidebar-brand-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar-language-toggle {
    margin-left: auto;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.sidebar-language-toggle .language-toggle-option {
    min-width: 42px;
    padding: 7px 10px;
    color: rgba(238, 248, 248, 0.78);
}

.sidebar-language-toggle .language-toggle-option.active {
    color: #062625;
    background: linear-gradient(135deg, #f7f0c8 0%, #d8f4ed 100%);
    box-shadow: 0 10px 20px rgba(6, 38, 37, 0.16);
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #083b3a;
    background: linear-gradient(135deg, #f5d06f 0%, #f7ebc5 100%);
    font-size: 24px;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-list::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.nav-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    color: rgba(238, 248, 248, 0.9);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: left;
    font: inherit;
    font-weight: 700;
}

.nav-icon-image {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.app-sidebar .nav-list .nav-icon-image {
    filter: brightness(0) saturate(100%) invert(99%) sepia(8%) saturate(138%) hue-rotate(124deg) brightness(104%) contrast(94%);
}

.app-sidebar .nav-list .nav-item.active .nav-icon-image {
    filter: none;
}

.nav-item.active {
    color: #062625;
    background: linear-gradient(135deg, #f7f0c8 0%, #d8f4ed 100%);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 14px 28px rgba(6, 38, 37, 0.16);
}

.mobile-nav-toggle,
.sidebar-close {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(35, 49, 58, 0.08);
    border-radius: 14px;
    color: var(--title);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    flex-shrink: 0;
}

.app-drawer-overlay {
    display: none;
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.connection-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.08);
}

.connection-status.connected {
    color: #d7ffea;
    background: rgba(21, 128, 61, 0.32);
}

.connection-status.disconnected {
    color: #ffd6d6;
    background: rgba(194, 65, 12, 0.28);
}

.sidebar-user {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-main {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 28px var(--gutter) 40px;
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: calc(var(--radius) - 2px);
    background: rgba(255, 251, 245, 0.64);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 34px rgba(35, 49, 58, 0.08);
}

.topbar-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.page-eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-subtitle {
    max-width: 52ch;
}

.app-topbar h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
}

.topbar-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.badge-neutral {
    color: #344b55;
    background: #dfeaec;
}

.badge-accent {
    color: #7d4900;
    background: var(--secondary-soft);
}

.workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.module-section {
    display: none;
}

.module-section.active,
.sub-section.active {
    display: block;
}

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

.module-grid-single {
    grid-template-columns: 1fr;
}

.module-grid-wide {
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
}

.side-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card {
    padding: clamp(18px, 2.4vw, 24px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.26) 0%, rgba(245, 158, 11, 0.22) 50%, rgba(255, 255, 255, 0) 100%);
}

.card h2,
.card h3,
.card h4,
.card p {
    margin-top: 0;
}

.card h2 {
    font-size: clamp(24px, 2.4vw, 30px);
    margin-bottom: 6px;
}

.card h3 {
    font-size: clamp(18px, 1.9vw, 22px);
    margin-bottom: 6px;
}

.card h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.card-head.compact {
    align-items: center;
    margin-bottom: 14px;
}

.stats-grid {
    margin: 18px 0;
}

.stat-card,
.plan-card,
.weather-summary,
.detail-panel,
.todo-item,
.note-item,
.group-item,
.post-item,
.user-item,
.channel-item,
.member-item,
.weather-item,
.empty-state {
    border: 1px solid rgba(35, 49, 58, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.section-banner {
    margin: 0 0 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(35, 49, 58, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.section-banner-group {
    background: linear-gradient(135deg, rgba(216, 244, 237, 0.94) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.section-banner-community {
    background: linear-gradient(135deg, rgba(255, 239, 207, 0.94) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.section-banner-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-banner-copy strong {
    font-size: 20px;
    line-height: 1.35;
    color: var(--title);
}

.section-banner-copy p {
    margin: 0;
    color: var(--muted);
}

.section-banner img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    flex-shrink: 0;
}

.stat-card {
    min-width: 0;
    height: 100%;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 251, 250, 0.84) 100%);
    box-shadow: var(--shadow-soft);
}

.stat-card span {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(26px, 3vw, 34px);
    color: var(--primary-strong);
}

.stack-list,
.mini-list,
.note-grid,
.post-grid,
.user-grid,
.channel-grid,
.weather-list,
.detail-grid {
    display: grid;
    gap: 14px;
}

.note-grid,
.post-grid,
.user-grid,
.channel-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.todo-item,
.note-item,
.group-item,
.post-item,
.user-item,
.channel-item,
.member-item,
.weather-item,
.detail-panel,
.plan-card,
.weather-summary,
.empty-state {
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.post-item-clickable {
    cursor: pointer;
}

.post-item-clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.post-item-clickable:focus-visible {
    outline: none;
    border-color: rgba(15, 118, 110, 0.42);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.todo-item-head,
.note-item-head,
.group-item-head,
.post-item-head,
.user-item-head,
.channel-item-head,
.member-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.todo-item-body {
    min-width: 0;
    flex: 1 1 240px;
}

.todo-item-title {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    color: var(--title);
}

.todo-item-actions {
    justify-content: flex-end;
    align-self: stretch;
}

.entity-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1 1 240px;
}

.entity-head > div {
    min-width: 0;
}

.entity-avatar {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(35, 49, 58, 0.08);
    background: linear-gradient(135deg, rgba(216, 244, 237, 0.92) 0%, rgba(253, 231, 184, 0.92) 100%);
}

.entity-avatar-small {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

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

.meta-row,
.tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip-group,
.action-row {
    align-items: center;
}

.group-item-active {
    border-color: rgba(15, 118, 110, 0.32);
    background: linear-gradient(180deg, rgba(216, 244, 237, 0.92) 0%, rgba(255, 255, 255, 0.82) 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.1);
}

.group-overview,
.management-shell,
.admin-shell,
.weather-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.management-toolbar {
    margin-bottom: 14px;
    align-items: stretch;
}

.admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-list-item,
.weather-section-card {
    padding: 14px;
    border: 1px solid rgba(35, 49, 58, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.weather-section-grid {
    align-items: start;
}

.weather-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.weather-section-head h4 {
    margin: 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--neutral-soft);
    color: #35505b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tag.priority-high,
.tag.danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.tag.priority-medium {
    background: #ffefcf;
    color: #a05a00;
}

.tag.priority-low,
.tag.success {
    background: var(--success-soft);
    color: var(--success);
}

.filter-toolbar {
    align-items: center;
}

.filter-toolbar .chip-group {
    grid-column: 1 / -1;
}

.filter-toolbar .input,
.filter-toolbar .btn {
    min-width: 0;
    width: 100%;
}

.chip {
    padding: 10px 14px;
    border-radius: 999px;
    color: #35505b;
    font: inherit;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(35, 49, 58, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.chip.active,
.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}

.tab-row {
    margin: 16px 0 20px;
}

.tab-btn {
    padding: 11px 16px;
    border-radius: 14px;
    color: #36505c;
    background: rgba(255, 255, 255, 0.72);
    font: inherit;
    font-weight: 700;
    border: 1px solid rgba(35, 49, 58, 0.06);
    box-shadow: 0 10px 20px rgba(35, 49, 58, 0.05);
}

.sub-section {
    display: none;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.calendar-shell {
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(35, 49, 58, 0.2) transparent;
}

.calendar-shell::-webkit-scrollbar {
    height: 8px;
}

.calendar-shell::-webkit-scrollbar-thumb {
    background: rgba(35, 49, 58, 0.18);
    border-radius: 999px;
}

.calendar-weekdays,
.calendar-grid {
    min-width: 560px;
    display: grid;
    grid-template-columns: repeat(7, minmax(68px, 1fr));
    gap: 8px;
}

.calendar-weekdays {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.calendar-weekdays span {
    padding: 0 6px;
}

.calendar-day {
    min-height: 94px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(35, 49, 58, 0.08);
    background: rgba(255, 255, 255, 0.8);
    text-align: left;
    cursor: pointer;
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(35, 49, 58, 0.08);
}

.calendar-day.muted {
    opacity: 0.35;
}

.calendar-day.active {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: inset 0 0 0 2px rgba(15, 118, 110, 0.14);
}

.calendar-day.has-note {
    border-color: rgba(15, 118, 110, 0.22);
    background: linear-gradient(180deg, rgba(216, 244, 237, 0.85) 0%, rgba(255, 255, 255, 0.84) 100%);
}

.calendar-day strong {
    display: block;
    margin-bottom: 8px;
}

.calendar-day small {
    display: block;
    color: var(--muted);
    line-height: 1.45;
}

.compact-list .todo-item,
.compact-list .member-item {
    padding: 12px;
}

.pomodoro-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timer-orb {
    width: min(260px, 100%);
    aspect-ratio: 1;
    margin: 6px auto 8px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    color: #fff;
    background: radial-gradient(circle at 30% 30%, #1aa6a0 0%, #115e59 50%, #083b3a 100%);
    box-shadow: 0 24px 40px rgba(17, 94, 89, 0.24);
}

.timer-orb strong {
    font-size: clamp(38px, 6vw, 56px);
}

.timer-orb span,
.timer-orb small {
    opacity: 0.9;
}

.rich-editor {
    min-height: 220px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    overflow-y: auto;
    box-shadow: inset 0 1px 2px rgba(35, 49, 58, 0.04);
}

.rich-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a0a8;
}

.community-comment-item {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.community-comment-item-editing {
    border-color: rgba(15, 118, 110, 0.28);
    background: linear-gradient(180deg, rgba(216, 244, 237, 0.7) 0%, rgba(255, 255, 255, 0.88) 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.community-comment-item-confirm {
    border-color: rgba(194, 65, 12, 0.2);
    background: linear-gradient(180deg, rgba(255, 224, 213, 0.78) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.community-comment-content {
    margin: 14px 0 0;
    line-height: 1.7;
    white-space: pre-wrap;
}

.community-comment-editor-shell {
    margin-top: 14px;
}

.community-comment-editor {
    min-height: 120px;
}

.community-comment-inline-tip {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--danger);
    background: var(--danger-soft);
    line-height: 1.6;
}

.editor-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.switch-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(35, 49, 58, 0.08);
    min-width: 0;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.checkbox-grid label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.invite-summary-panel {
    margin-top: 18px;
    display: grid;
    gap: 16px;
}

.invite-stats-grid {
    margin: 0;
}

.reward-rule-list {
    display: grid;
    gap: 8px;
}

.reward-rule-list p,
.generated-code-main p {
    margin: 0;
    color: var(--muted);
}

.invite-code-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(15, 118, 110, 0.24);
    background: linear-gradient(135deg, rgba(216, 244, 237, 0.92) 0%, rgba(255, 251, 245, 0.96) 100%);
}

.invite-code-value {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--primary-strong);
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.redemption-invite-panel {
    display: grid;
    gap: 14px;
}

.redemption-code-grid,
.redemption-admin-search-grid {
    align-items: end;
}

.redemption-submit-field {
    justify-content: flex-end;
}

.redemption-submit-field .btn {
    width: 100%;
}

.redemption-option-card {
    display: grid;
    gap: 14px;
    align-content: start;
}

.generated-code-list {
    display: grid;
    gap: 12px;
}

.generated-code-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid rgba(35, 49, 58, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.generated-code-main {
    display: grid;
    gap: 8px;
    min-width: 0;
    flex: 1 1 280px;
}

.generated-code-code {
    display: block;
    font-size: 18px;
    line-height: 1.4;
    color: var(--title);
    letter-spacing: 0.08em;
    word-break: break-all;
}

.generated-code-item [data-delete-redemption-code] {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: rgba(194, 65, 12, 0.14);
}

.plan-channel-grid {
    align-items: start;
}

.plan-card strong {
    display: block;
    margin: 10px 0;
    font-size: 24px;
}

.plan-qr-shell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.plan-qr-code {
    min-width: 220px;
    min-height: 220px;
    padding: 14px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    border: 1px dashed rgba(15, 118, 110, 0.24);
    background: rgba(255, 255, 255, 0.92);
}

.plan-qr-code img,
.plan-qr-code canvas {
    max-width: 100%;
    height: auto;
}

.channel-management-stack,
.channel-configured-section {
    display: grid;
    gap: 16px;
}

.channel-picker-shell {
    padding: 20px;
    border-radius: 26px;
    border: 1px solid rgba(35, 49, 58, 0.08);
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 251, 250, 0.88) 100%);
    box-shadow: var(--shadow-card);
}

.channel-picker-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.channel-picker-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.channel-picker-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.channel-picker-copy h4 {
    margin: 0;
    font-size: 24px;
    color: var(--title);
}

.channel-picker-copy p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
}

.channel-picker-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.channel-launcher-grid,
.channel-summary-list {
    display: grid;
    gap: 14px;
}

.channel-launcher-grid {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.channel-summary-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.channel-launcher-tile {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.channel-launcher-tile-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 18px 12px 16px;
    border-radius: 22px;
    border: 1px solid rgba(35, 49, 58, 0.08);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.channel-launcher-tile:hover .channel-launcher-tile-inner,
.channel-launcher-tile:focus-visible .channel-launcher-tile-inner {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.22);
    box-shadow: var(--shadow-card);
}

.channel-launcher-tile.is-configured .channel-launcher-tile-inner {
    background: linear-gradient(180deg, rgba(255, 248, 234, 0.92) 0%, rgba(255, 255, 255, 0.82) 100%);
}

.channel-launcher-tile.is-enabled .channel-launcher-tile-inner {
    background: linear-gradient(180deg, rgba(216, 244, 237, 0.98) 0%, rgba(255, 255, 255, 0.84) 100%);
    border-color: rgba(15, 118, 110, 0.24);
}

.channel-launcher-tile .channel-item-media {
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.channel-launcher-tile .channel-item-media img {
    width: 34px;
    height: 34px;
}

.channel-launcher-name {
    display: block;
    min-height: 34px;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    font-weight: 700;
    color: var(--title);
}

.channel-launcher-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.channel-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

.channel-launcher-tile.is-configured .channel-launcher-status {
    background: #ffefcf;
    color: #a16207;
}

.channel-launcher-tile.is-configured .channel-status-dot {
    background: #f59e0b;
}

.channel-launcher-tile.is-enabled .channel-launcher-status {
    background: rgba(21, 128, 61, 0.12);
    color: var(--success);
}

.channel-launcher-tile.is-enabled .channel-status-dot {
    background: var(--success);
}

.channel-launcher-copy,
.channel-launcher-preview {
    display: block;
    text-align: center;
    line-height: 1.45;
}

.channel-launcher-copy {
    color: var(--muted);
    font-size: 12px;
}

.channel-launcher-preview {
    color: var(--primary-strong);
    font-size: 11px;
    font-weight: 600;
}

.channel-launcher-tags {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.forward-package-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(35, 49, 58, 0.08);
    background: rgba(255, 255, 255, 0.68);
}

.forward-package-item p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    word-break: break-all;
}

.weather-summary strong {
    display: block;
    margin-top: 10px;
    font-size: 22px;
}

.weather-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.weather-summary-copy {
    min-width: 0;
}

.weather-summary-copy h3,
.weather-summary-copy p {
    margin-top: 0;
}

.weather-summary-illustration {
    width: min(122px, 26vw);
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 16px 0 18px;
}

.channel-definition h4,
.channel-definition p {
    margin: 0;
}

.channel-definition {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.channel-definition-panel {
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 251, 250, 0.86) 100%);
}

.channel-definition-panel .tag-row {
    margin-top: 14px;
}

.channel-definition-head,
.channel-item-hero {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-item-hero > div {
    min-width: 0;
}

.channel-item-media {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(216, 244, 237, 0.92) 0%, rgba(253, 231, 184, 0.92) 100%);
    border: 1px solid rgba(35, 49, 58, 0.08);
}

.channel-item-media img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.channel-form-grid {
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.channel-field-block {
    min-width: 0;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(35, 49, 58, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.channel-field-block label {
    display: block;
    margin-bottom: 10px;
}

.channel-field-block .switch-row {
    min-height: 100%;
    margin: 0;
}

.channel-summary-card {
    padding: 18px;
    border: 1px solid rgba(35, 49, 58, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.channel-summary-card p {
    margin: 14px 0 0;
    color: var(--muted);
}

.channel-preview-list {
    margin-top: 14px;
}

.channel-modal-shell {
    padding: 0 16px;
}

.channel-modal-dialog {
    width: min(760px, 100%);
    min-height: min(54vh, 500px);
    max-height: min(88vh, 820px);
    padding: 14px 18px 22px;
}

.channel-modal-handle {
    margin-bottom: 14px;
}

.channel-modal-dialog .modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-bottom: 12px;
    margin-bottom: 16px;
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.98) 0%, rgba(255, 250, 244, 0.82) 72%, rgba(255, 250, 244, 0) 100%);
    backdrop-filter: blur(10px);
}

.channel-modal-dialog .action-row.justify-end {
    position: sticky;
    bottom: 0;
    margin-top: 4px;
    padding-top: 14px;
    background: linear-gradient(0deg, rgba(255, 250, 244, 0.98) 0%, rgba(255, 250, 244, 0.84) 70%, rgba(255, 250, 244, 0) 100%);
}

.empty-state {
    text-align: center;
    color: var(--muted);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 24, 32, 0.42);
    backdrop-filter: blur(8px);
    z-index: 1100;
}

.modal.show {
    display: flex;
}

.modal-sheet {
    align-items: flex-end;
    padding: 0 16px;
    background: rgba(9, 24, 32, 0.22);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    width: min(620px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 24px;
    box-shadow: var(--shadow-strong);
}

.modal-large {
    width: min(860px, 100%);
}

.modal-sheet .modal-dialog {
    width: min(720px, 100%);
    min-height: min(42vh, 340px);
    max-height: min(82vh, 860px);
    margin: 0 auto;
    border-radius: 28px 28px 0 0;
}

.modal-sheet.show .modal-dialog {
    animation: sheet-rise 0.22s ease-out;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.sheet-handle {
    width: 56px;
    height: 6px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: rgba(106, 122, 133, 0.24);
}

.sheet-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--primary-strong);
    background: rgba(15, 118, 110, 0.12);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sheet-copy {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.community-privilege-sheet {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.community-privilege-sheet .modal-head {
    align-items: flex-start;
    margin-bottom: 0;
}

.community-privilege-sheet .modal-head h3 {
    margin: 12px 0 0;
}

.community-privilege-sheet .action-row {
    margin-top: auto;
}

.modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.justify-end {
    justify-content: flex-end;
}

.center {
    justify-content: center;
}

.reminder-popup {
    position: fixed;
    inset: auto 24px 24px auto;
    width: min(420px, calc(100vw - 48px));
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
    box-shadow: 0 20px 40px rgba(154, 52, 18, 0.28);
    z-index: 1200;
}

.reminder-icon {
    font-size: 34px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: min(360px, calc(100vw - 40px));
    padding: 14px 18px;
    border-radius: 16px;
    color: #fff;
    background: rgba(35, 49, 58, 0.92);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1300;
    box-shadow: var(--shadow-card);
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background: rgba(21, 128, 61, 0.92);
}

.notification.error {
    background: rgba(194, 65, 12, 0.94);
}

.notification.warning {
    background: rgba(180, 83, 9, 0.94);
}

.notification.info {
    background: rgba(15, 118, 110, 0.94);
}

@keyframes sheet-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

@media (max-width: 1200px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    body.drawer-active {
        overflow: hidden;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, calc(100vw - 28px));
        height: 100dvh;
        padding: 22px 18px 18px;
        gap: 16px;
        z-index: 70;
        box-shadow: 0 18px 42px rgba(9, 24, 32, 0.34);
        transform: translateX(calc(-100% - 12px));
        transition: transform 0.24s ease;
    }

    .app-shell.drawer-open .app-sidebar {
        transform: translateX(0);
    }

    .app-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        border: none;
        padding: 0;
        margin: 0;
        background: rgba(9, 24, 32, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 60;
    }

    .app-shell.drawer-open .app-drawer-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-x: visible;
        overflow-y: auto;
        padding-bottom: 0;
        scrollbar-width: thin;
    }

    .nav-item {
        flex: 0 0 auto;
        min-width: 0;
    }

    .sidebar-footer {
        margin-top: auto;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .sidebar-user {
        flex-direction: column;
        align-items: stretch;
    }

    .app-main {
        padding-top: 20px;
    }

    .mobile-nav-toggle,
    .sidebar-close {
        display: inline-flex;
    }

    .sidebar-close {
        margin-left: auto;
    }
}

@media (max-width: 900px) {
    .module-grid,
    .module-grid-wide {
        grid-template-columns: 1fr;
    }

    .filter-toolbar,
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-topbar,
    .card-head {
        flex-direction: column;
    }

    .app-topbar,
    .section-banner,
    .weather-summary {
        align-items: flex-start;
    }

    .topbar-info {
        justify-content: flex-start;
    }

    .checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-banner,
    .weather-summary {
        flex-direction: column;
    }

    .section-banner img,
    .weather-summary-illustration {
        width: 72px;
    }
}

@media (max-width: 680px) {
    .login-shell,
    .modal {
        padding: 12px;
    }

    .app-sidebar,
    .app-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .login-panel,
    .card,
    .modal-dialog,
    .app-topbar {
        padding: 18px;
        border-radius: 18px;
    }

    .sidebar-brand,
    .sidebar-user,
    .sidebar-footer {
        width: 100%;
    }

    .sidebar-footer,
    .sidebar-user {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-item {
        padding: 12px 14px;
    }

    .form-grid,
    .filter-toolbar,
    .stats-grid,
    .plan-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .filter-toolbar .input,
    .filter-toolbar .btn,
    .switch-row,
    .tag,
    .btn {
        width: 100%;
    }

    .btn-icon {
        width: 40px;
    }

    .action-row {
        width: 100%;
    }

    .action-row .btn:not(.btn-icon),
    .action-row .switch-row {
        flex: 1 1 100%;
    }

    .tab-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .invite-code-shell,
    .generated-code-item {
        flex-direction: column;
        align-items: stretch;
    }

    .invite-code-value {
        letter-spacing: 0.12em;
    }

    .pager {
        justify-content: stretch;
    }

    .pager span {
        width: 100%;
        text-align: center;
        order: -1;
    }

    .pager .btn {
        flex: 1 1 calc(50% - 6px);
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .entity-head {
        align-items: center;
        flex-basis: 100%;
    }

    .calendar-weekdays,
    .calendar-grid {
        min-width: 510px;
    }

    .modal {
        align-items: flex-end;
    }

    .modal-sheet {
        padding: 0;
    }

    .modal-dialog,
    .modal-large {
        width: 100%;
        max-height: min(88vh, 720px);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .modal-sheet .modal-dialog {
        min-height: min(50vh, 420px);
        max-height: min(62vh, 520px);
    }

    .reminder-popup {
        inset: auto 12px 12px 12px;
        width: auto;
    }

    .notification {
        top: 12px;
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .app-topbar h1 {
        font-size: 28px;
    }

    .calendar-weekdays,
    .calendar-grid {
        min-width: 460px;
    }

    .plan-qr-code {
        min-width: 0;
        width: 100%;
    }
}
