:root {
    --bg-deep: #ffffff;
    --bg-soft: #f9fafb;
    --panel: #ffffff;
    --surface-soft: #f3f4f6;
    --surface-tint: #f0fdf4;
    --line: rgba(17, 24, 39, 0.08);
    --line-strong: rgba(22, 163, 74, 0.22);
    --primary: #16a34a;
    --gold: #16a34a;
    --primary-soft: #dcfce7;
    --accent: #16a34a;
    --accent-soft: #166534;
    --text-main: #111827;
    --text-muted: #6b7280;
    --wa-color: #25d366;
    --gmeet: #15803d;
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.08);
}

/* Jadwal salat */
.page-prayer {
    padding-top: 8px;
}

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

.prayer-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: 390px;
    padding: clamp(34px, 5vw, 68px);
    overflow: hidden;
    border: 1px solid rgba(21, 128, 61, 0.14);
    border-radius: 40px;
    background: linear-gradient(112deg, rgba(255, 255, 255, 0.98) 0 58%, rgba(237, 250, 242, 0.96) 58% 100%);
    box-shadow: var(--shadow-lg);
}

.prayer-hero::before,
.prayer-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(22, 163, 74, 0.09);
    border-radius: 50%;
}

.prayer-hero::before {
    right: -120px;
    bottom: -220px;
    width: 460px;
    height: 460px;
}

.prayer-hero::after {
    right: 54px;
    bottom: -126px;
    width: 280px;
    height: 280px;
}

.prayer-intro,
.prayer-next-card {
    position: relative;
    z-index: 1;
}

.prayer-title {
    max-width: 680px;
    margin: 10px 0 14px;
    font-family: 'Noto Serif', serif;
    font-size: clamp(2.7rem, 5.2vw, 5rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.prayer-lead {
    max-width: 570px;
    margin: 0;
    color: #52605a;
    font-family: 'Noto Serif', serif;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.75;
}

.prayer-location-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: min(100%, 290px);
    margin-top: 32px;
    padding: 10px 14px;
    border: 1px solid rgba(22, 101, 52, 0.15);
    border-radius: 18px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.88);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prayer-location-control:focus-within {
    border-color: rgba(22, 163, 74, 0.48);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08);
}

.prayer-location-control.is-open {
    border-color: rgba(22, 163, 74, 0.52);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08);
}

.prayer-location-control.is-locating .prayer-location-mark {
    border-color: rgba(22, 163, 74, 0.4);
    animation: prayer-location-pulse 1.15s ease-in-out infinite;
}

@keyframes prayer-location-pulse {
    50% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0.1); }
}

.prayer-location-mark {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(22, 101, 52, 0.18);
    border-radius: 50%;
    background: #eef9f2;
}

.prayer-location-mark::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 4px solid #16803f;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.prayer-location-mark::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
}

.prayer-location-copy {
    display: grid;
    flex: 1;
    gap: 1px;
    min-width: 0;
}

.prayer-location-copy small {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.prayer-location-copy strong {
    overflow: hidden;
    color: #163d29;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prayer-location-trigger {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    background: transparent;
}

.prayer-location-chevron {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin: -4px 3px 0 0;
    border-right: 2px solid #28553c;
    border-bottom: 2px solid #28553c;
    transform: rotate(45deg);
    transition: margin 0.18s ease, transform 0.18s ease;
}

.prayer-location-control.is-open .prayer-location-chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}

.prayer-city-native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.prayer-city-menu {
    position: fixed;
    z-index: 1200;
    width: 320px;
    max-width: calc(100vw - 24px);
    max-height: min(410px, calc(100vh - 24px));
    padding: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(22, 101, 52, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(15, 78, 44, 0.18), 0 8px 20px rgba(15, 23, 42, 0.08);
    scrollbar-color: rgba(22, 128, 61, 0.28) transparent;
    scrollbar-width: thin;
}

.prayer-city-menu[hidden] {
    display: none;
}

.prayer-city-menu::-webkit-scrollbar {
    width: 6px;
}

.prayer-city-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(22, 128, 61, 0.28);
}

