:root {
    --bg: #f4efe6;
    --bg-alt: #fbf8f2;
    --panel: rgba(255, 252, 247, 0.84);
    --line: rgba(44, 51, 44, 0.12);
    --text: #203028;
    --muted: #677569;
    --brand: #1f5a4d;
    --brand-soft: #dcebe4;
    --danger: #b53f39;
    --shadow: 0 18px 50px rgba(43, 52, 46, 0.11);
    --red: #d94b45;
    --blue: #2f6fed;
    --green: #2d8a61;
    --orange: #d8882c;
    --invite-preview-width: 5.0800cm;
    --invite-preview-height: 4.66725cm;
}

.mini-admin-shell {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.mini-admin-sidebar {
    background: linear-gradient(180deg, #00152c, #001326);
    border-radius: 18px;
    padding: 14px 12px;
    color: #d7e3f6;
    min-height: 0;
    height: 100%;
}

.mini-admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 8px 6px;
    color: #f0f6ff;
}

.mini-admin-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dbe6f8, #ffffff);
    color: #10223d;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.mini-admin-nav {
    display: grid;
    gap: 10px;
}

.mini-admin-nav-item {
    border-radius: 10px;
    padding: 11px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d4e0f1;
    background: rgba(255, 255, 255, 0.03);
}

.mini-admin-nav-item.is-active {
    background: rgba(22, 101, 216, 0.24);
    border-color: rgba(98, 166, 255, 0.5);
    color: #ffffff;
}

.mini-admin-main {
    display: grid;
    gap: 14px;
    align-content: start;
    align-self: start;
}

.mini-admin-header {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 252, 247, 0.88);
    padding: 12px 16px 14px;
    display: grid;
    gap: 8px;
    align-self: start;
}

.mini-admin-header h1 {
    margin: 0;
    font-size: 26px;
}

.mini-admin-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.mini-admin-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-admin-header-filter {
    padding-top: 6px;
    border-top: 1px solid rgba(30, 47, 78, 0.08);
}

.mini-admin-panel {
    border-radius: 18px;
    padding: 14px;
    display: grid;
    gap: 12px;
    align-self: start;
}

.mini-admin-filter-grid {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(130px, 0.72fr) minmax(130px, 0.72fr) minmax(170px, 1.08fr) auto auto;
    gap: 10px;
    align-items: end;
}

.mini-admin-filter-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.mini-admin-filter-grid label > span {
    text-align: center;
}

.mini-admin-filter-grid input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.mini-admin-color-fieldset {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 10px;
    min-height: 44px;
}

.mini-admin-color-fieldset legend {
    margin: 0;
    padding: 0 6px;
    font-size: 12px;
    color: var(--muted);
}

.mini-admin-color-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-admin-filter-disclosure {
    align-self: end;
    min-width: 0;
}

.mini-admin-filter-disclosure summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

.mini-admin-filter-disclosure summary::-webkit-details-marker {
    display: none;
}

.mini-admin-filter-disclosure[open] summary {
    margin-bottom: 8px;
    color: var(--brand);
    border-color: rgba(31, 90, 77, 0.22);
    background: rgba(220, 235, 228, 0.72);
}

.mini-admin-color-fieldset-disclosure {
    min-width: 210px;
}

.mini-admin-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 8px;
    background: #ffffff;
    font-size: 13px;
}

.mini-admin-color-chip input {
    margin: 0;
}

.mini-admin-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mini-admin-quick-ranges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-admin-range-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    min-height: 22px;
    height: 22px;
    padding: 0 11px;
    color: #4f5d75;
    background: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.1;
    white-space: pre;
    box-shadow: 0 8px 18px rgba(30, 47, 78, 0.05);
}

.mini-admin-quick-ranges .button.mini-admin-range-chip {
    min-height: 22px;
    height: 22px;
    padding: 0 11px;
    gap: 0;
}

.mini-admin-range-chip.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-color: rgba(109, 40, 217, 0.42);
    box-shadow: 0 14px 26px rgba(109, 40, 217, 0.24);
}

.mini-admin-import-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.mini-admin-import-form.is-hidden {
    display: none;
}

.mini-admin-file-label {
    display: grid;
    gap: 6px;
}

.mini-admin-summary {
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

.mini-admin-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.mini-admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
    table-layout: fixed;
}

.mini-admin-table th,
.mini-admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

.mini-admin-table th {
    font-weight: 600;
    color: var(--muted);
    background: #f9f4ec;
}

.mini-admin-table th:nth-child(1),
.mini-admin-table td:nth-child(1) {
    width: 14%;
}

.mini-admin-table th:nth-child(2),
.mini-admin-table td:nth-child(2) {
    width: 12%;
}

.mini-admin-table th:nth-child(3),
.mini-admin-table td:nth-child(3) {
    width: 13%;
}

.mini-admin-table th:nth-child(4),
.mini-admin-table td:nth-child(4) {
    width: 7%;
}

.mini-admin-table th:nth-child(5),
.mini-admin-table td:nth-child(5) {
    width: 10%;
}

.mini-admin-table th:nth-child(6),
.mini-admin-table td:nth-child(6) {
    width: 20%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-admin-table th:nth-child(7),
.mini-admin-table td:nth-child(7) {
    width: 24%;
}

.mini-admin-title-link {
    color: #193457;
    font-weight: 600;
}

.mini-admin-title-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(20, 30, 50, 0.1);
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-admin-title-chip.tone-orange {
    color: #1c1306;
}

.mini-admin-time-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #25334d;
    line-height: 1;
}

.mini-admin-time-chip.is-recurring {
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6 0%, #225cf4 36%, #14b8a6 72%, #f59e0b 100%);
    box-shadow: 0 12px 24px rgba(52, 120, 246, 0.18);
}

.mini-admin-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-admin-delete-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.mini-admin-action-button {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.mini-admin-color-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
    padding: 6px 9px;
    color: #ffffff;
}

.mini-admin-color-badge.tone-orange {
    color: #1c1306;
}

.mini-admin-empty {
    text-align: center;
    color: var(--muted);
    white-space: normal;
}

.mini-upload-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.mini-upload-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.mini-upload-card h2 {
    margin: 0;
    font-size: 16px;
}

.mini-upload-preview {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: #f6f1e8;
    min-height: 180px;
    display: grid;
    place-items: center;
}

.mini-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mini-upload-preview span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0662d6;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

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

@media (max-width: 1140px) {
    .mini-admin-shell {
        grid-template-columns: 1fr;
    }

    .mini-admin-sidebar {
        min-height: 0;
    }

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

    .mini-admin-color-fieldset,
    .mini-admin-filter-actions {
        grid-column: 1 / -1;
    }

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

@media (max-width: 720px) {
    .mini-admin-header-top {
        flex-direction: column;
    }

    .mini-admin-filter-grid {
        grid-template-columns: 1fr;
    }

    .mini-upload-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1366px) {
    .is-iphone-dashboard .iphone-calendar-shell {
        max-width: 980px;
        margin: 0 auto;
    }

    .is-iphone-dashboard .iphone-reference-toolbar {
        gap: 12px;
    }

    .is-iphone-dashboard .iphone-reference-actions {
        gap: 12px;
    }

    .is-iphone-dashboard .iphone-reference-button {
        min-width: 50px;
        height: 44px;
        padding: 0 14px;
    }

    .is-iphone-dashboard .iphone-weekday-pill {
        min-width: 76px;
        min-height: 74px;
        padding: 10px 8px;
    }

    .is-iphone-dashboard .iphone-day-scroller {
        max-height: calc(100vh - 320px);
    }

    .is-iphone-dashboard .iphone-event-block {
        border-radius: 12px;
        padding: 6px 8px;
    }

    .is-iphone-dashboard .iphone-week-agenda {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: grid;
        gap: 12px;
    }

    .is-iphone-dashboard .iphone-month-grid .day-card {
        min-height: 102px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Inter", "MiSans", "HarmonyOS Sans SC", "Alibaba PuHuiTi 3.0", "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", "Source Han Sans SC", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(217, 136, 44, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(47, 111, 237, 0.12), transparent 22%),
        linear-gradient(180deg, #f8f3ea 0%, #f3eee5 100%);
}

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

button[hidden] {
    display: none !important;
}

code {
    display: block;
    overflow-wrap: anywhere;
    padding: 14px 16px;
    border-radius: 16px;
    background: #faf5ee;
    border: 1px solid var(--line);
}

.shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 251, 245, 0.74);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

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

.brand strong,
.section-head h1,
.panel h2,
.hero-copy h1,
.invite-content h1 {
    font-family: "Inter", "MiSans", "HarmonyOS Sans SC", "Alibaba PuHuiTi 3.0", "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
    letter-spacing: 0;
}

.brand small {
    display: block;
    color: var(--muted);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #225c50, #173d33);
    color: #fff8f2;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-user {
    color: var(--muted);
}

.page {
    display: grid;
    gap: 24px;
}

.install-note,
.fine-print,
.install-copy {
    color: var(--muted);
}

.install-note {
    margin: 0;
    padding: 0 6px;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    color: var(--muted);
}

.hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.hero-copy,
.hero-card,
.panel,
.stat-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.hero-copy {
    padding: 42px;
    background:
        linear-gradient(135deg, rgba(31, 90, 77, 0.08), rgba(255, 255, 255, 0.46)),
        var(--panel);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
}

.hero-text {
    max-width: 36rem;
    font-size: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.hero-company-line {
    margin: -6px 0 10px;
    color: #2563EB;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-card {
    padding: 32px;
}

.install-grid {
    display: grid;
}

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

.install-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.install-panel.compact {
    padding-top: 20px;
    padding-bottom: 20px;
}

.install-step-card {
    display: grid;
    gap: 16px;
    align-content: start;
}

.install-steps {
    display: grid;
    gap: 12px;
}

.install-steps p {
    margin: 0;
}

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

.build-meta div {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.56);
}

.build-meta span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

.build-meta strong {
    font-size: 20px;
}

.check-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #225c50, #173d33);
    color: #fff8f2;
    font-weight: 600;
    cursor: pointer;
}

.button-ghost {
    background: rgba(255, 255, 255, 0.52);
    color: var(--text);
    border: 1px solid var(--line);
}

.button-danger {
    background: linear-gradient(135deg, #b53f39, #7f2b27);
}

.hero-actions,
.actions-inline,
.month-nav,
.row-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.home-beian {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 4px 0 2px;
    color: rgba(103, 117, 105, 0.82);
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.home-beian p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.home-beian a {
    color: #1d4ed8;
    font-weight: 700;
}

.home-beian p + p a {
    color: rgba(103, 117, 105, 0.92);
    font-weight: 600;
}

.home-beian-police {
    width: 20px;
    height: 22px;
    background: url("icons/mps-beian.png") center / contain no-repeat;
    flex: 0 0 auto;
}

.mobile-auth-beian {
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
    font-size: 12px;
}

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

.section-head h1,
.panel h2,
.calendar-header h2 {
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    padding: 24px;
}

.stat-card span {
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 32px;
}

.view-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 16px;
}

.day-view-panel,
.week-view-panel {
    display: grid;
    gap: 18px;
    align-content: start;
}

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

.view-panel-head h2 {
    margin: 0;
}

.view-panel-copy {
    margin: 8px 0 0;
    color: var(--muted);
}

.all-day-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.all-day-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.all-day-chip strong,
.all-day-chip small {
    margin: 0;
}

.all-day-chip small {
    color: var(--muted);
}

.all-day-chip .shared-title-row {
    flex: 1 1 auto;
}

.day-timeline-list {
    display: grid;
    gap: 14px;
}

.day-timeline-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.day-timeline-axis {
    position: relative;
    display: grid;
    gap: 4px;
    justify-items: end;
    min-height: 100%;
    padding-right: 14px;
}

.day-timeline-axis::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: -14px;
    width: 1px;
    background: rgba(44, 51, 44, 0.12);
}

.day-timeline-row:last-child .day-timeline-axis::after {
    bottom: 0;
}

.day-timeline-axis strong {
    font-size: 18px;
}

.day-timeline-axis small {
    color: var(--muted);
}

.day-timeline-row.is-current .day-timeline-axis strong {
    color: var(--danger);
}

.day-timeline-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border-radius: 24px;
    color: #fffaf3;
    box-shadow: 0 16px 36px rgba(31, 42, 37, 0.14);
}

.day-timeline-row.is-current .day-timeline-entry {
    outline: 2px solid rgba(181, 63, 57, 0.3);
}

.day-timeline-entry-copy {
    min-width: 0;
}

.day-timeline-entry-copy h3,
.day-timeline-entry-copy p {
    margin: 0;
}

.day-timeline-entry-copy h3 {
    margin-bottom: 6px;
}

.day-timeline-entry-copy p {
    color: rgba(255, 250, 243, 0.86);
}

.day-timeline-entry-copy .shared-title-row {
    margin-bottom: 6px;
}

.day-timeline-duration {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
}

.week-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.week-day-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(44, 51, 44, 0.09);
    background: #fffdf9;
}

.week-day-card.is-today {
    outline: 2px solid rgba(31, 90, 77, 0.24);
    transform: translateY(-2px);
}

.week-day-card.is-selected {
    border-color: rgba(31, 90, 77, 0.22);
    background: linear-gradient(180deg, rgba(242, 248, 246, 0.98), #fffdf9);
    box-shadow: 0 16px 34px rgba(31, 90, 77, 0.08);
}

.week-day-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.week-day-head-link {
    color: inherit;
}

.week-day-head-link:focus-visible {
    outline: 2px solid rgba(31, 90, 77, 0.28);
    outline-offset: 4px;
    border-radius: 14px;
}

.week-day-head small,
.week-day-empty,
.week-day-more {
    color: var(--muted);
}

.week-day-head strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.week-day-head em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(31, 90, 77, 0.1);
    color: var(--brand);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.week-day-events {
    display: grid;
    gap: 8px;
}

.week-event-chip {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 16px;
    color: #fffaf3;
}

.week-event-chip span {
    font-size: 11px;
    opacity: 0.9;
}

.week-event-chip strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.week-day-empty,
.week-day-more {
    margin: 0;
}

.calendar-shell {
    display: grid;
    gap: 16px;
}

.panel,
.calendar-header {
    padding: 24px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
}

.dashboard-month-grid {
    padding: 0;
    gap: 8px;
}

.dashboard-month-grid .weekday {
    padding: 6px 8px 2px;
}

.weekday {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.day-card {
    min-height: 160px;
    padding: 12px;
    border-radius: 20px;
    background: #fffdf9;
    border: 1px solid rgba(44, 51, 44, 0.08);
    display: grid;
    align-content: start;
    gap: 10px;
}

.day-card.is-muted {
    opacity: 0.48;
}

.day-card.is-today {
    outline: 2px solid rgba(31, 90, 77, 0.35);
    transform: translateY(-2px);
}

.day-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
}

.day-card-head small {
    color: var(--brand);
}

.day-card-sub {
    display: grid;
    gap: 2px;
    font-size: 11px;
    line-height: 1.1;
}

.day-card-holiday {
    color: #c8473d;
    font-weight: 700;
}

.day-card-workday {
    color: #b7791f;
    font-weight: 700;
}

.day-card-solar-term {
    color: #8d96a2;
    font-weight: 700;
}

.day-card-lunar {
    color: #8d96a2;
    font-weight: 600;
}

.day-events {
    display: grid;
    gap: 8px;
}

.event-pill {
    display: grid;
    gap: 3px;
    padding: 10px;
    border-radius: 14px;
    color: white;
}

.event-pill strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-pill small,
.more-label {
    font-size: 12px;
    opacity: 0.92;
}

.schedule-list {
    display: grid;
    gap: 14px;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.schedule-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.schedule-row-stacked {
    align-items: stretch;
}

.schedule-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.schedule-main-stacked {
    align-items: flex-start;
}

.admin-build-stack {
    display: grid;
    gap: 12px;
}

.admin-build-file {
    margin-top: 8px;
}

.admin-build-file code {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    font-size: 0.82rem;
    line-height: 1.2;
    word-break: break-word;
}

.admin-build-actions {
    align-self: flex-start;
}

.admin-build-disclosure {
    width: 100%;
    margin-top: 4px;
}

.admin-build-url {
    font-size: 0.8rem;
    line-height: 1.35;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sync-job-stack {
    display: grid;
    gap: 12px;
}

.sync-status-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sync-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    color: var(--muted);
}

.sync-status-pill.is-on {
    background: rgba(31, 90, 77, 0.12);
    border-color: rgba(31, 90, 77, 0.24);
    color: var(--brand);
}

.sync-status-pill.is-off {
    background: rgba(181, 63, 57, 0.1);
    border-color: rgba(181, 63, 57, 0.24);
    color: var(--danger);
}

.sync-status-pill.is-busy {
    background: rgba(47, 111, 237, 0.12);
    border-color: rgba(47, 111, 237, 0.24);
    color: var(--blue);
}

.sync-status-pill.is-idle {
    background: rgba(103, 117, 105, 0.08);
    border-color: rgba(103, 117, 105, 0.18);
    color: var(--muted);
}

.sync-meta {
    display: grid;
    gap: 6px;
}

.sync-meta p {
    margin: 0;
}

.sync-job-actions {
    align-self: flex-start;
}

.sync-inline-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.sync-schedule-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.sync-schedule-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.sync-schedule-form label span {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.sync-schedule-form input {
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 14px;
}

.sync-schedule-actions {
    display: flex;
    align-items: end;
    justify-content: flex-start;
    min-height: 46px;
}

.sync-toggle-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
}

.sync-toggle-button {
    min-width: 56px;
    padding-left: 14px;
    padding-right: 14px;
}

.sync-toggle-button.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.schedule-main h3 {
    margin: 0 0 6px;
}

.schedule-main p {
    margin: 0;
    color: var(--muted);
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    flex: none;
}

.form-shell {
    display: grid;
    gap: 18px;
}

.login-shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: start;
    gap: 18px;
}

.login-welcome,
.login-form-card {
    padding: 24px;
}

.login-welcome {
    padding: 20px 22px;
}

.login-welcome {
    display: grid;
    gap: 10px;
    align-content: center;
    min-height: 420px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.62), transparent 34%),
        linear-gradient(135deg, rgba(31, 90, 77, 0.1), rgba(255, 255, 255, 0.46)),
        var(--panel);
}

.login-welcome h1,
.login-form-head h2 {
    margin: 0;
}

.login-supporting-copy {
    margin: 0;
    max-width: none;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

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

.login-highlight-item {
    display: grid;
    gap: 3px;
    padding: 9px 12px;
    border-radius: 20px;
    border: 1px solid rgba(31, 90, 77, 0.12);
    background: rgba(255, 255, 255, 0.58);
}

.login-highlight-item strong {
    font-size: 14px;
}

.login-highlight-item span,
.login-form-note {
    color: var(--muted);
    line-height: 1.5;
}

.login-form-card {
    align-content: start;
}

.login-form-head {
    align-items: end;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(31, 90, 77, 0.12);
}

.login-form-note {
    margin: 0;
    max-width: none;
    white-space: nowrap;
}

.login-form-head .login-form-note {
    text-align: right;
}

.login-form-card > .span-2 .login-form-note {
    text-align: left;
}

.login-submit-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 4px;
}

.login-submit-row .button {
    min-width: 148px;
}

.login-code-field {
    display: grid;
    gap: 6px;
}

.login-code-field > label {
    font-weight: 600;
}

.login-code-control {
    position: relative;
    display: flex;
    align-items: center;
}

.login-code-control input {
    padding-right: 168px;
}

.login-code-send-button {
    position: absolute;
    top: 50%;
    right: 7px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 14px;
    white-space: nowrap;
    transform: translateY(-50%);
    box-shadow: 0 10px 24px rgba(34, 92, 80, 0.18);
}

.login-code-send-button.is-cooling,
.login-code-send-button:disabled {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #FFFFFF;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: 0 12px 26px rgba(109, 40, 217, 0.24);
}

.form-shell.narrow {
    max-width: 520px;
}

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

.form-grid label,
.form-grid fieldset {
    display: grid;
    gap: 8px;
}

.form-grid span,
.form-grid legend {
    font-weight: 600;
}

.form-hint {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.span-2 {
    grid-column: 1 / -1;
}

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

.admin-card {
    display: grid;
    gap: 12px;
}

.admin-console {
    gap: 22px;
}

.admin-console-head .fine-print {
    max-width: 34rem;
}

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

.admin-status-card {
    min-height: 118px;
    padding: 22px;
    overflow: hidden;
}

.admin-status-card.is-warning {
    border-color: rgba(233, 79, 100, 0.32);
    color: #e94f64;
}

.admin-task-map {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.admin-task-card {
    display: grid;
    gap: 6px;
    min-height: 112px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.68);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(35, 44, 38, 0.08);
}

.admin-task-card span {
    color: #7c3aed;
    font-weight: 850;
    font-size: 13px;
}

.admin-task-card strong {
    line-height: 1.25;
}

.admin-task-card small {
    color: var(--muted);
    line-height: 1.35;
}

.admin-section {
    display: grid;
    gap: 18px;
}

.admin-two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    align-items: stretch;
}

.admin-action-block {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 18px;
    border: 1px solid rgba(44, 51, 44, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
}

.admin-action-block h3,
.admin-user-summary h3,
.admin-sync-config h3 {
    margin: 0;
}

.admin-reminder-block {
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(255, 255, 255, 0.64)),
        rgba(255, 255, 255, 0.58);
}

.admin-user-list {
    display: grid;
    gap: 14px;
}

.admin-user-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(240px, 1fr) minmax(300px, 1.2fr);
    gap: 16px;
    align-items: end;
    padding: 18px;
    border: 1px solid rgba(44, 51, 44, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
}

.admin-user-summary {
    display: grid;
    gap: 6px;
    align-self: center;
}

.admin-user-summary p {
    margin: 0;
    color: var(--muted);
}

.admin-user-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.admin-user-form label {
    display: grid;
    gap: 8px;
}

.admin-user-form span {
    font-weight: 700;
}

.admin-user-actions {
    justify-content: flex-start;
}

.admin-danger-text {
    color: #b42318;
}

.admin-disclosure {
    display: block;
}

.admin-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
}

.admin-disclosure > summary::-webkit-details-marker {
    display: none;
}

.admin-disclosure > summary::after {
    content: "+";
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    color: #7c3aed;
    font-weight: 900;
}

.admin-disclosure[open] > summary::after {
    content: "-";
}

.admin-disclosure > summary strong {
    display: block;
    font-size: 24px;
}

.admin-disclosure > summary .eyebrow {
    display: block;
    margin: 0 0 6px;
}

.admin-disclosure > summary em {
    margin-left: auto;
    color: var(--muted);
    font-style: normal;
}

.admin-disclosure-body {
    display: grid;
    gap: 18px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.admin-config-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}

.admin-config-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(44, 51, 44, 0.1);
}

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

.admin-checkline {
    align-content: center;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(44, 51, 44, 0.1);
}

.admin-checkline input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.admin-sync-config {
    display: grid;
    gap: 14px;
}

.admin-sync-jobs {
    margin-top: 8px;
}

.admin-form {
    grid-template-columns: 1fr;
}

.admin-reset-form {
    margin-top: 6px;
}

.admin-reset-actions {
    justify-content: flex-start;
}

@media (max-width: 1180px) {
    .admin-status-grid,
    .admin-task-map {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-user-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

@media (max-width: 980px) {
    .admin-status-grid,
    .admin-task-map,
    .admin-two-column,
    .admin-wide-form {
        grid-template-columns: 1fr;
    }

    .admin-user-form {
        grid-template-columns: 1fr;
    }

    .admin-disclosure > summary {
        align-items: flex-start;
    }

    .admin-disclosure > summary em {
        display: none;
    }
}

input,
select,
textarea,
fieldset {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(44, 51, 44, 0.15);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font: inherit;
}

textarea {
    resize: vertical;
}

select {
    appearance: none;
}

fieldset {
    padding: 16px;
}

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

.color-choice {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fffdf9;
}

.color-choice input {
    width: auto;
    padding: 0;
    margin: 0;
}

.color-choice small {
    grid-column: 3;
    color: var(--muted);
}

.swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 999px;
}

.share-box p,
.empty-state {
    color: var(--muted);
}

.share-box {
    display: grid;
    gap: 16px;
}

.share-box-head {
    display: grid;
    gap: 12px;
}

.share-box-head h2 {
    margin: 0;
}

.share-box-head code {
    display: block;
    overflow-x: auto;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(28, 35, 32, 0.08);
    background: #f6f8f7;
    color: #25302b;
    white-space: nowrap;
}

.share-actions-card {
    display: grid;
    gap: 10px;
}

.share-actions-primary,
.share-actions-secondary {
    display: grid;
    gap: 10px;
}

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

.share-actions-secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.share-actions-primary .button,
.share-actions-secondary .button {
    width: 100%;
    min-height: 42px;
}

.share-status-note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.preview-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.preview-panel-head h2 {
    margin: 0;
}

.preview-panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mobile-share-link {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
}

.mobile-share-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 12px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 38%),
        linear-gradient(135deg, #20453b 0%, #18352d 100%);
    color: #f7f6f1;
}

.mobile-share-hero-copy {
    display: grid;
    gap: 4px;
    align-content: start;
}

.mobile-share-hero-copy h2,
.mobile-share-hero-copy p,
.mobile-share-hero-copy small {
    margin: 0;
    color: inherit;
}

.mobile-share-hero-copy h2 {
    font-size: 19px;
    line-height: 1.15;
    font-weight: 700;
}

.mobile-share-hero-copy p {
    font-size: 13px;
    line-height: 1.35;
    color: rgba(247, 246, 241, 0.92);
}

.mobile-share-hero-copy small {
    color: rgba(247, 246, 241, 0.68);
    line-height: 1.35;
    font-size: 11px;
}

