:root {
    --green: #184c47;
    --green-dark: #0c302c;
    --blue: #59a5d7;
    --orange: #ff702e;
    --pink: #d48fbe;
    --yellow: #efc43c;
    --ink: #15201f;
    --muted: #6b7280;
    --line: #e7eceb;
    --soft: #f6f8f7;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(12, 48, 44, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--ink);
    background: #f4f7f6;
}

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

.page-shell {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 90px;
}

.background-orb {
    position: fixed;
    border-radius: 999px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
    contain: strict;
}

.background-orb-one {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(89, 165, 215, 0.55) 0%, rgba(89, 165, 215, 0) 72%);
    top: -160px;
    right: -120px;
}

.background-orb-two {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(212, 143, 190, 0.5) 0%, rgba(212, 143, 190, 0) 72%);
    bottom: 80px;
    left: -140px;
}

.hero-section,
.main-container,
.footer {
    position: relative;
    z-index: 1;
}

.hero-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 18px;
    width: 100%;
    min-width: 0;
}

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

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.live-clock {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 8px 12px 8px 9px;
    box-shadow: 0 10px 30px rgba(12, 48, 44, 0.06);
}

.live-clock-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f3faf9 0%, #e8f3f1 100%);
    border: 1px solid rgba(24, 76, 71, 0.08);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.live-clock-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.live-clock-time {
    display: block;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--green-dark);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.live-clock-meta {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 400px) {
    .live-clock-meta {
        display: none;
    }
}

.brand-wrap > .brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.brand-salutation {
    margin: 0 0 5px;
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.brand-wrap h1 {
    margin: 0 0 4px;
    font-size: clamp(18px, 2.8vw, 28px);
    letter-spacing: -0.045em;
    line-height: 1.1;
    color: var(--green-dark);
}

.brand-academic-year {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(12, 48, 44, 0.08);
}

.hero-card {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr;
    gap: 18px;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(24, 76, 71, 0.98), rgba(12, 48, 44, 0.96));
    border-radius: 32px;
    padding: 28px;
    box-shadow: var(--shadow);
    color: white;
    overflow: hidden;
    position: relative;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    right: -260px;
    top: -220px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 18px;
}

.hero-copy h2,
.hero-welcome-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.06em;
    max-width: 720px;
}

.hero-welcome-title {
    display: block;
    line-height: 1.22;
}

.welcome-rotator {
    display: inline-block;
    max-width: 100%;
}

.welcome-viewport {
    display: inline-grid;
    align-items: end;
    overflow: hidden;
    max-width: 100%;
    vertical-align: bottom;
    line-height: 1.22;
    padding-bottom: 0.14em;
}

.welcome-text {
    grid-area: 1 / 1;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.22;
    padding-bottom: 0.1em;
    white-space: nowrap;
    color: #ffffff;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.welcome-text.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.welcome-text.is-leaving {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
}

@media (prefers-reduced-motion: reduce) {
    .welcome-text {
        transition: none;
        transform: none;
    }
}

.hero-copy p {
    max-width: 580px;
    margin: 0px 0 24px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.global-search {
    max-width: 680px;
    height: 58px;
    background: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    color: var(--muted);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.14);
}

.global-search input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    font: inherit;
    color: var(--ink);
    font-weight: 700;
    background: transparent;
}

.global-search input::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.global-search-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
}

.global-search-shortcut kbd {
    min-width: 22px;
    height: 24px;
    padding: 0 7px;
    border-radius: 8px;
    background: #f1f5f4;
    color: #64748b;
    border: 1px solid #dfe8e6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.85);
}

.global-search-shortcut-mod {
    min-width: auto;
    padding: 0 8px;
}

.global-search-shortcut.hidden,
.global-search-shortcut.is-hidden-touch {
    display: none;
}

.global-search:focus-within .global-search-shortcut {
    opacity: 0.45;
}