.prayer-city-auto-option {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 58px;
    margin-bottom: 9px;
    padding: 9px 11px;
    border: 1px solid rgba(22, 128, 61, 0.12);
    border-radius: 14px;
    color: #234a35;
    font: inherit;
    text-align: left;
    cursor: pointer;
    background: linear-gradient(135deg, #f4fcf6, #edf9f1);
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.prayer-city-auto-option:hover,
.prayer-city-auto-option:focus-visible {
    outline: 0;
    border-color: rgba(22, 163, 74, 0.34);
    background: #eaf8ef;
}

.prayer-city-auto-option.is-active {
    border-color: rgba(22, 163, 74, 0.38);
    background: linear-gradient(135deg, #e2f8e9, #edfbf2);
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.08);
}

.prayer-city-auto-mark {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(22, 128, 61, 0.2);
    border-radius: 50%;
    background: #ffffff;
}

.prayer-city-auto-mark::before,
.prayer-city-auto-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.prayer-city-auto-mark::before {
    width: 15px;
    height: 15px;
    border: 1px solid #16803f;
}

.prayer-city-auto-mark::after {
    width: 5px;
    height: 5px;
    background: #16a34a;
    box-shadow: 0 -11px 0 -2px #16803f, 0 11px 0 -2px #16803f, -11px 0 0 -2px #16803f, 11px 0 0 -2px #16803f;
}

.prayer-city-auto-copy {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.prayer-city-auto-copy strong {
    color: #14532d;
    font-size: 0.82rem;
}

.prayer-city-auto-copy small {
    overflow: hidden;
    color: #6b7e72;
    font-size: 0.65rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prayer-city-auto-check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(22, 128, 61, 0.16);
    border-radius: 50%;
    color: transparent;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
}

.prayer-city-auto-option.is-active .prayer-city-auto-check {
    border-color: #16803f;
    color: #ffffff;
    background: #16803f;
}

.prayer-city-group + .prayer-city-group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(22, 101, 52, 0.09);
}

.prayer-city-group-label {
    margin: 0 6px 6px;
    color: #789083;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.prayer-city-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.prayer-city-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 11px;
    color: #274437;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    background: transparent;
    transition: color 0.16s ease, background 0.16s ease;
}

.prayer-city-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prayer-city-option::after {
    content: "";
    flex: 0 0 16px;
    width: 16px;
    color: #16803f;
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
}

.prayer-city-option:hover,
.prayer-city-option:focus-visible {
    outline: 0;
    color: #14532d;
    background: #eef9f2;
}

.prayer-city-option.is-active {
    color: #116330;
    background: #e2f7e9;
}

.prayer-city-option.is-active::after {
    content: "\2713";
}

.prayer-next-card {
    min-height: 286px;
    padding: clamp(24px, 3vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    color: #ffffff;
    background: radial-gradient(circle at 84% 18%, rgba(134, 239, 172, 0.2), transparent 28%), linear-gradient(145deg, #0a5732, #073c27);
    box-shadow: 0 24px 54px rgba(6, 78, 44, 0.22);
}

.prayer-next-topline,
.prayer-next-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.prayer-next-topline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.prayer-next-topline span:last-child {
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #dcfce7;
    letter-spacing: 0.06em;
}

.prayer-next-main {
    margin-top: 32px;
}

.prayer-next-main p {
    margin: 0 0 4px;
    color: #bbf7d0;
    font-family: 'Noto Serif', serif;
    font-size: 1.15rem;
}

.prayer-next-main strong {
    font-family: 'Noto Serif', serif;
    font-size: clamp(3.4rem, 6vw, 5.8rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
}

.prayer-next-index {
    color: rgba(255, 255, 255, 0.13);
    font-family: 'Noto Serif', serif;
    font-size: clamp(4.6rem, 8vw, 7rem);
    line-height: 1;
}

.prayer-countdown {
    margin: 28px 0 10px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.035em;
}

.prayer-countdown-track {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

.prayer-countdown-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #86efac;
    transition: width 0.8s linear;
}

.prayer-date-rail {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 36px);
    padding: 22px clamp(22px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
}

.prayer-date-rail > div {
    display: grid;
    gap: 4px;
}

.prayer-date-label {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prayer-date-rail strong {
    font-family: 'Noto Serif', serif;
    font-size: 0.98rem;
    font-weight: 600;
}

.prayer-date-divider {
    width: 1px;
    height: 38px;
    background: var(--line);
}

.prayer-location-badge {
    margin-left: auto;
    padding: 7px 12px;
    border-radius: 999px;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 700;
    background: #eaf8ef;
}

.prayer-intro .prayer-date-rail {
    max-width: 580px;
    margin-top: 18px;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid rgba(22, 101, 52, 0.12);
    border-radius: 0;
    background: transparent;
}

.prayer-intro .prayer-date-label {
    font-size: 0.62rem;
}

.prayer-intro .prayer-date-rail strong {
    color: #31473b;
    font-size: 0.82rem;
}

.prayer-intro .prayer-date-divider {
    height: 32px;
}

.prayer-intro .prayer-location-badge {
    display: none;
}

.prayer-schedule-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.prayer-time-card {
    position: relative;
    min-height: 226px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.prayer-time-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -42px;
    width: 94px;
    height: 94px;
    border: 1px solid rgba(22, 163, 74, 0.08);
    border-radius: 50%;
}

.prayer-time-card.is-next {
    border-color: rgba(22, 163, 74, 0.4);
    background: linear-gradient(155deg, #f4fff7, #e9f9ef);
    box-shadow: 0 18px 36px rgba(22, 101, 52, 0.09);
    transform: translateY(-3px);
}

.prayer-time-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.prayer-sequence {
    color: #98a39d;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.prayer-next-badge {
    padding: 5px 8px;
    border-radius: 999px;
    color: #166534;
    font-size: 0.64rem;
    font-weight: 800;
    background: #d9f8e4;
}

.prayer-time-card p {
    margin: 38px 0 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.prayer-time-card h2 {
    margin: 0;
    font-family: 'Noto Serif', serif;
    font-size: 1.28rem;
    font-weight: 600;
}

.prayer-time-card time {
    display: block;
    margin-top: 18px;
    color: #143d27;
    font-family: 'Noto Serif', serif;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.prayer-time-card.has-supporting-times p {
    margin-top: 20px;
}

.prayer-time-card.has-supporting-times time {
    margin-top: 10px;
}

.prayer-time-details {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.prayer-time-details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(22, 101, 52, 0.09);
    border-radius: 10px;
    background: rgba(239, 249, 243, 0.82);
}

.prayer-time-details span {
    color: #718078;
    font-size: 0.6rem;
    font-weight: 600;
}

.prayer-time-details strong {
    color: #166534;
    font-family: 'Noto Serif', serif;
    font-size: 0.75rem;
    font-weight: 600;
}

.prayer-time-card.is-loading span,
.prayer-time-card.is-loading strong,
.prayer-time-card.is-loading small {
    display: block;
    height: 11px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, #eef2ef, #f8faf9, #eef2ef);
    background-size: 220% 100%;
    animation: prayer-loading 1.4s ease infinite;
}

.prayer-time-card.is-loading strong {
    width: 64%;
    height: 24px;
    margin-top: 46px;
}

.prayer-time-card.is-loading small {
    width: 48%;
    height: 36px;
}

@keyframes prayer-loading {
    to { background-position: -220% 0; }
}

.prayer-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(180, 83, 9, 0.16);
    border-radius: 16px;
    color: #854d0e;
    font-size: 0.82rem;
    background: #fffbeb;
}

.prayer-status[hidden] { display: none; }

.prayer-status.is-error {
    color: #991b1b;
    border-color: rgba(185, 28, 28, 0.16);
    background: #fff5f5;
}

.prayer-status button {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    color: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
}

.prayer-source-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 4px 0;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.prayer-source-note a {
    color: #166534;
    font-weight: 700;
    text-underline-offset: 3px;
}

.qibla-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: 330px;
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
    border: 1px solid rgba(22, 101, 52, 0.12);
    border-radius: 30px;
    background: radial-gradient(circle at 88% 50%, rgba(187, 247, 208, 0.28), transparent 28%), linear-gradient(135deg, #ffffff, #f7fcf9);
}

.qibla-panel::before {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -170px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(22, 163, 74, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.qibla-copy,
.qibla-compass-wrap {
    position: relative;
    z-index: 1;
}

.qibla-copy h2 {
    margin: 8px 0 10px;
    font-family: 'Noto Serif', serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.035em;
}

.qibla-copy > p:not(.section-kicker):not(.qibla-compass-status) {
    max-width: 520px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.qibla-bearing-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 26px;
}

.qibla-bearing-line strong {
    color: #14532d;
    font-family: 'Noto Serif', serif;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.qibla-bearing-line span {
    color: #607168;
    font-size: 0.78rem;
}

.qibla-compass-button {
    min-height: 40px;
    margin-top: 20px;
    padding: 9px 16px;
    border: 1px solid rgba(22, 101, 52, 0.2);
    border-radius: 999px;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    background: #ecfdf3;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.qibla-compass-button:hover {
    color: #ffffff;
    background: #16803f;
    transform: translateY(-1px);
}

.qibla-compass-status {
    max-width: 520px;
    margin: 12px 0 0;
    color: #718078;
    font-size: 0.74rem;
    line-height: 1.55;
}

.qibla-compass-wrap {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.qibla-compass-face {
    position: relative;
    width: min(100%, 260px);
    aspect-ratio: 1;
    border: 1px solid rgba(22, 101, 52, 0.16);
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0 55%, transparent 56%), repeating-conic-gradient(from -1deg, rgba(22, 101, 52, 0.28) 0 1.2deg, transparent 1.2deg 10deg), #eef8f2;
    box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.75), 0 22px 50px rgba(15, 78, 44, 0.12);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.qibla-compass-face.is-aligned {
    border-color: rgba(22, 163, 74, 0.55);
    box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.75), 0 0 0 7px rgba(34, 197, 94, 0.1), 0 22px 50px rgba(15, 78, 44, 0.15);
}

.qibla-cardinal {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #6b7c72;
    font-size: 0.67rem;
    font-weight: 800;
}

.qibla-cardinal.is-north {
    top: 14px;
    left: 50%;
    color: #166534;
    transform: translateX(-50%);
}

.qibla-cardinal.is-east {
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
}

.qibla-cardinal.is-south {
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
}

.qibla-cardinal.is-west {
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
}

.qibla-compass-ring {
    position: absolute;
    inset: 44px;
    border: 1px solid rgba(22, 101, 52, 0.1);
    border-radius: 50%;
}

.qibla-pointer {
    position: absolute;
    z-index: 4;
    bottom: 50%;
    left: 50%;
    width: 8px;
    height: 88px;
    transform: translateX(-50%) rotate(0deg);
    transform-origin: 50% 100%;
    transition: transform 0.24s ease-out;
}

.qibla-pointer > span {
    position: absolute;
    inset: 0;
    border-radius: 999px 999px 5px 5px;
    background: linear-gradient(180deg, #16a34a 0 72%, rgba(22, 163, 74, 0.18) 72% 100%);
    box-shadow: 0 7px 18px rgba(22, 128, 61, 0.2);
}

.qibla-pointer > span::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 50%;
    border-right: 10px solid transparent;
    border-bottom: 18px solid #16a34a;
    border-left: 10px solid transparent;
    transform: translateX(-50%);
}

.qibla-compass-center {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border: 6px solid #ffffff;
    border-radius: 50%;
    background: #14532d;
    box-shadow: 0 4px 12px rgba(20, 83, 45, 0.2);
    transform: translate(-50%, -50%);
}

.qibla-alignment-label {
    padding: 6px 11px;
    border-radius: 999px;
    color: #166534;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: #e8f8ee;
}

.qibla-compass-face.is-aligned + .qibla-alignment-label {
    color: #ffffff;
    background: #16803f;
}

@media (min-width: 1280px) {
    .prayer-shell {
        grid-template-columns: minmax(0, 1fr) 306px;
        align-items: stretch;
    }

    .prayer-shell > :not(.prayer-hero):not(.qibla-panel) {
        grid-column: 1 / -1;
    }

    .prayer-hero {
        grid-column: 1;
        grid-row: 1;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
        gap: clamp(20px, 2vw, 30px);
        min-height: 293px;
        height: 293px;
        padding: 24px 30px;
    }

    .prayer-intro {
        display: grid;
        grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.15fr);
        column-gap: 14px;
        align-items: end;
    }

    .prayer-intro > .section-kicker,
    .prayer-intro > .prayer-title,
    .prayer-intro > .prayer-lead {
        grid-column: 1 / -1;
    }

    .prayer-title {
        margin: 4px 0 6px;
        font-size: clamp(2.7rem, 3.45vw, 3.15rem);
        line-height: 1.02;
    }

    .prayer-lead {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .prayer-location-control {
        grid-column: 1;
        width: 100%;
        min-width: 0;
        margin-top: 12px;
        padding: 7px 10px;
        border-radius: 15px;
    }

    .prayer-intro .prayer-date-rail {
        grid-column: 2;
        max-width: none;
        margin-top: 12px;
        padding-top: 8px;
        gap: 10px;
    }

    .prayer-intro .prayer-date-rail strong {
        font-size: 0.72rem;
    }

    .prayer-intro .prayer-date-divider {
        height: 30px;
    }

    .prayer-next-card {
        min-height: 0;
        height: 100%;
        padding: 22px 24px;
        border-radius: 26px;
    }

    .prayer-next-main {
        margin-top: 18px;
    }

    .prayer-next-main p {
        font-size: 0.95rem;
    }

    .prayer-next-main strong {
        font-size: clamp(3.2rem, 4vw, 4rem);
    }

    .prayer-next-index {
        font-size: 4.2rem;
    }

    .prayer-countdown {
        margin: 16px 0 8px;
    }

    .qibla-panel {
        grid-column: 2;
        grid-row: 1;
        grid-template-columns: 1fr;
        align-content: center;
        gap: 7px;
        min-height: 293px;
        height: 100%;
        padding: 14px 18px;
        border-radius: 26px;
        text-align: center;
    }

    .qibla-panel::before {
        right: -150px;
        bottom: -170px;
    }

    .qibla-copy .section-kicker,
    .qibla-copy > p:not(.qibla-compass-status),
    .qibla-compass-status {
        display: none;
    }

    .qibla-copy h2 {
        margin: 0 0 3px;
        font-size: 1.2rem;
        letter-spacing: -0.02em;
    }

    .qibla-bearing-line {
        display: grid;
        justify-items: center;
        gap: 0;
        margin-top: 0;
    }

    .qibla-bearing-line strong {
        font-size: 1.55rem;
    }

    .qibla-bearing-line span {
        font-size: 0.62rem;
    }

    .qibla-compass-button {
        min-height: 31px;
        margin-top: 5px;
        padding: 6px 12px;
        font-size: 0.68rem;
    }

    .qibla-compass-wrap {
        gap: 5px;
    }

    .qibla-compass-face {
        width: 112px;
        box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.75), 0 15px 34px rgba(15, 78, 44, 0.11);
    }

    .qibla-compass-face.is-aligned {
        box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.75), 0 0 0 5px rgba(34, 197, 94, 0.1), 0 15px 34px rgba(15, 78, 44, 0.14);
    }

    .qibla-cardinal {
        width: 16px;
        height: 16px;
        font-size: 0.52rem;
    }

    .qibla-cardinal.is-north { top: 6px; }
    .qibla-cardinal.is-east { right: 6px; }
    .qibla-cardinal.is-south { bottom: 6px; }
    .qibla-cardinal.is-west { left: 6px; }

    .qibla-compass-ring {
        inset: 22px;
    }

    .qibla-pointer {
        width: 5px;
        height: 37px;
    }

    .qibla-pointer > span::before {
        top: -7px;
        border-right-width: 6px;
        border-bottom-width: 11px;
        border-left-width: 6px;
    }

    .qibla-compass-center {
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

    .qibla-alignment-label {
        padding: 4px 8px;
        font-size: 0.58rem;
    }
}

@media (max-width: 1050px) {
    .prayer-hero {
        grid-template-columns: 1fr;
        background: linear-gradient(180deg, #ffffff, #f0faf4);
    }

    .prayer-next-card { width: min(100%, 620px); }
    .prayer-schedule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .qibla-panel {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    }
}

@media (max-width: 720px) {
    .prayer-hero {
        min-height: 0;
        padding: 28px 22px 22px;
        border-radius: 28px;
    }

    .prayer-title { font-size: clamp(2.55rem, 13vw, 3.8rem); }

    .prayer-location-control {
        width: 100%;
        margin-top: 24px;
    }

    .prayer-next-card {
        min-height: 250px;
        border-radius: 24px;
    }

    .prayer-next-main { margin-top: 26px; }

    .prayer-date-rail {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 14px;
        padding: 18px;
    }

    .prayer-location-badge {
        grid-column: 1 / -1;
        justify-self: start;
        margin-left: 0;
    }

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

    .prayer-time-card {
        min-height: 192px;
        padding: 17px;
    }

    .prayer-time-card p { margin-top: 26px; }
    .prayer-time-card:last-child { grid-column: 1 / -1; }

    .prayer-time-card.has-supporting-times {
        min-height: 226px;
    }

    .prayer-time-card.has-supporting-times p {
        margin-top: 18px;
    }

    .prayer-time-details > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .prayer-source-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .qibla-panel {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 26px 22px;
        border-radius: 24px;
    }

    .qibla-compass-wrap { grid-row: 2; }
    .qibla-compass-face { width: min(76vw, 250px); }

    .prayer-intro .prayer-date-rail {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 12px;
        padding: 14px 0 0;
    }

    .prayer-intro .prayer-date-rail strong {
        font-size: 0.76rem;
        line-height: 1.45;
    }
}

@media (max-width: 420px) {
    .prayer-schedule-grid { grid-template-columns: 1fr; }

    .prayer-time-card,
    .prayer-time-card:last-child {
        grid-column: auto;
        min-height: 150px;
    }

    .prayer-time-card p { margin-top: 16px; }

    .prayer-time-card time {
        position: absolute;
        right: 18px;
        bottom: 18px;
    }

    .prayer-time-card.has-supporting-times {
        min-height: 212px;
    }

    .prayer-time-card.has-supporting-times p {
        margin-top: 12px;
    }

    .prayer-time-card.has-supporting-times time {
        position: static;
        margin-top: 8px;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.05), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #fcfffd 46%, #f6fbf8 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(17, 24, 39, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.018) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
}

.site-shell {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px clamp(16px, 3vw, 36px) 120px;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    color: var(--text-main);
    cursor: pointer;
    background: transparent;
}

.brand-mark,
.title-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(145deg, #22c55e, #15803d);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.18);
}

.title-logo {
    width: 54px;
    height: 54px;
    border-radius: 18px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.brand-copy strong {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-copy span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-chip {
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.85);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-chip:hover,
.nav-chip.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(145deg, #22c55e, #15803d);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.16);
    transform: translateY(-1px);
}

.nav-signout {
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.2);
}

.nav-signout:hover {
    color: #ffffff;
    border-color: #b42318;
    background: #b42318;
    box-shadow: 0 10px 22px rgba(180, 35, 24, 0.18);
}

.site-main {
    min-height: 0;
}

.site-footer {
    width: 100%;
    margin: 24px auto 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
}

.page {
    display: none;
}

.page.is-active {
    display: block;
}

.page-home {
    padding-top: 8px;
    min-height: 0;
}

.home-blank-stage {
    min-height: calc(100vh - 200px);
    border: 1px dashed rgba(22, 163, 74, 0.16);
    border-radius: 40px;
    background:
        radial-gradient(circle at 15% 20%, rgba(22, 163, 74, 0.06), transparent 28%),
        radial-gradient(circle at 85% 30%, rgba(134, 239, 172, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 253, 244, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 22px 48px rgba(15, 23, 42, 0.05);
}

.home-dashboard {
    min-height: 0;
}

.home-dashboard .main-title,
.home-dashboard .hero-copy,
.home-dashboard .home-card,
.home-dashboard .home-card-copy,
.home-dashboard .home-progress-value,
.home-dashboard .home-last-read-ayat {
    font-family: 'Noto Serif', serif;
}

.home-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-card {
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-height: 188px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(134, 239, 172, 0.1), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.home-card-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.home-progress-value {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-progress-value strong {
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1;
    color: var(--text-main);
}

.home-progress-value span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.home-progress-track {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(22, 163, 74, 0.1);
}

.home-progress-track span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #15803d);
    transition: width 0.35s ease;
}

.home-card-copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.home-last-read-surah {
    margin: 0;
    font-family: 'Noto Serif', serif;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: var(--text-main);
}

.home-last-read-ayat {
    margin: -5px 0 0;
    font-size: 0.9rem;
    color: var(--accent-soft);
}

.home-daily-card {
    position: relative;
    justify-content: space-between;
    overflow: hidden;
}

.home-daily-card .home-card-label {
    text-align: center;
}

.home-daily-card::after {
    content: '';
    position: absolute;
    right: -38px;
    bottom: -52px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.06);
    pointer-events: none;
}

.home-daily-reading {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.home-daily-reading strong {
    font-family: 'Noto Serif', serif;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 0.95;
    color: var(--text-main);
}

.home-daily-reading span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.home-daily-card.is-active {
    border-color: rgba(22, 163, 74, 0.2);
    background:
        radial-gradient(circle at top right, rgba(134, 239, 172, 0.18), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.home-daily-card.is-active .home-daily-reading strong {
    color: var(--accent-soft);
}

.home-card-actions {
    margin-top: auto;
}

.home-card-actions .btn-compact {
    min-height: 42px;
    padding: 8px 16px;
}

.home-secondary-btn {
    color: var(--text-main);
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.home-calligraphy {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: min(300px, 100%);
    padding: 10px 18px 0 0;
}

.home-calligraphy::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 28px;
    width: min(100%, 250px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.08) 0%, rgba(22, 163, 74, 0.03) 46%, transparent 72%);
    transform: translateY(-50%);
    pointer-events: none;
}

.home-calligraphy-image {
    position: relative;
    z-index: 1;
    display: block;
    width: clamp(170px, 19vw, 245px);
    height: auto;
    object-fit: contain;
    opacity: 0.96;
    filter: drop-shadow(0 12px 24px rgba(17, 24, 39, 0.08));
}

#catalogPage,
#mushafPage {
    padding-top: 8px;
}

.dashboard-card,
.catalog-shell,
.mushaf-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
    box-shadow: var(--shadow-lg);
}

.dashboard-hero,
.mushaf-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.section-kicker {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
}

.main-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    color: var(--text-main);
}

.hero-copy {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.hero-status {
    min-width: min(260px, 100%);
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.hero-status span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-status strong {
    display: block;
    color: var(--primary);
}

.greeting-calligraphy {
    padding: 18px 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(22, 163, 74, 0.14);
    border-radius: 24px;
    font-family: 'Amiri', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-align: center;
    direction: rtl;
    color: var(--primary);
    background: var(--surface-tint);
}

.surah-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.btn-surah,
.btn-back {
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    color: var(--text-main);
    cursor: pointer;
    background: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-surah:hover,
.btn-back:hover {
    border-color: var(--line-strong);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.pray-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    margin-bottom: 16px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
}

.item-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(145deg, #22c55e, #15803d);
}

.item-content {
    flex: 1;
    width: 100%;
}

.item-content h3 {
    margin: 0 0 8px;
    color: var(--text-main);
}

.item-content p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.istighfar-box {
    width: 100%;
    padding: 22px;
    margin-top: 12px;
    border: 1px solid rgba(22, 163, 74, 0.14);
    border-radius: 24px;
    background: var(--surface-tint);
    text-align: right;
}

.arabic-text,
.ayah-arab {
    font-family: 'Amiri', serif;
    color: var(--text-main);
    direction: rtl;
}

.arabic-text {
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    line-height: 2.1;
}

.trans-text,
.ayah-indo {
    font-family: 'Noto Serif', serif;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: justify;
}

.trans-text {
    margin-top: 18px;
    padding-left: 14px;
    border-left: 2px solid rgba(22, 163, 74, 0.28);
    font-style: italic;
}

.action-buttons,
.mushaf-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-buttons {
    margin-top: 18px;
}

.btn-compact {
    flex: 1 1 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-main,
.mushaf-open-btn,
.btn-ok {
    color: #ffffff;
    background: linear-gradient(145deg, #22c55e, #15803d);
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.16);
}

.btn-share-dashboard {
    color: #042713;
    background: linear-gradient(145deg, #39de7e, #9ef5bd);
    box-shadow: 0 16px 30px rgba(37, 211, 102, 0.18);
}

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.catalog-shortcuts {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.catalog-shortcuts-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(22, 163, 74, 0.35) transparent;
}

.catalog-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 132px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(22, 163, 74, 0.16);
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    background: linear-gradient(180deg, #ffffff 0%, #f6fdf8 100%);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.catalog-shortcut:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 163, 74, 0.3);
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf3 100%);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.07);
}

.catalog-shortcut::before {
    content: none;
}

.catalog-shortcut::after {
    content: none;
}

.catalog-shortcut-copy {
    display: block;
}

.catalog-shortcut-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.catalog-shortcut-note {
    display: none;
}

.catalog-shortcut-arabic {
    display: none;
}

.catalog-filter {
    display: flex;
    align-items: center;
    gap: 16px;
}

.catalog-filter-end {
    margin-left: auto;
}

.catalog-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.catalog-select {
    min-height: 48px;
    padding: 0 42px 0 16px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--primary) 50%),
        linear-gradient(135deg, var(--primary) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    appearance: none;
}

.catalog-status {
    margin-bottom: 20px;
}

.catalog-status[hidden] {
    display: none;
}

.catalog-status.catalog-status-warning {
    color: var(--accent-soft);
    border-color: rgba(22, 163, 74, 0.18);
    background: var(--surface-tint);
}

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

.catalog-card {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.catalog-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 2px solid rgba(22, 163, 74, 0.55);
    border-radius: 50%;
    color: var(--text-main);
    font-weight: 700;
    flex-shrink: 0;
    background: radial-gradient(circle at center, #ffffff 58%, rgba(220, 252, 231, 0.92) 100%);
}

.catalog-badge::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(22, 163, 74, 0.28);
    border-radius: 50%;
}

.catalog-badge span {
    position: relative;
    z-index: 1;
    font-size: 0.92rem;
}

.catalog-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-size: clamp(0.92rem, 1.55vw, 1rem);
    font-weight: 700;
    color: var(--text-main);
}

.catalog-title-note {
    color: var(--text-muted);
    font-size: 0.78em;
    font-weight: 500;
}

.catalog-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.catalog-card-surah .catalog-title,
.catalog-card-surah .catalog-title-note,
.catalog-card-surah .catalog-meta {
    font-family: 'Noto Serif', serif;
}

.catalog-arabic {
    font-family: 'Amiri', serif;
    font-size: clamp(2rem, 2.8vw, 2.4rem);
    line-height: 1;
    color: var(--text-main);
    flex-shrink: 0;
}

.catalog-arabic-empty {
    width: 72px;
}

.catalog-arrow {
    font-size: 2.2rem;
    line-height: 1;
    color: var(--primary);
    flex-shrink: 0;
}

.gmeet-float {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 16px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #fff4ed;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(145deg, rgba(255, 122, 89, 0.94), rgba(255, 99, 74, 0.9));
    box-shadow: 0 22px 50px rgba(255, 122, 89, 0.26);
}

.gmeet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ff6f52;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.9);
}

.mushaf-header {
    align-items: center;
}

.current-surah-name {
    margin: 0;
    text-align: center;
    color: var(--text-main);
}

.latin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.latin-toggle input {
    accent-color: var(--primary);
}

.mushaf-controls {
    align-items: flex-end;
    justify-content: flex-start;
    margin-bottom: 26px;
}

.mushaf-control-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mushaf-control-surah {
    flex: 1 1 320px;
}

.mushaf-control-ayat {
    flex: 0 1 120px;
}

.mushaf-control-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.surah-select {
    width: 100%;
    max-width: 280px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 16px;
    color: var(--text-main);
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mushaf-control-surah .surah-select {
    max-width: 360px;
}

.ayat-select {
    max-width: 104px;
}

.mushaf-open-btn {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 16px;
    cursor: pointer;
    align-self: flex-end;
}

.ayah-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.ayah-arab {
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 2.1;
    text-align: right;
}

.ayah-latin {
    display: block;
    font-family: 'Noto Serif', serif;
    color: var(--accent-soft);
    font-style: italic;
    line-height: 1.8;
}

.ayah-end {
    margin-right: 10px;
    font-size: 1.9rem;
    color: var(--primary);
}

.ayah-end.is-progress-marker {
    cursor: pointer;
    transition: color 0.2s ease, filter 0.2s ease;
}

.ayah-end.is-progress-marker:hover {
    color: var(--accent-soft);
    filter: drop-shadow(0 4px 8px rgba(22, 163, 74, 0.2));
}

.ayah-end.is-progress-marker:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 999px;
}

.highlight {
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(22, 163, 74, 0.1);
}

#customPopup,
#gmeetPopup {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.16);
    backdrop-filter: blur(8px);
}

.popup-card {
    width: min(100%, 420px);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    text-align: center;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.popup-card h2 {
    margin: 0 0 10px;
    color: var(--text-main);
}

.popup-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.btn-ok {
    min-height: 48px;
    margin-top: 18px;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
}

.status-message {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--text-muted);
    text-align: center;
    background: var(--surface-soft);
}

@media (max-width: 900px) {
    .site-header,
    .dashboard-hero,
    .mushaf-header {
        border-radius: 28px;
    }

    .dashboard-hero,
    .mushaf-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-calligraphy {
        width: 100%;
        justify-content: center;
        padding-top: 0;
        padding-right: 0;
    }

    .home-calligraphy::before {
        right: 50%;
        width: min(100%, 220px);
        transform: translate(50%, -50%);
    }

    .home-calligraphy-image {
        width: min(216px, 68vw);
    }

    .home-overview-grid {
        grid-template-columns: 1fr;
    }

    .home-card {
        min-height: auto;
    }
}

@media (max-width: 1100px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-shell {
        padding-inline: 14px;
        padding-bottom: 108px;
    }

    .site-header {
        padding: 14px;
        border-radius: 28px;
    }

    .brand,
    .site-nav {
        width: 100%;
    }

    .nav-chip {
        flex: 1 1 calc(50% - 10px);
    }

    .catalog-toolbar {
        gap: 14px;
    }

    .catalog-filter,
    .catalog-filter-end {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .catalog-select {
        width: min(200px, 56%);
    }

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

    .catalog-card {
        padding: 18px;
    }

    .catalog-arabic {
        font-size: 1.9rem;
    }

    .mushaf-controls,
    .action-buttons {
        flex-direction: column;
    }

    .btn-compact,
    .mushaf-open-btn,
    .surah-select {
        width: 100%;
    }

    .mushaf-control-field,
    .ayat-select {
        width: 100%;
        max-width: none;
    }

    .gmeet-float {
        right: 16px;
        bottom: 16px;
        padding-right: 14px;
    }
}

.home-auth-gate {
    max-width: 1180px;
    margin: 0 auto;
}

.auth-gate-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    gap: 12px;
    overflow: hidden;
    min-height: 570px;
    padding: 12px;
    border: 1px solid rgba(22, 101, 52, 0.13);
    border-radius: 32px;
    background: #f3f7f2;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.09);
}

.auth-gate-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    min-width: 0;
    padding: clamp(34px, 5vw, 58px);
    overflow: hidden;
    color: var(--text-main);
    border: 1px solid rgba(22, 101, 52, 0.1);
    border-radius: 24px 8px 8px 24px;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.82), transparent 52%),
        #e7f4e9;
}

.auth-gate-intro::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -110px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(22, 101, 52, 0.11);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.2), 0 0 0 84px rgba(22, 163, 74, 0.035);
    pointer-events: none;
}

.auth-gate-calligraphy {
    position: absolute;
    top: 30px;
    right: clamp(24px, 4vw, 48px);
    z-index: 1;
    width: clamp(160px, 19vw, 220px);
    pointer-events: none;
}

.auth-gate-calligraphy img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.88;
    filter: drop-shadow(0 14px 24px rgba(17, 24, 39, 0.07));
}

.auth-gate-intro .section-kicker {
    position: relative;
    z-index: 2;
    color: #15803d;
}

.auth-gate-title {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: 0;
    font-family: 'Noto Serif', serif;
    font-size: clamp(2.3rem, 4.2vw, 3.85rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.auth-gate-intro .hero-copy {
    position: relative;
    z-index: 2;
    max-width: 540px;
    margin-top: 2px;
    color: #4b6255;
}

.auth-gate-scope {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 4px 0 0;
    color: #166534;
}

.auth-gate-scope span {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.auth-gate-scope span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    margin: 0 11px;
    border-radius: 50%;
    background: #22c55e;
}

.auth-gate-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    gap: 18px;
    min-width: 0;
    margin: 10px 10px 10px 0;
    padding: clamp(30px, 4vw, 48px);
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 8px 22px 22px 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.055);
}

.auth-mode-tabs {
    display: inline-flex;
    align-self: flex-start;
    gap: 3px;
    padding: 3px;
    border-radius: 999px;
    background: var(--surface-soft);
}

.auth-mode-button {
    min-width: 84px;
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 650;
    cursor: pointer;
    background: transparent;
}

.auth-mode-button.is-active {
    color: #ffffff;
    background: #15803d;
    box-shadow: 0 6px 14px rgba(22, 101, 52, 0.16);
}

.auth-gate-panel-heading {
    display: grid;
    gap: 6px;
}

.auth-gate-panel-heading .community-section-title {
    font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.auth-gate-panel-heading > p:last-child {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.auth-gate-message {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.55;
    text-align: left;
}

.auth-gate-form {
    gap: 14px;
}

.auth-gate-form .community-field {
    gap: 6px;
}

.auth-gate-form .community-input {
    min-height: 46px;
    border-radius: 12px;
}

.auth-forgot-password {
    align-self: flex-end;
    margin-top: -5px;
    padding: 2px 0;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
}

.auth-forgot-password:hover {
    text-decoration: underline;
}

.auth-reward-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid rgba(22, 101, 52, 0.14);
    border-radius: 14px;
    color: #385344;
    cursor: pointer;
    background: #f5fbf6;
}

.auth-reward-consent input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: #15803d;
}

.auth-reward-consent span {
    font-family: 'Noto Serif', serif;
    font-size: 0.78rem;
    line-height: 1.6;
}

.auth-reward-consent strong {
    display: block;
    margin-bottom: 2px;
    color: #166534;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-reset-consent {
    border-color: rgba(180, 83, 9, 0.16);
    color: #664b32;
    background: #fffaf0;
}

.auth-reset-consent input {
    accent-color: #b45309;
}

.auth-reset-consent strong {
    color: #92400e;
}

.auth-gate-submit {
    flex: 0 0 auto;
    align-self: flex-start;
    width: auto;
    min-width: 144px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 13px;
    font-size: 0.9rem;
    box-shadow: 0 9px 20px rgba(22, 163, 74, 0.14);
}

.auth-gate-switch {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    text-align: left;
}

.auth-gate-switch button {
    padding: 0;
    color: var(--accent-soft);
    font-weight: 700;
    cursor: pointer;
    background: transparent;
}
.home-community-chip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.home-community-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(22, 163, 74, 0.16);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-soft);
    background: rgba(220, 252, 231, 0.62);
}

.home-community-chip.is-success {
    color: #065f46;
    background: rgba(167, 243, 208, 0.42);
}

.home-community-chip.is-warning {
    color: #92400e;
    background: rgba(254, 240, 138, 0.5);
}

.community-inline-note {
    margin: 6px 0 0;
    color: var(--accent-soft);
    line-height: 1.7;
}

.page-community,
.page-settings {
    padding-top: 8px;
}

.community-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
    box-shadow: var(--shadow-lg);
}

.community-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 20px;
}