.mobile-share-hero-preview {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1440 / 1323;
    padding: 0;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 250, 243, 0.18);
    box-shadow: 0 18px 36px rgba(11, 20, 18, 0.24);
    transition: transform 180ms ease, box-shadow 180ms ease;
    cursor: pointer;
}

.mobile-share-hero-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f7f1e8;
}

.mobile-share-hero-preview:hover,
.mobile-share-hero-preview:focus-visible {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 22px 40px rgba(11, 20, 18, 0.28);
}

.mobile-share-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.invite-share-sheet {
    position: fixed;
    inset: 0;
    z-index: 72;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 12px calc(12px + env(safe-area-inset-bottom));
}

.invite-share-sheet[hidden] {
    display: none !important;
}

.invite-share-sheet-scrim {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(12, 18, 16, 0.3);
    backdrop-filter: blur(10px);
}

.invite-share-sheet-card {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    display: grid;
    gap: 14px;
    padding: 12px 14px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 26px 56px rgba(16, 24, 23, 0.24);
}

[data-share-sheet-host].is-open .invite-share-sheet-card {
    animation: inviteShareSheetRise 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

[data-share-sheet-host].is-open .invite-share-sheet-scrim {
    animation: inviteShareSheetScrimIn 180ms ease;
}

.invite-share-sheet-grabber {
    width: 46px;
    height: 5px;
    border-radius: 999px;
    background: rgba(87, 95, 91, 0.24);
    margin: 0 auto;
}

.invite-share-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.invite-share-sheet-head h3,
.invite-share-sheet-head p {
    margin: 0;
}

.invite-share-sheet-head p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.45;
}

.invite-share-preview-frame {
    width: min(100%, calc(var(--invite-preview-width) * 1.55));
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 26px;
    overflow: hidden;
    background: #f7f1e8;
    box-shadow: inset 0 0 0 1px rgba(38, 44, 41, 0.08);
}

.invite-share-preview-frame img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.invite-share-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.invite-share-quick-grid .button {
    width: 100%;
    min-height: 44px;
}

.mobile-preview-stage {
    display: grid;
    place-items: center;
    padding: 14px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.48), transparent 48%),
        linear-gradient(180deg, #f4efe8 0%, #efe8dd 100%);
}

.mobile-preview-stage-card {
    padding: 0;
    border: 0;
    border-radius: 26px;
    overflow: hidden;
    background: #f7f1e8;
    box-shadow: 0 18px 36px rgba(28, 34, 31, 0.12);
}

.mobile-preview-stage-card img {
    display: block;
    width: min(100%, calc(var(--invite-preview-width) * 1.7));
    height: auto;
}

.mobile-preview-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.mobile-preview-rail-card {
    display: grid;
    gap: 10px;
    flex: 0 0 auto;
}

.mobile-preview-rail-card strong {
    padding-left: 2px;
}

.background-preview {
    min-height: 0;
    border-radius: 24px;
    background-position: center;
    background-size: cover;
}

.template-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 20px;
    align-items: flex-start;
}

.template-preview-card {
    display: grid;
    gap: 10px;
    width: var(--invite-preview-width);
    flex: 0 0 auto;
}

.template-preview-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 2px;
}

.background-preview-full {
    width: var(--invite-preview-width);
    height: var(--invite-preview-height);
    overflow: hidden;
    background: #f7f1e8;
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(43, 52, 46, 0.08);
}

.background-preview-physical {
    width: var(--invite-preview-width);
    max-width: none;
}

.background-preview-full img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    background: #f7f1e8;
}

.background-preview-empty {
    display: grid;
    place-items: center;
    padding: 16px;
    text-align: center;
}

.qr-login-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.login-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.qr-login-card {
    display: grid;
    gap: 14px;
    justify-items: start;
}

.qr-login-status {
    min-height: 2.8em;
}

.qr-login-image {
    width: 280px;
    height: 280px;
    padding: 14px;
    border-radius: 28px;
    background: #fffdf9;
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(43, 52, 46, 0.08);
}

.qr-login-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.download-qr-disclosure {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    overflow: hidden;
}

.download-qr-disclosure summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 18px;
    font-weight: 700;
    color: var(--text);
    user-select: none;
}

.download-qr-disclosure summary::-webkit-details-marker {
    display: none;
}

.download-qr-disclosure[open] summary {
    border-bottom: 1px solid var(--line);
}

.download-qr-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px 18px 18px;
}

.download-qr-image {
    width: 150px;
    height: 150px;
    padding: 10px;
    border-radius: 24px;
    background: #fffdf9;
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(43, 52, 46, 0.06);
}

.download-qr-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.download-qr-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.download-qr-copy code {
    display: block;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    word-break: break-all;
}

.invitation-font-disclosure {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    overflow: hidden;
}

.invitation-font-disclosure summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    font-weight: 700;
    color: var(--text);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.invitation-font-summary-main {
    display: inline-flex;
    align-items: center;
}

.invitation-font-summary-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.invitation-font-summary-status.is-default {
    color: #516174;
    background: rgba(81, 97, 116, 0.12);
}

.invitation-font-summary-status.is-custom {
    color: #155e45;
    background: rgba(21, 94, 69, 0.14);
}

.invitation-font-disclosure summary::-webkit-details-marker {
    display: none;
}

.invitation-font-disclosure[open] summary {
    border-bottom: 1px solid var(--line);
}

.invitation-font-body {
    display: grid;
    gap: 16px;
    padding: 16px 18px 18px;
}

.invitation-font-body > .fine-print {
    margin: 0;
}

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

.invitation-font-grid label {
    display: grid;
    gap: 8px;
}

.invitation-font-grid small {
    color: var(--muted);
}

.invitation-font-preview-grid {
    gap: 16px 18px;
}

.invitation-font-preview {
    background: #f4efe8;
}

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

.filter-grid label {
    display: grid;
    gap: 8px;
}

.filter-color-fieldset,
.filter-actions {
    grid-column: 1 / -1;
}

.filter-color-fieldset legend {
    font-weight: 600;
    margin-bottom: 12px;
    padding: 0 2px;
}

.filter-color-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.flash-success {
    background: #e6f4ed;
}

.flash-danger {
    background: #f9e7e6;
}

.flash-warning {
    background: #f8f0df;
}

.flash-info {
    background: #e8f1f4;
}

.danger-form {
    display: inline-flex;
}

.danger-form.is-recurring-delete-form {
    display: grid;
    gap: 10px;
    width: min(100%, 430px);
}

.danger-form-sheet-head {
    display: grid;
    gap: 6px;
}

.danger-form-sheet-head h2,
.danger-form-sheet-head p {
    margin: 0;
}

.danger-form-note {
    margin: 0;
    color: #8a4b12;
    font-size: 13px;
    line-height: 1.45;
}

.danger-form-scope-actions {
    display: grid;
    gap: 8px;
}

.event-apply-scope-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.event-apply-scope-grid.is-compact {
    grid-template-columns: 1fr;
}

.event-apply-scope-option {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 14px 15px;
    border: 1px solid rgba(31, 90, 77, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(20, 24, 30, 0.05);
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.event-apply-scope-option:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 90, 77, 0.22);
}

.event-apply-scope-option.is-active,
.event-apply-scope-option:has(input:checked) {
    border-color: rgba(31, 90, 77, 0.46);
    background: linear-gradient(180deg, rgba(236, 245, 241, 0.98), rgba(248, 251, 249, 0.98));
    box-shadow: 0 16px 32px rgba(21, 44, 38, 0.08);
}

.event-apply-scope-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.event-apply-scope-option strong,
.event-apply-scope-option small {
    display: block;
}

.event-apply-scope-option strong {
    color: #183228;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.event-apply-scope-option small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.feishu-compact-scope-card {
    display: grid;
    gap: 12px;
}

.danger-form.is-recurring-delete-form .button {
    width: 100%;
}

.button-danger-outline {
    border-color: rgba(168, 42, 42, 0.24);
    color: #a82a2a;
    background: rgba(255, 255, 255, 0.96);
}

.button-danger-outline:hover,
.button-danger-outline:focus-visible {
    border-color: rgba(168, 42, 42, 0.42);
    background: rgba(255, 243, 243, 0.98);
}

.tone-red {
    background: var(--red);
}

.tone-blue {
    background: var(--blue);
}

.tone-green {
    background: var(--green);
}

.tone-orange {
    background: var(--orange);
}

.invite-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(31, 90, 77, 0.24), transparent 28%),
        radial-gradient(circle at bottom right, rgba(216, 136, 44, 0.22), transparent 24%),
        linear-gradient(180deg, #16362e 0%, #0f221d 100%);
}

.invite-page {
    width: min(1080px, 100%);
}

.invite-card {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(248, 241, 227, 0.94), rgba(241, 233, 214, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.3);
}

.invite-card.has-image {
    background-position: center;
    background-size: cover;
}

.invite-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 23, 20, 0.12), rgba(14, 23, 20, 0.55));
}

.invite-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
    align-content: end;
    min-height: 680px;
    padding: 52px;
    color: #fffaf3;
}

.invite-tag {
    margin: 0;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.invite-content h1 {
    margin: 0;
    font-size: clamp(38px, 5.4vw, 78px);
    line-height: 0.98;
}

.invite-recipient {
    margin: 0;
    font-size: 24px;
}

.invite-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.invite-meta.no-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.invite-meta-item {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 250, 243, 0.15);
    backdrop-filter: blur(8px);
    min-width: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 250, 243, 0.12);
    border: 0;
}

.invite-meta span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 250, 243, 0.76);
}

.invite-meta strong {
    display: block;
    font-size: 18px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.invite-meta-item-time strong,
.invite-meta-item-contact strong {
    font-size: 17px;
    line-height: 1.5;
}

.invite-meta-item-location {
    position: relative;
    overflow: hidden;
    padding: 18px 22px;
    border-radius: 34px;
    width: 100%;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 241, 217, 0.26) 42%, rgba(230, 199, 145, 0.14) 100%),
        linear-gradient(180deg, rgba(255, 252, 246, 0.34), rgba(250, 235, 210, 0.18)),
        rgba(255, 248, 240, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        inset 0 -1px 0 rgba(180, 139, 79, 0.12),
        inset 0 0 0 1px rgba(255, 248, 240, 0.3),
        0 20px 46px rgba(17, 33, 28, 0.14),
        0 8px 20px rgba(28, 45, 38, 0.08);
    backdrop-filter: blur(14px);
    appearance: none;
    text-align: left;
    cursor: pointer;
    transition:
        min-height 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.invite-meta-item-location::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.54), transparent 34%),
        radial-gradient(circle at 86% 4%, rgba(255, 234, 205, 0.22), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 54%);
    pointer-events: none;
}

.invite-meta-item-location::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(180deg, transparent 58%, rgba(184, 144, 84, 0.08) 100%);
    pointer-events: none;
    opacity: 0.9;
}

.invite-meta-item-location:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.56),
        inset 0 -1px 0 rgba(180, 139, 79, 0.14),
        inset 0 0 0 1px rgba(255, 248, 240, 0.32),
        0 22px 52px rgba(17, 33, 28, 0.16),
        0 10px 22px rgba(28, 45, 38, 0.09);
}

.invite-meta-item-location:active {
    transform: translateY(0);
}

.invite-meta-item-location:focus-visible {
    outline: 2px solid rgba(255, 248, 240, 0.95);
    outline-offset: 2px;
}

.invite-meta-item-location.is-long {
    grid-column: span 2;
}

.invite-meta-item-location.is-very-long {
    grid-column: 1 / -1;
}

.invite-meta-item-location strong {
    position: relative;
    z-index: 1;
    display: block;
    isolation: isolate;
    color: #184d43;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: 0.01em;
    -webkit-text-stroke: 0.01em rgba(255, 247, 233, 0.12);
    paint-order: stroke fill;
    text-shadow:
        0 1px 0 rgba(255, 241, 214, 0.34),
        0 3px 8px rgba(19, 60, 52, 0.08),
        0 7px 14px rgba(19, 60, 52, 0.06);
}

.invite-meta-item-location strong::before,
.invite-meta-item-location strong::after {
    content: attr(data-emboss-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    white-space: pre-wrap;
}

.invite-meta-item-location strong::before {
    z-index: -1;
    color: rgba(112, 80, 32, 0.24);
    transform: translate(0.7px, 1.2px);
    filter: blur(0.22px);
}

.invite-meta-item-location strong::after {
    z-index: 2;
    color: rgba(255, 244, 224, 0.2);
    transform: translate(-0.35px, -0.45px);
    text-shadow: 0 0 0.8px rgba(255, 242, 221, 0.14);
    mix-blend-mode: normal;
}

.invite-meta-item-location span {
    position: relative;
    z-index: 1;
    color: #b67322;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.invite-meta-item-location.is-long strong {
    font-size: 12px;
}

.invite-meta-item-location.is-very-long strong {
    font-size: 12px;
    line-height: 1.38;
}

.invite-meta-copy-hint {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 1;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 249, 241, 0.72);
    color: #8f5e16;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 1px rgba(188, 123, 31, 0.18);
    transition:
        background-color 160ms ease,
        color 160ms ease;
}

.invite-meta-item-location.is-copied .invite-meta-copy-hint {
    background: rgba(255, 255, 255, 0.92);
    color: #205446;
}

.invite-message {
    max-width: 42rem;
    font-size: 18px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.invite-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.invite-actions .button {
    width: 100%;
}

.invite-share-note {
    margin-top: 4px;
}

.invite-map-body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at top left, rgba(31, 90, 77, 0.24), transparent 28%),
        radial-gradient(circle at bottom right, rgba(216, 136, 44, 0.18), transparent 24%),
        linear-gradient(180deg, #16362e 0%, #112822 100%);
}

.invite-map-page {
    width: min(520px, 100%);
}

.invite-map-card {
    display: grid;
    gap: 16px;
    padding: 24px 20px;
    border-radius: 28px;
    background: rgba(255, 250, 243, 0.96);
    color: #15312a;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
}

.invite-map-card h1,
.invite-map-address,
.invite-map-event,
.invite-map-eyebrow,
.invite-map-status,
.invite-map-note {
    margin: 0;
}

.invite-map-eyebrow {
    color: #55766b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.invite-map-card h1 {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.08;
}

.invite-map-address {
    color: #23463d;
    font-size: 17px;
    line-height: 1.6;
}

.invite-map-event {
    color: #6b7f79;
    font-size: 14px;
    line-height: 1.5;
}

.invite-map-status {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(31, 90, 77, 0.08);
    color: #1d4d42;
    font-size: 14px;
    line-height: 1.5;
}

.invite-map-actions {
    display: grid;
    gap: 10px;
}

.invite-map-actions .button {
    width: 100%;
}

.invite-map-note {
    color: #72827d;
    font-size: 13px;
    line-height: 1.6;
}

.invite-mobile-share-bar {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 250, 243, 0.16);
    backdrop-filter: blur(10px);
}

.invite-mobile-share-copy {
    display: grid;
    gap: 6px;
}

.invite-mobile-share-copy strong,
.invite-mobile-share-copy p {
    margin: 0;
}

.invite-mobile-share-copy p {
    color: rgba(255, 250, 243, 0.82);
    line-height: 1.45;
}

.invite-mobile-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.invite-mobile-share-actions .button {
    width: 100%;
}

.invite-footer {
    color: rgba(255, 250, 243, 0.8);
}

body {
    min-height: 100svh;
}

html.is-share-sheet-open,
body.is-share-sheet-open {
    overflow: hidden;
}

html.device-ios {
    -webkit-text-size-adjust: 100%;
}

html.device-ios input,
html.device-ios select,
html.device-ios textarea {
    font-size: 16px;
}

.nav form {
    margin: 0;
}

.nav-desktop-only {
    display: inline-flex;
}

.nav-keep-mobile {
    display: inline-flex;
}

.mobile-only {
    display: none !important;
}

.mobile-tabbar {
    display: none;
}

.dashboard-head {
    align-items: flex-end;
}

.mobile-dashboard-switcher {
    display: grid;
    gap: 16px;
}

.mobile-dashboard-switcher-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.mobile-dashboard-switcher-copy {
    margin: 0;
    color: var(--muted);
}

.is-iphone-dashboard {
    background:
        radial-gradient(circle at top left, rgba(47, 111, 237, 0.14), transparent 24%),
        linear-gradient(180deg, #f5f6fb 0%, #eceff6 100%);
}

.is-iphone-dashboard .shell {
    max-width: none;
    padding: 0;
}

.is-iphone-dashboard .topbar,
.is-iphone-dashboard .mobile-tabbar,
.is-iphone-dashboard .install-note {
    display: none !important;
}

.is-iphone-dashboard .page {
    gap: 0;
}

.is-iphone-dashboard .flash-stack {
    margin: 0;
    padding: 16px 16px 0;
}

.is-iphone-standalone {
    margin: 0;
    min-height: 100svh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at top left, rgba(47, 111, 237, 0.14), transparent 24%),
        linear-gradient(180deg, #f5f6fb 0%, #eceff6 100%);
}

.is-iphone-standalone .iphone-standalone-page {
    min-height: 100svh;
    min-height: 100dvh;
    display: grid;
    align-content: start;
    gap: 0;
}

.is-iphone-standalone .flash-stack {
    margin: 0;
    padding: 10px 12px 0;
}

.is-iphone-standalone .flash {
    border-radius: 14px;
}

.mobile-lite-page {
    padding: calc(8px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom));
}

.lark-host .mobile-lite-page,
.lark-host .iphone-standalone-page,
.is-lark-host.mobile-lite-page,
.is-lark-host .iphone-standalone-page {
    padding-top: 6px;
}

.mobile-auth-shell,
.mobile-lite-shell {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

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

.mobile-auth-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(160deg, #1f5a4d, #163d33);
    color: #fffaf3;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 26px rgba(31, 90, 77, 0.16);
}

.mobile-auth-head,
.mobile-lite-head {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(30, 36, 32, 0.06);
}

.mobile-auth-head h1,
.mobile-lite-title-wrap h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
}

.mobile-auth-head p,
.mobile-lite-title-wrap p {
    margin: 6px 0 0;
    color: #6b747a;
    font-size: 13px;
}

.mobile-auth-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(30, 36, 32, 0.06);
    padding: 14px;
    display: grid;
    gap: 10px;
}

.mobile-auth-card label {
    display: grid;
    gap: 6px;
}

.mobile-auth-hint {
    margin: 2px 2px 0;
    color: #7d888f;
    font-size: 12px;
}

.mobile-pwa-banner {
    display: grid;
    gap: 10px;
    padding: 14px 14px 12px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(31, 90, 77, 0.11), rgba(255, 255, 255, 0.96)),
        #ffffff;
    border: 1px solid rgba(31, 90, 77, 0.12);
    box-shadow: 0 14px 32px rgba(27, 41, 36, 0.06);
}

.mobile-pwa-banner[hidden] {
    display: none !important;
}

.mobile-pwa-copy strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
}

.mobile-pwa-copy p,
.mobile-pwa-ios-note {
    margin: 4px 0 0;
    color: #697279;
    font-size: 12px;
    line-height: 1.5;
}

.mobile-pwa-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-pwa-actions .button {
    min-height: 40px;
    padding: 0 16px;
}

.mobile-pwa-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(32, 37, 34, 0.06);
    color: #475057;
    font-size: 13px;
    font-weight: 700;
}

.mobile-pwa-banner.is-compact {
    padding: 12px 14px;
}

.lark-host .mobile-pwa-banner,
.is-lark-host .mobile-pwa-banner {
    display: none !important;
}

.mobile-lite-head {
    display: grid;
    gap: 8px;
}

.mobile-lite-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3f2ef;
    color: #232529;
    font-size: 14px;
    font-weight: 700;
}

.mobile-lite-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(30, 36, 32, 0.06);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.mobile-lite-filter-grid {
    display: grid;
    gap: 10px;
}

.mobile-lite-filter-grid label {
    display: grid;
    gap: 6px;
}

.mobile-lite-color-row {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
}

.mobile-lite-color-row legend {
    padding: 0 6px;
    font-size: 12px;
    color: var(--muted);
}

.mobile-lite-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-lite-filter-disclosure {
    display: grid;
    gap: 8px;
}

.mobile-lite-filter-disclosure summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
    font-weight: 600;
}

.mobile-lite-filter-disclosure summary::-webkit-details-marker {
    display: none;
}

.mobile-lite-filter-disclosure[open] summary {
    color: var(--brand);
    border-color: rgba(31, 90, 77, 0.22);
    background: rgba(220, 235, 228, 0.72);
}

.mobile-lite-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 8px;
    background: #ffffff;
    font-size: 13px;
}

.mobile-lite-color-chip input {
    margin: 0;
}

.mobile-lite-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-lite-range-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.mobile-lite-range-row::-webkit-scrollbar {
    display: none;
}

.mobile-lite-range-chip {
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 5px 11px;
    background: #ffffff;
    color: #5f676d;
    font-size: 13px;
}

.mobile-lite-range-chip.is-active {
    background: #232529;
    color: #ffffff;
    border-color: #232529;
}

.mobile-lite-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #646f76;
    font-size: 13px;
}

.mobile-lite-list {
    display: grid;
    gap: 8px;
}