.hero-mascot-card {
    position: relative;
    z-index: 1;
    --mascot-accent: #F15A24;
    --mascot-accent-2: #41B6E6;
    background:
        radial-gradient(circle at 84% 82%, color-mix(in srgb, var(--mascot-accent) 30%, transparent), transparent 52%),
        radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--mascot-accent-2) 14%, transparent), transparent 42%),
        linear-gradient(160deg, color-mix(in srgb, var(--mascot-accent) 12%, rgba(255, 255, 255, 0.1)), rgba(255, 255, 255, 0.05));
    border: 1px solid color-mix(in srgb, var(--mascot-accent) 26%, rgba(255, 255, 255, 0.16));
    border-radius: 26px;
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0;
    overflow: hidden;
    min-height: 250px;
    isolation: isolate;
    transition:
        background 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.mascot-watermark {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 1;
    color: color-mix(in srgb, var(--mascot-accent) 18%, rgba(255, 255, 255, 0.12));
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.08em;
    pointer-events: none;
    user-select: none;
    transition: color 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.mascot-media-viewport {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 38%;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
}

.mascot-glow {
    position: absolute;
    right: 8px;
    bottom: 10px;
    width: 168px;
    height: 168px;
    border-radius: 999px;
    background: radial-gradient(circle, color-mix(in srgb, var(--mascot-accent) 34%, transparent) 0%, transparent 72%);
    transform: scale(1);
    transition: background 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.hero-mascot {
    position: absolute;
    right: 6px;
    bottom: 2px;
    width: 168px;
    height: auto;
    max-height: 196px;
    object-fit: contain;
    object-position: right bottom;
    opacity: 0;
    filter: drop-shadow(0 16px 28px color-mix(in srgb, var(--mascot-accent) 28%, rgba(0, 0, 0, 0.22)));
    transform: translate3d(16px, 10px, 0) scale(1.04);
    transition:
        opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.hero-mascot.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.hero-mascot.is-leaving {
    opacity: 0;
    transform: translate3d(-12px, 8px, 0) scale(0.95);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

.mascot-copy {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 148px;
    justify-content: flex-end;
    max-width: 62%;
    padding-right: 8px;
}

.mascot-copy-viewport {
    display: grid;
    align-items: end;
    overflow: hidden;
    min-height: 132px;
    padding: 6px 0 6px 12px;
    margin-left: -12px;
}

.mascot-slide {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.mascot-slide.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.mascot-slide.is-leaving {
    opacity: 0;
    transform: translate3d(0, -14px, 0);
}

.mascot-slide.is-entering .mascot-title,
.mascot-slide.is-entering .mascot-tagline,
.mascot-slide.is-entering .mascot-text {
    animation: mascotLineIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mascot-slide.is-entering .mascot-tagline {
    animation-delay: 0.08s;
}

.mascot-slide.is-entering .mascot-text {
    animation-delay: 0.16s;
}

@keyframes mascotLineIn {
    from {
        opacity: 0;
        transform: translate3d(0, 12px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.mascot-title {
    margin: 0 0 4px;
    font-weight: 900;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
}

.mascot-title::before {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    background: var(--mascot-accent);
    border-radius: 999px;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--mascot-accent) 22%, transparent);
    transition:
        background 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.mascot-tagline {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mascot-accent-2);
    transition: color 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.mascot-text {
    margin: 0;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.62;
    font-size: 13px;
}

.mascot-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    margin-left: -12px;
}

.mascot-dot {
    position: relative;
    width: 28px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, background 0.25s ease;
}

.mascot-dot::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, var(--mascot-accent), var(--mascot-accent-2));
    border-radius: inherit;
    transition: width 0.25s ease;
}

.mascot-dot.is-active {
    background: color-mix(in srgb, var(--mascot-accent) 22%, rgba(255, 255, 255, 0.18));
}

.mascot-dot.is-active::after {
    width: 100%;
    animation: mascotDotProgress 5.6s linear forwards;
}

.mascot-dot:hover {
    transform: scaleY(1.35);
}

@keyframes mascotDotProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mascot,
    .mascot-slide,
    .mascot-dot::after {
        transition: none;
        animation: none;
    }

    .mascot-slide.is-entering .mascot-title,
    .mascot-slide.is-entering .mascot-tagline,
    .mascot-slide.is-entering .mascot-text {
        animation: none;
    }
}

.main-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 34px;
    width: 100%;
    min-width: 0;
}

.section-block,
.attendance-summary,
.announcement-card {
    background: #ffffff;
    border: 1px solid rgba(231, 236, 235, 0.92);
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(12, 48, 44, 0.06);
    min-width: 0;
    max-width: 100%;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.section-heading.compact {
    align-items: center;
}

.section-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(19px, 3vw, 25px);
    letter-spacing: -0.04em;
    color: var(--green-dark);
    max-width: 640px;
    line-height: 1.25;
}

.section-heading-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.module-catalog-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef7f6;
    border: 1px solid rgba(24, 76, 71, 0.12);
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.module-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 7px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.module-status--soon {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.module-arrow--external {
    color: #64748b;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.quick-card {
    min-width: 0;
    max-width: 100%;
    min-height: 128px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 22px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: 0.25s ease;
}

.quick-card:hover,
.module-card:hover {
    transform: translateY(-4px);
    border-color: rgba(24, 76, 71, 0.25);
    box-shadow: 0 18px 45px rgba(12, 48, 44, 0.09);
}

.quick-icon,
.module-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #eef7f6;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.quick-card strong,
.module-card strong {
    display: block;
    font-size: 15px;
    color: var(--ink);
}

.quick-card small,
.module-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
    font-weight: 600;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.quick-card > span:not(.quick-icon) {
    flex: 1;
    min-width: 0;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.kpi-card {
    min-height: 155px;
    border-radius: 26px;
    background: white;
    border: 1px solid var(--line);
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(12, 48, 44, 0.05);
}

.kpi-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
}

.kpi-blue::before {
    background: var(--blue);
}

.kpi-orange::before {
    background: var(--orange);
}

.kpi-pink::before {
    background: var(--pink);
}

.kpi-yellow::before {
    background: var(--yellow);
}

.kpi-mascot {
    position: absolute;
    right: -18px;
    bottom: -22px;
    width: 128px;
    opacity: 0.18;
    transition: 0.35s ease;
}

.kpi-card:hover .kpi-mascot {
    opacity: 0.34;
    transform: scale(1.06);
}

.kpi-card p,
.kpi-card h3,
.kpi-card > span:not(.kpi-tag) {
    position: relative;
    z-index: 1;
}

.kpi-card p {
    margin: 0;
    font-size: 12px;
    color: var(--green);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.kpi-card h3 {
    margin: 9px 0 2px;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--green-dark);
}

.kpi-card > span:not(.kpi-tag) {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.today-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.75fr;
    gap: 18px;
    margin-bottom: 18px;
    align-items: start;
}

@media (min-width: 1025px) {
    .today-grid > .attendance-summary,
    .today-grid > .announcement-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .today-grid > .announcement-card {
        overflow: hidden;
    }

    .today-grid .announcement-compact {
        padding: 18px 20px 20px;
    }

    .today-grid .announcement-carousel {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .today-grid .announcement-carousel-viewport {
        flex: 0 0 auto;
        overflow: hidden;
    }

    .today-grid .announcement-carousel-track {
        gap: 10px;
    }

    .today-grid .announcement-carousel .announcement-item {
        min-height: 0;
        padding: 14px;
        gap: 12px;
        border-radius: 18px;
        align-items: flex-start;
        overflow: hidden;
    }

    .today-grid .announcement-carousel .announcement-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
        border-radius: 14px;
    }

    .today-grid .announcement-carousel .announcement-item strong {
        font-size: 14px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .today-grid .announcement-carousel .announcement-meta {
        margin: 4px 0 0;
        font-size: 12px;
        line-height: 1.45;
        font-weight: 700;
        color: var(--muted);
    }

    .today-grid .announcement-carousel .announcement-meta:first-of-type {
        margin-top: 5px;
    }

    .today-grid .announcement-carousel .announcement-badge {
        margin-bottom: 5px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .today-grid .announcement-carousel .announcement-item small,
    .today-grid .announcement-carousel .announcement-visibility {
        display: none;
    }
}

.privacy-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green);
    background: #eef7f6;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 900;
}

.attendance-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--green);
    color: white;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 14px;
}

.attendance-total p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 700;
}

.attendance-total h3 {
    margin: 6px 0 0;
    font-size: 44px;
    letter-spacing: -0.06em;
}

.attendance-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

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

.presence-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 20px;
    padding: 14px;
}

