:root,
html[data-theme="light"] {
    --fe-bg: #e8eef5;
    --fe-bg-grad-1: #d9e6f5;
    --fe-bg-grad-2: #eef2f7;
    --fe-bg-grad-3: #f7f8fa;
    --fe-surface: rgba(255, 255, 255, 0.82);
    --fe-surface-solid: #ffffff;
    --fe-border: rgba(15, 35, 60, 0.08);
    --fe-text: #0b1220;
    --fe-muted: #5b6b7c;
    --fe-accent: #0071e3;
    --fe-accent-press: #0060c0;
    --fe-success: #1f9d55;
    --fe-warning: #c47a00;
    --fe-radius: 28px;
    --fe-shadow: 0 18px 40px rgba(15, 35, 60, 0.12);
    --fe-tile-shadow: 0 10px 24px rgba(15, 35, 60, 0.1);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    color-scheme: light;
}

html[data-theme="dark"] {
    --fe-bg: #0b1220;
    --fe-bg-grad-1: #121a2b;
    --fe-bg-grad-2: #0f1624;
    --fe-bg-grad-3: #0b1220;
    --fe-surface: rgba(28, 36, 52, 0.88);
    --fe-surface-solid: #1c2434;
    --fe-border: rgba(255, 255, 255, 0.08);
    --fe-text: #f3f6fb;
    --fe-muted: #9aa8bc;
    --fe-accent: #4da3ff;
    --fe-accent-press: #2f8fff;
    --fe-success: #34d399;
    --fe-warning: #fbbf24;
    --fe-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --fe-tile-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}

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

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

body.frontend {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--fe-text);
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, 0.55) 0%, transparent 55%),
        linear-gradient(165deg, var(--fe-bg-grad-1) 0%, var(--fe-bg-grad-2) 42%, var(--fe-bg-grad-3) 100%);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.25s ease, color 0.25s ease;
}

html[data-theme="dark"] body.frontend {
    background:
        radial-gradient(100% 70% at 50% -10%, rgba(77, 163, 255, 0.12) 0%, transparent 55%),
        linear-gradient(165deg, var(--fe-bg-grad-1) 0%, var(--fe-bg-grad-2) 45%, var(--fe-bg-grad-3) 100%);
}

.fe-shell {
    min-height: 100dvh;
    max-width: 430px;
    margin: 0 auto;
    padding:
        calc(20px + var(--safe-top))
        20px
        calc(24px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
}

.fe-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    animation: fe-rise 0.55s ease both;
}

.fe-home-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    animation: fe-rise 0.45s ease both;
}

.fe-brand-compact {
    margin-bottom: 0;
}

.fe-theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--fe-border);
    background: var(--fe-surface);
    color: var(--fe-text);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 35, 60, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.15s ease, background 0.2s ease;
}

.fe-theme-toggle:active {
    transform: scale(0.94);
}

.fe-home-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding-bottom: 24px;
}

.fe-day-simple {
    text-align: center;
    animation: fe-rise 0.55s ease 0.05s both;
}

.fe-day-simple-date {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fe-muted);
    letter-spacing: -0.02em;
}

.fe-day-simple-time {
    margin: 8px 0 0;
    font-size: 3.2rem;
    font-weight: 720;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.fe-day-simple-zone {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--fe-muted);
    vertical-align: middle;
    letter-spacing: 0.04em;
}

.fe-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    animation: fe-rise 0.65s ease 0.1s both;
}

.fe-icon-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 14px;
    max-width: 280px;
    margin: 0 auto;
}

.fe-icon-grid-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
    max-width: 340px;
    margin: 0 auto;
}

.fe-icon-grid-5 .fe-icon-tile:nth-child(4) {
    grid-column: 1;
}

.fe-icon-grid-5 .fe-icon-tile:nth-child(5) {
    grid-column: 2;
}

.fe-icon-grid-6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
    max-width: 340px;
    margin: 0 auto;
}

.fe-icon-grid-home {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
    max-width: 340px;
    margin: 0 auto;
}