.mobile-lite-row {
    color: #ffffff;
    border-radius: 14px;
    padding: 9px 10px;
    display: grid;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.mobile-lite-row strong {
    font-size: 16px;
    line-height: 1.2;
}

.mobile-lite-row small {
    font-size: 12px;
    opacity: 0.95;
}

.mobile-lite-row span {
    font-size: 12px;
    opacity: 0.92;
}

.is-iphone-event-form {
    background:
        radial-gradient(circle at top left, rgba(47, 111, 237, 0.14), transparent 24%),
        linear-gradient(180deg, #f5f6fb 0%, #eceff6 100%);
}

.is-iphone-event-form .shell {
    max-width: none;
    padding: 0;
}

.is-iphone-event-form .topbar,
.is-iphone-event-form .mobile-tabbar,
.is-iphone-event-form .install-note {
    display: none !important;
}

.is-iphone-event-form .page {
    gap: 10px;
    padding: 0 12px calc(14px + env(safe-area-inset-bottom));
}

.is-iphone-event-form .flash-stack {
    margin: 0;
    padding: calc(8px + env(safe-area-inset-top)) 0 0;
}

.is-iphone-event-form .form-shell.is-iphone-event-form-shell {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    gap: 12px;
}

.iphone-event-editor-head {
    display: grid;
    gap: 4px;
    padding: 2px 4px 4px;
}

.iphone-event-editor-head h1 {
    margin: 0;
    font-size: 23px;
    line-height: 1.12;
}

.iphone-event-editor-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.is-iphone-event-form .event-form.is-iphone-quick-form {
    grid-template-columns: 1fr;
    gap: 12px;
}

.is-iphone-event-form .event-form.is-iphone-quick-form .form-section-card {
    gap: 12px;
    padding: 18px 16px;
    border-radius: 22px;
}

.is-iphone-event-form .event-form.is-iphone-quick-form .form-section-head h2 {
    margin: 0;
    line-height: 1.18;
}

.is-iphone-event-form .event-form.is-iphone-quick-form .form-section-head .eyebrow,
.is-iphone-event-form .event-form.is-iphone-quick-form .form-section-copy {
    display: none;
}

.is-iphone-event-form .event-form.is-iphone-quick-form .form-section-body {
    grid-template-columns: 1fr;
    gap: 12px;
}

.is-iphone-event-form .event-form.is-iphone-quick-form .event-apply-scope-card {
    position: sticky;
    top: calc(8px + env(safe-area-inset-top));
    z-index: 18;
    padding: 12px;
    border-color: rgba(47, 111, 237, 0.16);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(31, 62, 116, 0.12);
}

.is-iphone-event-form .event-form.is-iphone-quick-form .event-apply-scope-card .form-section-head h2 {
    font-size: 16px;
    line-height: 1.2;
}

.is-iphone-event-form .event-form.is-iphone-quick-form .event-apply-scope-card .form-section-body {
    gap: 8px;
}

.is-iphone-event-form .event-form.is-iphone-quick-form .event-apply-scope-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.is-iphone-event-form .event-form.is-iphone-quick-form .event-apply-scope-option {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
}

.is-iphone-event-form .event-form.is-iphone-quick-form .event-apply-scope-option strong {
    font-size: 15px;
}

.is-iphone-event-form .event-form.is-iphone-quick-form .event-apply-scope-option.is-active,
.is-iphone-event-form .event-form.is-iphone-quick-form .event-apply-scope-option:has(input:checked) {
    border-color: rgba(47, 111, 237, 0.34);
    background: linear-gradient(180deg, rgba(238, 245, 255, 0.98), rgba(248, 251, 255, 0.98));
    box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.12);
}

.is-iphone-event-form .event-form.is-iphone-quick-form label,
.is-iphone-event-form .event-form.is-iphone-quick-form fieldset {
    gap: 6px;
}

.is-iphone-event-form .event-form.is-iphone-quick-form span,
.is-iphone-event-form .event-form.is-iphone-quick-form legend {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.is-iphone-event-form .event-form.is-iphone-quick-form input,
.is-iphone-event-form .event-form.is-iphone-quick-form select,
.is-iphone-event-form .event-form.is-iphone-quick-form textarea {
    min-height: 52px;
    padding: 15px 15px;
    border-radius: 16px;
    line-height: 1.48;
}

.is-iphone-event-form .event-form.is-iphone-quick-form textarea {
    min-height: 116px;
}

.is-iphone-event-form .event-form.is-iphone-quick-form small {
    display: none;
}

.is-iphone-event-form .form-action-bar.is-iphone-action-bar {
    position: sticky;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 22;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
}

.is-iphone-event-form .form-action-bar.is-iphone-action-bar .button {
    width: 100%;
    min-height: 46px;
}

.is-iphone-event-form .danger-form.is-iphone-danger-form {
    width: 100%;
    padding: 16px 16px calc(10px + env(safe-area-inset-bottom));
    border: 1px solid rgba(181, 63, 57, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 252, 252, 0.98), rgba(255, 246, 246, 0.96)),
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(136, 43, 43, 0.08);
}

.is-iphone-event-form .danger-form.is-iphone-danger-form .eyebrow {
    color: rgba(168, 42, 42, 0.72);
}

.is-iphone-event-form .danger-form.is-iphone-danger-form .danger-form-sheet-head h2 {
    font-size: 17px;
    line-height: 1.24;
    color: #5f1f1f;
}

.is-iphone-event-form .danger-form.is-iphone-danger-form .danger-form-note {
    color: #875454;
    font-size: 12px;
    line-height: 1.55;
}

.is-iphone-event-form .danger-form.is-iphone-danger-form .danger-form-scope-actions {
    gap: 10px;
}

.is-iphone-event-form .danger-form.is-iphone-danger-form .button {
    min-height: 48px;
    border-radius: 17px;
}

.is-iphone-event-form .danger-form.is-iphone-danger-form .button-danger {
    box-shadow: 0 14px 26px rgba(168, 42, 42, 0.16);
}

.is-iphone-event-detail {
    background:
        radial-gradient(circle at top left, rgba(47, 111, 237, 0.14), transparent 24%),
        linear-gradient(180deg, #f5f6fb 0%, #eceff6 100%);
}

.is-iphone-event-detail .shell {
    max-width: none;
    padding: 0;
}

.is-iphone-event-detail .topbar,
.is-iphone-event-detail .mobile-tabbar,
.is-iphone-event-detail .install-note {
    display: none !important;
}

.is-iphone-event-detail .page {
    gap: 10px;
    padding: 0 12px calc(14px + env(safe-area-inset-bottom));
}

.is-iphone-event-detail .form-shell.is-iphone-event-detail-shell {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    gap: 12px;
}

.event-detail-card {
    display: grid;
    gap: 14px;
    padding: 20px 18px;
    border-radius: 22px;
}

.event-detail-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
}

.event-detail-color {
    width: 14px;
    height: 42px;
    border-radius: 8px;
}

.event-detail-title-wrap h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.event-detail-time {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.event-detail-meta {
    display: grid;
    gap: 10px;
    font-size: 13px;
}

.event-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.event-detail-row span {
    color: var(--muted);
}

.event-detail-row strong {
    font-weight: 600;
}

.event-detail-row.is-notes {
    display: grid;
    gap: 6px;
}

.event-detail-row.is-notes p {
    margin: 0;
    color: #1d1f21;
    line-height: 1.5;
}

.event-detail-row.is-readonly-note {
    gap: 8px;
    padding: 12px 13px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 249, 217, 0.96), rgba(252, 244, 194, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(205, 161, 10, 0.26),
        0 8px 18px rgba(121, 98, 19, 0.08);
}

.event-detail-row.is-readonly-note span {
    color: #7a5b00;
    font-weight: 700;
}

.event-detail-row.is-readonly-note p {
    color: #684d00;
    font-size: 12px;
    line-height: 1.55;
}

.is-iphone-event-detail .form-action-bar.is-iphone-action-bar.is-event-detail-actions {
    position: sticky;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 22;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
}

.is-iphone-event-detail .form-action-bar.is-iphone-action-bar.is-event-detail-actions .button {
    width: 100%;
    min-height: 46px;
}

.is-mobile-invitation-form {
    background:
        radial-gradient(circle at top left, rgba(47, 111, 237, 0.14), transparent 24%),
        linear-gradient(180deg, #f5f6fb 0%, #eceff6 100%);
}

.is-mobile-invitation-form .shell {
    max-width: none;
    padding: 0;
}

.is-mobile-invitation-form .topbar,
.is-mobile-invitation-form .mobile-tabbar,
.is-mobile-invitation-form .install-note {
    display: none !important;
}

.is-mobile-invitation-form .page {
    gap: 8px;
    padding: 0 12px calc(14px + env(safe-area-inset-bottom));
}

.is-mobile-invitation-form .share-box-mobile.is-compact-share-only {
    gap: 12px;
    padding: 10px 10px 12px;
}

.is-mobile-invitation-form .share-box-mobile.is-compact-share-only .mobile-share-hero {
    grid-template-columns: 1fr;
    gap: 12px;
}

.is-mobile-invitation-form .share-box-mobile.is-compact-share-only .mobile-share-hero-preview {
    border-radius: 18px;
    overflow: hidden;
}

.is-mobile-invitation-form .share-box-mobile.is-compact-share-only .mobile-share-hero-actions {
    grid-template-columns: 1fr;
}

.is-mobile-invitation-form .flash-stack {
    margin: 0;
    padding: calc(8px + env(safe-area-inset-top)) 0 0;
}

.is-mobile-invitation-form .form-shell.is-mobile-invitation-shell {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    gap: 12px;
}

.invitation-editor-head {
    display: grid;
    gap: 2px;
    padding: 0 2px 0;
}

.invitation-editor-head h1 {
    margin: 0;
    font-size: 18px;
    line-height: 1.05;
    font-weight: 700;
}

.invitation-editor-head p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.mobile-invitation-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px;
}

.mobile-invitation-toolbar-link {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    color: rgba(26, 34, 32, 0.56);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.mobile-invitation-toolbar-link:hover,
.mobile-invitation-toolbar-link:focus-visible {
    color: rgba(26, 34, 32, 0.82);
}

.is-mobile-invitation-form .share-box,
.is-mobile-invitation-form .preview-panel {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(30, 36, 32, 0.08);
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
}

.is-mobile-invitation-form .actions-inline {
    flex-wrap: wrap;
    gap: 10px;
}

.is-mobile-invitation-form .actions-inline .button {
    min-height: 42px;
}

.is-mobile-invitation-form .template-preview-grid {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
}

.is-mobile-invitation-form .share-box-mobile {
    gap: 12px;
}

.lark-host .mobile-share-hero,
.is-lark-host .mobile-share-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 38%),
        linear-gradient(135deg, #202631 0%, #171c26 100%);
}

.lark-host .invite-share-sheet-card,
.is-lark-host .invite-share-sheet-card {
    border-radius: 28px;
}

.lark-host .invite-mobile-share-bar,
.is-lark-host .invite-mobile-share-bar {
    background: rgba(26, 33, 44, 0.32);
}

.is-feishu-dashboard,
.is-feishu-event-form,
.is-feishu-invitation-form,
.is-feishu-mobile-login,
.is-feishu-mobile-stats {
    background:
        radial-gradient(circle at top left, rgba(51, 112, 255, 0.10), transparent 28%),
        linear-gradient(180deg, #f8faff 0%, #f2f5fb 54%, #edf1f8 100%);
}

.is-feishu-dashboard .flash-stack,
.is-feishu-event-form .flash-stack,
.is-feishu-invitation-form .flash-stack,
.is-feishu-mobile-login .flash-stack,
.is-feishu-mobile-stats .flash-stack {
    padding-top: calc(8px + env(safe-area-inset-top));
}

.is-feishu-dashboard .flash-stack {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 60;
    gap: 8px;
    margin: 0;
    padding-top: 0;
    pointer-events: none;
}

.is-feishu-dashboard .flash {
    padding: 11px 14px;
    border-radius: 14px;
    border-color: rgba(26, 33, 44, 0.08);
    background: rgba(32, 38, 54, 0.90);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
    backdrop-filter: blur(16px);
}

.is-feishu-dashboard .flash-success {
    background: rgba(34, 58, 48, 0.92);
}

.is-feishu-dashboard .flash-danger {
    background: rgba(96, 39, 39, 0.92);
}

.is-feishu-dashboard .flash-warning {
    background: rgba(107, 77, 28, 0.92);
}

.is-feishu-dashboard .flash-info {
    background: rgba(35, 59, 85, 0.92);
}

.is-feishu-event-form .shell,
.is-feishu-invitation-form .shell,
.is-feishu-mobile-stats .shell {
    max-width: none;
    padding: 0;
}

.is-feishu-event-form .topbar,
.is-feishu-event-form .mobile-tabbar,
.is-feishu-event-form .mobile-pwa-banner,
.is-feishu-invitation-form .topbar,
.is-feishu-invitation-form .mobile-tabbar,
.is-feishu-invitation-form .mobile-pwa-banner,
.is-feishu-mobile-stats .topbar,
.is-feishu-mobile-stats .mobile-tabbar,
.is-feishu-mobile-stats .mobile-pwa-banner {
    display: none !important;
}

.is-feishu-dashboard .iphone-calendar-shell {
    max-width: 760px;
    padding: calc(3px + env(safe-area-inset-top)) 10px calc(12px + env(safe-area-inset-bottom));
    gap: 7px;
}

.is-feishu-dashboard .iphone-native-header {
    top: env(safe-area-inset-top);
    gap: 6px;
    padding: 0;
    background: transparent;
}

.feishu-shell-header {
    display: grid;
    gap: 0;
    padding: 6px 7px;
    border: 1px solid rgba(93, 128, 214, 0.08);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 14px rgba(32, 61, 131, 0.045);
    backdrop-filter: blur(12px);
}

.feishu-shell-titlebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.feishu-shell-brand {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.feishu-shell-brand small {
    color: #4a73d7;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.1;
}

.feishu-shell-brand span {
    color: #728198;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feishu-shell-shortcuts {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 4px;
}

.feishu-shell-focusbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
}

.feishu-shell-nav-cluster {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 0;
    padding: 1px;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(241, 246, 255, 0.96));
    box-shadow: inset 0 0 0 1px rgba(51, 112, 255, 0.08);
}

.feishu-shell-focus {
    min-width: 0;
    display: grid;
    gap: 0;
    min-height: 30px;
    padding: 0 2px;
    border-radius: 12px;
    align-content: center;
    text-align: left;
    background: transparent;
    box-shadow: none;
}

.feishu-shell-focus-kicker {
    color: #4b73d9;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
}

.feishu-shell-focus strong {
    font-size: 15px;
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1f2430;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feishu-shell-focus small {
    color: #7b889b;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.06;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feishu-shell-nav-button,
.feishu-shell-action,
.feishu-editor-back,
.feishu-editor-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 11px;
    border: 1px solid rgba(51, 112, 255, 0.10);
    background: rgba(255, 255, 255, 0.98);
    color: #1f2430;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(32, 61, 131, 0.05);
}

.feishu-shell-nav-button {
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    color: #3262d9;
}

.feishu-shell-nav-cluster .feishu-shell-nav-button + .feishu-shell-nav-button {
    border-left: 1px solid rgba(51, 112, 255, 0.10);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.feishu-shell-nav-cluster .feishu-shell-nav-button:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.feishu-shell-action.is-compose {
    min-width: 30px;
    padding: 0;
    font-size: 20px;
    font-weight: 500;
}

.feishu-shell-action.is-primary {
    background: linear-gradient(180deg, #4d84ff 0%, #3370ff 100%);
    color: #ffffff;
    border-color: #3370ff;
    box-shadow: 0 8px 18px rgba(51, 112, 255, 0.18);
}

.feishu-shell-action.is-today {
    padding: 0 9px;
    background: rgba(246, 249, 255, 0.95);
    color: #3564d8;
}

.feishu-shell-action.is-today.is-current {
    color: #3370ff;
    border-color: rgba(51, 112, 255, 0.28);
    background: rgba(51, 112, 255, 0.08);
}

.iphone-week-strip-stage {
    position: relative;
}

.iphone-week-strip-ghost {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    gap: 6px;
    padding: 0 0 2px;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.is-feishu-dashboard .iphone-week-strip {
    position: relative;
    z-index: 2;
    padding: 2px;
    border-radius: 14px;
    border: 1px solid rgba(102, 132, 206, 0.10);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 12px rgba(32, 61, 131, 0.04);
}

.is-feishu-dashboard .iphone-week-strip-stage {
    overflow: hidden;
    border-radius: 14px;
}

.is-feishu-dashboard .iphone-week-strip-stage.is-previewing {
    --strip-reveal-progress: 0;
}

.is-feishu-dashboard .iphone-week-strip-ghost {
    gap: 5px;
    padding: 2px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(243, 247, 255, 0.92));
}

.is-feishu-dashboard .iphone-weekday-pill {
    min-width: 40px;
    min-height: 46px;
    padding: 3px 3px 2px;
    border-radius: 11px;
}

.is-feishu-dashboard .iphone-weekday-pill.is-selected {
    background: linear-gradient(180deg, rgba(51, 112, 255, 0.08), rgba(51, 112, 255, 0.04));
    box-shadow: inset 0 0 0 1px rgba(51, 112, 255, 0.14);
}

.is-feishu-dashboard .iphone-weekday-pill.is-selected strong {
    background: #3370ff;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(51, 112, 255, 0.20);
}

.is-feishu-dashboard .iphone-weekday-pill.is-today:not(.is-selected) strong {
    color: #3370ff;
    background: rgba(51, 112, 255, 0.10);
}

.is-feishu-dashboard .iphone-weekday-pill strong {
    width: 26px;
    height: 26px;
    font-size: 15px;
}

.is-feishu-dashboard .iphone-weekday-pill small,
.is-feishu-dashboard .iphone-weekday-meta {
    color: #73829a;
}

.is-feishu-dashboard .iphone-weekday-pill small {
    margin-bottom: 1px;
    font-size: 9.5px;
    font-weight: 700;
}

.is-feishu-dashboard .iphone-weekday-meta {
    min-width: 13px;
    height: 12px;
    padding: 0 3px;
    background: rgba(51, 112, 255, 0.08);
    color: #5d7bc0;
    font-size: 8px;
    line-height: 12px;
}

.is-feishu-dashboard .iphone-mode-tabs {
    padding: 2px;
    border-radius: 13px;
    background: rgba(231, 237, 248, 0.90);
    box-shadow: inset 0 0 0 1px rgba(120, 144, 214, 0.07);
}

.is-feishu-dashboard .iphone-mode-tab {
    min-height: 28px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 11px;
    color: #68788f;
}

.is-feishu-dashboard .iphone-mode-tab.is-active {
    color: #245ad7;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(41, 76, 160, 0.10);
}

.is-feishu-dashboard .iphone-native-panel {
    border-radius: 18px;
    border: 1px solid rgba(102, 132, 206, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.95)),
        rgba(255, 255, 255, 0.95);
    box-shadow:
        0 4px 14px rgba(31, 36, 48, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.is-feishu-dashboard .iphone-panel-head {
    display: none;
}

.is-feishu-dashboard .iphone-month-actions {
    display: none;
}

.is-feishu-dashboard .iphone-day-scroller {
    max-height: calc(100svh - 178px);
    max-height: calc(100dvh - 178px);
    padding: 0 8px calc(8px + env(safe-area-inset-bottom));
}

.iphone-week-strip-preview {
    position: absolute;
    top: var(--strip-preview-top, 0px);
    left: var(--strip-preview-left, 50%);
    z-index: 18;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(34, 46, 68, 0.08);
    color: #4d5a6c;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transform: translate(-50%, -16px) scale(0.96);
    transition: opacity 130ms ease, transform 130ms ease;
}

.iphone-week-strip-preview.is-visible {
    opacity: 1;
    transform: translate(-50%, -8px) scale(1);
}

.is-feishu-dashboard .iphone-week-strip-preview {
    min-height: 26px;
    padding: 0 12px;
    border: 1px solid rgba(51, 112, 255, 0.10);
    background: rgba(255, 255, 255, 0.96);
    color: #245ad7;
    box-shadow: 0 8px 20px rgba(41, 76, 160, 0.10);
    backdrop-filter: blur(12px);
}

.is-feishu-dashboard .iphone-week-strip {
    transition:
        transform 176ms cubic-bezier(0.22, 0.86, 0.28, 1),
        box-shadow 150ms ease,
        background 150ms ease;
}

.is-feishu-dashboard .iphone-week-strip.is-swipe-active {
    box-shadow: 0 18px 34px rgba(31, 36, 48, 0.09);
    background: rgba(246, 249, 255, 0.98);
}

.is-feishu-dashboard .iphone-week-strip-stage.is-previewing .iphone-week-strip {
    opacity: var(--strip-current-opacity, 1);
}

.is-feishu-dashboard .iphone-week-strip .iphone-weekday-pill {
    transition: transform 108ms ease, opacity 108ms ease, background 108ms ease;
    transform: translateX(calc(var(--strip-live-progress, 0) * 5px));
    opacity: calc(1 - (var(--strip-live-progress-abs, 0) * 0.10));
}

.is-feishu-dashboard .iphone-week-strip.is-swipe-active .iphone-weekday-pill.is-selected {
    transform: translateX(calc(var(--strip-live-progress, 0) * 9px)) scale(0.985);
}

.is-feishu-dashboard .iphone-week-strip-stage.is-previewing .iphone-week-strip-ghost .iphone-weekday-pill {
    transform: translateX(calc(var(--strip-live-progress, 0) * 2px))
        scale(calc(0.986 + var(--strip-reveal-progress, 0) * 0.018));
    opacity: calc(0.86 + var(--strip-reveal-progress, 0) * 0.14);
}

.is-feishu-dashboard .iphone-week-strip-stage.is-previewing .iphone-week-strip-ghost .iphone-weekday-pill.is-selected {
    background: linear-gradient(180deg, rgba(51, 112, 255, 0.12), rgba(51, 112, 255, 0.05));
    box-shadow:
        inset 0 0 0 1px rgba(51, 112, 255, 0.14),
        0 10px 20px rgba(51, 112, 255, 0.12);
}

.is-feishu-dashboard .iphone-week-strip-stage.is-previewing .iphone-week-strip-ghost .iphone-weekday-pill.is-selected strong {
    background: #3370ff;
    color: #ffffff;
}

.is-feishu-dashboard .iphone-week-strip-ghost .iphone-weekday-pill {
    min-height: 60px;
    border-radius: 14px;
    opacity: 0.96;
    transition: transform 108ms ease, opacity 108ms ease, background 108ms ease;
}

.is-feishu-dashboard .iphone-week-strip-ghost .iphone-weekday-pill strong {
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.is-feishu-dashboard .iphone-week-strip-ghost .iphone-weekday-pill small,
.is-feishu-dashboard .iphone-week-strip-ghost .iphone-weekday-meta {
    color: #73829a;
}

.feishu-shell-focus {
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
    transform: translateX(var(--focus-preview-shift, 0px));
}

.feishu-shell-focus.is-previewing {
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(241, 246, 255, 0.94));
    box-shadow: inset 0 0 0 1px rgba(51, 112, 255, 0.08);
}

.feishu-editor-bar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 20px;
    border: 1px solid rgba(51, 112, 255, 0.10);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(37, 68, 149, 0.08);
}

.feishu-editor-title-wrap {
    min-width: 0;
    display: grid;
    gap: 1px;
    text-align: center;
}

.feishu-editor-title-wrap small {
    color: #3370ff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.feishu-editor-title-wrap h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.12;
    color: #1f2430;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feishu-editor-spacer {
    width: 44px;
    height: 38px;
}

.feishu-editor-hint {
    margin: 0 4px;
    padding: 0 2px 2px;
    color: #75849b;
    font-size: 12.5px;
    line-height: 1.45;
}

.is-feishu-event-form .page,
.is-feishu-invitation-form .page {
    gap: 12px;
    padding: 0 12px calc(14px + env(safe-area-inset-bottom));
}

.is-feishu-event-form .event-form.is-iphone-quick-form .form-section-card,
.is-feishu-invitation-form .mobile-invitation-form,
.is-feishu-invitation-form .share-box,
.is-feishu-mobile-login .mobile-auth-head,
.is-feishu-mobile-login .mobile-auth-card,
.is-feishu-mobile-stats .mobile-lite-head,
.is-feishu-mobile-stats .mobile-lite-card {
    border-color: rgba(51, 112, 255, 0.08);
    box-shadow: 0 16px 34px rgba(31, 36, 48, 0.06);
}

.is-feishu-event-form .event-form.is-iphone-quick-form {
    grid-template-columns: 1fr;
    gap: 10px;
}

.is-feishu-event-form .event-form.is-iphone-quick-form .form-section-card {
    gap: 0;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
}

.is-feishu-event-form .form-section-head {
    gap: 4px;
    padding: 14px 16px 12px;
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(255, 255, 255, 0.98));
    border-bottom: 1px solid rgba(95, 128, 203, 0.10);
}

.is-feishu-event-form .form-section-head .eyebrow {
    margin: 0;
    color: #3370ff;
    font-size: 10.5px;
    letter-spacing: 0.08em;
}

.is-feishu-event-form .form-section-head h2 {
    font-size: 18px;
    line-height: 1.16;
}

.is-feishu-event-form .form-section-copy {
    margin: 0;
    color: #7a879a;
    font-size: 12px;
    line-height: 1.45;
}

.is-feishu-event-form .form-section-body {
    grid-template-columns: 1fr;
    gap: 0;
}

.is-feishu-event-form .form-section-body > label,
.is-feishu-event-form .form-section-body > div,
.is-feishu-event-form .form-section-body > fieldset {
    padding: 14px 16px;
    border-top: 1px solid rgba(95, 128, 203, 0.10);
}

.is-feishu-event-form .form-section-body > :first-child {
    border-top: 0;
}

.is-feishu-event-form .event-form.is-iphone-quick-form label,
.is-feishu-event-form .event-form.is-iphone-quick-form fieldset {
    gap: 8px;
}

.is-feishu-event-form .event-form.is-iphone-quick-form span,
.is-feishu-event-form .event-form.is-iphone-quick-form legend {
    color: #607086;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}

.is-feishu-event-form .event-form.is-iphone-quick-form input,
.is-feishu-event-form .event-form.is-iphone-quick-form select,
.is-feishu-event-form .event-form.is-iphone-quick-form textarea,
.is-feishu-invitation-form .mobile-invitation-form input,
.is-feishu-invitation-form .mobile-invitation-form textarea {
    min-height: 48px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid #dde6f4;
    background: #f7f9fd;
    box-shadow: none;
}

.is-feishu-event-form .event-form.is-iphone-quick-form textarea,
.is-feishu-invitation-form .mobile-invitation-form textarea {
    min-height: 104px;
}

.is-feishu-event-form .event-form.is-iphone-quick-form small,
.is-feishu-invitation-form .mobile-invitation-form small {
    display: block;
    color: #8291a5;
    font-size: 11.5px;
    line-height: 1.45;
}

.is-feishu-event-form .color-picker {
    gap: 10px;
}

.is-feishu-event-form .color-choice {
    padding: 12px;
    border-radius: 16px;
    border-color: rgba(95, 128, 203, 0.12);
    background: #fbfcff;
}

.is-feishu-event-form .form-action-bar.is-iphone-action-bar {
    position: sticky;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 22;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(51, 112, 255, 0.12);
    box-shadow: 0 14px 30px rgba(31, 36, 48, 0.07);
}

.is-feishu-event-form .form-action-bar.is-iphone-action-bar .button,
.is-feishu-invitation-form .button {
    min-height: 44px;
    border-radius: 14px;
}

.is-feishu-event-form .button:not(.button-ghost):not(.button-danger),
.is-feishu-invitation-form .button:not(.button-ghost):not(.button-danger),
.is-feishu-mobile-stats .button:not(.button-ghost):not(.button-danger) {
    background: linear-gradient(180deg, #4d84ff 0%, #3370ff 100%);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(51, 112, 255, 0.18);
}

.is-feishu-event-form .button-ghost,
.is-feishu-invitation-form .button-ghost,
.is-feishu-mobile-stats .button-ghost {
    background: rgba(255, 255, 255, 0.92);
    color: #1f2430;
    border: 1px solid rgba(102, 132, 206, 0.16);
}

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

.is-feishu-event-form .page {
    gap: 10px;
    padding: calc(4px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom));
}

.feishu-compact-event-shell {
    width: min(100%, 430px);
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.feishu-compact-event-form {
    display: grid;
    gap: 14px;
}

.feishu-compact-editor-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 0;
}

.feishu-compact-editor-cancel,
.feishu-compact-editor-save {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
    text-decoration: none;
}

.feishu-compact-editor-cancel {
    color: #5e6470;
}

.feishu-compact-editor-save {
    color: #3370ff;
    cursor: pointer;
}

.feishu-compact-title-card {
    display: block;
    padding: 2px 6px 10px;
    border-bottom: 1px solid rgba(18, 24, 36, 0.08);
}

.feishu-compact-title-card input {
    width: 100%;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2430;
}

.feishu-compact-title-card input::placeholder {
    color: #c3cad8;
}

.feishu-compact-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(18, 24, 36, 0.06);
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(24, 36, 56, 0.05);
    overflow: hidden;
}

.feishu-compact-row {
    position: relative;
    display: grid;
    gap: 7px;
    padding: 18px 20px;
}

.feishu-compact-row + .feishu-compact-row {
    border-top: 1px solid rgba(18, 24, 36, 0.07);
}

.feishu-compact-row-label {
    color: #767d89;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.feishu-compact-time-card input,
.feishu-compact-repeat-extra input,
.feishu-compact-note-card textarea {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #1f2430;
}

.feishu-compact-time-card input {
    min-height: 34px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.feishu-compact-time-card input::-webkit-calendar-picker-indicator,
.feishu-compact-repeat-extra input::-webkit-calendar-picker-indicator {
    opacity: 0.68;
}

.feishu-compact-toggle-card {
    display: block;
    padding: 14px 18px;
}

.feishu-compact-toggle-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feishu-compact-toggle-main input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: #1f2430;
}

.feishu-compact-toggle-copy {
    display: grid;
    gap: 5px;
}

.feishu-compact-toggle-copy strong {
    color: #1f2430;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.feishu-compact-toggle-copy small {
    color: #a0a7b4;
    font-size: 13px;
    line-height: 1.4;
}

.feishu-compact-settings-card .feishu-compact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
}

.feishu-compact-settings-card .feishu-compact-row + .feishu-compact-row {
    border-top: 1px solid rgba(18, 24, 36, 0.07);
}

.feishu-compact-settings-card .feishu-compact-row-label {
    flex: 0 0 auto;
}

.feishu-compact-row-value {
    margin-left: auto;
    padding-left: 16px;
    color: #1f2430;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    text-align: right;
}

.feishu-compact-settings-card select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.feishu-compact-repeat-extra {
    display: none;
    gap: 12px;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(18, 24, 36, 0.07);
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.7), rgba(255, 255, 255, 0.94));
}

.feishu-compact-repeat-extra.is-visible {
    display: grid;
}

.feishu-compact-inline-field {
    display: grid;
    gap: 7px;
}

.feishu-compact-inline-field span {
    color: #7b8390;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.feishu-compact-inline-field input {
    min-height: 42px;
    padding: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.feishu-compact-inline-field.is-wide input {
    font-size: 16px;
}

.feishu-compact-note-card {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
}

.feishu-compact-note-card textarea {
    min-height: 132px;
    resize: none;
    font-size: 16px;
    line-height: 1.55;
}

.feishu-compact-note-card textarea::placeholder {
    color: #c2c8d4;
}

.feishu-compact-footer-actions,
.feishu-compact-delete-form {
    width: min(100%, 430px);
    margin: 0 auto;
}

.feishu-compact-footer-actions {
    display: grid;
}

.feishu-compact-footer-actions .button,
.feishu-compact-delete-form .button {
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
}

.feishu-compact-delete-form {
    margin-top: -2px;
}

.feishu-compact-share-shell {
    width: min(100%, 430px);
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.feishu-compact-share-top {
    padding-top: 4px;
}

.feishu-compact-share-heading {
    color: #1f2430;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
}

.feishu-compact-editor-placeholder {
    opacity: 0;
    pointer-events: none;
}

.feishu-compact-share-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.feishu-compact-share-copy {
    display: grid;
    gap: 6px;
}

.feishu-compact-share-copy strong {
    color: #1f2430;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.feishu-compact-share-copy p {
    margin: 0;
    color: #727b88;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.feishu-compact-share-preview {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(241, 246, 255, 0.92));
    box-shadow: inset 0 0 0 1px rgba(51, 112, 255, 0.08);
    overflow: hidden;
    cursor: pointer;
}

.feishu-compact-share-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.feishu-compact-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.feishu-compact-share-actions .button {
    min-height: 46px;
    border-radius: 16px;
}

.feishu-compact-share-status {
    margin: 0;
}

.feishu-compact-share-card.is-empty {
    padding: 20px 18px;
}

.feishu-compact-share-empty {
    margin: 0;
    color: #727b88;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.is-feishu-invitation-form .mobile-invitation-toolbar {
    display: none;
}

.is-feishu-invitation-form .mobile-invitation-form {
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
}

.is-feishu-invitation-form .mobile-invitation-form > label {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
}

.is-feishu-invitation-form .mobile-invitation-form > .actions-inline {
    padding: 14px 16px;
}

.is-feishu-invitation-form .mobile-invitation-form > label + label,
.is-feishu-invitation-form .mobile-invitation-form > label + .actions-inline,
.is-feishu-invitation-form .mobile-invitation-form > .actions-inline {
    border-top: 1px solid rgba(95, 128, 203, 0.10);
}

.is-feishu-invitation-form .mobile-invitation-form > label > span {
    color: #607086;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}

.is-feishu-event-form .form-action-bar.is-iphone-action-bar,
.is-feishu-invitation-form .mobile-invitation-toolbar {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(51, 112, 255, 0.12);
    box-shadow: 0 16px 34px rgba(31, 36, 48, 0.07);
}

.is-feishu-invitation-form .mobile-share-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 38%),
        linear-gradient(135deg, #2c5de5 0%, #1848c7 100%);
}

.is-feishu-invitation-form .share-box-mobile,
.is-lark-host .share-box-mobile,
.is-lark-host .invite-mobile-share-bar {
    gap: 12px;
}

.is-feishu-invitation-form .mobile-share-hero,
.is-lark-host .mobile-share-hero {
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(24, 72, 199, 0.18);
    overflow: hidden;
}

.is-feishu-invitation-form .mobile-share-hero-copy,
.is-lark-host .mobile-share-hero-copy {
    gap: 4px;
}

.is-feishu-invitation-form .mobile-share-hero-copy h2,
.is-lark-host .mobile-share-hero-copy h2 {
    font-size: 19px;
}

.is-feishu-invitation-form .mobile-share-hero-copy p,
.is-lark-host .mobile-share-hero-copy p {
    font-size: 13px;
    line-height: 1.42;
}

.is-feishu-invitation-form .mobile-share-hero-copy small,
.is-lark-host .mobile-share-hero-copy small {
    font-size: 11.5px;
    line-height: 1.42;
}

.is-feishu-invitation-form .mobile-share-hero-preview,
.is-lark-host .mobile-share-hero-preview {
    width: min(31vw, 116px);
    min-width: 96px;
    border-radius: 18px;
    box-shadow: 0 16px 28px rgba(11, 20, 18, 0.18);
}

.is-feishu-invitation-form .is-feishu-share-hero-actions {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.is-feishu-invitation-form .is-feishu-share-hero-actions.is-feishu-share-hero-actions-simple {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.is-feishu-invitation-form .invite-share-primary {
    box-shadow: 0 12px 24px rgba(51, 112, 255, 0.20);
}

.is-feishu-invitation-form .invite-share-secondary {
    background: rgba(255, 255, 255, 0.92);
}

.is-feishu-invitation-form .share-status-note {
    padding: 9px 11px;
    border-radius: 13px;
    background: rgba(242, 247, 255, 0.88);
    color: #5872a6;
    font-size: 12px;
    line-height: 1.4;
}

.is-feishu-invitation-form .invite-share-sheet.is-dragging .invite-share-sheet-card,
.is-lark-host .invite-share-sheet.is-dragging .invite-share-sheet-card {
    transition: none;
}

.is-feishu-invitation-form .invite-share-sheet.is-dragging .invite-share-sheet-scrim,
.is-lark-host .invite-share-sheet.is-dragging .invite-share-sheet-scrim {
    transition: none;
    opacity: calc(1 - (var(--share-sheet-drag-progress, 0) * 0.42));
}

.is-feishu-invitation-form .invite-share-sheet-scrim,
.is-lark-host .invite-share-sheet-scrim {
    background: rgba(10, 16, 28, 0.38);
    backdrop-filter: blur(14px);
    transition: opacity 180ms ease;
}

.is-feishu-invitation-form .invite-share-sheet-card,
.is-lark-host .invite-share-sheet-card {
    width: min(100%, 620px);
    gap: 12px;
    padding: 14px 14px 18px;
    border: 1px solid rgba(51, 112, 255, 0.10);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(245, 249, 255, 0.98) 0%, rgba(255, 255, 255, 0.99) 26%),
        rgba(255, 255, 255, 0.99);
    box-shadow: 0 30px 64px rgba(9, 21, 43, 0.28);
    transform: translateY(var(--share-sheet-drag-y, 0px))
        scale(calc(1 - (var(--share-sheet-drag-progress, 0) * 0.018)));
    transform-origin: center bottom;
    transition: transform 220ms cubic-bezier(0.22, 0.86, 0.28, 1);
}

.is-feishu-invitation-form .invite-share-sheet-head,
.is-lark-host .invite-share-sheet-head {
    align-items: center;
    padding: 0 2px 2px;
}

.is-feishu-invitation-form .invite-share-sheet-head p:not(.eyebrow),
.is-lark-host .invite-share-sheet-head p:not(.eyebrow) {
    color: #74839a;
    font-size: 12.5px;
}

.is-feishu-invitation-form .invite-share-sheet-head h3,
.is-lark-host .invite-share-sheet-head h3 {
    font-size: 19px;
}

.is-feishu-invitation-form .invite-share-preview-frame,
.is-lark-host .invite-share-preview-frame {
    width: min(100%, calc(var(--invite-preview-width) * 1.36));
    border-radius: 22px;
    box-shadow:
        inset 0 0 0 1px rgba(38, 44, 41, 0.06),
        0 14px 28px rgba(38, 59, 120, 0.10);
}

.is-feishu-invitation-form .invite-share-quick-grid,
.is-lark-host .invite-share-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.is-feishu-invitation-form .invite-share-sheet-primary {
    grid-column: 1 / -1;
}

.is-feishu-invitation-form .invite-share-quick-grid .button,
.is-lark-host .invite-share-quick-grid .button {
    min-height: 48px;
    border-radius: 15px;
}

.is-feishu-invitation-form .preview-panel-mobile {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
}

.is-feishu-invitation-form .invite-preview-wrap {
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(238, 243, 255, 0.96));
}

.is-feishu-dashboard .is-feishu-panel-year .iphone-year-grid,
.is-feishu-dashboard .is-feishu-panel-week .iphone-week-agenda,
.is-feishu-dashboard .is-feishu-panel-agenda .iphone-agenda-list {
    padding: 10px 12px 12px;
}

.is-feishu-dashboard .is-feishu-panel-month .iphone-month-grid {
    padding: 10px 12px 12px;
    gap: 7px;
}

.is-feishu-dashboard .is-feishu-panel-week .iphone-week-agenda {
    gap: 8px;
}

.is-feishu-dashboard .iphone-week-agenda-day {
    gap: 7px;
    padding: 11px 11px 10px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(245, 248, 255, 0.97)),
        rgba(255, 255, 255, 0.96);
    box-shadow:
        inset 0 0 0 1px rgba(103, 117, 105, 0.05),
        0 4px 12px rgba(31, 36, 48, 0.03);
}

.is-feishu-dashboard .iphone-week-agenda-day.is-selected {
    background:
        linear-gradient(180deg, rgba(239, 245, 255, 0.98), rgba(247, 250, 255, 0.98)),
        rgba(255, 255, 255, 0.97);
    box-shadow:
        inset 0 0 0 1px rgba(47, 111, 237, 0.12),
        0 6px 16px rgba(51, 112, 255, 0.05);
}

.is-feishu-dashboard .iphone-week-agenda-head small,
.is-feishu-dashboard .iphone-week-agenda-empty {
    color: #7b8798;
}

.is-feishu-dashboard .iphone-week-agenda-head strong {
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.is-feishu-dashboard .iphone-week-agenda-head span {
    min-width: 24px;
    height: 24px;
    background: rgba(51, 112, 255, 0.10);
    color: #245ad7;
    font-size: 10.5px;
}

.is-feishu-dashboard .iphone-week-agenda-events {
    gap: 5px;
}

.is-feishu-dashboard .iphone-week-agenda-event {
    padding: 9px 11px;
    border-radius: 13px;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.82),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 1px 4px rgba(26, 34, 30, 0.05);
}

.is-feishu-dashboard .iphone-week-agenda-event strong {
    font-size: 12.5px;
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.is-feishu-dashboard .iphone-week-agenda-event span {
    font-size: 11px;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.86);
}

.is-feishu-dashboard .iphone-year-grid {
    gap: 8px;
}

.is-feishu-dashboard .iphone-year-month-card {
    gap: 7px;
    padding: 10px 10px 9px;
    border-radius: 15px;
    background:
        linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(246, 249, 255, 0.96)),
        rgba(255, 255, 255, 0.96);
    box-shadow:
        inset 0 0 0 1px rgba(103, 117, 105, 0.05),
        0 3px 10px rgba(31, 36, 48, 0.03);
}

.is-feishu-dashboard .iphone-year-month-head {
    color: #253244;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.is-feishu-dashboard .iphone-year-mini-grid {
    gap: 3px;
}

.is-feishu-dashboard .iphone-month-grid .weekday,
.is-feishu-dashboard .iphone-year-mini-grid .weekday {
    color: #8d99ac;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.is-feishu-dashboard .iphone-year-mini-day {
    min-height: 22px;
    border-radius: 8px;
    color: #5d6a7f;
    font-size: 10.5px;
}

.is-feishu-dashboard .iphone-year-mini-day.is-selected {
    background: rgba(51, 112, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(51, 112, 255, 0.10);
    color: #2f67df;
}

.is-feishu-dashboard .iphone-year-mini-day em {
    right: 0;
    top: 0;
    min-width: 10px;
    height: 10px;
    padding: 0 2px;
    background: rgba(51, 112, 255, 0.10);
    color: #5b78bd;
    font-size: 7px;
    line-height: 10px;
}

.is-feishu-dashboard .iphone-month-grid .day-card {
    min-height: 112px;
    padding: 9px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(246, 249, 255, 0.96)),
        rgba(255, 255, 255, 0.96);
    border-color: rgba(120, 144, 214, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 2px 8px rgba(31, 36, 48, 0.025);
}

.is-feishu-dashboard .iphone-month-grid .day-card.is-selected {
    background:
        linear-gradient(180deg, rgba(239, 244, 255, 0.98), rgba(249, 251, 255, 0.98)),
        rgba(255, 255, 255, 0.97);
    border-color: rgba(51, 112, 255, 0.16);
    box-shadow:
        inset 0 0 0 1px rgba(51, 112, 255, 0.08),
        0 4px 12px rgba(51, 112, 255, 0.05);
}

.is-feishu-dashboard .iphone-month-grid .day-card.is-today {
    outline-color: rgba(51, 112, 255, 0.18);
}

.is-feishu-dashboard .iphone-month-grid .day-card .day-card-head > span {
    color: #1f2a3a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.is-feishu-dashboard .iphone-month-grid .day-head-meta {
    gap: 6px;
}

.is-feishu-dashboard .iphone-month-grid .day-card-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(51, 112, 255, 0.10);
    color: #2f67df;
    font-size: 10px;
}

.is-feishu-dashboard .iphone-month-grid .day-events-mobile {
    display: inline-flex;
    gap: 3px;
}

.is-feishu-dashboard .iphone-month-grid .day-dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.is-feishu-dashboard .iphone-month-grid .day-dot-count {
    color: #8d9db2;
    font-size: 10px;
}

.is-feishu-dashboard .iphone-all-day-lane {
    padding: 0 10px;
}

.is-feishu-dashboard .iphone-all-day-label {
    color: #8996a9;
    font-size: 11px;
}

.is-feishu-dashboard .iphone-all-day-event {
    gap: 3px;
    padding: 7px 10px 8px;
    border-radius: 12px;
}

.is-feishu-dashboard .iphone-day-track {
    background:
        linear-gradient(180deg, rgba(253, 254, 255, 0.99), rgba(248, 250, 255, 0.98)),
        #ffffff;
}

.is-feishu-dashboard .iphone-day-hour-label {
    color: #98a4b8;
    font-size: 10.5px;
}

.is-feishu-dashboard .iphone-day-hour-line {
    background: #e7ecf5;
}

.is-feishu-dashboard .iphone-now-line small {
    background: rgba(255, 255, 255, 0.96);
}

.is-feishu-dashboard .iphone-event-block {
    gap: 2px;
    padding: 7px 8px 8px;
    border-radius: 11px;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.84),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 1px 4px rgba(26, 34, 30, 0.05);
}

.is-feishu-dashboard .iphone-event-block strong {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.01em;
}

.is-feishu-dashboard .iphone-event-block span,
.is-feishu-dashboard .iphone-event-block small {
    font-size: 10.5px;
    line-height: 1.18;
    color: rgba(255, 255, 255, 0.88);
}

.is-feishu-dashboard .iphone-event-block .shared-title-row,
.is-feishu-dashboard .iphone-week-agenda-event .shared-title-row,
.is-feishu-dashboard .iphone-all-day-event .shared-title-row {
    align-items: flex-start;
    gap: 5px;
}

.is-feishu-dashboard .iphone-event-block .shared-badge,
.is-feishu-dashboard .iphone-week-agenda-event .shared-badge,
.is-feishu-dashboard .iphone-all-day-event .shared-badge {
    min-height: 16px;
    padding: 0 6px;
    font-size: 9px;
}

.is-feishu-dashboard .iphone-event-block .shared-badge.is-compact,
.is-feishu-dashboard .iphone-week-agenda-event .shared-badge.is-compact,
.is-feishu-dashboard .iphone-all-day-event .shared-badge.is-compact {
    min-height: 13px;
    padding: 0 4px;
    font-size: 8px;
}

.is-feishu-mobile-login .mobile-auth-mark,
.is-feishu-mobile-stats .mobile-lite-back {
    border-color: rgba(51, 112, 255, 0.12);
}

@media (max-width: 640px) {
    .feishu-shell-header {
        padding: 5px 6px;
        border-radius: 15px;
    }

    .feishu-shell-focusbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 5px;
    }

    .feishu-shell-shortcuts {
        justify-self: end;
        gap: 3px;
    }

    .feishu-shell-nav-cluster {
        padding: 1px;
    }

    .feishu-shell-nav-button,
    .feishu-shell-action {
        min-height: 28px;
        padding: 0 8px;
    }

    .feishu-shell-action.is-compose {
        min-width: 28px;
        font-size: 18px;
    }

    .feishu-editor-bar {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .feishu-editor-action,
    .feishu-editor-spacer {
        display: none;
    }

    .is-feishu-invitation-form .invite-share-quick-grid,
    .is-lark-host .invite-share-quick-grid {
        grid-template-columns: 1fr 1fr;
    }

    .is-feishu-invitation-form .is-feishu-share-hero-actions.is-feishu-share-hero-actions-simple {
        grid-template-columns: 1fr 1fr;
    }
}

@keyframes inviteShareSheetRise {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

@keyframes inviteShareSheetScrimIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.iphone-calendar-shell {
    display: grid;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
    padding: calc(8px + env(safe-area-inset-top)) 10px calc(8px + env(safe-area-inset-bottom));
}

.iphone-calendar-shell.is-reference-day-shell {
    min-height: 100svh;
    min-height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr);
}

.iphone-native-header,
.iphone-native-panel {
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
}

.iphone-native-header {
    position: sticky;
    top: env(safe-area-inset-top);
    z-index: 26;
    display: grid;
    gap: 10px;
    padding: 8px 4px 0;
}

.iphone-native-header.is-reference-layout {
    gap: 8px;
    padding-top: 0;
}

.iphone-reference-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.iphone-month-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f3f2ef;
    color: #232529;
    font-size: 17px;
    font-weight: 700;
}