.community-main-stack {
    display: grid;
    gap: 20px;
}

.settings-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.settings-account-card {
    height: 100%;
}

.settings-account-card .community-form {
    flex: 1;
}

.settings-account-card .btn-compact {
    flex: 0 0 auto;
    align-self: flex-start;
    min-width: 148px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.84rem;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.settings-account-card .btn-main {
    margin-top: auto;
}

.settings-account-card .btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.2);
}

.settings-memorial-card {
    grid-column: 1 / -1;
    height: auto;
}

.settings-memorial-intro {
    display: grid;
    gap: 8px;
    max-width: 760px;
}

.settings-memorial-form {
    display: grid;
    gap: 12px;
}

.settings-memorial-form .community-field > span {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.settings-memorial-form .community-field small {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 500;
}

.settings-memorial-textarea {
    min-height: 176px;
    padding: 14px 16px;
    border-radius: 14px;
    line-height: 1.75;
    resize: vertical;
}

.settings-memorial-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.settings-memorial-actions .btn-compact {
    flex: 0 0 auto;
    min-width: 132px;
    margin-top: 0;
}

.settings-memorial-count {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.tahlil-memorial-target {
    color: var(--gmeet);
    font-weight: 700;
}

.ayah-arab .tahlil-memorial-target {
    unicode-bidi: isolate;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.58em;
    line-height: 1.5;
}

.community-sidebar,
.community-panel,
.community-sidebar-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.community-sidebar-card,
.community-panel,
.community-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.community-sidebar-muted {
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.94), rgba(255, 255, 255, 0.98));
}