.presence-card strong {
    display: block;
    color: var(--green-dark);
    font-size: 16px;
}

.presence-card span {
    display: inline-flex;
    margin-top: 10px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
}

.presence-good span {
    color: #047857;
    background: #d1fae5;
}

.presence-warning span {
    color: #b45309;
    background: #fef3c7;
}

.presence-critical span {
    color: #be123c;
    background: #ffe4e6;
}

.presence-bar {
    height: 8px;
    background: #edf2f1;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}

.presence-bar div {
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.presence-skeleton {
    grid-column: 1 / -1;
    color: var(--muted);
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 18px;
    font-weight: 700;
    text-align: center;
}

.announcement-content {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff8ec;
    border: 1px solid #fde8c2;
    border-radius: 22px;
    padding: 16px;
}

.announcement-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: #ffedd5;
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-content strong {
    color: var(--green-dark);
}

.announcement-content p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 13px;
    font-weight: 600;
}

.module-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding-bottom: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.module-filter-bar::-webkit-scrollbar {
    display: none;
}

.module-filter-chip {
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: #ffffff;
    color: #64748b;
    border-radius: 999px;
    padding: 9px 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.module-filter-chip:hover {
    border-color: rgba(24, 76, 71, 0.22);
    color: var(--green-dark);
}

.module-filter-chip.is-active {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(12, 48, 44, 0.14);
}

.module-filter-chip:focus-visible {
    outline: 2px solid rgba(24, 76, 71, 0.28);
    outline-offset: 2px;
}

.module-group.is-filter-hidden {
    display: none;
}

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

.module-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8faf9 0%, #f1f5f4 100%);
    border: 1px solid rgba(231, 236, 235, 0.95);
}

.module-view-btn {
    width: 36px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.module-view-btn:hover {
    color: var(--green-dark);
}

.module-view-btn.is-active {
    background: #ffffff;
    color: var(--green-dark);
    box-shadow: 0 6px 16px rgba(12, 48, 44, 0.08);
}

.module-view-btn:focus-visible {
    outline: 2px solid rgba(24, 76, 71, 0.28);
    outline-offset: 2px;
}

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

.module-groups--list .module-card {
    min-height: 84px;
}

.module-group-toggle {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.module-group-toggle:focus-visible {
    outline: 2px solid rgba(24, 76, 71, 0.24);
    outline-offset: 4px;
    border-radius: 12px;
}

.module-group-heading {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.module-group-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.module-group-title-row strong {
    color: var(--green-dark);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.module-group-desc {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    max-width: 620px;
}

.module-group-count {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.module-group-chevron {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.module-group.is-collapsed .module-group-chevron {
    transform: rotate(-90deg);
}

.module-group.is-collapsed .module-group-body {
    display: none;
}

.module-group.is-collapsed .module-group-toggle {
    margin-bottom: 0;
}

.module-status--frequent {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.module-groups {
    display: grid;
    gap: 18px;
}

.module-group {
    border: 1px solid var(--line);
    background: #fbfdfc;
    border-radius: 24px;
    padding: 18px;
}

.module-group-body {
    position: relative;
    z-index: 1;
}

.search-result-info {
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.module-card {
    position: relative;
    min-width: 0;
    max-width: 100%;
    min-height: 100px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 20px;
    padding: 16px 44px 16px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition:
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.module-card .module-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 21px;
    flex-shrink: 0;
}

.module-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    margin-top: -7px;
    color: #a3afad;
    font-size: 14px;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .module-card .module-arrow {
        opacity: 0;
        transform: translate(4px, 4px);
    }

    .module-card:hover .module-arrow,
    .module-card:focus-within .module-arrow {
        opacity: 1;
        transform: translate(0, 0);
    }

    .module-card.is-external:hover .module-arrow--external {
        color: #64748b;
    }
}

@media (hover: none) {
    .module-card .module-arrow {
        opacity: 1;
        transform: none;
    }
}

.hidden {
    display: none !important;
}

.no-result {
    padding: 24px;
    border-radius: 22px;
    border: 1px dashed var(--line);
    color: var(--muted);
    background: white;
    font-weight: 800;
    text-align: center;
}

.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 48, 44, 0.98);
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.footer div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

.help-button {
    position: fixed;
    z-index: 60;
    right: 22px;
    bottom: 88px;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 20px;
    color: white;
    background: var(--orange);
    box-shadow: 0 18px 40px rgba(255, 112, 46, 0.28);
    font-size: 20px;
    cursor: pointer;
}

.chat-box {
    position: fixed;
    z-index: 70;
    right: 22px;
    left: 22px;
    bottom: 154px;
    width: auto;
    max-width: 340px;
    margin-left: auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.chat-header {
    background: var(--green);
    color: white;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header button {
    background: transparent;
    border: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chat-body {
    padding: 16px;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .today-grid,
    .hero-card {
        grid-template-columns: 1fr;
    }

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

    .hero-mascot-card {
        min-height: 170px;
    }
}

@media (max-width: 640px) {
    .hero-section,
    .main-container {
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
    }

    .topbar {
        align-items: center;
        flex-direction: row;
    }

    .live-clock {
        padding: 7px 10px 7px 8px;
        gap: 8px;
        border-radius: 14px;
    }

    .live-clock-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-radius: 10px;
    }

    .live-clock-time {
        font-size: 15px;
    }

    .live-clock-meta {
        font-size: 10px;
        max-width: 108px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-wrap h1 {
        font-size: clamp(17px, 4.4vw, 22px);
    }

    .hero-card {
        padding: 20px;
        border-radius: 24px;
    }

    .global-search {
        height: 54px;
        border-radius: 16px;
    }

    .quick-grid,
    .kpi-grid,
    .module-grid,
    .presence-status-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-block,
    .attendance-summary,
    .announcement-card {
        border-radius: 22px;
        padding: 16px;
    }

    .footer {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 20px;
    }

    .page-shell {
        padding-bottom: 0;
    }

    .help-button {
        bottom: 24px;
    }

    .chat-box {
        bottom: 92px;
    }
}

.presence-card {
    min-height: 156px;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 22px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.presence-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.07;
    pointer-events: none;
}

.presence-good::before {
    background: #10b981;
}

.presence-warning::before {
    background: #f59e0b;
}

.presence-critical::before {
    background: #ef4444;
}

.presence-top,
.presence-footer,
.presence-bar {
    position: relative;
    z-index: 1;
}

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

.presence-top strong {
    display: block;
    color: var(--green-dark);
    font-size: 20px;
    letter-spacing: -0.04em;
}

.presence-top small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.presence-score {
    min-width: 58px;
    height: 42px;
    border-radius: 15px;
    background: #f4f7f6;
    color: var(--green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.presence-bar {
    height: 9px;
    background: #edf2f1;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 22px;
}

.presence-bar div {
    height: 100%;
    border-radius: inherit;
    transition: width 0.8s ease;
}

.presence-good .presence-bar div {
    background: linear-gradient(90deg, #059669, #34d399);
}

.presence-warning .presence-bar div {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.presence-critical .presence-bar div {
    background: linear-gradient(90deg, #be123c, #fb7185);
}

.presence-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.presence-footer span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 900;
}

.presence-good .presence-footer span {
    color: #047857;
    background: #d1fae5;
}

.presence-warning .presence-footer span {
    color: #b45309;
    background: #fef3c7;
}

.presence-critical .presence-footer span {
    color: #be123c;
    background: #ffe4e6;
}

.presence-footer small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

@media (max-width: 640px) {
    .presence-card {
        min-height: 138px;
    }

    .presence-top strong {
        font-size: 18px;
    }

    .presence-score {
        height: 38px;
        min-width: 54px;
        font-size: 16px;
    }
}

.quick-card,
.module-group,
.module-card {
    isolation: isolate;
}

.quick-card {
    position: relative;
    overflow: hidden;
}

.quick-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    z-index: -1;
    transition: opacity 0.25s ease;
}

.quick-card::after {
    content: "";
    position: absolute;
    width: 82px;
    height: 82px;
    right: -34px;
    bottom: -34px;
    border-radius: 999px;
    opacity: 0.14;
    transition: 0.25s ease;
}

.quick-card:hover::before {
    opacity: 0.14;
}

.quick-card:hover::after {
    transform: scale(1.28);
    opacity: 0.22;
}

.module-group {
    position: relative;
    overflow: hidden;
}

.module-group::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 5px;
    border-radius: 999px;
}

.module-group::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -90px;
    top: -90px;
    border-radius: 999px;
    opacity: 0.06;
    pointer-events: none;
}

.module-card {
    overflow: hidden;
}

.module-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.25s ease;
}

.module-card:hover::before {
    opacity: 0.08;
}

.tone-green.quick-card::before,
.tone-green.module-card::before,
.tone-green.module-group::after {
    background: #184c47;
}

.tone-green.quick-card::after,
.tone-green.module-group::before,
.tone-green .module-icon,
.tone-green .quick-icon {
    background: #184c47;
    color: #ffffff;
}

.tone-blue.quick-card::before,
.tone-blue.module-card::before,
.tone-blue.module-group::after {
    background: #59a5d7;
}

.tone-blue.quick-card::after,
.tone-blue.module-group::before,
.tone-blue .module-icon,
.tone-blue .quick-icon {
    background: #59a5d7;
    color: #ffffff;
}

.tone-orange.quick-card::before,
.tone-orange.module-card::before,
.tone-orange.module-group::after {
    background: #ff702e;
}

.tone-orange.quick-card::after,
.tone-orange.module-group::before,
.tone-orange .module-icon,
.tone-orange .quick-icon {
    background: #ff702e;
    color: #ffffff;
}

.tone-pink.quick-card::before,
.tone-pink.module-card::before,
.tone-pink.module-group::after {
    background: #d48fbe;
}

.tone-pink.quick-card::after,
.tone-pink.module-group::before,
.tone-pink .module-icon,
.tone-pink .quick-icon {
    background: #d48fbe;
    color: #ffffff;
}

.tone-yellow.quick-card::before,
.tone-yellow.module-card::before,
.tone-yellow.module-group::after {
    background: #efc43c;
}

.tone-yellow.quick-card::after,
.tone-yellow.module-group::before,
.tone-yellow .module-icon,
.tone-yellow .quick-icon {
    background: #efc43c;
    color: #184c47;
}

.tone-purple.quick-card::before,
.tone-purple.module-card::before,
.tone-purple.module-group::after {
    background: #6610f2;
}

.tone-purple.quick-card::after,
.tone-purple.module-group::before,
.tone-purple .module-icon,
.tone-purple .quick-icon {
    background: #6610f2;
    color: #ffffff;
}

.quick-card .quick-icon,
.module-card .module-icon {
    box-shadow: 0 10px 24px rgba(12, 48, 44, 0.12);
}

.module-group .module-card:hover .module-arrow {
    color: var(--green-dark);
}

@media (max-width: 640px) {
    .module-group::before {
        top: 16px;
        bottom: auto;
        left: 18px;
        width: 42px;
        height: 4px;
    }

    .module-group-toggle {
        padding-top: 10px;
    }
}

.hero-section {
    padding-top: 22px;
}

.topbar {
    margin-bottom: 16px;
}

.hero-card {
    min-height: 320px;
    align-items: center;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.12) 0 2px, transparent 3px),
        radial-gradient(circle at 82% 74%, rgba(255, 255, 255, 0.10) 0 2px, transparent 3px);
    background-size: 46px 46px;
    opacity: 0.22;
    pointer-events: none;
}

.hero-copy h2 {
    max-width: 760px;
}

.hero-copy p {
    font-size: 15px;
}

.global-search {
    transition: 0.25s ease;
}

.global-search:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.brand-logo {
    transition: 0.25s ease;
}

.brand-wrap:hover .brand-logo {
    transform: rotate(-3deg) scale(1.03);
}

@media (max-width: 1024px) {
    .hero-card {
        min-height: auto;
    }

    .hero-mascot-card {
        min-height: 190px;
        padding: 20px 20px 18px;
    }

    .mascot-copy {
        max-width: 58%;
    }

    .mascot-media-viewport {
        left: 34%;
    }

    .hero-mascot {
        width: 154px;
        right: 4px;
        max-height: 176px;
    }

    .mascot-glow {
        width: 148px;
        height: 148px;
        right: 4px;
        bottom: 8px;
    }

    .mascot-copy {
        min-height: 132px;
    }

    .mascot-copy-viewport {
        min-height: 116px;
    }
}

@media (max-width: 640px) {
    .brand-logo {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .brand-wrap h1 {
        font-size: 16px;
        line-height: 1.15;
    }

    .brand-salutation {
        font-size: 13px;
    }

    .brand-academic-year {
        font-size: 11px;
    }

    .hero-copy h2 {
        font-size: 29px;
    }

    .hero-copy p {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .hero-badge {
        margin-bottom: 14px;
    }

    .hero-mascot-card {
        min-height: 168px;
        padding: 18px 18px 16px;
    }

    .mascot-copy {
        max-width: 64%;
        min-height: 118px;
        gap: 12px;
    }

    .mascot-media-viewport {
        left: 30%;
    }

    .hero-mascot {
        width: 132px;
        right: 0;
        bottom: 0;
        max-height: 154px;
    }

    .mascot-glow {
        width: 126px;
        height: 126px;
        right: 0;
        bottom: 6px;
    }

    .mascot-copy-viewport {
        min-height: 104px;
    }

    .mascot-text {
        font-size: 12px;
    }

    .mascot-tagline {
        font-size: 10px;
    }

    .mascot-watermark {
        font-size: 34px;
        top: 16px;
        right: 18px;
    }
}

.announcement-compact {
    padding: 20px;
}

.announcement-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 30px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-size: 11px;
    font-weight: 900;
}

.announcement-list,
.announcement-carousel {
    position: relative;
}

.announcement-carousel-viewport {
    overflow: hidden;
    position: relative;
}

.announcement-carousel-track {
    display: grid;
    gap: 12px;
    will-change: transform;
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.announcement-carousel.is-static .announcement-carousel-track {
    will-change: auto;
    transition: none;
}

.announcement-carousel .announcement-item {
    min-height: 118px;
}

@media (max-width: 1024px) {
    .announcement-carousel .announcement-item {
        min-height: 118px;
    }
}

.announcement-carousel .announcement-item--animate {
    animation: none;
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .announcement-carousel-track {
        transition: none !important;
    }
}

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

.announcement-empty {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    border: 1px dashed #e7ddd0;
    background: #fffaf5;
    text-align: center;
}

.announcement-empty strong {
    color: var(--green-dark);
    font-size: 14px;
}

.announcement-empty span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

@keyframes announcementSlideUp {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.announcement-item--animate {
    animation: announcementSlideUp 0.58s cubic-bezier(0.22, 1, 0.36, 1) var(--feed-delay, 0ms) both;
}

.announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #f1e7d8;
    position: relative;
    overflow: hidden;
}

.announcement-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ff702e;
    opacity: 0.045;
    pointer-events: none;
}

.announcement-item .announcement-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.announcement-item div {
    position: relative;
    z-index: 1;
}

.announcement-item strong {
    display: block;
    color: var(--green-dark);
    font-size: 14px;
    line-height: 1.35;
}

.announcement-item p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    font-weight: 700;
}

.announcement-item small {
    display: inline-flex;
    margin-top: 9px;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 900;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.announcement-item--notice .announcement-badge {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.announcement-item--agenda .announcement-badge {
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
}

.announcement-item.is-live .announcement-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
}

.announcement-visibility {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    margin-right: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.announcement-item--agenda {
    border-color: #dbeafe;
}

.announcement-item--agenda::before {
    background: #59a5d7;
    opacity: 0.06;
}

.announcement-item--agenda.is-live::before {
    opacity: 0.1;
}

.announcement-item--agenda .announcement-icon {
    background: #eff6ff;
    color: #2563eb;
}

.announcement-item--agenda.is-live .announcement-icon {
    background: #ecfdf5;
    color: #059669;
}

.agenda-orange::before { background: #ff702e; }
.agenda-pink::before { background: #d48fbe; }
.agenda-green::before { background: #16a34a; }
.agenda-blue::before { background: #59a5d7; }
.agenda-yellow::before { background: #efc43c; }
.agenda-purple::before { background: #9333ea; }

.agenda-orange .announcement-icon { background: #fff7ed; color: #ea580c; }
.agenda-pink .announcement-icon { background: #fdf2f8; color: #be185d; }
.agenda-green .announcement-icon { background: #ecfdf5; color: #047857; }
.agenda-blue .announcement-icon { background: #eff6ff; color: #2563eb; }
.agenda-yellow .announcement-icon { background: #fefce8; color: #a16207; }
.agenda-purple .announcement-icon { background: #faf5ff; color: #7e22ce; }

.announcement-item--agenda small {
    color: #475569;
    background: #f8fafc;
    border-color: #e2e8f0;
}

a.announcement-item {
    text-decoration: none;
    color: inherit;
}

a.announcement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(12, 48, 44, 0.08);
}

.footer {
    position: relative;
    margin-top: 28px;
    border-radius: 28px 28px 0 0;
}

.page-shell {
    padding-bottom: 0;
}

.help-button {
    bottom: 24px;
}

.chat-box {
    bottom: 92px;
}

@media (min-width: 641px) {
    .footer {
        max-width: 1180px;
        left: auto;
        right: auto;
        bottom: auto;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .announcement-compact {
        padding: 16px;
    }

    .announcement-item {
        padding: 13px;
        border-radius: 18px;
    }

    .announcement-count {
        min-width: auto;
        padding: 0 10px;
    }
}

.main-container {
    display: grid;
    gap: 18px;
}

.section-block,
.kpi-grid,
.today-grid {
    margin-top: 0;
    margin-bottom: 0;
}

.quick-card:active,
.module-card:active {
    transform: scale(0.985);
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading h2 {
    line-height: 1.18;
}

.kpi-grid {
    margin: 0;
}

.today-grid {
    margin-bottom: 0;
}

.module-groups {
    gap: 16px;
}

.module-group {
    padding: 17px;
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
}

.module-card {
    min-height: 92px;
}

.footer {
    margin-top: 18px;
}

@media (max-width: 1024px) {
    .main-container {
        gap: 16px;
    }

    .quick-card {
        min-height: 118px;
    }

    .kpi-card {
        min-height: 145px;
    }

    .module-card {
        min-height: 90px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 18px;
        padding-bottom: 14px;
    }

    .main-container {
        gap: 14px;
    }

    .section-block,
    .attendance-summary,
    .announcement-card {
        box-shadow: 0 12px 34px rgba(12, 48, 44, 0.05);
    }

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

    .quick-card {
        min-height: 112px;
        padding: 14px;
        border-radius: 20px;
    }

    .quick-icon,
    .module-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 17px;
    }

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

    .kpi-card {
        min-height: 134px;
        padding: 16px;
        border-radius: 22px;
    }

    .kpi-card h3 {
        font-size: 34px;
    }

    .kpi-card p {
        font-size: 10px;
    }

    .kpi-card > span:not(.kpi-tag) {
        font-size: 11px;
    }

    .kpi-mascot {
        width: 104px;
        right: -22px;
        bottom: -20px;
    }

    .today-grid {
        gap: 14px;
    }

    .attendance-total {
        border-radius: 21px;
        padding: 17px;
    }

    .attendance-total h3 {
        font-size: 38px;
    }

    .attendance-icon {
        width: 52px;
        height: 52px;
        border-radius: 18px;
    }

    .module-group {
        border-radius: 22px;
    }

    .module-group-title-row strong {
        font-size: 16px;
    }

    .module-group-desc {
        font-size: 12px;
    }

    .module-filter-chip {
        padding: 8px 12px;
        font-size: 11px;
    }

    .module-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .module-view-toggle {
        align-self: flex-end;
    }

    .module-grid {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    body {
        background: #f7faf9;
    }

    .hero-section,
    .main-container {
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }

    .brand-wrap {
        gap: 11px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-salutation {
        font-size: 12px;
    }

    .brand-academic-year {
        font-size: 10px;
    }

    .brand-wrap h1 {
        font-size: 15px;
    }

    .hero-card {
        padding: 18px;
        border-radius: 22px;
    }

    .hero-copy h2,
    .hero-welcome-title {
        font-size: 26px;
        letter-spacing: -0.055em;
        line-height: 1.22;
    }

    .hero-copy p {
        line-height: 1.6;
    }

    .global-search {
        height: 52px;
        padding: 0 15px;
    }

    .global-search input {
        font-size: 13px;
    }

    .hero-mascot-card {
        min-height: 152px;
        padding: 16px 16px 14px;
    }

    .mascot-copy {
        max-width: 68%;
        min-height: 108px;
    }

    .mascot-media-viewport {
        left: 28%;
    }

    .hero-mascot {
        width: 118px;
        max-height: 138px;
    }

    .mascot-glow {
        width: 112px;
        height: 112px;
    }

    .mascot-title {
        font-size: 16px;
    }

    .mascot-dot {
        width: 24px;
    }

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

    .quick-card {
        min-height: 82px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .quick-card strong {
        overflow-wrap: anywhere;
    }

    .quick-card::after {
        width: 70px;
        height: 70px;
    }

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

    .kpi-card {
        min-height: 118px;
    }

    .kpi-card h3 {
        font-size: 36px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .section-heading.compact {
        align-items: flex-start;
    }

    .section-heading-actions {
        align-items: flex-start;
        width: 100%;
    }

    .module-catalog-badge {
        font-size: 10px;
        min-height: 28px;
        padding: 0 10px;
    }

    .privacy-pill,
    .announcement-count,
    .search-result-info {
        font-size: 10px;
    }

    .attendance-total {
        align-items: flex-start;
    }

    .presence-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .presence-footer small {
        text-align: left;
    }

    .module-card {
        min-height: 84px;
        padding: 13px 38px 13px 13px;
        border-radius: 18px;
    }

    .module-card strong {
        font-size: 14px;
    }

    .module-card small {
        font-size: 11px;
    }

    .footer {
        border-radius: 22px 22px 0 0;
        padding: 14px 16px;
    }

    .help-button {
        right: 16px;
        bottom: 18px;
        width: 52px;
        height: 52px;
        border-radius: 18px;
    }

    .chat-box {
        right: 12px;
        left: 12px;
        bottom: 82px;
        max-width: none;
    }
}

.global-search {
    position: relative;
}

.clear-search {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: #eef2f1;
    color: var(--green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
    flex: 0 0 auto;
}

.clear-search:hover {
    background: #dfe8e6;
    transform: scale(1.04);
}

.search-hit {
    outline: 2px solid rgba(24, 76, 71, 0.22);
    outline-offset: 2px;
}

.quick-card.search-hit,
.module-card.search-hit {
    box-shadow: 0 20px 50px rgba(24, 76, 71, 0.13);
}

.search-group-hit {
    background: linear-gradient(135deg, rgba(24, 76, 71, 0.035), rgba(255, 255, 255, 0.96));
}

.no-result {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.no-result strong {
    color: var(--green-dark);
    font-size: 16px;
}

.no-result span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .clear-search {
        width: 32px;
        height: 32px;
        border-radius: 11px;
    }
}

.is-coming-soon {
    cursor: not-allowed;
}

.is-coming-soon strong,
.is-coming-soon small {
    opacity: 0.72;
}

.is-coming-soon .module-status--soon {
    opacity: 1;
}

.module-card.is-coming-soon .module-arrow {
    display: none;
}

.module-card.is-coming-soon::after {
    content: "\f023";
    font-family: "Font Awesome 6 Pro";
    position: absolute;
    right: 16px;
    top: 50%;
    margin-top: -7px;
    color: #9ca3af;
    font-size: 13px;
}

.mini-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 9999;
    transform: translate(-50%, 18px);
    opacity: 0;
    background: rgba(12, 48, 44, 0.96);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 18px 45px rgba(12, 48, 44, 0.24);
    transition: 0.22s ease;
    pointer-events: none;
}

.mini-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

@media (max-width: 480px) {
    .mini-toast {
        left: 16px;
        right: 16px;
        width: auto;
        transform: translateY(18px);
        text-align: center;
        border-radius: 18px;
    }

    .mini-toast.show {
        transform: translateY(0);
    }
}

.kpi-card {
    padding: 18px;
    min-height: 178px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -62px;
    top: -62px;
    border-radius: 999px;
    opacity: 0.08;
    background: currentColor;
    pointer-events: none;
}

.kpi-blue {
    color: #2563eb;
}

.kpi-orange {
    color: #ea580c;
}

.kpi-pink {
    color: #be185d;
}

.kpi-yellow {
    color: #b45309;
}

.kpi-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px rgba(12, 48, 44, 0.12);
    flex-shrink: 0;
}

.kpi-icon i {
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

.kpi-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(231, 236, 235, 0.92);
    color: var(--green-dark);
    padding: 0 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.kpi-card p {
    color: currentColor;
    margin-top: auto;
}

.kpi-card h3 {
    font-size: 46px;
    margin-top: 8px;
    margin-bottom: 5px;
    color: var(--green-dark);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.kpi-card > span:not(.kpi-tag) {
    color: #667572;
}

.kpi-mascot {
    width: 142px;
    opacity: 0.12;
    right: -18px;
    bottom: -24px;
    filter: saturate(0.95);
}

.kpi-card:hover .kpi-mascot {
    opacity: 0.24;
    transform: scale(1.08) rotate(-2deg);
}

.kpi-card:hover .kpi-icon {
    transform: translateY(-2px) rotate(-3deg);
}

.kpi-icon {
    transition: 0.25s ease;
}

@media (max-width: 768px) {
    .kpi-card {
        min-height: 154px;
    }

    .kpi-card h3 {
        font-size: 38px;
    }

    .kpi-mascot {
        width: 118px;
    }
}

@media (max-width: 480px) {
    .kpi-card {
        min-height: 132px;
    }

    .kpi-head {
        margin-bottom: 8px;
    }

    .kpi-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 20px;
    }

    .kpi-icon i {
        font-size: 20px;
    }

    .kpi-card h3 {
        font-size: 34px;
    }
}

.reveal-item {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

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

.reveal-item.is-visible.reveal-done {
    transition: none;
}

.quick-card,
.module-card,
.kpi-card,
.presence-card,
.announcement-item {
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background-color 0.28s ease;
}

.hero-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 80px rgba(12, 48, 44, 0.13);
}

.section-block:hover,
.attendance-summary:hover,
.announcement-card:hover {
    border-color: rgba(24, 76, 71, 0.16);
}

.module-group:hover {
    border-color: rgba(24, 76, 71, 0.18);
}

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

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}

.favorite-btn {
    position: absolute;
    right: 38px;
    top: 14px;
    z-index: 4;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 11px;
    background: #f4f7f6;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .module-card .favorite-btn {
        opacity: 0;
        visibility: hidden;
        transform: scale(0.88);
    }

    .module-card:hover .favorite-btn,
    .module-card:focus-within .favorite-btn,
    .module-card .favorite-btn.is-active,
    .module-card .favorite-btn:focus-visible {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
}

.favorite-btn:hover {
    background: #fff7ed;
    color: #f59e0b;
    transform: scale(1.06);
}

.favorite-btn.is-active {
    background: #fef3c7;
    color: #d97706;
}

.favorite-btn.is-active i {
    font-weight: 900;
}

.module-card.is-coming-soon .favorite-btn {
    right: 38px;
}

@media (max-width: 480px) {
    .favorite-btn {
        right: 36px;
        top: 13px;
        width: 28px;
        height: 28px;
        border-radius: 10px;
    }
}

.quick-source {
    display: inline-flex;
    width: fit-content;
    margin-top: 9px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
}

.quick-source-favorite {
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.quick-source-usage {
    color: #047857;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.quick-source-default {
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.quick-card em + .quick-source,
.quick-source + em {
    margin-left: 0;
}

.quick-action-buttons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 4px;
    background: linear-gradient(180deg, #f8faf9 0%, #f1f5f4 100%);
    border: 1px solid rgba(231, 236, 235, 0.95);
    border-radius: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.quick-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.quick-action-btn i {
    font-size: 13px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.quick-action-btn:hover {
    background: #ffffff;
    color: var(--green-dark);
    box-shadow: 0 6px 16px rgba(12, 48, 44, 0.08);
}

.quick-action-btn:hover i {
    color: var(--green);
}

.quick-action-btn:active {
    transform: scale(0.97);
}

.quick-action-btn:focus-visible {
    outline: 2px solid rgba(24, 76, 71, 0.28);
    outline-offset: 2px;
}

.quick-action-btn--accent:hover {
    color: #9a3412;
}

.quick-action-btn--accent:hover i {
    color: #ea580c;
}

@media (max-width: 768px) {
    .quick-action-buttons {
        align-self: flex-start;
    }
}

@media (max-width: 520px) {
    .quick-action-btn {
        min-width: 34px;
        padding: 0 10px;
    }

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

.command-open {
    overflow: hidden;
}

.command-palette {
    position: fixed;
    inset: 0;
    z-index: 9998;
}

.command-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(89, 165, 215, 0.18), transparent 36%),
        rgba(5, 18, 17, 0.62);
}

.command-dialog {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    margin: 7vh auto 0;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(231, 236, 235, 0.9);
    border-radius: 28px;
    box-shadow: 0 34px 100px rgba(5, 18, 17, 0.28);
    overflow: hidden;
    animation: commandDialogIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes commandDialogIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }

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

.command-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.command-search-wrap {
    flex: 1;
    height: 58px;
    border-radius: 19px;
    background: #f6f8f7;
    border: 1px solid #e7eceb;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    color: var(--green);
}

.command-search-wrap input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--green-dark);
    font: inherit;
    font-size: 16px;
    font-weight: 800;
}

.command-search-wrap input::placeholder {
    color: #9ca3af;
}

.command-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: #f4f7f6;
    color: var(--green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.22s ease;
}

.command-close:hover {
    background: #e8f0ee;
    transform: scale(1.04);
}

.command-body {
    padding: 22px;
}

.command-empty-intro {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #ffffff, #f7faf9);
    border-radius: 24px;
}

.command-empty-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--green);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 16px 34px rgba(12, 48, 44, 0.18);
    flex: 0 0 auto;
}

.command-empty-intro h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: 20px;
    letter-spacing: -0.04em;
}

.command-empty-intro p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
    font-weight: 700;
}

.command-empty-intro strong {
    color: var(--green-dark);
}

.command-hints {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.command-hints span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 9px;
}

.command-hints kbd {
    min-width: 22px;
    height: 21px;
    padding: 0 6px;
    border-radius: 7px;
    background: #eef2f1;
    color: var(--green-dark);
    border: 1px solid #d9e3e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 10px;
    font-weight: 900;
}

@media (max-width: 640px) {
    .command-dialog {
        margin-top: 4vh;
        border-radius: 24px;
    }

    .command-header {
        padding: 12px;
    }

    .command-search-wrap {
        height: 52px;
        border-radius: 17px;
    }

    .command-search-wrap input {
        font-size: 14px;
    }

    .command-body {
        padding: 14px;
    }

    .command-empty-intro {
        padding: 15px;
        border-radius: 20px;
    }

    .command-empty-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }
}

.command-results {
    display: grid;
    gap: 12px;
}

.command-result-group {
    display: grid;
    gap: 10px;
}

.command-result-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.command-result-title small {
    color: var(--muted);
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
}

.command-result-list {
    display: grid;
    gap: 8px;
}

.command-result-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 11px 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    transition: 0.2s ease;
}

.command-result-item:hover {
    transform: translateY(-2px);
    border-color: rgba(24, 76, 71, 0.22);
    box-shadow: 0 14px 34px rgba(12, 48, 44, 0.08);
}

.command-result-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #eef7f6;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.command-result-copy strong {
    display: block;
    color: var(--green-dark);
    font-size: 14px;
}

.command-result-copy small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.command-result-item em {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 9px;
    background: #eef7f6;
    color: var(--green);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.command-result-item.is-coming-soon {
    cursor: not-allowed;
}

.command-result-item.is-coming-soon em {
    background: #f3f4f6;
    color: #6b7280;
}

.command-empty-result {
    min-height: 190px;
    border: 1px dashed var(--line);
    border-radius: 22px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 24px;
}

.command-empty-result i {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #f4f7f6;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.command-empty-result strong {
    color: var(--green-dark);
    font-size: 16px;
}

.command-empty-result span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    max-width: 360px;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .command-result-item {
        grid-template-columns: 42px 1fr;
    }

    .command-result-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .command-result-item em {
        grid-column: 2;
        width: fit-content;
        margin-top: -2px;
    }
}

.command-result-item.is-selected {
    border-color: rgba(24, 76, 71, 0.34);
    background: #f3faf8;
    box-shadow: 0 16px 38px rgba(12, 48, 44, 0.10);
    transform: translateY(-1px);
}

.command-result-item.is-selected .command-result-icon {
    background: var(--green);
    color: #ffffff;
}

.command-result-item.is-selected em {
    background: var(--green);
    color: #ffffff;
}

.command-history {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.command-history-clear {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    padding: 4px 0;
}

.command-history-clear:hover {
    color: var(--green-dark);
}

.command-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.command-history-chip {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--green-dark);
    border-radius: 999px;
    padding: 8px 11px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.command-history-chip i {
    color: var(--muted);
}

.command-history-chip:hover {
    background: #eef7f6;
    border-color: rgba(24, 76, 71, 0.22);
    transform: translateY(-1px);
}

.command-result-copy mark {
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    padding: 0 4px;
    font-weight: 900;
}

.command-result-item.is-command-action .command-result-icon {
    background: #fff7ed;
    color: #ea580c;
}

.command-result-item.is-command-action em {
    background: #fff7ed;
    color: #c2410c;
}

.command-empty-smart span b {
    color: var(--green-dark);
}

.command-suggestion-wrap {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    width: 100%;
    max-width: 440px;
}

.command-suggestion-wrap small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.command-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.command-suggestion-chip {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--green-dark);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.command-suggestion-chip:hover {
    background: #eef7f6;
    border-color: rgba(24, 76, 71, 0.22);
    transform: translateY(-1px);
}

.command-dialog {
    max-height: 86vh;
    display: flex;
    flex-direction: column;
}

.command-body {
    overflow-y: auto;
    max-height: calc(86vh - 92px);
    scrollbar-width: thin;
    scrollbar-color: rgba(24, 76, 71, 0.28) transparent;
}

.command-body::-webkit-scrollbar {
    width: 8px;
}

.command-body::-webkit-scrollbar-track {
    background: transparent;
}

.command-body::-webkit-scrollbar-thumb {
    background: rgba(24, 76, 71, 0.22);
    border-radius: 999px;
}

.command-result-group + .command-result-group {
    margin-top: 16px;
}

.command-result-item {
    position: relative;
}

.command-result-item::after {
    content: "↵";
    position: absolute;
    right: 12px;
    bottom: 9px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 900;
    opacity: 0;
    transition: 0.2s ease;
}

.command-result-item.is-selected::after {
    opacity: 1;
}

.command-result-item.is-selected {
    outline: 2px solid rgba(24, 76, 71, 0.08);
    outline-offset: 2px;
}

.command-result-copy {
    min-width: 0;
}

.command-result-copy strong,
.command-result-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-hints {
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.96) 34%);
}

.command-search-wrap:focus-within {
    background: #ffffff;
    border-color: rgba(24, 76, 71, 0.32);
    box-shadow: 0 0 0 4px rgba(24, 76, 71, 0.06);
}

@media (max-width: 640px) {
    .command-dialog {
        width: calc(100vw - 20px);
        max-height: 92vh;
        margin-top: 10px;
    }

    .command-body {
        max-height: calc(92vh - 78px);
    }

    .command-result-copy strong,
    .command-result-copy small {
        white-space: normal;
    }

    .command-hints {
        gap: 6px;
    }

    .command-hints span {
        font-size: 10px;
        padding: 5px 8px;
    }

    .command-result-item::after {
        display: none;
    }
}