.fe-icon-green {
    background: linear-gradient(160deg, #34c759 0%, #248a3d 100%);
}

.fe-icon-indigo {
    background: linear-gradient(160deg, #5e5ce6 0%, #3634a3 100%);
}

.fe-icon-amber {
    background: linear-gradient(160deg, #ff7a45 0%, #e85d04 100%);
}

.fe-icon-orange {
    background: linear-gradient(160deg, #ffd60a 0%, #ff9f0a 100%);
    color: #3d2e00;
}

.fe-nilai-materi {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: var(--fe-text);
    line-height: 1.35;
}

.fe-nilai-rata {
    margin: 0 0 10px;
    font-size: 0.8rem;
    color: var(--fe-muted);
}

.fe-nilai-score {
    background: rgba(52, 199, 89, 0.15) !important;
    color: #248a3d !important;
    min-width: 48px;
    text-align: center;
}

.fe-nilai-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fe-nilai-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fe-nilai-label {
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--fe-muted);
    min-width: 42px;
}

.fe-nilai-input {
    width: 110px;
    text-align: center;
    font-weight: 700;
}

.fe-materi-box {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 16px;
    background: var(--fe-card);
    box-shadow: var(--fe-tile-shadow);
}

.fe-materi-box .fe-input {
    width: 100%;
    margin-top: 6px;
}

.fe-materi-hint {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: var(--fe-muted);
    line-height: 1.35;
}

.fe-password-card {
    margin-top: 12px;
    padding: 22px 18px;
    border-radius: 18px;
    background: var(--fe-card);
    box-shadow: var(--fe-tile-shadow);
    text-align: center;
}

.fe-password-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.6rem;
    background: linear-gradient(160deg, #34c759 0%, #248a3d 100%);
}

.fe-password-desc {
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: var(--fe-muted);
    line-height: 1.4;
}

.fe-password-form {
    text-align: left;
}

.fe-password-field {
    position: relative;
}

.fe-password-field .fe-input {
    width: 100%;
    padding-right: 44px;
}

.fe-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--fe-muted);
    font-size: 1.15rem;
    padding: 4px;
    line-height: 1;
}

.fe-icon-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.fe-icon-tile:active .fe-icon-box {
    transform: scale(0.92);
}

.fe-icon-box {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.85rem;
    box-shadow: var(--fe-tile-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fe-icon-blue {
    background: linear-gradient(160deg, #5ac8fa 0%, #007aff 100%);
}

.fe-icon-teal {
    background: linear-gradient(160deg, #63e6be 0%, #20c997 100%);
}

.fe-icon-purple {
    background: linear-gradient(160deg, #bf5af2 0%, #8944ab 100%);
}

.fe-icon-label {
    font-size: 0.78rem;
    font-weight: 650;
    text-align: center;
    line-height: 1.25;
    color: var(--fe-text);
    max-width: 110px;
}

@media (max-width: 360px) {
    .fe-icon-box {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 1.6rem;
    }

    .fe-day-simple-time {
        font-size: 2.7rem;
    }
}

.fe-brand-logo,
.fe-brand-fallback {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.18);
}

.fe-brand-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0071e3, #3a9bff);
    color: #fff;
    font-size: 1.25rem;
}

.fe-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fe-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
}

.fe-brand-sub {
    margin: 0;
    font-size: 0.78rem;
    color: var(--fe-muted);
    font-weight: 500;
}

.fe-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.fe-day-panel {
    background: var(--fe-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius);
    padding: 28px 24px;
    box-shadow: var(--fe-shadow);
    text-align: center;
    animation: fe-rise 0.65s ease 0.05s both;
}

.fe-day-label {
    margin: 0 0 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fe-muted);
}

.fe-day-date {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 720;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.fe-day-time {
    margin: 10px 0 0;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.fe-day-zone {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--fe-muted);
    font-weight: 500;
}

.fe-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 650;
}

.fe-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.fe-status.is-aktif {
    background: rgba(31, 157, 85, 0.12);
    color: var(--fe-success);
}

.fe-status.is-aktif .fe-status-dot {
    background: var(--fe-success);
    box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.15);
}

.fe-status.is-libur {
    background: rgba(196, 122, 0, 0.14);
    color: var(--fe-warning);
}

.fe-status.is-libur .fe-status-dot {
    background: var(--fe-warning);
    box-shadow: 0 0 0 4px rgba(196, 122, 0, 0.15);
}

.fe-hint {
    margin: 0;
    text-align: center;
    color: var(--fe-muted);
    font-size: 0.95rem;
    line-height: 1.45;
    padding: 0 8px;
    animation: fe-rise 0.7s ease 0.1s both;
}

.fe-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fe-rise 0.75s ease 0.15s both;
}

.fe-btn {
    appearance: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 22px;
    border-radius: 18px;
    font-size: 1.05rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.fe-btn:active {
    transform: scale(0.98);
}

.fe-btn-primary {
    background: var(--fe-accent);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 113, 227, 0.28);
}