.community-panel-header,
.community-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.community-panel-title,
.community-section-title,
.community-card h3 {
    margin: 0;
    font-family: 'Noto Serif', serif;
    color: var(--text-main);
}

.community-panel-count,
.community-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--accent-soft);
    background: rgba(220, 252, 231, 0.62);
}

.community-hero-status {
    max-width: 320px;
}

.community-hero-meta {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.community-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.community-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-main);
    font-weight: 600;
}

.community-field span {
    font-size: 0.88rem;
}

.community-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 18px;
    color: var(--text-main);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-input:focus {
    border-color: rgba(22, 163, 74, 0.28);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08);
}

.community-phone-label,
.community-card-head p,
.community-card-copy,
.community-member-row p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.community-card-list {
    display: grid;
    gap: 16px;
}

.community-card-copy {
    font-family: 'Noto Serif', serif;
}

.community-group-card {
    gap: 14px;
}

.community-member-list {
    display: grid;
    gap: 10px;
    padding: 6px 0;
}

.community-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.community-member-row strong {
    color: var(--text-main);
}

.community-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.community-inline-field {
    flex: 1 1 240px;
}

.community-layout {
    display: none;
}

.community-directory {
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.community-directory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.community-tabs {
    display: flex;
    align-self: stretch;
    gap: 24px;
}

.community-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 2px;
    border: 0;
    color: var(--text-muted);
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.community-tab::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: transparent;
}