.iphone-reference-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.iphone-reference-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border-radius: 999px;
    background: #f3f2ef;
    color: #232529;
    font-size: 16px;
    font-weight: 700;
}

.iphone-reference-button.is-current {
    background: rgba(255, 106, 87, 0.12);
    color: #ff6a57;
}

.iphone-reference-button.is-primary {
    min-width: 48px;
    background: #232529;
    color: #fff;
    font-size: 24px;
}

.iphone-reference-date {
    padding: 2px 0 4px;
    text-align: center;
}

.iphone-reference-date strong {
    display: inline-block;
    color: #17191c;
    font-size: 17px;
    font-weight: 800;
}

.iphone-native-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.iphone-native-year {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--muted);
}

.iphone-native-header h1,
.iphone-native-panel h2 {
    margin: 0;
}

.iphone-native-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.iphone-native-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.iphone-toolbar-link {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.iphone-toolbar-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.iphone-toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(103, 117, 105, 0.14);
    background: rgba(255, 255, 255, 0.84);
    color: var(--brand);
    font-weight: 700;
}

.iphone-toolbar-button.is-icon {
    min-width: 38px;
    width: 38px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
}

.iphone-toolbar-button.is-primary {
    background: linear-gradient(135deg, #2f6fed, #1d54bb);
    border-color: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.iphone-week-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 2px;
    scrollbar-width: none;
    transition: transform 176ms cubic-bezier(0.22, 0.86, 0.28, 1);
    will-change: transform;
}

.iphone-week-strip::-webkit-scrollbar {
    display: none;
}

.iphone-week-strip.is-swipe-active {
    transition: none;
}

.iphone-week-strip.is-reference-week-strip {
    gap: 2px;
    justify-content: space-between;
}

.iphone-weekday-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 54px;
    padding: 4px 4px 2px;
    border-radius: 16px;
    background: transparent;
    color: var(--text);
    font-weight: 700;
    box-shadow: none;
}

.iphone-weekday-pill small {
    margin-bottom: 2px;
    font-size: 11px;
    color: #96918a;
}

.iphone-weekday-pill strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 19px;
    line-height: 1;
}

.iphone-weekday-pill.is-selected {
    background: transparent;
    box-shadow: none;
}

.iphone-weekday-pill.is-selected strong {
    background: #ff6a57;
    color: #fff;
}

.iphone-weekday-pill.is-today:not(.is-selected) strong {
    color: #ff6a57;
    background: rgba(255, 106, 87, 0.12);
}

.iphone-weekday-meta {
    margin-top: 2px;
    min-width: 18px;
    height: 16px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(35, 37, 41, 0.08);
    color: #7d776f;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

.shared-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.shared-title-row.is-tight {
    gap: 4px;
}

.shared-title-row > strong,
.shared-title-row > h3 {
    flex: 1 1 auto;
    min-width: 0;
}

.shared-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}

.shared-badge.is-compact {
    min-height: 14px;
    padding: 0 5px;
    font-size: 8.5px;
}

.shared-badge.is-on-color {
    background: rgba(255, 255, 255, 0.92);
    color: #2853a5;
}

.shared-badge.is-muted {
    background: rgba(35, 37, 41, 0.08);
    color: #5b6471;
}

.iphone-segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(227, 231, 241, 0.8);
}

.iphone-segmented-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 700;
}

.iphone-segmented-item.is-active {
    background: #fff;
    color: var(--text);
    box-shadow: 0 6px 18px rgba(79, 91, 118, 0.12);
}

.iphone-mode-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    border-radius: 16px;
    background: rgba(233, 237, 245, 0.92);
}

.iphone-mode-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 12px;
    color: #66707d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.iphone-mode-tab.is-active {
    background: #fff;
    color: #17191c;
    box-shadow: 0 6px 18px rgba(79, 91, 118, 0.1);
}

.iphone-native-panel {
    display: grid;
    gap: 12px;
    padding: 0 0 8px;
}

.iphone-native-panel.is-day-panel {
    position: relative;
    gap: 10px;
}

.iphone-native-panel[data-iphone-swipe-panel] {
    position: relative;
    overflow: clip;
    touch-action: pan-y;
}

.iphone-swipe-content {
    transition: transform 210ms cubic-bezier(0.22, 0.86, 0.28, 1);
    will-change: transform;
}

.iphone-native-panel.is-swipe-active .iphone-swipe-content {
    transition: none;
}

.iphone-native-panel.is-reference-day-panel {
    padding-top: 2px;
    padding-bottom: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iphone-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.iphone-inline-action {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(47, 111, 237, 0.1);
    color: var(--blue);
    font-weight: 700;
}

.iphone-day-hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.iphone-swipe-preview {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(34, 46, 68, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -10px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.iphone-swipe-preview.is-warning {
    width: min(82vw, 320px);
    max-width: calc(100% - 36px);
    min-width: 0;
    min-height: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 231, 92, 0.96);
    border-radius: 10px;
    background: rgba(46, 39, 11, 0.94);
    color: #fff37a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow:
        0 12px 24px rgba(24, 20, 5, 0.24),
        inset 0 0 0 1px rgba(255, 248, 187, 0.18);
}

.iphone-swipe-preview.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.iphone-native-panel.is-day-panel .iphone-swipe-preview {
    top: 74px;
}

.iphone-native-panel.is-day-panel .iphone-swipe-preview.is-event-drag-hint,
.pc-week-day-timeline .iphone-swipe-preview.is-event-drag-hint {
    top: var(--event-drag-hint-y, 74px);
    left: var(--event-drag-hint-x, 50%);
}

.iphone-swipe-preview.is-event-drag-hint {
    z-index: 42;
    min-width: 0;
    min-height: 32px;
    max-width: min(270px, calc(100vw - 28px));
    padding: 8px 13px;
    border: 1px solid rgba(233, 213, 255, 0.92);
    border-radius: 13px;
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.98), rgba(168, 85, 247, 0.98)),
        #7c3aed;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow:
        0 16px 30px rgba(91, 33, 182, 0.24),
        0 0 0 3px rgba(233, 213, 255, 0.24);
    transform: translate(-50%, calc(-100% - 10px)) scale(0.96);
}

.iphone-swipe-preview.is-event-drag-hint::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 10px;
    height: 10px;
    border-right: 1px solid rgba(233, 213, 255, 0.82);
    border-bottom: 1px solid rgba(233, 213, 255, 0.82);
    background: #8b5cf6;
    transform: translateX(-50%) rotate(45deg);
}

.iphone-swipe-preview.is-event-drag-hint.is-visible {
    transform: translate(-50%, calc(-100% - 10px)) scale(1);
}

.iphone-month-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.iphone-all-day-lane {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 0 2px;
}

.iphone-all-day-label {
    padding-top: 8px;
    color: #989289;
    font-size: 12px;
    text-align: right;
}

.iphone-all-day-events {
    display: grid;
    gap: 6px;
}

.iphone-all-day-preview-slot[hidden] {
    display: none !important;
}

.iphone-all-day-preview-slot .iphone-all-day-lane {
    padding: 0 2px;
}

.iphone-all-day-event {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    color: #fff;
    overflow: hidden;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.76),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.iphone-all-day-event strong,
.iphone-all-day-event span {
    margin: 0;
}

.iphone-all-day-event span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
}

.iphone-day-timeline {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    min-height: var(--iphone-day-height);
}

.iphone-day-hours {
    position: relative;
    height: var(--iphone-day-height);
    transition: transform 180ms ease;
}

.iphone-day-hour-label {
    position: absolute;
    right: 0;
    transform: translateY(-8px);
    color: #a7a19a;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.iphone-day-track {
    position: relative;
    height: var(--iphone-day-height);
    border-radius: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(232, 238, 248, 0.36) 0,
            rgba(232, 238, 248, 0.36) 1px,
            transparent 1px,
            transparent var(--iphone-quarter-hour-height, 12px)
        ),
        #fff;
    overflow: hidden;
    transition: transform 180ms ease;
    cursor: pointer;
}