.fe-btn-primary:hover {
    background: var(--fe-accent-press);
    color: #fff;
}

.fe-btn-primary.is-disabled,
.fe-btn-primary[aria-disabled="true"] {
    background: #9db7d4;
    box-shadow: none;
    pointer-events: none;
    opacity: 0.85;
}

.fe-btn-secondary {
    background: var(--fe-surface);
    color: var(--fe-text);
    border: 1px solid var(--fe-border);
}

.fe-footer {
    margin-top: 28px;
    text-align: center;
    animation: fe-rise 0.8s ease 0.2s both;
}

.fe-footer p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--fe-muted);
}

.fe-footer a {
    color: var(--fe-accent);
    text-decoration: none;
    font-weight: 600;
}

.fe-placeholder {
    background: var(--fe-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--fe-radius);
    padding: 36px 24px;
    box-shadow: var(--fe-shadow);
    text-align: center;
    animation: fe-rise 0.6s ease both;
}

.fe-placeholder-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: rgba(0, 113, 227, 0.1);
    color: var(--fe-accent);
    font-size: 1.8rem;
}

.fe-placeholder h1 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.fe-placeholder p {
    margin: 0 0 24px;
    color: var(--fe-muted);
    line-height: 1.5;
}

.fe-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    animation: fe-rise 0.45s ease both;
}

.fe-topbar .fe-theme-toggle {
    margin-left: auto;
}

.fe-back {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--fe-surface);
    color: var(--fe-accent);
    text-decoration: none;
    font-size: 1.25rem;
    border: 1px solid var(--fe-border);
    flex-shrink: 0;
}

.fe-topbar-text h1 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.fe-step {
    margin: 0 0 2px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fe-muted);
}

.fe-context {
    margin: 0 0 16px;
    font-size: 0.88rem;
    color: var(--fe-muted);
    line-height: 1.4;
    animation: fe-rise 0.5s ease 0.05s both;
}

.fe-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(196, 122, 0, 0.12);
    color: #8a5600;
    font-size: 0.88rem;
    font-weight: 500;
}

.fe-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fe-rise 0.55s ease 0.08s both;
}

.fe-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--fe-surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--fe-border);
    box-shadow: 0 8px 22px rgba(15, 35, 60, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}

.fe-list-item:active {
    transform: scale(0.985);
}

.fe-list-avatar,
.fe-list-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1rem;
}

.fe-list-avatar {
    background: linear-gradient(145deg, #0071e3, #3a9bff);
    color: #fff;
}

.fe-list-icon {
    background: rgba(0, 113, 227, 0.1);
    color: var(--fe-accent);
    font-size: 1.15rem;
}

.fe-list-icon.is-kelas {
    background: rgba(31, 157, 85, 0.12);
    color: var(--fe-success);
}

.fe-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fe-list-title {
    font-weight: 650;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.fe-list-meta {
    font-size: 0.8rem;
    color: var(--fe-muted);
}

.fe-list-chevron {
    color: #9aabb8;
    font-size: 1rem;
}

.fe-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--fe-muted);
}

.fe-empty i {
    font-size: 2rem;
    opacity: 0.35;
    display: block;
    margin-bottom: 10px;
}

.d-none {
    display: none !important;
}

.fe-search-wrap {
    position: relative;
    margin-bottom: 14px;
    animation: fe-rise 0.5s ease 0.05s both;
}

.fe-search-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fe-muted);
    font-size: 0.95rem;
}

.fe-search {
    width: 100%;
    border: 1px solid rgba(15, 35, 60, 0.08);
    background: #ffffff;
    color: #000000;
    border-radius: 14px;
    padding: 12px 14px 12px 40px;
    font-size: 0.95rem;
    outline: none;
    box-shadow: 0 6px 16px rgba(15, 35, 60, 0.04);
}