.community-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.76rem;
    background: rgba(17, 24, 39, 0.06);
}

.community-tab.is-active {
    color: var(--accent-soft);
}

.community-tab.is-active::after {
    background: var(--accent);
}

.community-tab.is-active span {
    color: #ffffff;
    background: var(--accent);
}

.community-primary-action {
    flex: 0 0 auto;
    min-width: 136px;
}

.community-primary-action.is-icon-only {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
}

.community-primary-action.is-icon-only svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.community-composer {
    margin: 20px 22px 0;
    padding: 22px;
    border: 1px solid rgba(22, 163, 74, 0.16);
    border-radius: 22px;
    background: rgba(240, 253, 244, 0.58);
}

.community-composer-head,
.community-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.community-composer-head {
    margin-bottom: 18px;
}

.community-composer-head h2 {
    margin: 4px 0 0;
    font-family: 'Noto Serif', serif;
    color: var(--text-main);
}

.community-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(17, 24, 39, 0.09);
    border-radius: 50%;
    color: var(--text-muted);
    background: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.community-friend-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.community-install-suggestion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 18px;
    background: rgba(255, 251, 235, 0.92);
}

.community-install-suggestion-copy {
    display: grid;
    gap: 4px;
}

.community-install-suggestion-copy strong {
    color: #92400e;
}