.iphone-day-track-preview {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background: rgba(255, 255, 255, 0.94);
    transition: opacity 120ms ease;
}

.iphone-day-track-preview[hidden] {
    display: none !important;
}

.iphone-day-track.is-gesture-active,
.iphone-day-hours.is-gesture-active {
    transition: none;
}

.iphone-day-track.is-event-dragging {
    cursor: grabbing;
}

.iphone-native-panel.is-resize-dragging,
.iphone-native-panel.is-resize-dragging .iphone-day-scroller,
.iphone-day-track.is-resize-dragging {
    touch-action: none;
    overscroll-behavior: none;
}

.iphone-day-scroller.is-resize-dragging {
    overflow-y: hidden;
}

.iphone-day-track.is-previewing-target-day .iphone-day-track-preview {
    opacity: 1;
}

.iphone-day-track.is-previewing-target-day > .iphone-day-hour-line,
.iphone-day-track.is-previewing-target-day > .iphone-now-line,
.iphone-day-track.is-previewing-target-day > .iphone-event-block:not(.is-dragging) {
    opacity: 0.12;
}

.iphone-day-track-preview .iphone-day-hour-line {
    opacity: 0.72;
}

.iphone-day-track-preview .iphone-now-line {
    opacity: 0.92;
}

.iphone-day-track-preview .iphone-event-block {
    pointer-events: none;
    opacity: 0.96;
}

.iphone-day-scroller {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
    scroll-behavior: smooth;
    touch-action: pan-y;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
}

.iphone-day-scroller::-webkit-scrollbar {
    display: none;
}

.iphone-day-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #ece8e1;
}

.iphone-now-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff6a57;
    z-index: 4;
}

.iphone-now-line small {
    position: absolute;
    top: -10px;
    left: 18px;
    color: var(--danger);
    font-size: 11px;
    font-weight: 700;
    background: rgba(245, 246, 251, 0.96);
    padding: 0 4px;
    border-radius: 999px;
}

.iphone-now-dot {
    position: absolute;
    left: -4px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ff6a57;
}

.iphone-event-block {
    position: absolute;
    display: grid;
    gap: 3px;
    align-content: start;
    padding: 7px 9px;
    border-radius: 12px;
    color: #fff;
    overflow: hidden;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.78),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    z-index: 3;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    transform-origin: center top;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease;
}

.iphone-event-block.is-editing,
.iphone-event-block.is-dragging,
.iphone-event-block.is-editing .iphone-event-resize-handle,
.iphone-event-block.is-dragging .iphone-event-resize-handle {
    touch-action: none;
}

.iphone-event-block:hover {
    transform: translateY(-1px);
}

.iphone-event-block.is-current {
    outline: 2px solid rgba(181, 63, 57, 0.34);
}

.iphone-event-block.is-editing {
    z-index: 24;
    overflow: visible;
    box-shadow:
        0 14px 28px rgba(26, 34, 30, 0.18),
        0 0 0 2px rgba(255, 255, 255, 0.78),
        inset 0 -1px 0 rgba(255, 255, 255, 0.84),
        inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.iphone-event-block.is-dragging {
    z-index: 28;
    opacity: 0.98;
    overflow: visible;
    transition:
        box-shadow 180ms ease,
        opacity 180ms ease;
    box-shadow:
        0 18px 34px rgba(26, 34, 30, 0.22),
        0 0 0 2px rgba(255, 255, 255, 0.82),
        inset 0 -1px 0 rgba(255, 255, 255, 0.82),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.iphone-event-block.is-drag-saving {
    opacity: 0.72;
}

.iphone-event-block strong,
.iphone-event-block span,
.iphone-event-block small {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.iphone-event-block .shared-title-row > strong {
    flex: 1 1 auto;
    min-width: 0;
}

.iphone-event-block strong {
    font-size: 12px;
    line-height: 1.2;
}

.iphone-event-block span,
.iphone-event-block small {
    font-size: 10px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.84);
}

.iphone-event-resize-handle {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transform: scale(0.76);
    transition:
        opacity 120ms ease,
        transform 120ms ease;
}

.iphone-event-resize-handle::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.98);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 1px 4px rgba(26, 34, 30, 0.16);
}

.iphone-event-resize-handle.is-top {
    top: -12px;
}

.iphone-event-resize-handle.is-bottom {
    bottom: -12px;
}

.iphone-event-block.is-editing .iphone-event-resize-handle,
.iphone-event-block.is-dragging .iphone-event-resize-handle {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.iphone-week-agenda {
    display: grid;
    gap: 12px;
}

.iphone-week-agenda-day {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(246, 248, 253, 0.98);
    box-shadow: inset 0 0 0 1px rgba(103, 117, 105, 0.08);
}

.iphone-week-agenda-day.is-selected {
    background: linear-gradient(180deg, rgba(47, 111, 237, 0.12), rgba(246, 248, 253, 0.98));
    box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.16);
}

.iphone-week-agenda-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.iphone-week-agenda-head small,
.iphone-week-agenda-empty {
    color: var(--muted);
}

.iphone-week-agenda-head strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.iphone-week-agenda-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(47, 111, 237, 0.1);
    color: var(--blue);
    font-weight: 700;
}

.iphone-week-agenda-events {
    display: grid;
    gap: 8px;
}

.iphone-week-agenda-event {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.76),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.week-event-main {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.week-event-actions {
    display: none;
}

.week-event-delete-form {
    margin: 0;
}

.week-event-action {
    border: 0;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1d4ed8;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.week-event-action.is-danger {
    color: #be123c;
}

.iphone-week-agenda-event strong,
.iphone-week-agenda-event span {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iphone-week-agenda-event .shared-title-row {
    flex: 1 1 auto;
    min-width: 0;
}

.iphone-week-agenda-event span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.84);
}

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

.iphone-year-month-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(246, 248, 253, 0.98);
    box-shadow: inset 0 0 0 1px rgba(103, 117, 105, 0.08);
}

.iphone-year-month-head {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    color: #17191c;
    font-size: 15px;
    font-weight: 800;
}

.iphone-year-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.iphone-year-mini-grid .weekday {
    color: #9aa3af;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.iphone-year-mini-day {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 32px;
    border-radius: 10px;
    color: #4d5560;
    font-size: 11px;
    font-weight: 700;
}

.iphone-year-mini-day.is-muted {
    opacity: 0.28;
}

.iphone-year-mini-day.is-today {
    color: #ff6a57;
}

.iphone-year-mini-day.is-selected {
    background: rgba(47, 111, 237, 0.12);
    color: #2f6fed;
}

.iphone-year-mini-day em {
    position: absolute;
    right: 1px;
    top: 1px;
    min-width: 11px;
    height: 11px;
    padding: 0 3px;
    border-radius: 999px;
    background: rgba(35, 37, 41, 0.08);
    color: #626c77;
    font-size: 8px;
    line-height: 11px;
    font-style: normal;
    text-align: center;
}

.iphone-year-mini-day-number {
    line-height: 1;
}

.iphone-year-mini-sub {
    display: grid;
    gap: 1px;
    font-size: 7px;
    line-height: 1;
    font-weight: 600;
    text-align: center;
}

.iphone-year-mini-sub small {
    display: block;
    font-size: inherit;
    line-height: inherit;
}

.iphone-agenda-list {
    display: grid;
    gap: 14px;
}

.iphone-agenda-group {
    display: grid;
    gap: 10px;
}

.iphone-agenda-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
    color: #17191c;
}

.iphone-agenda-group-head strong {
    display: block;
    font-size: 16px;
}

.iphone-agenda-group-head small {
    display: block;
    margin-top: 2px;
    color: #8d96a2;
    font-size: 12px;
}