.fe-search:focus {
    border-color: rgba(0, 113, 227, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.fe-alert-success {
    background: rgba(31, 157, 85, 0.12);
    color: #146c3a;
}

.fe-shell-form {
    padding-bottom: calc(100px + var(--safe-bottom));
}

.fe-mark-all {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 35, 60, 0.06);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
}

.fe-mark-all input {
    width: 18px;
    height: 18px;
    accent-color: var(--fe-accent);
}

.fe-siswa-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fe-siswa-card {
    background: var(--fe-surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(15, 35, 60, 0.05);
}

.fe-siswa-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.fe-siswa-no {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--fe-accent);
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fe-siswa-nama {
    font-weight: 650;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.fe-status-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.fe-status-opt {
    position: relative;
    cursor: pointer;
}

.fe-status-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fe-status-opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1.5px solid rgba(15, 35, 60, 0.1);
    background: #fff;
    color: var(--fe-muted);
    transition: all 0.15s ease;
}

.fe-status-h input:checked + span {
    background: rgba(31, 157, 85, 0.14);
    border-color: var(--fe-success);
    color: var(--fe-success);
}

.fe-status-s input:checked + span {
    background: rgba(196, 122, 0, 0.14);
    border-color: var(--fe-warning);
    color: var(--fe-warning);
}

.fe-status-i input:checked + span {
    background: rgba(0, 113, 227, 0.12);
    border-color: var(--fe-accent);
    color: var(--fe-accent);
}

.fe-status-a input:checked + span {
    background: rgba(220, 53, 69, 0.12);
    border-color: #dc3545;
    color: #dc3545;
}

.fe-sticky-save {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 430px;
    padding: 12px 20px calc(12px + var(--safe-bottom));
    background: linear-gradient(180deg, transparent, rgba(232, 238, 245, 0.95) 30%);
    z-index: 20;
}

.fe-btn-block {
    width: 100%;
}

.fe-jurnal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fe-rise 0.55s ease 0.08s both;
}

.fe-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--fe-muted);
}

.fe-input,
.fe-search,
.fe-textarea {
    font-size: 16px !important; /* cegah auto-zoom iOS */
    line-height: 1.4;
}

.fe-input {
    width: 100%;
    border: 1px solid rgba(15, 35, 60, 0.1);
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    color: #000000;
    outline: none;
    box-shadow: 0 6px 16px rgba(15, 35, 60, 0.04);
    -webkit-appearance: none;
    appearance: none;
}

.fe-input:focus {
    border-color: rgba(0, 113, 227, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.fe-input::placeholder,
.fe-search::placeholder,
.fe-textarea::placeholder {
    color: #6b7280;
}

html[data-theme="dark"] .fe-input,
html[data-theme="dark"] .fe-search,
html[data-theme="dark"] .fe-textarea {
    color: #000000 !important;
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2);
    caret-color: #000000;
}

html[data-theme="dark"] .fe-input::placeholder,
html[data-theme="dark"] .fe-search::placeholder,
html[data-theme="dark"] .fe-textarea::placeholder {
    color: #6b7280;
}

.fe-textarea {
    resize: vertical;
    min-height: 160px;
}

.fe-jam-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fe-jam-row .fe-input {
    flex: 1;
    text-align: center;
}

.fe-jam-sep {
    flex-shrink: 0;
    color: var(--fe-muted);
    font-weight: 700;
    font-size: 1.1rem;
}

.fe-jurnal-lihat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fe-rise 0.55s ease 0.08s both;
}

.fe-jurnal-lihat-card {
    background: var(--fe-surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(15, 35, 60, 0.05);
}

.fe-jurnal-lihat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.fe-jurnal-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.12);
    color: var(--fe-accent);
    font-size: 0.78rem;
    font-weight: 700;
}

.fe-jurnal-date {
    font-size: 0.82rem;
    color: var(--fe-muted);
    font-weight: 600;
}

.fe-jurnal-materi {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--fe-text);
    white-space: pre-wrap;
}

.fe-jurnal-meta-jam {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--fe-accent);
}

.fe-nihil {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--fe-muted);
    font-style: italic;
}

.fe-sia-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fe-sia-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(15, 35, 60, 0.04);
}

html[data-theme="dark"] .fe-sia-list li {
    background: rgba(255, 255, 255, 0.05);
}

.fe-sia-nama {
    font-size: 0.9rem;
    font-weight: 600;
}

.fe-sia-badge {
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
}

.fe-sia-s {
    background: rgba(196, 122, 0, 0.16);
    color: var(--fe-warning);
}

.fe-sia-i {
    background: rgba(0, 113, 227, 0.14);
    color: var(--fe-accent);
}

.fe-sia-a {
    background: rgba(220, 53, 69, 0.14);
    color: #dc3545;
}

@keyframes fe-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 480px) {
    body.frontend {
        background:
            radial-gradient(60% 50% at 50% 0%, #ffffff 0%, transparent 60%),
            linear-gradient(165deg, #cdddec 0%, #eef2f7 45%, #f7f8fa 100%);
    }

    .fe-shell {
        padding-top: calc(32px + var(--safe-top));
    }
}