.community-install-suggestion-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.community-install-suggestion-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-whatsapp-invite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #ffffff;
    background: #25d366;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.24);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.community-whatsapp-invite:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 25px rgba(37, 211, 102, 0.3);
}

.community-whatsapp-invite svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.community-picker-fieldset {
    min-width: 0;
    margin: 4px 0 0;
    padding: 0;
    border: 0;
}

.community-picker-fieldset legend {
    margin-bottom: 9px;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
}

.community-contact-picker {
    max-height: 330px;
    overflow-y: auto;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    background: #ffffff;
}

.community-picker-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    cursor: pointer;
}

.community-picker-row:last-child {
    border-bottom: 0;
}

.community-picker-row:hover {
    background: rgba(240, 253, 244, 0.68);
}

.community-picker-row input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.community-picker-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.community-picker-copy strong {
    color: var(--text-main);
}

.community-picker-copy small {
    overflow: hidden;
    color: var(--text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-composer-actions {
    justify-content: flex-end;
    margin-top: 4px;
}

.community-composer-empty > p {
    margin: 0 0 16px;
    color: var(--text-muted);
}

.community-directory-content {
    min-height: 240px;
    padding: 4px 22px 14px;
}

.community-contact-list {
    display: grid;
}

.community-activity-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 8px 0 16px;
    padding: 16px 18px;
    border: 1px solid rgba(22, 163, 74, 0.14);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.98));
}