.iphone-agenda-group-head span {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(35, 37, 41, 0.08);
    color: #59616d;
    font-size: 11px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.iphone-agenda-events {
    display: grid;
    gap: 8px;
}

.iphone-agenda-event {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.78),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.iphone-agenda-event strong,
.iphone-agenda-event span,
.iphone-agenda-event small {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iphone-agenda-event strong {
    font-size: 13px;
    line-height: 1.22;
}

.iphone-agenda-event span,
.iphone-agenda-event small {
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    line-height: 1.28;
}

.iphone-event-block::after,
.iphone-all-day-event::after,
.iphone-week-agenda-event::after,
.iphone-agenda-event::after {
    display: none;
}

.iphone-month-grid {
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.iphone-drag-scope-sheet,
.iphone-drag-confirm-sheet {
    position: fixed;
    inset: 0;
    z-index: 48;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px 12px calc(14px + env(safe-area-inset-bottom));
    background: rgba(20, 24, 30, 0.18);
    backdrop-filter: blur(8px);
}

.iphone-drag-scope-sheet[hidden],
.iphone-drag-confirm-sheet[hidden] {
    display: none !important;
}

.iphone-drag-scope-card,
.iphone-drag-confirm-card {
    width: min(100%, 460px);
    display: grid;
    gap: 10px;
    padding: 12px 14px 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(20, 24, 30, 0.18);
}

.iphone-drag-scope-handle {
    justify-self: center;
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(111, 122, 137, 0.28);
}

.iphone-drag-scope-card h3,
.iphone-drag-scope-card p,
.iphone-drag-confirm-card h3,
.iphone-drag-confirm-card p {
    margin: 0;
}

.iphone-drag-scope-card p:not(.eyebrow),
.iphone-drag-confirm-card p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.45;
}

.iphone-drag-confirm-message {
    white-space: pre-line;
}

.iphone-drag-scope-summary {
    display: grid;
    gap: 3px;
    padding: 9px 12px;
    border-radius: 16px;
    background: rgba(244, 248, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.08);
}

.iphone-drag-scope-summary strong {
    color: #1a2432;
    font-size: 15px;
    line-height: 1.34;
}

.iphone-drag-scope-summary small {
    color: #637286;
    font-size: 12px;
    line-height: 1.45;
}

.iphone-drag-scope-actions {
    display: grid;
    gap: 8px;
}

.iphone-drag-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    gap: 8px;
}

.iphone-drag-scope-option,
.iphone-drag-confirm-save,
.iphone-drag-confirm-cancel {
    display: grid;
    gap: 2px;
    width: 100%;
    min-height: 54px;
    padding: 10px 14px;
    border: 1px solid rgba(31, 90, 77, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(20, 24, 30, 0.06);
}

.iphone-drag-scope-option {
    justify-items: start;
}

.iphone-drag-confirm-save,
.iphone-drag-confirm-cancel {
    place-items: center;
    font-size: 15px;
    font-weight: 800;
}

.iphone-drag-scope-option span,
.iphone-drag-scope-option small {
    display: block;
}

.iphone-drag-scope-option span {
    font-size: 15px;
    font-weight: 700;
}

.iphone-drag-scope-option small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.iphone-drag-scope-option.is-primary,
.iphone-drag-confirm-save {
    background: linear-gradient(135deg, #225c50, #173d33);
    border-color: transparent;
    color: #fffaf4;
    box-shadow: 0 16px 34px rgba(24, 54, 46, 0.2);
}

.iphone-drag-scope-option.is-primary small {
    color: rgba(255, 250, 244, 0.82);
}

.iphone-drag-scope-option:active,
.iphone-drag-confirm-save:active,
.iphone-drag-confirm-cancel:active {
    transform: scale(0.992);
}

.iphone-drag-scope-cancel {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(248, 250, 253, 0.96);
    color: #334252;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.mobile-view-tabs,
.day-quick-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-view-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--text);
    font-weight: 700;
}

.mobile-view-tab.is-active {
    background: linear-gradient(135deg, #225c50, #173d33);
    border-color: transparent;
    color: #fff8f2;
    box-shadow: 0 12px 28px rgba(31, 42, 37, 0.16);
}

.mobile-day-focus-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.mobile-day-focus-copy,
.form-section-copy {
    margin: 0;
    color: var(--muted);
}

.today-timeline {
    display: grid;
    gap: 12px;
}

.timeline-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    color: #fffaf3;
    box-shadow: 0 14px 32px rgba(31, 42, 37, 0.16);
}

.timeline-time {
    display: grid;
    gap: 4px;
    align-content: start;
    padding: 10px 8px;
    border-radius: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.16);
}

.timeline-time strong,
.timeline-copy h3 {
    margin: 0;
}

.timeline-time small,
.timeline-copy p {
    margin: 0;
    color: rgba(255, 250, 243, 0.84);
}

.timeline-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.timeline-copy h3,
.day-card-head > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-copy .shared-title-row h3,
.day-timeline-entry-copy .shared-title-row h3 {
    margin: 0;
}

.day-head-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.day-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(31, 90, 77, 0.1);
    color: var(--brand);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.calendar-day-link {
    color: inherit;
    text-decoration: none;
}

.day-card.is-selected {
    background: linear-gradient(180deg, rgba(34, 92, 80, 0.12), rgba(255, 253, 249, 0.98));
    outline: 2px solid rgba(34, 92, 80, 0.45);
    transform: translateY(-2px);
}

.day-card.is-selected .day-card-count {
    background: rgba(34, 92, 80, 0.16);
}

.calendar-shell .day-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.calendar-shell .day-card.is-today,
.calendar-shell .day-card.is-selected {
    outline: 0;
    transform: none;
    background: transparent;
}

.calendar-shell .day-card.is-selected .day-card-count {
    background: rgba(34, 92, 80, 0.08);
}

.day-events-mobile {
    display: none;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.day-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.day-dot-count {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
}

.event-form.panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.form-section-card {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.form-section-head {
    display: grid;
    gap: 8px;
}

.form-section-head .eyebrow {
    margin-bottom: 0;
}

.form-section-head h2 {
    margin: 0;
}

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

.form-fieldset {
    padding: 0;
    border: 0;
    background: transparent;
}

.form-action-bar {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 251, 245, 0.9);
    box-shadow: 0 12px 28px rgba(43, 52, 46, 0.09);
    backdrop-filter: blur(10px);
}

.mobile-tab {
    display: grid;
    gap: 2px;
    justify-items: center;
    padding: 10px 8px;
    border-radius: 18px;
    color: var(--text);
}

.mobile-tab small {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.mobile-tab strong {
    font-size: 14px;
}

.mobile-tab.is-active {
    background: #fffdf9;
    box-shadow: 0 8px 20px rgba(43, 52, 46, 0.08);
}

.mobile-tab-primary {
    background: linear-gradient(135deg, #225c50, #173d33);
    color: #fff8f2;
}

.mobile-tab-primary small {
    color: rgba(255, 248, 242, 0.82);
}

@media (max-width: 980px) {
    .hero,
    .stats-grid,
    .install-guide-grid,
    .admin-grid,
    .view-grid {
        grid-template-columns: 1fr;
    }

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

    .weekday {
        display: none;
    }

    .form-grid,
    .color-picker,
    .invite-meta,
    .invite-meta.no-contact,
    .invite-meta.has-contact,
    .build-meta,
    .filter-grid,
    .filter-color-picker,
    .invitation-font-grid,
    .template-preview-grid,
    .download-qr-panel,
    .qr-login-grid,
    .login-grid,
    .login-highlights,
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-welcome,
    .login-form-card {
        padding: 24px;
    }

    .login-welcome {
        min-height: 0;
    }

    .login-form-head {
        align-items: start;
    }

    .login-form-note {
        max-width: none;
        text-align: left;
        white-space: normal;
    }

    .schedule-row,
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .install-panel {
        align-items: stretch;
    }

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

    .invite-meta-item-location.is-long,
    .invite-meta-item-location.is-very-long {
        grid-column: auto;
    }

    .invite-mobile-share-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .shell {
        padding: 16px;
    }

    .hero-copy,
    .hero-card,
    .panel,
    .stat-card,
    .topbar {
        border-radius: 22px;
    }

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

    .invite-content {
        padding: 28px;
    }

    .invite-card {
        min-height: 560px;
    }

    .invite-content {
        min-height: 560px;
    }

    .sync-schedule-form {
        grid-template-columns: 1fr;
    }

    .login-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .login-submit-row .button {
        width: 100%;
        min-width: 0;
    }

    .login-code-control input {
        padding-right: 138px;
    }

    .login-code-send-button {
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
        right: 6px;
    }

    .invitation-font-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .shell {
        padding-bottom: calc(116px + env(safe-area-inset-bottom));
    }

    .page {
        gap: 18px;
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }

    .topbar {
        position: sticky;
        top: calc(10px + env(safe-area-inset-top));
        z-index: 24;
        gap: 14px;
        padding: 16px 18px;
    }

    .brand small {
        display: none;
    }

    .nav {
        gap: 8px;
    }

    .nav-desktop-only {
        display: none;
    }

    .nav-keep-mobile {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }

    .nav form.nav-keep-mobile .button {
        width: 100%;
    }

    .nav-user {
        width: 100%;
        text-align: center;
        padding-top: 2px;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-tabbar {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 28px;
        background: rgba(255, 251, 245, 0.94);
        box-shadow: 0 18px 50px rgba(43, 52, 46, 0.18);
        backdrop-filter: blur(16px);
    }

    .dashboard-head {
        align-items: stretch;
    }

    .dashboard-head .actions-inline,
    .view-panel-head .actions-inline {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .dashboard-head .actions-inline::-webkit-scrollbar,
    .view-panel-head .actions-inline::-webkit-scrollbar {
        display: none;
    }

    .mobile-secondary-panel {
        display: none !important;
    }

    .mobile-pane,
    .mobile-pane-grid {
        display: none !important;
    }

    .mobile-pane.is-active {
        display: block !important;
    }

    .mobile-pane-grid.is-active {
        display: grid !important;
    }

    .dashboard-head .actions-inline .button,
    .filter-actions .button,
    .row-actions .button,
    .form-action-bar .button {
        flex: 1 1 calc(50% - 6px);
    }

    .mobile-day-focus {
        gap: 16px;
    }

    .dashboard-head .actions-inline .button,
    .view-panel-head .actions-inline .button {
        flex: 0 0 auto;
        min-width: max-content;
    }

    .mobile-dashboard-switcher .button,
    .day-quick-nav .button {
        flex: 1 1 calc(50% - 5px);
    }

    .is-iphone-dashboard .iphone-calendar-shell {
        max-width: 100%;
        padding: calc(8px + env(safe-area-inset-top)) 10px calc(6px + env(safe-area-inset-bottom));
    }

    .is-iphone-dashboard .iphone-native-header,
    .is-iphone-dashboard .iphone-native-panel {
        border-radius: 24px;
    }

    .is-iphone-dashboard .iphone-native-header.is-reference-layout,
    .is-iphone-dashboard .iphone-native-panel.is-reference-day-panel {
        border-radius: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .is-iphone-dashboard .iphone-native-toolbar {
        width: 100%;
        justify-content: space-between;
    }

    .is-iphone-dashboard .iphone-toolbar-nav {
        flex: 1 1 auto;
        justify-content: center;
    }

    .is-iphone-dashboard .iphone-day-scroller {
        max-height: none;
    }

    .iphone-calendar-actions {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .iphone-calendar-actions::-webkit-scrollbar {
        display: none;
    }

    .iphone-calendar-actions .button {
        flex: 0 0 auto;
        min-width: max-content;
    }

    .mobile-view-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .mobile-view-tabs::-webkit-scrollbar {
        display: none;
    }

    .mobile-view-tab {
        flex: 0 0 auto;
    }

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

    .stat-card {
        padding: 18px;
    }

    .stat-card strong {
        font-size: 26px;
    }

    .calendar-header {
        position: sticky;
        top: calc(104px + env(safe-area-inset-top));
        z-index: 18;
    }

    .month-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .month-nav::-webkit-scrollbar {
        display: none;
    }

    .month-nav .button {
        flex: 0 0 auto;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 6px;
        padding: 12px;
    }

    .weekday {
        display: block;
        padding: 2px 0 6px;
        text-align: center;
        font-size: 11px;
    }

    .day-card {
        min-height: 76px;
        padding: 8px 6px;
        border-radius: 16px;
        gap: 6px;
    }

    .day-card-head {
        align-items: flex-start;
    }

    .day-card-head small {
        font-size: 10px;
    }

    .day-events {
        display: none;
    }

    .day-events-mobile {
        display: flex;
    }

    .schedule-list {
        gap: 12px;
    }

    .day-timeline-row {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
    }

    .day-timeline-entry {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .day-timeline-duration {
        justify-self: start;
    }

    .week-board {
        grid-template-columns: repeat(7, minmax(148px, 1fr));
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .schedule-row {
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.62);
    }

    .schedule-row:first-child {
        padding-top: 16px;
        border-top: 1px solid var(--line);
    }

    .row-actions {
        width: 100%;
    }

    .form-section-card {
        padding: 20px;
        border-radius: 22px;
    }

    .form-section-body {
        grid-template-columns: 1fr;
    }

    .form-action-bar {
        position: sticky;
        bottom: calc(104px + env(safe-area-inset-bottom));
        margin-bottom: calc(18px + env(safe-area-inset-bottom));
        transform: translateY(-16px);
        z-index: 20;
    }
}

@media (max-width: 640px) {
    .shell {
        padding: 14px;
        padding-bottom: calc(114px + env(safe-area-inset-bottom));
    }

    .topbar {
        top: calc(8px + env(safe-area-inset-top));
        border-radius: 20px;
        padding: 14px;
    }

    .brand {
        gap: 10px;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .mobile-tabbar {
        left: 10px;
        right: 10px;
        gap: 8px;
        padding: 8px;
    }

    .mobile-tab {
        padding: 10px 4px;
    }

    .mobile-tab strong {
        font-size: 13px;
    }

    .timeline-card {
        grid-template-columns: 62px minmax(0, 1fr);
        padding: 12px;
        border-radius: 18px;
    }

    .mobile-dashboard-switcher {
        gap: 14px;
    }

    .mobile-view-tab {
        min-height: 40px;
        padding: 0 16px;
    }

    .is-iphone-dashboard .shell {
        padding: 0;
    }

    .is-iphone-dashboard .page {
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
    }

    .is-iphone-dashboard .iphone-calendar-shell {
        gap: 10px;
        padding: calc(6px + env(safe-area-inset-top)) 8px calc(4px + env(safe-area-inset-bottom));
    }

    .is-iphone-dashboard .iphone-native-header,
    .is-iphone-dashboard .iphone-native-panel {
        border-radius: 22px;
        padding: 14px;
    }

    .is-iphone-dashboard .iphone-native-header.is-reference-layout,
    .is-iphone-dashboard .iphone-native-panel.is-reference-day-panel {
        border-radius: 0;
        padding: 0;
    }

    .is-iphone-dashboard .iphone-native-header {
        top: calc(4px + env(safe-area-inset-top));
        gap: 12px;
    }

    .is-iphone-dashboard .iphone-reference-toolbar {
        gap: 10px;
    }

    .is-iphone-dashboard .iphone-reference-actions {
        gap: 10px;
    }

    .is-iphone-dashboard .iphone-reference-button {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
    }

    .is-iphone-dashboard .iphone-native-header-top {
        gap: 12px;
    }

    .is-iphone-dashboard .iphone-native-header h1 {
        font-size: 28px;
    }

    .is-iphone-dashboard .iphone-native-toolbar {
        gap: 8px;
    }

    .is-iphone-dashboard .iphone-toolbar-link {
        order: 2;
        width: 100%;
        text-align: center;
    }

    .is-iphone-dashboard .iphone-toolbar-nav {
        flex: 1 1 auto;
        justify-content: center;
    }

    .is-iphone-dashboard .iphone-weekday-pill {
        min-width: 44px;
        min-height: 60px;
        padding: 7px 6px;
    }

    .is-iphone-dashboard .iphone-weekday-pill strong {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .is-iphone-dashboard .iphone-mode-tabs {
        gap: 5px;
        padding: 4px;
    }

    .is-iphone-dashboard .iphone-mode-tab {
        min-height: 32px;
        font-size: 12px;
    }

    .is-iphone-dashboard .iphone-day-scroller {
        max-height: none;
        padding-bottom: calc(4px + env(safe-area-inset-bottom));
    }

    .is-iphone-dashboard .iphone-swipe-preview {
        top: 12px;
        min-width: 134px;
    }

    .is-iphone-dashboard .iphone-native-panel.is-day-panel .iphone-swipe-preview {
        top: 66px;
    }

    .day-quick-nav {
        gap: 8px;
    }

    .all-day-strip {
        gap: 8px;
    }

    .all-day-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .calendar-header {
        top: calc(96px + env(safe-area-inset-top));
        padding: 18px;
    }

    .calendar-grid {
        gap: 4px;
        padding: 10px;
    }

    .day-card {
        min-height: 68px;
        padding: 6px 4px;
        border-radius: 14px;
    }

    .day-card-head > span {
        font-size: 13px;
    }

    .day-head-meta {
        gap: 4px;
    }

    .day-card-count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .day-dot {
        width: 7px;
        height: 7px;
    }

    .form-section-card {
        padding: 18px;
    }

    .form-action-bar {
        bottom: calc(98px + env(safe-area-inset-bottom));
        margin-bottom: calc(14px + env(safe-area-inset-bottom));
        padding: 12px;
        transform: translateY(-12px);
    }

    .iphone-year-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .iphone-agenda-group-head strong {
        font-size: 15px;
    }

    .is-iphone-event-form .page {
        padding: 0 8px calc(12px + env(safe-area-inset-bottom));
    }

    .is-iphone-event-form .iphone-event-editor-head h1 {
        font-size: 22px;
    }

    .is-iphone-event-form .event-form.is-iphone-quick-form .form-section-card {
        padding: 18px 16px;
        border-radius: 22px;
    }

    .is-iphone-event-form .form-action-bar.is-iphone-action-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 370px) {
    .mobile-lite-page {
        padding: calc(6px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom));
    }

    .mobile-auth-shell,
    .mobile-lite-shell {
        gap: 8px;
    }

    .mobile-auth-head,
    .mobile-lite-head,
    .mobile-auth-card,
    .mobile-lite-card,
    .mobile-pwa-banner {
        border-radius: 16px;
        padding: 12px;
    }

    .mobile-auth-mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 16px;
    }

    .mobile-auth-head h1,
    .mobile-lite-title-wrap h1 {
        font-size: 24px;
    }

    .mobile-pwa-actions {
        gap: 8px;
    }

    .mobile-pwa-actions .button,
    .mobile-pwa-dismiss {
        min-height: 38px;
    }

    .is-iphone-dashboard .iphone-calendar-shell {
        gap: 8px;
        padding: calc(4px + env(safe-area-inset-top)) 6px calc(4px + env(safe-area-inset-bottom));
    }

    .is-iphone-dashboard .iphone-native-header {
        gap: 10px;
        top: calc(2px + env(safe-area-inset-top));
    }

    .is-iphone-dashboard .iphone-reference-toolbar {
        gap: 6px;
    }

    .is-iphone-dashboard .iphone-month-pill {
        min-height: 36px;
        padding: 0 10px;
        font-size: 15px;
    }

    .is-iphone-dashboard .iphone-reference-actions {
        gap: 6px;
    }

    .is-iphone-dashboard .iphone-reference-button {
        min-width: 36px;
        height: 36px;
        padding: 0 9px;
        font-size: 14px;
    }

    .is-iphone-dashboard .iphone-reference-button.is-primary {
        min-width: 40px;
        font-size: 20px;
    }

    .is-iphone-dashboard .iphone-week-strip,
    .is-iphone-dashboard .iphone-week-strip.is-reference-week-strip {
        gap: 0;
    }

    .is-iphone-dashboard .iphone-weekday-pill {
        min-width: 40px;
        min-height: 54px;
        padding: 5px 3px 2px;
    }

    .is-iphone-dashboard .iphone-weekday-pill small {
        font-size: 10px;
        margin-bottom: 1px;
    }

    .is-iphone-dashboard .iphone-weekday-pill strong {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .is-iphone-dashboard .iphone-mode-tabs {
        gap: 4px;
        padding: 4px;
    }

    .is-iphone-dashboard .iphone-mode-tab {
        min-height: 30px;
        font-size: 11px;
    }

    .is-iphone-dashboard .iphone-weekday-meta {
        min-width: 16px;
        height: 14px;
        padding: 0 4px;
        font-size: 9px;
        line-height: 14px;
    }

    .is-iphone-dashboard .iphone-reference-date {
        padding: 0 0 2px;
    }

    .is-iphone-dashboard .iphone-reference-date strong {
        font-size: 15px;
    }

    .is-iphone-dashboard .iphone-native-panel.is-reference-day-panel {
        gap: 6px;
    }

    .is-iphone-dashboard .iphone-all-day-lane {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 6px;
    }

    .is-iphone-dashboard .iphone-all-day-label {
        padding-top: 6px;
        font-size: 11px;
    }

    .is-iphone-dashboard .iphone-all-day-event {
        padding: 8px 10px;
        border-radius: 12px;
    }

    .is-iphone-dashboard .iphone-all-day-event strong {
        font-size: 11px;
    }

    .is-iphone-dashboard .iphone-all-day-event span {
        font-size: 10px;
    }

    .is-iphone-dashboard .iphone-day-timeline {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 6px;
    }

    .is-iphone-dashboard .iphone-day-hour-label {
        transform: translateY(-7px);
        font-size: 10px;
    }

    .is-iphone-dashboard .iphone-swipe-preview {
        min-width: 124px;
        min-height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .is-iphone-dashboard .iphone-native-panel.is-day-panel .iphone-swipe-preview {
        top: 60px;
    }

    .is-iphone-dashboard .iphone-event-block {
        padding: 6px 7px;
        border-radius: 10px;
    }

    .is-iphone-dashboard .iphone-event-block strong {
        font-size: 11px;
    }

    .is-iphone-dashboard .iphone-event-block span,
    .is-iphone-dashboard .iphone-event-block small {
        font-size: 9px;
    }

    .is-iphone-dashboard .shared-title-row {
        gap: 4px;
    }

    .is-iphone-dashboard .shared-badge {
        min-height: 16px;
        padding: 0 6px;
        font-size: 9px;
    }

    .is-iphone-dashboard .shared-badge.is-compact {
        min-height: 13px;
        padding: 0 4px;
        font-size: 8px;
    }
}

@media (min-width: 768px) and (max-width: 1366px) {
    .is-iphone-dashboard .iphone-calendar-shell {
        max-width: 1080px;
        margin: 0 auto;
        padding: calc(12px + env(safe-area-inset-top)) 16px calc(8px + env(safe-area-inset-bottom));
    }

    .is-iphone-dashboard .iphone-reference-toolbar {
        gap: 12px;
    }

    .is-iphone-dashboard .iphone-reference-actions {
        gap: 12px;
    }

    .is-iphone-dashboard .iphone-reference-button {
        min-width: 50px;
        height: 44px;
        padding: 0 14px;
    }

    .is-iphone-dashboard .iphone-weekday-pill {
        min-width: 76px;
        min-height: 74px;
        padding: 10px 8px;
    }

    .is-iphone-dashboard .iphone-day-scroller {
        max-height: calc(100vh - 256px);
    }

    .is-iphone-dashboard .iphone-event-block {
        border-radius: 12px;
        padding: 6px 8px;
    }

    .is-iphone-dashboard .iphone-week-agenda {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: grid;
        gap: 12px;
    }

    .is-iphone-dashboard .iphone-month-grid .day-card {
        min-height: 102px;
    }

    .is-iphone-dashboard .iphone-swipe-preview {
        top: 18px;
        min-width: 170px;
        min-height: 38px;
        font-size: 14px;
    }

    .is-iphone-dashboard .iphone-native-panel.is-day-panel .iphone-swipe-preview {
        top: 78px;
    }
}

/* Mobile browser focus mode: align UX closer to Android app shell */
.is-mobile-browser-focus .flash-stack {
    margin: 0;
    gap: 6px;
}

.is-mobile-browser-focus .flash {
    border-radius: 11px;
    padding: 8px 10px;
    font-size: 12px;
}

.is-mobile-browser-focus .iphone-native-header.is-mobile-app-header {
    gap: 4px;
    padding: 2px 4px 0;
}

.is-mobile-browser-focus .iphone-app-focusbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    position: relative;
}

.is-mobile-browser-focus .iphone-app-nav-cluster {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 4px;
    align-items: center;
    padding: 1px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(245, 250, 248, 0.98), rgba(236, 245, 241, 0.98));
    box-shadow: inset 0 0 0 1px rgba(31, 90, 77, 0.10);
}

.is-mobile-browser-focus .iphone-reference-button.is-nav {
    min-width: 34px;
    height: 34px;
    padding: 0;
    font-size: 18px;
    border-radius: 10px;
    background: transparent;
}

.is-mobile-browser-focus .iphone-app-focus {
    min-width: 0;
    display: grid;
    gap: 0;
    align-content: center;
    text-align: center;
    padding: 0 4px;
}

.is-mobile-browser-focus .iphone-app-focus-kicker {
    display: none;
}

.is-mobile-browser-focus .iphone-app-focus strong {
    font-size: 15px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #1a2220;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.is-mobile-browser-focus .iphone-app-focus small {
    display: none;
}

.is-mobile-browser-focus .iphone-reference-actions.is-app-actions {
    gap: 4px;
}

.is-mobile-browser-focus .iphone-reference-actions.is-app-actions .iphone-reference-button {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}

.is-mobile-browser-focus .iphone-reference-actions.is-app-actions .iphone-reference-button.is-primary {
    min-width: 36px;
    font-size: 18px;
    background: #1f5a4d;
}

.is-mobile-browser-focus .iphone-reference-button.is-view-menu {
    min-width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 700;
}

.is-mobile-browser-focus .iphone-view-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.is-mobile-browser-focus .iphone-view-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.is-mobile-browser-focus .iphone-view-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    display: none;
    gap: 4px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(16, 37, 70, 0.14);
    border: 1px solid rgba(24, 53, 90, 0.12);
    z-index: 40;
}

.is-mobile-browser-focus .iphone-view-menu.is-open {
    display: grid;
}

.is-mobile-browser-focus .iphone-view-menu-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    color: #1a2220;
    font-size: 12px;
    font-weight: 700;
    background: rgba(31, 90, 77, 0.06);
}

.is-mobile-browser-focus .iphone-view-menu-item.is-active {
    background: rgba(31, 90, 77, 0.14);
    color: #1f5a4d;
}

.is-mobile-browser-focus .iphone-reference-date {
    display: none;
}

.is-mobile-browser-focus .iphone-week-strip,
.is-mobile-browser-focus .iphone-week-strip.is-reference-week-strip {
    gap: 0;
    padding: 0;
}

.is-mobile-browser-focus .iphone-weekday-pill {
    min-width: 40px;
    min-height: 52px;
    padding: 4px 3px 2px;
}

.is-mobile-browser-focus .iphone-weekday-pill small {
    font-size: 10px;
}

.is-mobile-browser-focus .iphone-weekday-pill strong {
    width: 28px;
    height: 28px;
    font-size: 15px;
}

.is-mobile-browser-focus .iphone-mode-tabs.is-app-mode-tabs {
    gap: 4px;
    padding: 3px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-mode-tabs.is-app-mode-tabs {
    display: none;
}

.is-iphone-dashboard .iphone-mode-tabs.is-app-mode-tabs {
    display: none !important;
}

.is-mobile-browser-focus .iphone-mode-tabs.is-app-mode-tabs .iphone-mode-tab {
    min-height: 30px;
    padding: 0 9px;
    font-size: 11px;
    border-radius: 9px;
}

.is-mobile-browser-focus .iphone-native-panel {
    gap: 8px;
}

.is-mobile-browser-focus .iphone-panel-head {
    align-items: center;
    margin-bottom: 2px;
}

.is-mobile-browser-focus .iphone-panel-head .eyebrow,
.is-mobile-browser-focus .iphone-panel-head .view-panel-copy {
    display: none;
}

.is-mobile-browser-focus .iphone-panel-head h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.15;
}

.is-mobile-browser-focus .iphone-all-day-lane {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 6px;
}

.is-mobile-browser-focus .iphone-all-day-label {
    padding-top: 7px;
    font-size: 10px;
}

.is-mobile-browser-focus .iphone-all-day-event {
    padding: 7px 9px;
    border-radius: 10px;
}

.is-mobile-browser-focus .iphone-all-day-event strong {
    font-size: 11px;
}

.is-mobile-browser-focus .iphone-all-day-event span {
    font-size: 10px;
}

.is-mobile-browser-focus .iphone-day-scroller {
    border-radius: 14px;
}

.is-mobile-browser-focus,
.is-mobile-browser-focus * {
    -webkit-tap-highlight-color: transparent;
}

.is-mobile-browser-focus .iphone-event-block {
    border-radius: 10px;
    padding: 6px 7px;
    box-shadow: 0 5px 16px rgba(14, 18, 23, 0.20);
}

.is-mobile-browser-focus .iphone-event-block,
.is-mobile-browser-focus .iphone-event-block *,
.is-mobile-browser-focus .iphone-all-day-event,
.is-mobile-browser-focus .iphone-week-agenda-event,
.is-mobile-browser-focus .iphone-agenda-event {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.is-mobile-browser-focus [data-event-open-url] {
    cursor: pointer;
}

.is-mobile-browser-focus .iphone-event-block strong {
    font-size: 11px;
    line-height: 1.2;
}

.is-mobile-browser-focus .iphone-event-block span,
.is-mobile-browser-focus .iphone-event-block small {
    font-size: 9px;
    line-height: 1.25;
}

.is-mobile-browser-focus .iphone-week-agenda-head small {
    font-size: 11px;
}

.is-mobile-browser-focus .iphone-week-agenda-head strong {
    font-size: 14px;
}

.is-mobile-browser-focus .iphone-week-agenda-event,
.is-mobile-browser-focus .iphone-agenda-event {
    border-radius: 10px;
    padding: 8px 9px;
}

.is-mobile-browser-focus.is-iphone-event-form .iphone-event-editor-bar {
    position: sticky;
    top: calc(4px + env(safe-area-inset-top));
    z-index: 24;
    border-color: rgba(31, 90, 77, 0.14);
    box-shadow: 0 10px 24px rgba(24, 54, 46, 0.12);
}

.is-mobile-browser-focus.is-iphone-event-form .iphone-event-editor-bar .feishu-editor-title-wrap small {
    color: #1f5a4d;
}

/* Mobile browser focus mode: app-fit polish round */
.is-mobile-browser-focus.is-iphone-dashboard {
    background:
        radial-gradient(circle at top center, rgba(58, 103, 185, 0.08), transparent 36%),
        linear-gradient(180deg, #f3f6fb 0%, #edf2f9 100%);
}

.is-mobile-browser-focus.is-iphone-dashboard .shell {
    max-width: none;
    padding: 0;
}

.is-mobile-browser-focus.is-iphone-dashboard .page {
    padding: 0 0 calc(4px + env(safe-area-inset-bottom));
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-standalone-page {
    min-height: 100svh;
    min-height: 100dvh;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-calendar-shell {
    max-width: 100%;
    padding: calc(2px + env(safe-area-inset-top)) 8px calc(4px + env(safe-area-inset-bottom));
    gap: 6px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-calendar-shell.is-reference-day-shell {
    grid-template-rows: auto minmax(0, 1fr);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-swipe-preview.is-warning {
    top: 8px;
    width: min(76vw, 288px);
    max-width: calc(100% - 48px);
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.4;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-native-panel.is-day-panel .iphone-swipe-preview.is-warning {
    top: 54px;
}

.mobile-readonly-banner {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 247, 229, 0.98), rgba(251, 241, 214, 0.98));
    box-shadow:
        0 6px 16px rgba(120, 89, 18, 0.08),
        inset 0 0 0 1px rgba(173, 127, 20, 0.14);
}

.mobile-readonly-banner strong {
    color: #5b430d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.mobile-readonly-banner small {
    color: rgba(91, 67, 13, 0.82);
    font-size: 11px;
    line-height: 1.45;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-native-header.is-mobile-app-header {
    position: sticky;
    top: env(safe-area-inset-top);
    z-index: 42;
    gap: 5px;
    padding: 4px 3px 6px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(244, 248, 252, 0.95));
    box-shadow:
        0 5px 16px rgba(16, 37, 70, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-app-focusbar {
    gap: 7px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-app-nav-cluster {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 5px;
    padding: 2px;
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(247, 251, 249, 0.98), rgba(236, 245, 241, 0.98));
    box-shadow: inset 0 0 0 1px rgba(31, 90, 77, 0.12);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-reference-button.is-nav {
    min-width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 9px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-app-focus {
    padding: 0 2px;
    transition: transform 140ms ease, color 140ms ease, opacity 140ms ease;
    transform: translateX(var(--focus-preview-shift, 0px));
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-app-focus-kicker {
    display: none;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-app-focus strong {
    font-size: 14px;
    line-height: 1.06;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-app-focus small {
    margin-top: 1px;
    font-size: 9.5px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-app-focus.is-previewing strong {
    color: #1c4f92;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-app-focus.is-previewing small {
    color: #496b98;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-reference-actions.is-app-actions {
    gap: 4px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-reference-actions.is-app-actions .iphone-reference-button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 12px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-reference-actions.is-app-actions .iphone-reference-button.is-primary {
    min-width: 36px;
    font-size: 18px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip,
.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip.is-reference-week-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    overflow: hidden;
    padding: 1px 2px 1px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(24, 53, 90, 0.08);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip-stage {
    overflow: hidden;
    border-radius: 10px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip-ghost {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    padding: 2px 2px 1px;
    border-radius: 11px;
    background: rgba(247, 250, 255, 0.97);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-weekday-pill {
    min-width: 38px;
    width: 100%;
    min-height: 46px;
    padding: 3px 2px 2px;
    border-radius: 9px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip .iphone-weekday-pill,
.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip-ghost .iphone-weekday-pill {
    min-width: 0;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-weekday-pill small {
    margin-bottom: 1px;
    font-size: 9.5px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-weekday-pill strong {
    width: 26px;
    height: 26px;
    font-size: 14px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-weekday-meta {
    min-width: 14px;
    height: 13px;
    padding: 0 4px;
    font-size: 8px;
    line-height: 13px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip {
    position: relative;
    z-index: 2;
    transition:
        transform 190ms cubic-bezier(0.2, 0.78, 0.2, 1),
        box-shadow 150ms ease,
        background 150ms ease;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip .iphone-weekday-pill {
    transition: transform 110ms ease, opacity 110ms ease, background 110ms ease;
    transform: translateX(calc(var(--strip-live-progress, 0) * 4px));
    opacity: calc(1 - (var(--strip-live-progress-abs, 0) * 0.08));
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip.is-swipe-active {
    background: rgba(244, 248, 255, 0.98);
    box-shadow: 0 12px 24px rgba(16, 37, 70, 0.11);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip.is-swipe-active .iphone-weekday-pill.is-selected {
    transform: translateX(calc(var(--strip-live-progress, 0) * 8px)) scale(0.986);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip-stage.is-previewing .iphone-week-strip {
    opacity: var(--strip-current-opacity, 1);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip-stage.is-previewing .iphone-week-strip-ghost .iphone-weekday-pill {
    transform: translateX(calc(var(--strip-live-progress, 0) * 2px))
        scale(calc(0.986 + var(--strip-reveal-progress, 0) * 0.018));
    opacity: calc(0.86 + var(--strip-reveal-progress, 0) * 0.14);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip-stage.is-previewing .iphone-week-strip-ghost .iphone-weekday-pill.is-selected {
    background: linear-gradient(180deg, rgba(47, 111, 237, 0.13), rgba(47, 111, 237, 0.05));
    box-shadow:
        inset 0 0 0 1px rgba(47, 111, 237, 0.14),
        0 8px 18px rgba(47, 111, 237, 0.12);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip-stage.is-previewing .iphone-week-strip-ghost .iphone-weekday-pill.is-selected strong {
    background: #2f6fed;
    color: #ffffff;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-strip-preview {
    min-height: 24px;
    padding: 0 11px;
    border: 1px solid rgba(47, 111, 237, 0.12);
    background: rgba(255, 255, 255, 0.97);
    color: #1f4f97;
    font-size: 11px;
    box-shadow: 0 8px 20px rgba(16, 37, 70, 0.10);
    backdrop-filter: blur(12px);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-mode-tabs.is-app-mode-tabs {
    gap: 3px;
    padding: 3px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(229, 236, 248, 0.94), rgba(223, 231, 245, 0.9));
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-mode-tabs.is-app-mode-tabs .iphone-mode-tab {
    min-height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 10.5px;
    letter-spacing: 0;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-native-panel {
    gap: 8px;
    border-radius: 12px;
    padding: 8px 8px 6px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 2px 10px rgba(16, 37, 70, 0.06),
        inset 0 0 0 1px rgba(16, 37, 70, 0.08);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-native-panel.is-reference-day-panel {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-panel-head h2 {
    font-size: 14px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-all-day-lane {
    gap: 5px;
    padding: 0 1px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-all-day-label {
    font-size: 10px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-all-day-events {
    gap: 5px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-all-day-event {
    padding: 6px 8px 7px;
    border-radius: 9px;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.84),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15),
        0 2px 8px rgba(16, 20, 26, 0.10);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-day-scroller {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    overscroll-behavior-y: contain;
    box-shadow: inset 0 0 0 1px rgba(16, 37, 70, 0.08);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-reference-date.is-week-selected-date {
    padding: 3px 2px 2px;
    text-align: center;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-reference-date.is-week-selected-date strong {
    font-size: 12px;
    color: #14243f;
}

.mobile-pull-refresh-toast {
    position: fixed;
    top: calc(11px + env(safe-area-inset-top));
    left: 50%;
    z-index: 180;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid rgba(233, 213, 255, 0.92);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.98), rgba(168, 85, 247, 0.98)),
        #7c3aed;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -10px) scale(0.96);
    transition: opacity 150ms ease, transform 150ms ease;
    box-shadow:
        0 14px 28px rgba(91, 33, 182, 0.22),
        0 0 0 3px rgba(233, 213, 255, 0.2);
}

.mobile-pull-refresh-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.mobile-pull-refresh-toast[data-state="loading"] {
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.98), rgba(124, 58, 237, 0.98)),
        #6d28d9;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-day-hour-label {
    color: #9aa1aa;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-day-hour-line {
    left: 0;
    right: 8px;
    height: 1px;
    background: #eceff4;
    opacity: 1;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-day-track {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98)),
        #fff;
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-now-line small {
    font-size: 10px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-event-block {
    border-radius: 9px;
    padding: 6px 7px;
    gap: 2px;
    box-shadow:
        0 5px 14px rgba(14, 18, 23, 0.18),
        inset 0 -1px 0 rgba(255, 255, 255, 0.84),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-event-block::after {
    left: 6px;
    right: 6px;
    bottom: 4px;
    background: rgba(255, 255, 255, 0.88);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-event-block .shared-title-row {
    gap: 3px;
    align-items: flex-start;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-event-block strong {
    font-size: 10.5px;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-event-block span,
.is-mobile-browser-focus.is-iphone-dashboard .iphone-event-block small {
    font-size: 8.5px;
    line-height: 1.2;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-event-block span {
    color: rgba(255, 255, 255, 0.92);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-event-block small {
    color: rgba(255, 255, 255, 0.84);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-event-block .shared-badge {
    min-height: 13px;
    padding: 0 4px;
    font-size: 8px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-agenda {
    gap: 8px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-agenda-day {
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-agenda-head strong {
    font-size: 14px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-agenda-event,
.is-mobile-browser-focus.is-iphone-dashboard .iphone-agenda-event {
    padding: 8px 9px;
    border-radius: 10px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-agenda-event strong,
.is-mobile-browser-focus.is-iphone-dashboard .iphone-agenda-event strong {
    font-size: 11px;
    line-height: 1.16;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-week-agenda-event span,
.is-mobile-browser-focus.is-iphone-dashboard .iphone-agenda-event span,
.is-mobile-browser-focus.is-iphone-dashboard .iphone-agenda-event small {
    font-size: 9px;
    line-height: 1.22;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-month-grid {
    gap: 4px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-month-grid .day-card {
    min-height: 78px;
    padding: 6px 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(16, 37, 70, 0.08);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-year-grid {
    gap: 8px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-year-month-card {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(16, 37, 70, 0.08);
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-year-mini-grid {
    gap: 2px;
}

.is-mobile-browser-focus.is-iphone-dashboard .iphone-year-mini-day {
    min-height: 22px;
    border-radius: 8px;
    font-size: 10px;
}

.is-mobile-browser-focus.is-iphone-event-form .page,
.is-mobile-browser-focus.is-mobile-invitation-form .page {
    padding: 0 6px calc(6px + env(safe-area-inset-bottom));
}

.is-mobile-browser-focus.is-iphone-event-form .feishu-editor-bar.iphone-event-editor-bar {
    border-radius: 12px;
    padding: 6px 8px;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
}

.is-mobile-browser-focus.is-iphone-event-form .form-shell.is-iphone-event-form-shell {
    gap: 8px;
}

.is-mobile-browser-focus.is-iphone-event-form .feishu-editor-bar .feishu-editor-title-wrap h1 {
    font-size: 15px;
}

.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-quick-form {
    gap: 8px;
}

.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-quick-form .form-section-card,
.is-mobile-browser-focus.is-mobile-invitation-form .mobile-invitation-form,
.is-mobile-browser-focus.is-mobile-invitation-form .share-box,
.is-mobile-browser-focus.is-mobile-invitation-form .preview-panel {
    border-radius: 12px;
}

.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-quick-form .form-section-card {
    gap: 8px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 3px 12px rgba(16, 37, 70, 0.055),
        inset 0 0 0 1px rgba(16, 37, 70, 0.065);
}

.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-quick-form .form-section-head h2,
.is-mobile-browser-focus.is-iphone-event-form .event-repeat-disclosure-copy h2 {
    font-size: 13px;
    line-height: 1.16;
}

.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-quick-form .form-section-body {
    gap: 8px;
}

.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-quick-form label,
.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-quick-form fieldset {
    gap: 4px;
}

.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-quick-form span,
.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-quick-form legend {
    font-size: 11px;
    line-height: 1.28;
}

.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-quick-form input,
.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-quick-form select,
.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-quick-form textarea {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.32;
}

.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-quick-form textarea {
    min-height: 78px;
}

.is-mobile-browser-focus.is-iphone-event-form .form-action-bar.is-iphone-action-bar {
    bottom: calc(5px + env(safe-area-inset-bottom));
    gap: 7px;
    padding: 7px;
    border-radius: 14px;
}

.is-mobile-browser-focus.is-iphone-event-form .form-action-bar.is-iphone-action-bar .button {
    min-height: 40px;
    border-radius: 12px;
}

.is-mobile-browser-focus.is-iphone-event-form .danger-form.is-iphone-danger-form {
    padding: 10px 12px calc(8px + env(safe-area-inset-bottom));
    border-radius: 13px;
    box-shadow:
        0 3px 12px rgba(136, 43, 43, 0.055),
        inset 0 0 0 1px rgba(181, 63, 57, 0.08);
}

.is-mobile-browser-focus.is-iphone-event-form .danger-form.is-iphone-danger-form .button {
    min-height: 40px;
    border-radius: 12px;
}

.is-mobile-browser-focus .danger-form.is-confirming {
    border-color: rgba(168, 42, 42, 0.22);
}

.is-mobile-browser-focus .danger-form .button.is-confirming {
    transform: scale(0.985);
    box-shadow: 0 8px 18px rgba(168, 42, 42, 0.18);
}

.is-mobile-browser-focus.is-iphone-event-form .event-color-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.is-mobile-browser-focus.is-iphone-event-form .event-repeat-disclosure {
    display: grid;
    gap: 12px;
}

.is-mobile-browser-focus.is-iphone-event-form .event-repeat-disclosure-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.is-mobile-browser-focus.is-iphone-event-form .event-repeat-disclosure-summary::-webkit-details-marker {
    display: none;
}

.is-mobile-browser-focus.is-iphone-event-form .event-repeat-disclosure-copy {
    display: grid;
    gap: 2px;
}

.is-mobile-browser-focus.is-iphone-event-form .event-repeat-disclosure-copy .eyebrow {
    margin: 0;
}

.is-mobile-browser-focus.is-iphone-event-form .event-repeat-disclosure-copy h2 {
    margin: 0;
}

.is-mobile-browser-focus.is-iphone-event-form .event-repeat-disclosure-value {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(31, 90, 77, 0.08);
    color: #1f5a4d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.is-mobile-browser-focus.is-iphone-event-form .event-repeat-disclosure-body {
    padding-top: 2px;
}

.is-mobile-browser-focus.is-iphone-event-form .event-mobile-repeat-extra {
    display: none;
    grid-template-columns: 1fr;
    gap: 12px;
}

.is-mobile-browser-focus.is-iphone-event-form .event-mobile-repeat-extra.is-visible {
    display: grid;
}

.is-mobile-browser-focus.is-iphone-event-form .event-color-chip {
    position: relative;
    display: block;
    min-width: 0;
}

.is-mobile-browser-focus.is-iphone-event-form .event-color-chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.is-mobile-browser-focus.is-iphone-event-form .event-color-chip-fill {
    display: block;
    width: 100%;
    height: 34px;
    border-radius: 11px;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.78),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: transform 130ms ease, box-shadow 130ms ease, outline-color 130ms ease;
}

.is-mobile-browser-focus.is-iphone-event-form .event-color-chip input:checked + .event-color-chip-fill {
    transform: scale(1.04);
    box-shadow:
        0 0 0 2px rgba(24, 30, 38, 0.18),
        0 6px 14px rgba(16, 37, 70, 0.14),
        inset 0 -1px 0 rgba(255, 255, 255, 0.84),
        inset 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.is-mobile-browser-focus.is-iphone-event-form .event-color-chip input:focus-visible + .event-color-chip-fill {
    box-shadow:
        0 0 0 3px rgba(47, 111, 237, 0.22),
        inset 0 -1px 0 rgba(255, 255, 255, 0.84),
        inset 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.is-mobile-browser-focus.is-mobile-invitation-form .mobile-invitation-toolbar-link {
    min-height: 24px;
}

@media (max-width: 360px) {
    .is-mobile-browser-focus.is-iphone-dashboard .iphone-calendar-shell {
        padding: calc(2px + env(safe-area-inset-top)) 6px calc(4px + env(safe-area-inset-bottom));
    }

    .is-mobile-browser-focus.is-iphone-dashboard .iphone-app-nav-cluster {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
    }

    .is-mobile-browser-focus.is-iphone-dashboard .iphone-reference-button.is-nav,
    .is-mobile-browser-focus.is-iphone-dashboard .iphone-reference-actions.is-app-actions .iphone-reference-button {
        min-width: 30px;
        height: 30px;
    }

    .is-mobile-browser-focus.is-iphone-dashboard .iphone-weekday-pill {
        min-width: 35px;
    }

    .is-mobile-browser-focus.is-iphone-dashboard .iphone-mode-tabs.is-app-mode-tabs .iphone-mode-tab {
        padding: 0 6px;
        font-size: 10px;
    }

    .is-mobile-browser-focus.is-iphone-dashboard .iphone-swipe-preview.is-warning {
        top: 6px;
        width: min(72vw, 252px);
        max-width: calc(100% - 42px);
        padding: 8px 10px;
        font-size: 10.5px;
    }

    .is-mobile-browser-focus.is-iphone-dashboard .iphone-native-panel.is-day-panel .iphone-swipe-preview.is-warning {
        top: 50px;
    }
}

/* Mobile browser focus mode: login/stats aligned to app shell */
.is-mobile-browser-focus.is-mobile-login,
.is-mobile-browser-focus.is-mobile-stats {
    background:
        radial-gradient(circle at top center, rgba(58, 103, 185, 0.08), transparent 36%),
        linear-gradient(180deg, #f3f6fb 0%, #edf2f9 100%);
}

.is-mobile-browser-focus.is-mobile-login .iphone-standalone-page,
.is-mobile-browser-focus.is-mobile-stats .iphone-standalone-page {
    min-height: 100svh;
    min-height: 100dvh;
}

.is-mobile-browser-focus.is-mobile-login .mobile-lite-page,
.is-mobile-browser-focus.is-mobile-stats .mobile-lite-page {
    padding: calc(4px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom));
}

.is-mobile-browser-focus.is-mobile-login .mobile-auth-shell,
.is-mobile-browser-focus.is-mobile-stats .mobile-lite-shell {
    gap: 8px;
}

.is-mobile-browser-focus.is-mobile-login .mobile-auth-head,
.is-mobile-browser-focus.is-mobile-login .mobile-auth-card,
.is-mobile-browser-focus.is-mobile-stats .mobile-lite-head,
.is-mobile-browser-focus.is-mobile-stats .mobile-lite-card {
    border-radius: 14px;
    border: 1px solid rgba(16, 37, 70, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 3px 12px rgba(16, 37, 70, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.is-mobile-browser-focus.is-mobile-login .mobile-auth-head,
.is-mobile-browser-focus.is-mobile-stats .mobile-lite-head {
    padding: 10px 12px;
}

.is-mobile-browser-focus.is-mobile-login .mobile-auth-card,
.is-mobile-browser-focus.is-mobile-stats .mobile-lite-card {
    padding: 12px;
}

.is-mobile-browser-focus.is-mobile-login .mobile-auth-head h1,
.is-mobile-browser-focus.is-mobile-stats .mobile-lite-title-wrap h1 {
    font-size: 22px;
    line-height: 1.08;
}

.is-mobile-browser-focus.is-mobile-login .mobile-auth-head p,
.is-mobile-browser-focus.is-mobile-stats .mobile-lite-title-wrap p {
    font-size: 12px;
}

.is-mobile-browser-focus.is-mobile-login .mobile-auth-card .button,
.is-mobile-browser-focus.is-mobile-stats .mobile-lite-actions .button {
    min-height: 40px;
}

.is-mobile-browser-focus.is-mobile-stats .mobile-lite-filter-grid {
    gap: 10px;
}

.is-mobile-browser-focus.is-mobile-stats .mobile-lite-row {
    border-radius: 12px;
}

/* PC visual refresh */
@media (min-width: 981px) {
    :root {
        --bg: #eef5f8;
        --bg-alt: #f8fbff;
        --panel: rgba(255, 255, 255, 0.78);
        --line: rgba(20, 30, 50, 0.1);
        --text: #182235;
        --muted: #6a7487;
        --brand: #116a91;
        --brand-soft: #d9f0f6;
        --shadow: 0 24px 70px rgba(36, 47, 72, 0.14);
        --red: #e94f64;
        --blue: #3478f6;
        --green: #12a77d;
        --orange: #f5a524;
    }

    body:not(.is-iphone-dashboard):not(.is-mobile-browser-focus) {
        min-height: 100vh;
        overflow-x: hidden;
        background:
            radial-gradient(ellipse at 8% 12%, rgba(255, 45, 146, 0.34), transparent 28%),
            radial-gradient(ellipse at 86% 12%, rgba(255, 176, 68, 0.32), transparent 26%),
            radial-gradient(ellipse at 16% 82%, rgba(0, 226, 190, 0.32), transparent 30%),
            radial-gradient(ellipse at 72% 78%, rgba(52, 120, 246, 0.28), transparent 32%),
            linear-gradient(135deg, #fbf3ff 0%, #eaf8ff 38%, #fff5df 100%);
        background-attachment: fixed;
    }

    body:not(.is-iphone-dashboard):not(.is-mobile-browser-focus)::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background-image:
            linear-gradient(rgba(21, 32, 52, 0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(21, 32, 52, 0.035) 1px, transparent 1px);
        background-size: 42px 42px;
        mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 72%);
    }

    .shell {
        max-width: 1420px;
        padding: 28px 34px 48px;
    }

    .topbar {
        position: sticky;
        top: 18px;
        z-index: 20;
        overflow: hidden;
        border-radius: 22px;
        border-color: rgba(255, 255, 255, 0.74);
        background: rgba(255, 255, 255, 0.72);
        box-shadow:
            0 18px 48px rgba(30, 47, 78, 0.13),
            inset 0 1px 0 rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(20px) saturate(1.25);
    }

    .topbar::after {
        content: "";
        position: absolute;
        left: 22px;
        right: 22px;
        bottom: 0;
        height: 3px;
        border-radius: 999px 999px 0 0;
        background: linear-gradient(90deg, #225cf4, #12a77d, #f5a524, #e94f64);
        opacity: 0.74;
    }

    .is-guest .page {
        position: relative;
    }

    .is-guest .page::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background:
            conic-gradient(from 128deg at 16% 74%, transparent 0 10%, rgba(0, 222, 190, 0.24) 12%, rgba(52, 120, 246, 0.22) 22%, rgba(255, 45, 146, 0.18) 34%, transparent 46%),
            conic-gradient(from 310deg at 84% 82%, transparent 0 16%, rgba(245, 165, 36, 0.24) 24%, rgba(233, 79, 100, 0.18) 34%, transparent 48%);
        filter: blur(10px) saturate(1.24);
        opacity: 0.95;
    }

    .brand-mark {
        border-radius: 14px;
        background: linear-gradient(135deg, #3478f6 0%, #12a77d 52%, #f5a524 100%);
        box-shadow: 0 12px 28px rgba(52, 120, 246, 0.24);
    }

    .brand strong {
        font-size: 18px;
    }

    .nav {
        gap: 8px;
    }

    .nav a:not(.button),
    .nav-user {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        padding: 0 12px;
        border-radius: 999px;
        color: #536076;
        font-weight: 650;
    }

    .nav a:not(.button):hover {
        color: #153055;
        background: rgba(52, 120, 246, 0.09);
    }

    .button {
        min-height: 42px;
        border-radius: 14px;
        background: linear-gradient(135deg, #225cf4 0%, #12a77d 100%);
        color: #ffffff;
        box-shadow: 0 13px 28px rgba(34, 92, 244, 0.18);
        transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    }

    .button:hover,
    .button:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 18px 36px rgba(34, 92, 244, 0.22);
    }

    .button-ghost {
        color: #20304a;
        background: rgba(255, 255, 255, 0.74);
        border: 1px solid rgba(20, 30, 50, 0.1);
        box-shadow: none;
    }

    .button-ghost:hover,
    .button-ghost:focus-visible {
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 12px 26px rgba(30, 47, 78, 0.1);
    }

    .page {
        gap: 22px;
    }

    .home-promo-strip {
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        min-height: 72px;
        padding: 16px 22px;
        border-radius: 24px;
        color: #13233d;
        border: 1px solid rgba(255, 255, 255, 0.72);
        background:
            linear-gradient(100deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.36)),
            radial-gradient(ellipse at 68% 20%, rgba(255, 255, 255, 0.9), transparent 24%),
            radial-gradient(ellipse at 88% 50%, rgba(245, 165, 36, 0.34), transparent 34%),
            radial-gradient(ellipse at 40% 90%, rgba(0, 226, 190, 0.22), transparent 40%);
        box-shadow:
            0 18px 48px rgba(30, 47, 78, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(18px) saturate(1.2);
    }

    .is-guest .page > .mobile-pwa-banner[data-pwa-banner] {
        display: none !important;
    }

    .home-promo-strip::after {
        content: "";
        position: absolute;
        right: -30px;
        top: -34px;
        width: 270px;
        height: 118px;
        border-radius: 999px 0 0 999px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.12));
        transform: rotate(-4deg);
    }

    .home-promo-strip > * {
        position: relative;
        z-index: 1;
    }

    .home-promo-strip strong,
    .home-promo-strip span {
        display: block;
    }

    .home-promo-strip strong {
        margin-bottom: 4px;
        font-size: 16px;
    }

    .home-promo-strip span {
        color: #526078;
        font-size: 13px;
    }

    .home-promo-actions {
        display: flex;
        gap: 10px;
        flex: 0 0 auto;
    }

    .hero {
        position: relative;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        min-height: 540px;
    }

    .home-float-card,
    .home-spark {
        position: absolute;
        pointer-events: none;
        z-index: 0;
    }

    .home-float-card {
        width: 82px;
        height: 82px;
        border-radius: 20px;
        opacity: 0.58;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.26)),
            repeating-linear-gradient(90deg, rgba(34, 92, 244, 0.18) 0 1px, transparent 1px 15px);
        box-shadow: 0 18px 38px rgba(30, 47, 78, 0.12);
    }

    .home-float-card-left {
        left: -40px;
        top: 22px;
        transform: rotate(-15deg);
    }

    .home-float-card-right {
        right: -34px;
        top: -16px;
        transform: rotate(13deg);
    }

    .home-spark {
        width: 18px;
        height: 18px;
        transform: rotate(45deg);
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 0 24px rgba(255, 255, 255, 0.82);
    }

    .home-spark-one {
        left: 22px;
        bottom: 112px;
    }

    .home-spark-two {
        right: 26px;
        top: 182px;
    }

    .hero-copy,
    .hero-card,
    .panel,
    .stat-card,
    .form-section-card,
    .mini-admin-header,
    .mini-admin-panel {
        border-radius: 22px;
        border-color: rgba(255, 255, 255, 0.72);
        background: rgba(255, 255, 255, 0.72);
        box-shadow:
            0 22px 64px rgba(32, 48, 79, 0.13),
            inset 0 1px 0 rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(18px) saturate(1.16);
    }

    .hero-copy,
    .hero-card {
        position: relative;
        z-index: 1;
    }

    .hero-copy {
        position: relative;
        overflow: hidden;
        padding: 48px 52px;
        color: #14243f;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
            radial-gradient(ellipse at 82% 24%, rgba(245, 165, 36, 0.3), transparent 32%),
            radial-gradient(ellipse at 8% 88%, rgba(0, 226, 190, 0.2), transparent 34%),
            radial-gradient(ellipse at 24% 12%, rgba(255, 45, 146, 0.1), transparent 30%);
    }

    .hero-copy::after {
        content: "";
        position: absolute;
        right: 32px;
        bottom: 34px;
        width: min(32%, 248px);
        aspect-ratio: 1;
        border-radius: 30px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.08)),
            repeating-linear-gradient(90deg, rgba(34, 92, 244, 0.16) 0 1px, transparent 1px 18px),
            repeating-linear-gradient(0deg, rgba(18, 167, 125, 0.12) 0 1px, transparent 1px 18px);
        transform: rotate(-7deg);
        opacity: 0.78;
        box-shadow: 0 24px 50px rgba(52, 120, 246, 0.12);
    }

    .hero-copy > * {
        position: relative;
        z-index: 1;
    }

    .hero-copy h1 {
        max-width: 680px;
        background: linear-gradient(110deg, #14243f 0%, #1f5fd7 48%, #0f9873 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .hero-title {
        display: grid;
        gap: 12px;
    }

    .hero-title span,
    .hero-title small {
        display: block;
        white-space: nowrap;
    }

    .hero-title span {
        font-size: clamp(52px, 5vw, 76px);
        line-height: 0.98;
        font-weight: 900;
    }

    .hero-title small {
        font-size: clamp(36px, 3.2vw, 48px);
        line-height: 1.12;
        font-weight: 760;
    }

    .hero-text {
        max-width: 34rem;
        color: #536076;
    }

    .hero-card {
        position: relative;
        overflow: hidden;
        color: #ffffff;
        background:
            linear-gradient(160deg, rgba(22, 38, 67, 0.96) 0%, rgba(22, 82, 97, 0.94) 58%, rgba(18, 167, 125, 0.88) 100%);
    }

    .hero-card::before {
        content: "";
        position: absolute;
        inset: 18px;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        pointer-events: none;
    }

    .hero-card h2,
    .hero-card .check-list {
        position: relative;
        z-index: 1;
    }

    .hero-card .check-list {
        padding-left: 0;
        list-style: none;
    }

    .hero-card .check-list li {
        padding: 11px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
    }

    .hero-schedule-preview {
        display: grid;
        gap: 20px;
        align-content: stretch;
        padding: 24px;
        background:
            linear-gradient(160deg, rgba(18, 28, 52, 0.98), rgba(20, 84, 102, 0.96) 52%, rgba(18, 167, 125, 0.9)),
            repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 22px);
    }

    .hero-schedule-preview::after {
        content: "";
        position: absolute;
        inset: auto 24px 24px auto;
        width: 44%;
        height: 38%;
        border-radius: 28px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
            repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 16px);
        transform: rotate(-4deg);
        opacity: 0.5;
    }

    .hero-schedule-top,
    .hero-mini-calendar,
    .hero-schedule-stack,
    .hero-schedule-footer {
        position: relative;
        z-index: 1;
    }

    .hero-schedule-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
    }

    .hero-schedule-top .eyebrow {
        color: rgba(255, 255, 255, 0.62);
    }

    .hero-schedule-top h2 {
        margin: 0;
        font-size: 34px;
    }

    .hero-schedule-top > span {
        display: grid;
        place-items: center;
        width: 66px;
        height: 66px;
        border-radius: 20px;
        color: #14243f;
        background: linear-gradient(135deg, #ffffff, #dff7f1);
        font-size: 30px;
        font-weight: 900;
        box-shadow: 0 18px 32px rgba(5, 18, 34, 0.22);
    }

    .hero-mini-calendar {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-mini-calendar span,
    .hero-mini-calendar strong {
        display: grid;
        place-items: center;
        min-height: 54px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.76);
        font-size: 15px;
    }

    .hero-mini-calendar strong {
        color: #14243f;
        background: linear-gradient(135deg, #f5a524, #ffffff);
        box-shadow: 0 16px 26px rgba(245, 165, 36, 0.22);
    }

    .hero-schedule-stack {
        display: grid;
        gap: 12px;
    }

    .hero-schedule-item {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 4px 14px;
        align-items: center;
        padding: 16px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 14px 26px rgba(5, 18, 34, 0.12);
    }

    .hero-schedule-item time {
        grid-row: 1 / 3;
        align-self: stretch;
        display: grid;
        place-items: center;
        border-radius: 14px;
        color: #ffffff;
        font-weight: 900;
    }

    .hero-schedule-item strong,
    .hero-schedule-item span {
        min-width: 0;
    }

    .hero-schedule-item span {
        color: rgba(255, 255, 255, 0.7);
    }

    .hero-schedule-item.is-blue time {
        background: linear-gradient(135deg, #5a9bff, #225cf4);
    }

    .hero-schedule-item.is-red time {
        background: linear-gradient(135deg, #ff6b7c, #d93459);
    }

    .hero-schedule-item.is-green time {
        background: linear-gradient(135deg, #21c99a, #0b8f6b);
    }

    .hero-schedule-footer {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: auto;
    }

    .hero-schedule-footer span {
        min-height: 42px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        color: rgba(255, 255, 255, 0.84);
        background: rgba(255, 255, 255, 0.1);
        font-weight: 750;
        font-size: 13px;
    }

    .hero-workspace-preview {
        display: grid;
        gap: 18px;
        align-content: stretch;
        padding: 26px;
        background:
            linear-gradient(155deg, rgba(15, 25, 48, 0.98), rgba(23, 72, 109, 0.95) 46%, rgba(18, 167, 125, 0.9)),
            repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 22px);
        box-shadow:
            0 28px 72px rgba(12, 24, 42, 0.22),
            0 0 0 1px rgba(255, 255, 255, 0.72),
            inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }

    .hero-workspace-preview::after {
        content: "";
        position: absolute;
        right: 28px;
        bottom: 28px;
        width: 42%;
        height: 40%;
        border-radius: 32px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
            repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 16px);
        transform: rotate(-4deg);
        opacity: 0.46;
    }

    .hero-workspace-top,
    .hero-account-orbit,
    .hero-feature-grid,
    .hero-workspace-footer {
        position: relative;
        z-index: 1;
    }

    .hero-workspace-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .hero-zen-panel {
        min-width: 0;
        width: 100%;
    }

    .hero-zen-marquee {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding: 2px 0 4px;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    }

    .hero-workspace-top .eyebrow {
        color: rgba(255, 255, 255, 0.62);
    }

    .hero-workspace-top h2 {
        margin: 0;
        display: inline-block;
        width: max-content;
        max-width: none;
        color: transparent;
        background: linear-gradient(90deg, #ffffff 0%, #ffe66d 18%, #ff7ab6 38%, #7dd3fc 58%, #86efac 78%, #ffffff 100%);
        -webkit-background-clip: text;
        background-clip: text;
        font-family: "LXGW WenKai", "STKaiti", "KaiTi", "Songti SC", "Noto Serif SC", serif;
        font-size: clamp(22px, 1.82vw, 29px);
        font-weight: 900;
        letter-spacing: 0.08em;
        line-height: 1.18;
        filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.38));
        -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.42);
        white-space: nowrap;
        transform: translateX(0);
        will-change: transform;
    }

    .hero-workspace-top h2.is-running {
        animation: heroZenQuoteSlide 8s linear both;
    }

    @keyframes heroZenQuoteSlide {
        0% {
            opacity: 1;
            transform: translateX(110%);
        }
        100% {
            opacity: 1;
            transform: translateX(-110%);
        }
    }

    .hero-workspace-top > span {
        display: grid;
        place-items: center;
        width: 60px;
        height: 60px;
        border-radius: 18px;
        color: #14243f;
        background: linear-gradient(135deg, #ffffff, #dff7f1);
        font-size: 30px;
        font-weight: 900;
        box-shadow: 0 18px 32px rgba(5, 18, 34, 0.22);
    }

    .hero-account-orbit {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        padding: 10px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .hero-account-card {
        display: grid;
        gap: 6px;
        min-height: 112px;
        align-content: end;
        padding: 14px;
        border-radius: 18px;
        color: #ffffff;
        box-shadow: 0 18px 32px rgba(5, 18, 34, 0.16);
    }

    .hero-account-card:hover {
        transform: translateY(-2px);
    }

    .hero-account-card strong,
    .hero-account-card small {
        display: block;
        white-space: nowrap;
    }

    .hero-account-card strong {
        font-size: 16px;
    }

    .hero-account-card small {
        color: rgba(255, 255, 255, 0.72);
        font-weight: 700;
        font-size: 12px;
    }

    .hero-account-card.is-primary {
        background:
            linear-gradient(135deg, #225cf4, #12a77d),
            radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.42), transparent 35%);
    }

    .hero-account-card.is-blue {
        background:
            linear-gradient(135deg, #5a9bff, #1f5fd7),
            radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.42), transparent 35%);
    }

    .hero-account-card.is-green {
        background:
            linear-gradient(135deg, #21c99a, #f5a524),
            radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.42), transparent 35%);
    }

    .hero-feature-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .hero-feature-grid article {
        display: grid;
        gap: 9px;
        min-width: 0;
        padding: 14px;
        border-radius: 16px;
        color: rgba(255, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-feature-grid strong {
        white-space: nowrap;
        font-size: 15px;
    }

    .hero-feature-grid small {
        color: rgba(255, 255, 255, 0.66);
        line-height: 1.55;
        font-size: 12px;
    }

    .hero-feature-mark {
        width: 32px;
        height: 8px;
        border-radius: 999px;
    }

    .hero-feature-mark.is-blue {
        background: #5a9bff;
    }

    .hero-feature-mark.is-green {
        background: #21c99a;
    }

    .hero-feature-mark.is-orange {
        background: #f5a524;
    }

    .hero-workspace-footer {
        margin-top: auto;
        min-height: 46px;
        display: grid;
        place-items: center;
        padding: 0 16px;
        border-radius: 16px;
        color: #14243f;
        background: rgba(255, 255, 255, 0.82);
        font-weight: 850;
        font-size: 14px;
        text-align: center;
    }

    .eyebrow {
        letter-spacing: 0.13em;
        color: #3478f6;
        font-weight: 800;
    }

    .section-head h1 {
        font-size: clamp(34px, 3.6vw, 52px);
        color: #14243f;
    }

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

    .stat-card {
        position: relative;
        overflow: hidden;
        padding: 22px;
    }

    .stat-card::after {
        content: "";
        position: absolute;
        right: -28px;
        top: -34px;
        width: 104px;
        height: 104px;
        border-radius: 28px;
        opacity: 0.2;
        transform: rotate(18deg);
        background: currentColor;
    }

    .stat-card:nth-child(1) {
        color: #225cf4;
    }

    .stat-card:nth-child(2) {
        color: #e94f64;
    }

    .stat-card:nth-child(3) {
        color: #12a77d;
    }

    .stat-card:nth-child(4) {
        color: #f5a524;
    }

    .stat-card span {
        color: #647086;
        font-weight: 650;
    }

    .stat-card strong {
        color: #14243f;
        font-size: 38px;
    }

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

    .view-panel-head {
        align-items: center;
    }

    .day-timeline-row {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .day-timeline-entry {
        border-radius: 18px;
        box-shadow: 0 16px 34px rgba(28, 40, 66, 0.14);
    }

    .calendar-shell {
        padding: 18px;
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.52);
        border: 1px solid rgba(255, 255, 255, 0.62);
        box-shadow: var(--shadow);
        backdrop-filter: blur(16px);
    }

    .dashboard-month-grid {
        gap: 10px;
    }

    .dashboard-month-grid .weekday {
        color: #526078;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .day-card {
        min-height: 150px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.86);
        border-color: rgba(20, 30, 50, 0.08);
        box-shadow: 0 10px 26px rgba(30, 47, 78, 0.06);
        transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    }

    .day-card:hover,
    .day-card:focus-visible {
        transform: translateY(-3px);
        border-color: rgba(52, 120, 246, 0.32);
        box-shadow: 0 18px 42px rgba(30, 47, 78, 0.13);
    }

    .day-card.is-today {
        outline: 0;
        border-color: rgba(52, 120, 246, 0.42);
        background:
            linear-gradient(180deg, rgba(234, 243, 255, 0.98), rgba(255, 255, 255, 0.9));
    }

    .day-card.is-selected {
        border-color: rgba(18, 167, 125, 0.5);
        box-shadow: 0 18px 44px rgba(18, 167, 125, 0.16);
    }

    .day-card-count,
    .day-card-head small {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 22px;
        padding: 0 8px;
        border-radius: 999px;
        background: rgba(52, 120, 246, 0.11);
        color: #225cf4;
        font-style: normal;
        font-weight: 800;
    }

    .event-pill,
    .week-event-chip,
    .day-timeline-entry {
        background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
    }

    .tone-red {
        background: linear-gradient(135deg, #ff6b7c 0%, #d93459 100%);
    }

    .tone-blue {
        background: linear-gradient(135deg, #5a9bff 0%, #225cf4 100%);
    }

    .tone-green {
        background: linear-gradient(135deg, #21c99a 0%, #0b8f6b 100%);
    }

    .tone-orange {
        background: linear-gradient(135deg, #ffc15a 0%, #ee8e1d 100%);
    }

    .login-shell {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 0.66fr);
        min-height: 620px;
    }

    .login-welcome {
        overflow: hidden;
        color: #ffffff;
        background:
            linear-gradient(135deg, rgba(18, 28, 52, 0.94), rgba(31, 88, 116, 0.9)),
            radial-gradient(circle at 84% 20%, rgba(245, 165, 36, 0.4), transparent 32%);
    }

    .login-welcome .eyebrow,
    .login-welcome .login-supporting-copy,
    .login-welcome .login-highlight-item span {
        color: rgba(255, 255, 255, 0.76);
    }

    .login-highlight-item {
        border-color: rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.1);
    }

    input,
    select,
    textarea,
    fieldset {
        border-radius: 14px;
        border-color: rgba(30, 47, 78, 0.12);
        background: rgba(255, 255, 255, 0.82);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    }

    input:focus,
    select:focus,
    textarea:focus {
        outline: 3px solid rgba(52, 120, 246, 0.16);
        border-color: rgba(52, 120, 246, 0.42);
        background: #ffffff;
    }

    .form-section-card {
        gap: 16px;
    }

    .form-section-head {
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(20, 30, 50, 0.08);
    }

    .color-choice {
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.74);
        transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    }

    .color-choice:hover {
        transform: translateY(-1px);
        border-color: rgba(52, 120, 246, 0.24);
        box-shadow: 0 12px 24px rgba(30, 47, 78, 0.08);
    }

    .mini-admin-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .mini-admin-sidebar {
        position: sticky;
        top: 112px;
        border-radius: 22px;
        background:
            linear-gradient(180deg, rgba(20, 32, 56, 0.98), rgba(24, 80, 96, 0.96)),
            radial-gradient(circle at top right, rgba(245, 165, 36, 0.28), transparent 34%);
        box-shadow: 0 24px 58px rgba(20, 32, 56, 0.22);
    }

    .mini-admin-sidebar::after {
        content: "";
        display: block;
        height: 5px;
        margin: 18px 2px 0;
        border-radius: 999px;
        background: linear-gradient(90deg, #225cf4, #12a77d, #f5a524, #e94f64);
        opacity: 0.88;
    }

    .mini-admin-logo-mark {
        background: linear-gradient(135deg, #ffffff, #dcecff);
        color: #225cf4;
    }

    .mini-admin-nav-item {
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.06);
    }

    .mini-admin-nav-item.is-active {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.24);
    }

    .mini-admin-header h1 {
        color: #14243f;
        font-size: 25px;
    }

    .mini-admin-header {
        position: relative;
        overflow: hidden;
        min-height: 0;
    }

    .mini-admin-header::after {
        content: "";
        position: absolute;
        right: 26px;
        bottom: -48px;
        width: 190px;
        height: 92px;
        border-radius: 24px 24px 0 0;
        background:
            linear-gradient(135deg, rgba(52, 120, 246, 0.16), rgba(18, 167, 125, 0.12)),
            repeating-linear-gradient(90deg, rgba(20, 30, 50, 0.1) 0 1px, transparent 1px 20px);
        transform: rotate(-3deg);
        opacity: 0.78;
    }

    .mini-admin-header > * {
        position: relative;
        z-index: 1;
    }

    .mini-admin-filter-grid {
        grid-template-columns: minmax(150px, 1fr) minmax(130px, 0.72fr) minmax(130px, 0.72fr) minmax(170px, 1.08fr) auto auto;
    }

    .mini-admin-table-wrap {
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.86);
    }

    .mini-admin-table th {
        color: #647086;
        background: #f3f7fb;
    }

    .mini-admin-table tbody tr {
        transition: background 150ms ease, transform 150ms ease;
    }

    .mini-admin-table tbody tr:hover {
        background: linear-gradient(90deg, rgba(52, 120, 246, 0.06), rgba(18, 167, 125, 0.04));
    }

.mini-admin-color-badge {
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(20, 30, 50, 0.1);
}

.pc-app-calendar {
    display: grid;
    gap: 18px;
}

.pc-app-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 28px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
        radial-gradient(ellipse at 78% 12%, rgba(245, 165, 36, 0.22), transparent 34%),
        radial-gradient(ellipse at 12% 100%, rgba(0, 226, 190, 0.18), transparent 38%);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 22px 56px rgba(30, 47, 78, 0.12);
}

.pc-app-calendar-head h1 {
    margin: 4px 0 0;
    color: #14243f;
    font-size: 34px;
}

.pc-app-calendar-head p:not(.eyebrow) {
    margin: 8px 0 0;
    color: #647086;
}

.pc-app-calendar-actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.pc-app-calendar .pc-iphone-calendar {
    max-width: none;
    padding: 0;
    gap: 14px;
}

.pc-app-calendar .iphone-native-header,
.pc-app-calendar .iphone-native-panel {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 20px 50px rgba(30, 47, 78, 0.1);
    backdrop-filter: blur(18px);
}

.pc-app-calendar .iphone-native-header {
    position: sticky;
    top: 12px;
    gap: 4px;
    padding: 7px 10px 8px;
}

.pc-app-calendar .iphone-native-panel {
    padding: 18px;
}

.pc-app-calendar .iphone-app-focusbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.pc-app-calendar .iphone-app-nav-cluster {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 4px;
    align-items: center;
    padding: 2px;
    border-radius: 14px;
    background: rgba(243, 247, 251, 0.92);
}

.pc-app-calendar .iphone-app-focus {
    display: grid;
    gap: 0;
    text-align: center;
}

.pc-app-calendar .iphone-app-focus-kicker {
    color: #647086;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.pc-app-calendar .iphone-app-focus strong {
    color: #14243f;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.05;
}

.pc-app-calendar .iphone-app-focus small {
    color: #647086;
    font-size: 11px;
    line-height: 1.05;
}

.pc-app-calendar .iphone-reference-button.is-nav {
    min-width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 10px;
    font-size: 17px;
}

.pc-app-calendar .iphone-reference-actions.is-app-actions {
    gap: 6px;
}

.pc-app-calendar .iphone-reference-button {
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    background: rgba(243, 247, 251, 0.96);
    color: #22304a;
    font-size: 14px;
    line-height: 1;
}

.pc-app-calendar .iphone-reference-button.is-current,
.pc-app-calendar .iphone-weekday-pill.is-selected strong {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #ffffff;
}

.pc-app-calendar .iphone-week-strip.is-reference-week-strip {
    gap: 6px;
    padding-top: 4px;
}

.pc-app-calendar .iphone-weekday-pill {
    flex: 1 1 0;
    min-height: 30px;
    padding: 2px 4px;
    border-radius: 12px;
    background: rgba(246, 248, 253, 0.72);
}

.pc-app-calendar .iphone-weekday-pill strong {
    width: 20px;
    height: 20px;
    font-size: 13px;
}

.pc-app-calendar .iphone-weekday-pill small {
    margin-bottom: 0;
    font-size: 9px;
    line-height: 1;
}

.pc-app-calendar .iphone-weekday-meta {
    height: 13px;
    min-width: 15px;
    margin-top: 0;
    padding: 0 4px;
    font-size: 9px;
    line-height: 13px;
}

.pc-app-calendar .iphone-reference-date {
    padding: 0;
}

.pc-app-calendar .iphone-reference-date strong {
    font-size: 15px;
    line-height: 1.15;
}

.pc-app-calendar .iphone-native-panel.is-reference-day-panel {
    min-height: 0;
    padding-bottom: 12px;
}

.pc-app-calendar .iphone-day-scroller {
    min-height: 0;
    height: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.98));
    border-radius: 20px;
}

.pc-app-calendar .iphone-day-scroller::-webkit-scrollbar {
    display: initial;
    width: 8px;
}

.pc-app-calendar .iphone-day-track {
    border-radius: 18px;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(214, 223, 237, 0.42) 0,
            rgba(214, 223, 237, 0.42) 1px,
            transparent 1px,
            transparent var(--iphone-quarter-hour-height, 24px)
        ),
        #ffffff;
}

.pc-app-calendar .iphone-event-block {
    min-height: 78px;
    gap: 7px;
    padding: 16px 18px;
    border-radius: 18px;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.78),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 10px 20px rgba(18, 31, 58, 0.08);
}

.pc-app-calendar .iphone-event-block strong {
    font-size: 16px;
    line-height: 1.2;
}

.pc-app-calendar .iphone-event-block span,
.pc-app-calendar .iphone-event-block small {
    font-size: 13px;
    line-height: 1.24;
}

.pc-app-calendar .iphone-event-block .shared-badge {
    min-height: 22px;
    padding: 0 10px;
    font-size: 12px;
}

.pc-app-calendar .iphone-day-hour-label {
    font-size: 13px;
}

.pc-app-calendar .iphone-day-hour-line {
    background: rgba(196, 205, 220, 0.58);
}

.pc-app-calendar .is-week-timeline-panel {
    display: grid;
    gap: 16px;
}

.pc-app-calendar .pc-week-timeline-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(148px, 1fr));
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: thin;
}

.pc-app-calendar .pc-week-day-timeline {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 10px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(244, 248, 253, 0.96)),
        radial-gradient(ellipse at top right, rgba(52, 120, 246, 0.08), transparent 38%);
    box-shadow:
        inset 0 0 0 1px rgba(103, 117, 105, 0.09),
        0 12px 26px rgba(30, 47, 78, 0.06);
}

.pc-app-calendar .pc-week-day-timeline.is-selected {
    background:
        linear-gradient(180deg, rgba(238, 243, 255, 0.98), rgba(247, 250, 255, 0.98)),
        radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.18), transparent 42%);
    box-shadow:
        inset 0 0 0 1px rgba(109, 40, 217, 0.18),
        0 16px 32px rgba(109, 40, 217, 0.1);
}

.pc-app-calendar .pc-week-day-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px 10px;
    border-bottom: 1px solid rgba(103, 117, 105, 0.1);
    color: #14243f;
    text-decoration: none;
}

.pc-app-calendar .pc-week-day-head small {
    display: block;
    margin-bottom: 4px;
    color: #647086;
    font-size: 12px;
    font-weight: 800;
}

.pc-app-calendar .pc-week-day-head strong {
    display: block;
    font-size: 18px;
    line-height: 1.08;
}

.pc-app-calendar .pc-week-day-head em {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(52, 120, 246, 0.12);
    color: #225cf4;
    font-style: normal;
    font-size: 14px;
    font-weight: 900;
}

.pc-app-calendar .pc-week-day-timeline .iphone-all-day-lane {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
    margin-top: 10px;
    padding: 0;
}

.pc-app-calendar .pc-week-day-timeline:not(:first-child) .iphone-all-day-lane {
    grid-template-columns: minmax(0, 1fr);
}

.pc-app-calendar .pc-week-day-timeline:not(:first-child) .iphone-all-day-label {
    display: none;
}

.pc-app-calendar .pc-week-day-timeline .iphone-all-day-event {
    padding: 8px 9px;
    border-radius: 12px;
}

.pc-app-calendar .pc-week-day-timeline .iphone-day-scroller {
    margin-top: 10px;
    height: auto;
    border-radius: 16px;
    padding-right: 4px;
    padding-bottom: 0;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(196, 205, 220, 0.48);
}

.pc-app-calendar .pc-week-day-timeline .iphone-day-timeline {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
}

.pc-app-calendar .pc-week-day-timeline:not(:first-child) .iphone-day-timeline {
    grid-template-columns: minmax(0, 1fr);
}

.pc-app-calendar .pc-week-day-timeline:not(:first-child) .iphone-day-hours {
    display: none;
}

.pc-app-calendar .pc-week-day-timeline .iphone-day-hour-label {
    font-size: 11px;
}

.pc-app-calendar .pc-week-day-timeline .iphone-event-block {
    min-height: 48px;
    gap: 4px;
    padding: 9px 9px;
    border-radius: 13px;
}

.pc-app-calendar .pc-week-day-timeline .iphone-event-block strong {
    font-size: 13px;
}

.pc-app-calendar .pc-week-day-timeline .iphone-event-block span,
.pc-app-calendar .pc-week-day-timeline .iphone-event-block small {
    font-size: 11px;
}

.pc-app-calendar .iphone-week-agenda {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.pc-app-calendar .iphone-week-agenda-day {
    min-width: 0;
    align-content: start;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
    height: 720px;
    min-height: 720px;
    padding: 18px 14px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(244, 248, 253, 0.96)),
        radial-gradient(ellipse at top right, rgba(52, 120, 246, 0.08), transparent 38%);
    box-shadow:
        inset 0 0 0 1px rgba(103, 117, 105, 0.09),
        0 12px 26px rgba(30, 47, 78, 0.06);
}

.pc-app-calendar .iphone-week-agenda-day.is-selected {
    background:
        linear-gradient(180deg, rgba(238, 243, 255, 0.98), rgba(247, 250, 255, 0.98)),
        radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.18), transparent 42%);
    box-shadow:
        inset 0 0 0 1px rgba(109, 40, 217, 0.18),
        0 16px 32px rgba(109, 40, 217, 0.1);
}

.pc-app-calendar .iphone-week-agenda-head {
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(103, 117, 105, 0.1);
}

.pc-app-calendar .iphone-week-agenda-head small {
    display: block;
    margin-bottom: 4px;
    color: #647086;
    font-size: 13px;
    font-weight: 800;
}

.pc-app-calendar .iphone-week-agenda-head strong {
    margin-top: 0;
    color: #14243f;
    font-size: 20px;
    line-height: 1.08;
}

.pc-app-calendar .iphone-week-agenda-head span {
    min-width: 30px;
    height: 30px;
    color: #225cf4;
    background: rgba(52, 120, 246, 0.12);
    font-size: 15px;
    font-weight: 900;
}

.pc-app-calendar .iphone-week-agenda-events {
    gap: 14px;
    align-content: start;
    min-height: 0;
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
}

.pc-app-calendar .iphone-week-agenda-events::-webkit-scrollbar {
    width: 6px;
}

.pc-app-calendar .iphone-week-agenda-event {
    min-height: clamp(78px, calc(var(--week-event-duration-minutes, 60) * 1.25px), 620px);
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 14px 14px;
    border-radius: 18px;
    gap: 8px;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.76),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 8px 16px rgba(18, 31, 58, 0.08);
}

.pc-app-calendar .iphone-week-agenda-event .week-event-main {
    display: grid;
    align-content: end;
    flex: 1 1 auto;
    min-height: 0;
}

.pc-app-calendar .iphone-week-agenda-event.is-medium {
    padding-bottom: 18px;
}

.pc-app-calendar .iphone-week-agenda-event.is-long {
    padding-bottom: 22px;
}

.pc-app-calendar .iphone-week-agenda-event.is-extra-long {
    padding-bottom: 24px;
}

.pc-app-calendar .iphone-week-agenda-event .week-event-body {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 8px;
}

.pc-app-calendar .iphone-week-agenda-event .week-event-title {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-app-calendar .iphone-week-agenda-event .week-event-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
}

.pc-app-calendar .iphone-week-agenda-event .shared-title-row {
    flex: 1 1 auto;
}

.pc-app-calendar .iphone-week-agenda-event strong,
.pc-app-calendar .iphone-week-agenda-event .week-event-title {
    font-size: 16px;
    line-height: 1.16;
}

.pc-app-calendar .iphone-week-agenda-event span {
    flex: 0 0 auto;
    font-size: 13px;
    text-align: left;
}

.pc-app-calendar .iphone-week-agenda-event small {
    position: static;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1;
}

.pc-app-calendar .iphone-week-agenda-event.is-short small {
    display: none;
}

.pc-app-calendar .iphone-week-agenda-event .shared-badge {
    flex: 0 0 auto;
    min-height: 19px;
    padding: 0 7px;
    font-size: 10px;
}

.pc-app-calendar .iphone-week-agenda-event .week-event-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
}

.pc-app-calendar .iphone-week-agenda-event .week-event-action {
    min-width: 32px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 12px;
}

.pc-app-calendar .iphone-week-agenda-empty {
    margin: 0;
    min-height: 92px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(100, 112, 134, 0.18);
    border-radius: 15px;
    color: #94a0b4;
    background: rgba(255, 255, 255, 0.56);
    font-size: 13px;
}

.pc-app-calendar .iphone-year-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pc-app-calendar .iphone-month-grid .day-card {
    min-height: 108px;
}
}

/* H5 app-style event editor */
.is-mobile-browser-focus.is-iphone-event-form {
    background: #ffffff;
}

.is-mobile-browser-focus.is-iphone-event-form .shell {
    max-width: none;
    padding: 0;
}

.is-mobile-browser-focus.is-iphone-event-form .page {
    padding: 0 18px calc(22px + env(safe-area-inset-bottom));
    background: #ffffff;
}

.is-mobile-browser-focus.is-iphone-event-form .form-shell.is-iphone-app-editor {
    width: min(100%, 430px);
    margin: 0 auto;
    gap: 18px;
}

.iphone-app-form-toolbar {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: calc(18px + env(safe-area-inset-top)) 6px 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.iphone-app-form-toolbar a,
.iphone-app-form-toolbar button {
    border: 0;
    background: transparent;
    color: #5e646d;
    font: inherit;
    font-size: 25px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.iphone-app-form-toolbar button {
    color: #3d66c5;
}

.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-app-form {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.iphone-app-name-field {
    display: block;
    padding: 12px 0 10px;
    border-bottom: 1px solid #eceef2;
}

.iphone-app-name-field input {
    width: 100%;
    min-height: 58px;
    border: 0;
    background: transparent;
    color: #171a20;
    font-size: 31px;
    font-weight: 520;
    line-height: 1.15;
    outline: none;
}

.iphone-app-name-field input::placeholder {
    color: #c5c9d0;
}

.iphone-app-form-card,
.iphone-app-note-card {
    display: grid;
    border: 1px solid #eceef2;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(21, 29, 43, 0.03);
}

.iphone-app-time-card {
    padding: 0 22px;
}

.iphone-app-time-row {
    display: grid;
    gap: 5px;
    padding: 21px 0;
}

.iphone-app-time-row + .iphone-app-time-row {
    border-top: 1px solid #eceef2;
}

.iphone-app-time-row span {
    color: #1d2027;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.iphone-app-time-row input {
    width: 100%;
    min-height: 40px;
    border: 0;
    background: transparent;
    color: #111318;
    font-size: 26px;
    font-weight: 520;
    line-height: 1.16;
    outline: none;
}

.iphone-app-toggle-card {
    padding: 18px 22px;
}

.iphone-app-toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.iphone-app-toggle-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.iphone-app-checkbox {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 3px solid #515861;
    border-radius: 5px;
    background: #ffffff;
}

.iphone-app-toggle-row input:checked + .iphone-app-checkbox {
    border-color: #3d66c5;
    background:
        linear-gradient(135deg, transparent 48%, #ffffff 48%, #ffffff 56%, transparent 56%),
        linear-gradient(45deg, transparent 40%, #ffffff 40%, #ffffff 51%, transparent 51%),
        #3d66c5;
}

.iphone-app-toggle-copy {
    display: grid;
    gap: 7px;
}

.iphone-app-toggle-copy strong {
    color: #252933;
    font-size: 25px;
    font-weight: 520;
    line-height: 1.2;
}

.iphone-app-toggle-copy small {
    color: #969ca5;
    font-size: 16px;
    line-height: 1.35;
}

.iphone-app-thin-divider {
    height: 14px;
    border: 1px solid #eceef2;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.04);
}

.iphone-app-options-card {
    padding: 0 24px;
}

.iphone-app-select-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 76px;
}

.iphone-app-select-row + .iphone-app-select-row {
    border-top: 1px solid #eceef2;
}

.iphone-app-select-row span {
    color: #5d626b;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.2;
}

.iphone-app-select-row em {
    color: #111318;
    font-style: normal;
    font-size: 23px;
    font-weight: 520;
    line-height: 1.2;
    text-align: right;
}

.iphone-app-select-row select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.01;
    cursor: pointer;
}

.iphone-app-repeat-extra {
    display: none;
    gap: 0;
    padding: 0 22px;
}

.iphone-app-repeat-extra.is-visible {
    display: grid;
}

.iphone-app-repeat-extra label {
    display: grid;
    gap: 8px;
    padding: 16px 0;
}

.iphone-app-repeat-extra label + label {
    border-top: 1px solid #eceef2;
}

.iphone-app-repeat-extra span {
    color: #5d626b;
    font-size: 17px;
    font-weight: 700;
}

.iphone-app-repeat-extra input {
    min-height: 42px;
    border: 0;
    background: transparent;
    color: #111318;
    font-size: 20px;
    outline: none;
}

.iphone-app-note-card {
    min-height: 190px;
    padding: 18px 22px;
}

.iphone-app-note-card textarea {
    width: 100%;
    min-height: 150px;
    border: 0;
    resize: none;
    background: transparent;
    color: #111318;
    font-size: 25px;
    line-height: 1.4;
    outline: none;
}

.iphone-app-note-card textarea::placeholder {
    color: #b7bcc4;
}

.is-mobile-browser-focus.is-iphone-event-form .danger-form.is-iphone-app-delete {
    display: grid;
    gap: 10px;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 0 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.is-mobile-browser-focus.is-iphone-event-form .danger-form.is-iphone-app-delete .button {
    min-height: 54px;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 800;
}

.iphone-app-scope-card {
    gap: 12px;
    padding: 16px;
}

.iphone-app-scope-card p {
    margin: 0;
    color: #5d626b;
    font-size: 16px;
    font-weight: 700;
}

.iphone-app-scope-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.iphone-app-scope-options label {
    display: grid;
}

.iphone-app-scope-options input {
    position: absolute;
    opacity: 0;
}

.iphone-app-scope-options span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 14px;
    background: #f4f6f9;
    color: #5d626b;
    font-size: 14px;
    font-weight: 800;
}

.iphone-app-scope-options input:checked + span {
    background: #3d66c5;
    color: #ffffff;
}

/* H5 app editor sizing pass: keep the app layout, fit normal phone screens. */
.is-mobile-browser-focus.is-iphone-event-form .page {
    padding: 0 14px calc(18px + env(safe-area-inset-bottom));
}

.is-mobile-browser-focus.is-iphone-event-form .form-shell.is-iphone-app-editor {
    gap: 13px;
}

.iphone-app-form-toolbar {
    min-height: 58px;
    padding: calc(10px + env(safe-area-inset-top)) 2px 8px;
}

.iphone-app-form-toolbar a,
.iphone-app-form-toolbar button {
    font-size: 18px;
}

.is-mobile-browser-focus.is-iphone-event-form .event-form.is-iphone-app-form {
    gap: 13px;
}

.iphone-app-name-field {
    padding: 6px 0 7px;
}

.iphone-app-name-field input {
    min-height: 43px;
    font-size: 22px;
}

.iphone-app-form-card,
.iphone-app-note-card {
    border-radius: 18px;
}

.iphone-app-time-card {
    padding: 0 16px;
}

.iphone-app-time-row {
    gap: 3px;
    padding: 14px 0;
}

.iphone-app-time-row span {
    font-size: 14px;
}

.iphone-app-time-row input {
    min-height: 32px;
    font-size: 19px;
}

.iphone-app-toggle-card {
    padding: 13px 16px;
}

.iphone-app-toggle-row {
    gap: 10px;
}

.iphone-app-checkbox {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    border-width: 2px;
    border-radius: 4px;
}

.iphone-app-toggle-copy {
    gap: 3px;
}

.iphone-app-toggle-copy strong {
    font-size: 17px;
}

.iphone-app-toggle-copy small {
    font-size: 13px;
}

.iphone-app-thin-divider {
    height: 9px;
}

.iphone-app-options-card {
    padding: 0 17px;
}

.iphone-app-select-row {
    min-height: 55px;
    gap: 12px;
}

.iphone-app-select-row span,
.iphone-app-select-row em {
    font-size: 17px;
}

.iphone-app-repeat-extra {
    padding: 0 16px;
}

.iphone-app-repeat-extra label {
    gap: 5px;
    padding: 12px 0;
}

.iphone-app-repeat-extra span {
    font-size: 14px;
}

.iphone-app-repeat-extra input {
    min-height: 34px;
    font-size: 16px;
}

.iphone-app-note-card {
    min-height: 138px;
    padding: 14px 16px;
}

.iphone-app-note-card textarea {
    min-height: 108px;
    font-size: 18px;
}

.is-mobile-browser-focus.is-iphone-event-form .danger-form.is-iphone-app-delete .button {
    min-height: 46px;
    border-radius: 15px;
    font-size: 15px;
}
