form p{margin-bottom:18px}.filter-row{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:18px 0}.filter-row>input,.filter-row>select{width:auto;max-width:300px}.filter-row label{margin:0}.text-button{border:0;background:transparent;color:var(--teal);padding:4px;font-size:14px}.danger-text{color:#b22d3a}.slot-checks,.day-selection{display:flex;gap:18px;flex-wrap:wrap}.slot-checks label{white-space:nowrap;margin:0}.subject-selector{font-size:14px;margin-top:30px}.subject-selector h2{font-size:20px}.subject-card{border:1px solid var(--line);border-radius:14px;margin-top:14px;overflow:hidden}.subject-card.selected{border:2px solid var(--teal)}.subject-header{display:flex;align-items:center;padding:20px;margin:0;cursor:pointer;font-size:14px}.subject-card.selected .subject-header{background:#e5f4ef}.subject-count{margin-left:auto;color:var(--teal)}.subject-body{padding:22px}.select-classes{width:100%;padding:16px;border:2px dashed var(--line);border-radius:10px;background:white;color:var(--teal);font-weight:600;font-size:14px}.grade-group{padding:20px 0;border-bottom:1px dashed var(--line)}.grade-group strong,.hours-rows h3{font-size:14px;color:var(--muted)}.class-pills{display:flex;gap:10px;flex-wrap:wrap}.class-pill{padding:10px 16px;border:1px solid var(--line);border-radius:30px;margin:0;font-size:14px;cursor:pointer}.class-pill:has(:checked){background:var(--teal);color:white}.class-pill:has(:disabled){opacity:.4;cursor:not-allowed}.hours-row{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.hours-row small{display:block;color:var(--muted)}.stepper{display:flex;align-items:center}.stepper input{width:65px!important;text-align:center;border-radius:0!important}.stepper button{height:44px;width:44px;border:1px solid var(--line);background:white;color:var(--teal);font-size:20px}.hours-rows{margin-top:22px}details summary{font-size:14px}.solver-status{white-space:pre-line}nav[role=navigation] svg{width:20px;height:20px}.pagination{display:flex;gap:12px}.subject-search{margin-bottom:20px}.form-card{width:100%}:focus-visible{outline-color:var(--teal)}@media(max-width:760px){.filter-row>*{width:100%!important;max-width:none!important}.slot-checks{gap:8px}.subject-body{padding:14px}.hours-row{gap:10px}}.empty-records-alert{display:flex;align-items:center;gap:12px;width:100%;padding:16px 18px;background:#e5f4ef;border:1px solid #b7ded0;border-left:4px solid #087d70;border-radius:10px;color:#075d54;font-size:14px;line-height:1.5;white-space:normal}.empty-records-alert-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:22px;height:22px;border:1.5px solid currentColor;border-radius:50%;font-weight:700;font-style:normal}
.catalog-empty-state{display:flex;flex-direction:column;align-items:flex-start;gap:22px}.catalog-empty-state .button{white-space:normal;text-align:center}@media(max-width:600px){.catalog-empty-state .button{width:100%}}
.password-guide[hidden]{display:none}.password-guide{margin:0 0 18px}
.generation-info{align-items:flex-start;margin-bottom:24px}.generation-info>div{min-width:0}.generation-info p{margin:0 0 10px;color:inherit;font-size:inherit}.generation-info p:last-child{margin-bottom:0}
.platform-footer{flex-wrap:wrap;row-gap:14px}.footer-credits{flex:0 0 100%;width:100%;line-height:1.7;overflow-wrap:anywhere}.footer-credits p{margin:0}.footer-credits p+p{margin-top:3px}.footer-credits a{color:inherit;text-decoration:underline;text-underline-offset:3px}.footer-credits a:hover{color:var(--teal)}

.platform-footer .footer-credits{display:flex;justify-content:space-between;align-items:center;gap:12px 24px}.platform-footer .footer-credits p+p{margin-top:0;text-align:right}@media(max-width:760px){.platform-footer .footer-credits{flex-direction:column;align-items:flex-start}.platform-footer .footer-credits p+p{text-align:left}}


.login-layout.login-centered{grid-template-columns:minmax(0,460px);justify-content:center;width:100%;gap:0;padding:32px 0}.login-centered .login-card{width:100%;min-width:0}.login-centered .brand{justify-content:center;margin-bottom:24px}.login-centered .login-card>p:first-of-type{text-align:center}@media(max-width:760px){.login-layout.login-centered{padding:12px 0}}

.login-layout.login-centered{grid-template-columns:minmax(0,450px);padding:0;margin:0 auto}
.login-centered .login-card{max-width:450px;min-height:525px;margin:0 auto;padding:36px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:none}
.login-centered .brand{margin:4px 0 48px;justify-content:center}
.login-centered .brand img{max-width:250px!important}
.login-centered .login-heading{font-size:17px;line-height:1.4;font-weight:600;text-align:center;letter-spacing:0;margin:0 0 8px}
.login-centered .login-card form{margin-top:0}
.login-centered .login-card form>p{margin:0 0 16px}
.login-centered .login-card input:not([type=checkbox]):not([type=hidden]){height:42px;min-height:42px;border-radius:8px}
.login-centered .login-options{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:22px 0 24px;font-size:13px}
.login-centered .login-options label{display:flex;align-items:center;margin:0;font-weight:400}
.login-centered .login-options input{margin:0 8px 0 0}
.login-centered .login-card .button{min-height:46px;border-radius:8px;font-size:16px}
.login-centered .login-register{display:block;text-align:center;margin-top:28px;font-size:13px}
@media(max-width:480px){.login-centered .login-card{padding:28px 24px;min-height:0}.login-centered .brand{margin-bottom:36px}.login-centered .login-options{gap:14px}}
.hours-dialog{width:min(560px,calc(100% - 32px));max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:14px;padding:24px;color:var(--ink)}.hours-dialog::backdrop{background:#172b3566}.hours-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.hours-dialog-heading h2{margin:0;font-size:20px}.hours-edit-row{display:grid;grid-template-columns:1fr 90px auto;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.hours-edit-row label{margin:0}.hours-dialog>form[data-confirm]{display:none}
.generation-subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 22px}
.generation-subject-grid .generation-subject-option{display:flex;align-items:center;gap:12px;margin:0;padding:14px 16px;min-height:56px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#172b35;font-size:14px;font-weight:400;line-height:1.45;cursor:pointer;box-sizing:border-box}
.generation-subject-option input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:#087d70}
.generation-subject-option span{min-width:0;overflow-wrap:anywhere}
.generation-subject-option:hover{border-color:#87b9af;background:#f7fbfa}
.generation-subject-option:has(:checked){background:#e5f4ef;border-color:#087d70}
.generation-subject-option:focus-within{outline:2px solid #087d70;outline-offset:2px}
@media(max-width:1000px){.generation-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.generation-subject-grid{grid-template-columns:1fr}.generation-subject-grid .generation-subject-option{padding:12px}}
/* Expandable manual generation rules. */
.generation-rules{min-width:0;margin:24px 0;padding:18px;border:1px solid var(--line);border-radius:14px;background:#f7f9fa}
.generation-rules legend{max-width:100%;padding:0 8px;color:#172b35;font-size:14px;line-height:1.5;font-weight:500}
.generation-rule{margin:0 0 12px;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.generation-rule:last-child{margin-bottom:0}
.generation-rule summary{display:flex;align-items:center;gap:12px;padding:16px;list-style:none;cursor:pointer;color:#172b35;font-size:14px;line-height:1.5;font-weight:600}
.generation-rule summary::-webkit-details-marker{display:none}
.generation-rule summary:hover{background:#f4faf8}
.generation-rule summary:focus-visible{outline:2px solid #087d70;outline-offset:-3px}
.generation-rule-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;height:28px;border-radius:8px;background:#e5f4ef;color:#087d70;font-size:13px}
.generation-rule-title{flex:1;min-width:0}
.generation-rule-chevron{width:7px;height:7px;margin:0 4px;border-right:2px solid #6b7e88;border-bottom:2px solid #6b7e88;transform:rotate(45deg);flex-shrink:0}
.generation-rule[open]{border-color:#9bc9bd}
.generation-rule[open]>summary{background:#edf7f3;border-bottom:1px solid #d9e9e3}
.generation-rule[open]>summary .generation-rule-chevron{transform:rotate(225deg)}
.generation-rule-body{padding:16px}
.generation-rule-body>.help:first-child{margin-top:0}
.generation-rule-body>.generation-subject-grid:last-child,.generation-rule-body>p:last-child{margin-bottom:0}
.generation-rule-body>#max-gaps,.generation-rule-body>p>#max-gaps{max-width:380px}
.generation-rule-body table label{margin:0}
@media(max-width:560px){.generation-rules{padding:12px}.generation-rule summary{gap:10px;padding:12px}.generation-rule-body{padding:12px}.generation-rule-body th,.generation-rule-body td{padding:10px}.generation-rule-body select{min-width:0}}