.community-activity-summary p {
    margin: 0 0 4px;
    color: var(--accent-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.community-activity-summary strong {
    font-size: 0.94rem;
}

.community-activity-summary > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    background: linear-gradient(145deg, #22c55e, #15803d);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.16);
}

.community-activity-list {
    gap: 10px;
}

.community-contact-row {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.07);
}

.community-contact-row:last-child {
    border-bottom: 0;
}

.community-activity-row {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    min-height: 98px;
    padding: 14px;
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 18px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.community-activity-row:last-child {
    border-bottom: 1px solid rgba(17, 24, 39, 0.07);
}

.community-activity-row.is-active-today {
    border-color: rgba(22, 163, 74, 0.16);
    background: linear-gradient(135deg, #ffffff, rgba(240, 253, 244, 0.62));
    box-shadow: 0 9px 22px rgba(15, 23, 42, 0.04);
}

.community-activity-row.is-active-today .community-avatar {
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.18);
}

.community-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(145deg, #22c55e, #15803d);
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.16);
}

.community-picker-row .community-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.86rem;
}

.community-avatar.is-group {
    border-radius: 17px;
    background: linear-gradient(145deg, #0f766e, #16a34a);
}

.community-contact-body {
    min-width: 0;
}

.community-contact-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.community-contact-heading h3 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--text-main);
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-group-name {
    min-width: 0;
    padding: 2px 0;
    overflow: hidden;
    color: var(--text-main);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
}

.community-group-name:hover {
    color: var(--accent-soft);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.community-contact-heading span {
    flex: 0 0 auto;
    color: var(--accent-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.community-contact-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.community-reading-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 700;
    background: #f3f4f6;
}

.community-reading-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
}

.community-reading-status.is-active {
    color: #166534;
    background: #dcfce7;
}

.community-reading-status.is-active::before {
    background: #16a34a;
}

.community-contact-body .community-last-read {
    margin-top: 7px;
    color: #4b5563;
    font-size: 0.8rem;
}

.community-daily-stat {
    display: grid;
    justify-items: end;
    min-width: 94px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--text-muted);
    background: #f9fafb;
}

.community-daily-stat strong {
    color: #374151;
    font-size: 1.45rem;
    line-height: 1;
}

.community-daily-stat span {
    margin-top: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.community-daily-stat.is-active {
    color: #166534;
    background: #dcfce7;
}

.community-daily-stat.is-active strong {
    color: #15803d;
}

.community-group-detail {
    display: grid;
    gap: 18px;
    padding: 8px 0 12px;
}

.community-group-detail-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.community-group-detail-head h2 {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-family: 'Noto Serif', serif;
    font-size: 1.25rem;
}

.community-group-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(17, 24, 39, 0.09);
    border-radius: 50%;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    background: #ffffff;
}

.community-group-back:hover {
    color: var(--accent-soft);
    border-color: rgba(22, 163, 74, 0.22);
    background: #f0fdf4;
}

.community-group-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.community-group-summary > span {
    padding: 9px 12px;
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    background: #f9fafb;
}

.community-group-summary strong {
    color: var(--text-main);
}

.community-group-member-list {
    padding: 0;
}

.community-group-member-list .community-member-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: 66px;
    padding: 10px 12px;
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 14px;
    background: #ffffff;
}

.community-group-member-list .community-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.78rem;
}

.community-group-member-list .community-member-row > div {
    min-width: 0;
}

