.fz2026-app,
.fz2026-login { --fz-border: #d7dee8; --fz-text: #1f2933; --fz-muted: #5f6f83; --fz-bg: #f7f9fc; --fz-panel: #ffffff; --fz-green: #0f8a5f; --fz-green-dark: #096544; --fz-red: #b93636; --fz-blue: #1769aa; color: var(--fz-text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.fz2026-app { max-width: 1180px; margin: 0 auto; padding: 12px; background: var(--fz-bg); border: 1px solid var(--fz-border); border-radius: 8px; }
.fz2026-login { max-width: 520px; margin: 16px auto; padding: 18px; background: #ffffff; border: 1px solid var(--fz-border); border-radius: 8px; }
.fz2026-login h2, .fz2026-app h2, .fz2026-app h3 { margin: 0; line-height: 1.2; letter-spacing: 0; }
.fz2026-login form { margin-top: 18px; }
.fz2026-login label { display: block; margin-bottom: 8px; font-weight: 700; }
.fz2026-login-row { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.fz2026-login input { min-width: 0; flex: 1 1 auto; padding: 12px; border: 1px solid var(--fz-border); border-radius: 6px; font: inherit; }
.fz2026-login button, .fz2026-save-button { min-height: 46px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--fz-blue); color: #ffffff; font: inherit; font-weight: 800; cursor: pointer; }
.fz2026-login button:hover, .fz2026-save-button:hover { background: #115281; }
.fz2026-save-button { width: 100%; }
.fz2026-save-button:disabled { cursor: not-allowed; opacity: .55; }
.fz2026-error { padding: 10px 12px; color: #7a2424; background: #fff0f0; border: 1px solid #f0c7c7; border-radius: 6px; }
.fz2026-loading { padding: 18px; color: var(--fz-muted); }
.fz2026-header { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--fz-border); }
.fz2026-kicker { margin: 0 0 5px; color: var(--fz-muted); font-size: 13px; font-weight: 800; }
.fz2026-day-message { margin: 7px 0 0; color: var(--fz-muted); }
.fz2026-grand-total { padding: 12px; text-align: left; background: #ffffff; border: 1px solid var(--fz-border); border-radius: 8px; }
.fz2026-grand-total strong { display: block; font-size: 28px; line-height: 1; }
.fz2026-grand-total span { display: block; margin-top: 5px; color: var(--fz-muted); font-size: 13px; }
.fz2026-toolbar { display: flex; flex-direction: column; gap: 10px; align-items: stretch; margin: 14px 0 0; }
.fz2026-status { min-height: 22px; color: var(--fz-muted); font-weight: 800; }
.fz2026-status-success { color: var(--fz-green); }
.fz2026-status-error { color: var(--fz-red); }
.fz2026-section { margin-top: 22px; }
.fz2026-section h3 { margin-bottom: 10px; font-size: 19px; }
.fz2026-class-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.fz2026-class-card { display: grid; grid-template-columns: minmax(72px, 1fr) auto; gap: 10px; align-items: center; min-height: 62px; padding: 9px 10px; background: var(--fz-panel); border: 1px solid var(--fz-border); border-radius: 8px; }
.fz2026-class-name { color: var(--fz-text); font-size: 16px; font-weight: 900; }
.fz2026-counter-row { display: grid; grid-template-columns: 44px minmax(42px, 54px) 44px; gap: 6px; align-items: center; }
.fz2026-count-button { width: 44px; height: 44px; border: 0; border-radius: 6px; color: #ffffff; font: inherit; font-size: 25px; font-weight: 900; line-height: 1; cursor: pointer; touch-action: manipulation; }
.fz2026-count-button:disabled { cursor: not-allowed; opacity: .45; }
.fz2026-minus { background: var(--fz-red); }
.fz2026-minus:hover:not(:disabled) { background: #932b2b; }
.fz2026-plus { background: var(--fz-green); }
.fz2026-plus:hover:not(:disabled) { background: var(--fz-green-dark); }
.fz2026-count { display: block; min-width: 42px; text-align: center; font-size: 26px; font-weight: 900; line-height: 1; }
.fz2026-table-scroll { overflow-x: auto; background: #ffffff; border: 1px solid var(--fz-border); border-radius: 8px; }
.fz2026-standings-table, .fz2026-matrix-table { width: 100%; border-collapse: collapse; }
.fz2026-standings-table th, .fz2026-standings-table td, .fz2026-matrix-table th, .fz2026-matrix-table td { padding: 10px 12px; border-bottom: 1px solid var(--fz-border); text-align: right; white-space: nowrap; }
.fz2026-standings-table th, .fz2026-matrix-table th { font-weight: 800; }
.fz2026-standings-table th:nth-child(2), .fz2026-standings-table td:nth-child(2), .fz2026-matrix-table th:first-child { text-align: left; }
.fz2026-standings-table thead th, .fz2026-matrix-table thead th { color: #334155; background: #eef3f8; }
.fz2026-matrix-table th:first-child { position: sticky; left: 0; z-index: 1; background: #ffffff; }
.fz2026-matrix-table thead th:first-child { z-index: 2; background: #eef3f8; }
.fz2026-total-cell { font-weight: 800; background: #f7fbf5; }

@media (min-width: 520px) {
    .fz2026-class-card { grid-template-columns: minmax(90px, 1fr) auto; padding: 10px 12px; }
    .fz2026-counter-row { grid-template-columns: 48px minmax(48px, 64px) 48px; gap: 8px; }
    .fz2026-count-button { width: 48px; height: 48px; }
}

@media (min-width: 760px) {
    .fz2026-app { padding: 20px; }
    .fz2026-login { margin: 24px auto; padding: 24px; }
    .fz2026-login-row, .fz2026-toolbar { flex-direction: row; align-items: center; }
    .fz2026-save-button { width: auto; }
    .fz2026-header { flex-direction: row; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 18px; }
    .fz2026-grand-total { min-width: 150px; text-align: right; }
    .fz2026-class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .fz2026-class-card { min-height: 72px; }
}

@media (min-width: 1080px) {
    .fz2026-class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}