.community-group-member-list .community-member-row p {
    margin-top: 3px;
    overflow: hidden;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-group-member-list .community-member-row > span:last-child {
    color: var(--accent-soft);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.community-group-add-member {
    padding: 16px;
    border: 1px solid rgba(22, 163, 74, 0.14);
    border-radius: 16px;
    background: rgba(240, 253, 244, 0.52);
}

.community-group-add-member-actions .btn-compact {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 18px;
}

.community-group-add-member-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.community-button-secondary {
    border: 1px solid rgba(17, 24, 39, 0.12);
    color: var(--text-main);
    background: #ffffff;
}

.community-contact-body p {
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-empty {
    padding: 24px;
    border: 1px dashed rgba(22, 163, 74, 0.18);
    border-radius: 24px;
    color: var(--text-muted);
    text-align: center;
    background: rgba(240, 253, 244, 0.58);
}

.community-flash {
    margin-bottom: 18px;
}

.status-message.is-success {
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(209, 250, 229, 0.9);
}

.status-message.is-warning {
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(254, 243, 199, 0.95);
}

.status-message.is-danger {
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(254, 226, 226, 0.96);
}

@media (max-width: 900px) {
    .community-layout {
        grid-template-columns: 1fr;
    }

    .home-community-chip-list {
        align-items: flex-start;
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .settings-account-grid {
        grid-template-columns: 1fr;
    }

    .settings-memorial-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-memorial-actions .btn-compact {
        width: 100%;
    }

    .community-panel-header,
    .community-card-head,
    .community-member-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .community-inline-form {
        width: 100%;
    }

    .community-directory-toolbar {
        min-height: 68px;
        padding: 0 14px;
    }

    .community-tabs {
        gap: 14px;
    }

    .community-tab {
        gap: 6px;
        font-size: 0.88rem;
    }

    .community-primary-action {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
    }

    .community-primary-action:not(.is-icon-only)::before {
        content: '+';
        font-size: 1.45rem;
        line-height: 1;
    }

    .community-primary-action.is-icon-only::before {
        content: none;
    }

    .community-composer {
        margin: 14px 14px 0;
        padding: 18px;
    }

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

    .community-install-suggestion {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .community-install-suggestion-actions {
        flex-wrap: wrap;
    }

    .community-directory-content {
        padding: 4px 14px 10px;
    }

    .community-contact-row {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        min-height: 76px;
    }

    .community-activity-summary {
        align-items: flex-start;
        padding: 14px;
    }

    .community-activity-row {
        grid-template-columns: 42px minmax(0, 1fr);
        min-height: 0;
        padding: 13px;
    }

    .community-daily-stat {
        grid-column: 2;
        display: flex;
        align-items: baseline;
        justify-self: start;
        gap: 5px;
        min-width: 0;
        padding: 7px 10px;
    }

    .community-daily-stat strong {
        font-size: 1.05rem;
    }

    .community-daily-stat span {
        margin-top: 0;
    }

    .community-group-detail-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .community-group-detail-head .community-badge {
        grid-column: 2;
        justify-self: start;
    }

    .community-group-member-list .community-member-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .community-group-member-list .community-member-row > span:last-child {
        grid-column: 2;
        justify-self: start;
    }

    .community-group-add-member {
        align-items: stretch;
        flex-direction: column;
    }

    .community-group-add-member .btn-compact {
        width: 100%;
    }

    .community-group-add-member-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .community-contact-row .community-avatar {
        width: 42px;
        height: 42px;
    }

    .community-composer-actions .btn-compact {
        flex: 1 1 0;
    }
}

.page-user-management {
    padding-top: 8px;
}

.management-hero {
    padding-bottom: 8px;
}

.management-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.management-search-field {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 0;
    color: var(--text-main);
    font-size: 0.84rem;
    font-weight: 700;
}

.management-search-input {
    min-height: 42px;
    border-radius: 14px;
}

.management-search-button,
.management-clear-search {
    flex: 0 0 auto;
    min-height: 42px;
    padding-inline: 20px;
}

.management-search-button {
    min-width: 92px;
}

.management-clear-search {
    min-width: 154px;
    color: var(--text-muted);
    border: 1px solid var(--line);
    background: #ffffff;
}

.management-clear-search:hover {
    color: #166534;
    border-color: #86efac;
    background: #f0fdf4;
}

.managed-user-table-wrap {
    max-height: min(62vh, 680px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
}

.managed-user-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    color: var(--text-main);
}

.managed-col-name {
    width: 19%;
}

.managed-col-phone {
    width: 15%;
}

.managed-col-status {
    width: 16%;
}

.managed-col-date,
.managed-col-login {
    width: 16%;
}

.managed-col-actions {
    width: 18%;
}

.managed-user-table th,
.managed-user-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.managed-user-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #166534;
    background: #eef9f2;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.managed-user-table tbody tr:last-child td {
    border-bottom: 0;
}

.managed-user-table tbody tr:hover {
    background: #f8fcf9;
}

.managed-date-cell {
    min-width: 0;
    white-space: normal;
}

.managed-status,
.managed-owner-note {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.managed-status.is-active,
.managed-owner-note {
    color: #166534;
    background: #dcfce7;
}

.managed-status.is-warning {
    color: #92400e;
    background: #fef3c7;
}

.managed-status.is-danger {
    color: #991b1b;
    background: #fee2e2;
}

.managed-status.is-reset {
    color: #7c2d12;
    background: #ffedd5;
}

.managed-user-table tr.has-reset-request {
    background: linear-gradient(90deg, #fff7ed, #ffffff 72%);
}

.managed-user-table tr.has-reset-request:hover {
    background: linear-gradient(90deg, #ffedd5, #fffaf5 72%);
}

.managed-reset-request {
    display: block;
    margin-top: 5px;
    color: #9a3412;
    font-size: 0.72rem;
    white-space: nowrap;
}

.managed-reset-request b {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.05em;
}

.managed-table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.managed-table-actions .managed-icon-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
}

.managed-icon-action svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.managed-account-status-button {
    color: #ffffff;
}

.managed-account-status-button.is-activate {
    background: #15803d;
    box-shadow: 0 8px 18px rgba(21, 128, 61, 0.16);
}

.managed-account-status-button.is-suspend {
    color: #92400e;
    border: 1px solid #fcd34d;
    background: #fffbeb;
}

.managed-process-reset-button {
    background: #c2410c;
    box-shadow: 0 8px 18px rgba(194, 65, 12, 0.18);
}

.managed-user-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
}

.managed-user-pagination p,
.managed-pagination-actions span {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.managed-pagination-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.managed-pagination-button {
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.12rem;
    line-height: 1;
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.18);
    background: #f0fdf4;
}

.managed-pagination-button:disabled {
    color: #9ca3af;
    border-color: var(--line);
    cursor: not-allowed;
    background: #f9fafb;
    box-shadow: none;
}

.auth-gate-logout {
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    background: #ffffff;
}

.auth-gate-logout:hover {
    color: #166534;
    border-color: #86efac;
    background: #f0fdf4;
}

.managed-delete-button {
    flex: 0 0 auto;
    color: #ffffff;
    background: #b91c1c;
    box-shadow: 0 10px 22px rgba(185, 28, 28, 0.16);
}

.managed-delete-button:hover {
    background: #991b1b;
}

@media (max-width: 1000px) {
    .auth-gate-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-gate-intro {
        min-height: 420px;
        border-radius: 22px 22px 8px 8px;
    }

    .auth-gate-panel {
        margin: 0 10px 10px;
        border-radius: 8px 8px 22px 22px;
    }
}

@media (max-width: 720px) {
    .auth-gate-card {
        border-radius: 28px;
    }

    .auth-gate-intro {
        min-height: 380px;
        padding: 32px 24px;
    }

    .auth-gate-intro::before {
        top: -150px;
        right: -150px;
        left: auto;
    }

    .auth-gate-calligraphy {
        top: 22px;
        right: 20px;
        width: 140px;
    }

    .auth-gate-panel {
        margin: 0;
        padding: 28px 22px;
    }

    .auth-gate-title {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .managed-user-table-wrap {
        max-height: none;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .managed-user-table,
    .managed-user-table tbody {
        display: block;
    }

    .managed-user-table colgroup,
    .managed-user-table thead {
        display: none;
    }

    .managed-user-table tr {
        display: block;
        margin-bottom: 12px;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #ffffff;
    }

    .managed-user-table tr:last-child {
        margin-bottom: 0;
    }

    .managed-user-table th,
    .managed-user-table td {
        display: grid;
        grid-template-columns: minmax(106px, 0.8fr) minmax(0, 1.2fr);
        gap: 12px;
        align-items: center;
        width: 100%;
        padding: 10px 14px;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .managed-user-table td::before {
        content: attr(data-label);
        color: #166534;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-align: left;
        text-transform: uppercase;
    }

    .managed-user-table td > strong,
    .managed-user-table td > .managed-status,
    .managed-user-table td > .managed-owner-note,
    .managed-user-table td > .managed-table-actions {
        justify-self: end;
    }

    .managed-reset-request {
        grid-column: 2;
    }

    .managed-table-actions {
        justify-content: flex-end;
    }

    .management-toolbar,
    .managed-user-pagination,
    .managed-pagination-actions {
        align-items: stretch;
    }

    .management-search-button,
    .management-clear-search {
        flex: 1 1 auto;
        min-width: 0;
    }

    .managed-user-pagination {
        flex-direction: column;
    }

    .managed-pagination-actions {
        width: 100%;
    }

    .managed-pagination-actions .managed-pagination-button {
        flex: 0 0 38px;
    }
}
