:root {
  --go-black: #111111;
  --go-black-soft: #1c1c1b;
  --go-charcoal: #2a2a28;
  --go-yellow: #ffd21c;
  --go-yellow-deep: #e9bb00;
  --go-yellow-soft: #fff7c7;
  --go-bg: #f4f4f0;
  --go-paper: #ffffff;
  --go-text: #20201e;
  --go-muted: #77776f;
  --go-line: #e4e4dd;
  --go-green: #157052;
  --go-green-bg: #e7f5ef;
  --go-red: #b23b3b;
  --go-red-bg: #fceaea;
  --go-orange: #8c5e08;
  --go-orange-bg: #fff0ce;
  --go-shadow: 0 18px 48px rgba(17, 17, 17, 0.08);
  --go-radius: 18px;
  --go-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--go-bg);
  color: var(--go-text);
  font-family: var(--go-font);
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

.go-icon {
  display: block;
}

.go-loading-shell,
.go-loading-screen,
.go-fatal,
.go-error-state {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}

.go-loading-shell > span,
.go-fatal p,
.go-error-state p {
  max-width: 480px;
  color: var(--go-muted);
}

.go-loading-mark,
.go-brand-mark,
.go-empty-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid var(--go-black);
  border-radius: 17px;
  background: var(--go-yellow);
  color: var(--go-black);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.go-loading-mark {
  animation: go-pulse 1.15s ease-in-out infinite;
}

.go-error-state {
  min-height: 420px;
}

.go-error-state .go-icon {
  color: var(--go-red);
}

@keyframes go-pulse {
  50% {
    opacity: 0.58;
    transform: scale(0.94);
  }
}

.go-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}

.go-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--go-black);
  color: #fff;
  padding: 25px 17px 18px;
}

.go-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px;
}

.go-brand > img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.go-brand > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.go-brand b {
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.go-brand small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.go-sidebar-slogan {
  margin: 17px 9px 25px;
  border-left: 2px solid var(--go-yellow);
  color: rgba(255, 255, 255, 0.62);
  padding-left: 10px;
  font-size: 10px;
  line-height: 1.45;
}

.go-nav-title {
  margin: 0 11px 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.go-sidebar nav {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 4px;
}

.go-nav-item {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.67);
  padding: 8px 11px;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.go-nav-item > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--go-yellow);
}

.go-nav-item b {
  font-size: 12px;
  font-weight: 680;
}

.go-nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transform: translateX(2px);
}

.go-nav-item.is-active {
  background: var(--go-yellow);
  color: var(--go-black);
}

.go-nav-item.is-active > span {
  background: rgba(17, 17, 17, 0.1);
  color: var(--go-black);
}

.go-sidebar-user {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 17px 7px 0;
}

.go-sidebar-user > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.go-sidebar-user b,
.go-sidebar-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.go-sidebar-user b {
  font-size: 11px;
}

.go-sidebar-user small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
}

.go-sidebar-user a {
  display: grid;
  place-items: center;
  color: var(--go-yellow);
}

.go-workspace {
  min-width: 0;
}

.go-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--go-line);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px clamp(18px, 3vw, 44px);
  backdrop-filter: blur(16px);
}

.go-topbar-context {
  min-width: 128px;
  display: grid;
  gap: 3px;
}

.go-topbar-context small,
.go-branch-switch > span {
  color: #98988f;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.go-topbar-context strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.go-search,
.go-filter-search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f3f3ef;
  color: #92928a;
  padding: 0 13px;
}

.go-search {
  width: min(430px, 40vw);
}

.go-filter-search {
  flex: 1;
}

.go-search:focus-within,
.go-filter-search:focus-within {
  border-color: var(--go-yellow-deep);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 210, 28, 0.2);
}

.go-search input,
.go-filter-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  padding-inline: 0;
}

.go-branch-switch {
  margin-left: auto;
  display: grid;
  gap: 4px;
}

.go-branch-switch select {
  min-width: 160px;
  min-height: 40px;
}

.go-user-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--go-text);
  font-weight: 700;
}

.go-menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--go-line);
  border-radius: 11px;
  background: #fff;
}

.go-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--go-yellow-soft);
  color: #5b4900;
  font-size: 10px;
  font-weight: 900;
}

.go-sidebar .go-avatar {
  background: rgba(255, 210, 28, 0.14);
  color: var(--go-yellow);
}

.go-avatar-large {
  width: 56px;
  height: 56px;
  font-size: 14px;
}

.go-page {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 52px);
  padding-bottom: 76px;
}

.go-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.go-page-header h1 {
  margin: 7px 0 8px;
  color: var(--go-black);
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 820;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.go-page-header p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--go-muted);
  line-height: 1.55;
}

.go-kicker {
  display: block;
  color: #856b00;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.go-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.go-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 9px 16px;
  font-weight: 780;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.go-btn:hover {
  transform: translateY(-1px);
}

.go-btn:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 210, 28, 0.65);
  outline-offset: 2px;
}

.go-btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.go-btn-primary {
  border-color: var(--go-yellow-deep);
  background: var(--go-yellow);
  color: var(--go-black);
  box-shadow: 0 8px 22px rgba(233, 187, 0, 0.18);
}

.go-btn-primary:hover,
.go-btn-gold:hover {
  background: #ffdc45;
}

.go-btn-light {
  border-color: var(--go-line);
  background: var(--go-paper);
  color: var(--go-text);
}

.go-btn-light:hover {
  border-color: #c8c8be;
}

.go-btn-gold {
  background: var(--go-yellow);
  color: var(--go-black);
}

.go-btn-small {
  min-height: 34px;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
}

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

.go-link {
  border: 0;
  background: transparent;
  color: #796100;
  font-weight: 780;
}

.go-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 21px;
}

.go-stat-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.go-stat {
  min-width: 0;
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--go-line);
  border-radius: var(--go-radius);
  background: var(--go-paper);
  padding: 19px;
  box-shadow: 0 6px 24px rgba(17, 17, 17, 0.035);
}

.go-stat > span {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--go-yellow-soft);
  color: var(--go-black);
  font-weight: 900;
}

.go-stat div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.go-stat small {
  color: var(--go-muted);
  font-weight: 650;
}

.go-stat strong {
  overflow: hidden;
  color: var(--go-black);
  font-size: clamp(17px, 1.55vw, 24px);
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.go-stat-income > span {
  background: var(--go-green-bg);
  color: var(--go-green);
}

.go-stat-expense > span {
  background: var(--go-red-bg);
  color: var(--go-red);
}

.go-grid {
  display: grid;
  gap: 20px;
}

.go-grid-2 {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
}

.go-panel {
  overflow: hidden;
  border: 1px solid var(--go-line);
  border-radius: var(--go-radius);
  background: var(--go-paper);
  padding: 22px;
  box-shadow: 0 7px 28px rgba(17, 17, 17, 0.04);
}

.go-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.go-panel-head h2 {
  margin: 4px 0 0;
  font-size: 19px;
}

.go-panel-head > div:last-child {
  display: flex;
  gap: 8px;
}

.go-panel-accent {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  border-color: var(--go-black);
  background: var(--go-black);
  color: #fff;
  padding: 28px;
}

.go-panel-accent .go-kicker {
  color: var(--go-yellow);
}

.go-panel-accent h2 {
  margin: 7px 0 20px;
  font-size: 25px;
}

.go-panel-accent > strong {
  color: var(--go-yellow);
  font-size: 39px;
  letter-spacing: -0.055em;
}

.go-finance-bars {
  margin: 24px 0;
}

.go-finance-bars p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  padding: 11px 0;
}

.go-finance-bars b {
  color: #fff;
}

.go-panel-accent .go-btn {
  margin-top: auto;
}

.go-session-list {
  display: grid;
  gap: 8px;
}

.go-session-card {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--go-line);
  border-radius: 13px;
  background: #fff;
  padding: 10px 14px;
  text-align: left;
}

.go-session-card:hover {
  border-color: var(--go-yellow-deep);
  background: #fffdf2;
}

.go-session-card time {
  color: #735d00;
  font-size: 17px;
  font-weight: 900;
}

.go-session-card > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.go-session-card small {
  overflow: hidden;
  color: var(--go-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.go-session-card em {
  color: var(--go-muted);
  font-size: 11px;
  font-style: normal;
}

.go-filterbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.go-filterbar > input,
.go-filterbar > select {
  flex: 1;
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8d8cf;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--go-text);
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--go-yellow-deep);
  box-shadow: 0 0 0 3px rgba(255, 210, 28, 0.2);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

label {
  display: grid;
  align-content: start;
  gap: 6px;
}

label > span {
  color: #52524d;
  font-size: 11px;
  font-weight: 760;
}

label small {
  color: var(--go-muted);
  font-size: 10px;
  line-height: 1.4;
}

.go-table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  color: var(--go-muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

th,
td {
  border-bottom: 1px solid var(--go-line);
  padding: 13px 12px;
  vertical-align: middle;
}

tbody tr {
  transition: background 0.14s ease;
}

tbody tr:hover {
  background: #fafaf6;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.go-cell-sub {
  display: block;
  margin-top: 4px;
  color: var(--go-muted);
  font-size: 10px;
}

.go-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.go-person > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.go-person small {
  color: var(--go-muted);
}

.go-branch-badge,
.go-program-code {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  border: 1px solid #e4ca55;
  border-radius: 8px;
  background: var(--go-yellow-soft);
  color: #675300;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.go-amount-income {
  color: var(--go-green);
}

.go-amount-expense {
  color: var(--go-red);
}

code {
  border-radius: 6px;
  background: #f0f0eb;
  color: #454541;
  padding: 4px 7px;
  font-size: 11px;
}

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

.go-person-card,
.go-program-card,
.go-group-card,
.go-report-card {
  min-width: 0;
  border: 1px solid var(--go-line);
  border-radius: var(--go-radius);
  background: var(--go-paper);
  padding: 21px;
  box-shadow: 0 6px 23px rgba(17, 17, 17, 0.035);
}

.go-person-card-top,
.go-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.go-person-card h3,
.go-program-card h3,
.go-group-card h3,
.go-report-card h3 {
  margin: 0 0 7px;
  color: var(--go-black);
  font-size: 18px;
}

.go-person-card > p,
.go-program-card > p,
.go-group-card > p,
.go-report-card > p {
  color: var(--go-muted);
  line-height: 1.6;
}

.go-person-card > small {
  color: var(--go-muted);
}

.go-person-card dl,
.go-program-card dl,
.go-group-card dl {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.go-person-card dl div,
.go-program-card dl div,
.go-group-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--go-line);
  padding-bottom: 8px;
}

.go-person-card dt,
.go-program-card dt,
.go-group-card dt {
  color: var(--go-muted);
}

.go-person-card dd,
.go-program-card dd,
.go-group-card dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.go-program-card > div:first-child {
  display: flex;
  justify-content: space-between;
}

.go-report-card time {
  color: var(--go-muted);
  font-size: 10px;
}

.go-report-student {
  color: #766000 !important;
  font-weight: 760;
}

.go-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.go-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: #ededE8;
  color: #5a5a54;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 880;
  white-space: nowrap;
}

.go-status-active,
.go-status-available,
.go-status-income,
.go-status-present,
.go-status-approved,
.go-status-published {
  background: var(--go-green-bg);
  color: var(--go-green);
}

.go-status-inactive,
.go-status-unavailable,
.go-status-expense,
.go-status-absent {
  background: var(--go-red-bg);
  color: var(--go-red);
}

.go-status-maintenance,
.go-status-late,
.go-status-submitted {
  background: var(--go-orange-bg);
  color: var(--go-orange);
}

.go-status-draft,
.go-status-excused,
.go-status-archived {
  background: #ededE8;
  color: #5a5a54;
}

.go-location-list {
  display: grid;
  gap: 8px;
}

.go-location-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--go-line);
  border-radius: 12px;
  padding: 13px;
}

.go-location-list h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.go-location-list p {
  margin: 0 0 3px;
  color: var(--go-muted);
  font-size: 11px;
}

.go-location-list small {
  color: #796100;
  font-size: 10px;
}

.go-location-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--go-yellow-soft);
  color: var(--go-black);
  font-weight: 900;
}

.go-empty {
  min-height: 230px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
}

.go-empty-mark {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.go-empty h3 {
  margin: 4px 0 0;
}

.go-empty p {
  max-width: 440px;
  margin: 0;
  color: var(--go-muted);
  line-height: 1.55;
}

.go-inline-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--go-line);
  border-radius: 10px;
  color: var(--go-muted);
  padding: 14px;
  text-align: center;
}

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

.go-loading-list i {
  display: block;
  height: 92px;
  border-radius: 15px;
  background: linear-gradient(90deg, #e8e8e2, #f8f8f5, #e8e8e2);
  background-size: 200% 100%;
  animation: go-shimmer 1.2s infinite;
}

@keyframes go-shimmer {
  to {
    background-position: -200% 0;
  }
}

.go-attendance-list {
  display: grid;
  gap: 8px;
}

.go-attendance-list article {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(130px, 0.6fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--go-line);
  border-radius: 12px;
  padding: 11px;
}

.go-segmented {
  display: flex;
  border: 1px solid var(--go-line);
  border-radius: 9px;
  overflow: hidden;
}

.go-segmented label {
  cursor: pointer;
}

.go-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.go-segmented span {
  min-height: 37px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--go-line);
  background: #fff;
  color: var(--go-muted);
  padding: 7px 10px;
  font-size: 10px;
}

.go-segmented label:last-child span {
  border-right: 0;
}

.go-segmented input:checked + span {
  background: var(--go-black);
  color: var(--go-yellow);
}

.go-attendance-note {
  min-height: 38px;
}

.go-sticky-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.go-report-builder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 13px;
}

.go-report-builder .go-btn {
  width: 100%;
}

.go-report-check {
  align-self: center;
}

.go-template-note {
  margin: 14px 0 0;
  color: var(--go-muted);
  font-size: 11px;
}

.go-report-result {
  margin-top: 18px;
}

.go-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.go-span-2 {
  grid-column: span 2;
}

.go-form-section {
  margin-bottom: 24px;
}

.go-form-section:last-child {
  margin-bottom: 0;
}

.go-form-section > span {
  display: block;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--go-line);
  color: #766000;
  padding-bottom: 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.go-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.go-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--go-black);
}

.go-check span {
  font-size: 12px;
}

.go-select-cards {
  max-height: 270px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow-y: auto;
  padding: 2px;
}

.go-select-cards label {
  position: relative;
  cursor: pointer;
}

.go-select-cards input {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 18px;
  min-height: 18px;
  accent-color: var(--go-black);
}

.go-select-cards label > span {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--go-line);
  border-radius: 11px;
  color: var(--go-text);
  padding: 10px 38px 10px 11px;
}

.go-select-cards input:checked + span {
  border-color: var(--go-yellow-deep);
  background: var(--go-yellow-soft);
}

.go-select-cards small {
  color: var(--go-muted);
}

.go-modal-open {
  overflow: hidden;
}

.go-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 12, 11, 0.72);
  backdrop-filter: blur(4px);
}

.go-modal {
  position: fixed;
  z-index: 101;
  top: 50%;
  left: 50%;
  width: min(780px, calc(100vw - 32px));
  max-height: min(90vh, 920px);
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: var(--go-paper);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.go-modal > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--go-line);
  padding: 20px 23px;
}

.go-modal h2 {
  margin: 5px 0 0;
  color: var(--go-black);
  font-size: 24px;
  letter-spacing: -0.035em;
}

.go-modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--go-line);
  border-radius: 11px;
  background: #fff;
  color: var(--go-muted);
  font-size: 25px;
}

.go-modal form {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.go-modal-body {
  overflow-y: auto;
  padding: 23px;
}

.go-modal footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--go-line);
  background: #f7f7f3;
  padding: 14px 23px;
}

.go-form-error {
  flex: 1;
  color: var(--go-red);
  font-size: 11px;
}

.go-account-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 23px;
}

.go-account-summary h3 {
  margin-bottom: 3px;
}

.go-account-summary p {
  margin: 0;
  color: var(--go-muted);
}

.go-alert {
  border-radius: 11px;
  padding: 12px 14px;
  line-height: 1.5;
}

.go-alert-error {
  border: 1px solid #e7b5b5;
  background: var(--go-red-bg);
  color: var(--go-red);
}

.go-alert-info {
  margin-bottom: 18px;
  border: 1px solid #e7cf62;
  background: var(--go-yellow-soft);
  color: #655200;
}

.go-toasts {
  position: fixed;
  z-index: 200;
  top: 20px;
  right: 20px;
  width: min(370px, calc(100vw - 40px));
  display: grid;
  gap: 8px;
}

.go-toast {
  border-left: 4px solid var(--go-yellow);
  border-radius: 11px;
  background: var(--go-black);
  color: #fff;
  padding: 13px 15px;
  box-shadow: var(--go-shadow);
  font-weight: 650;
  animation: go-toast-in 0.22s both;
}

.go-toast-error {
  border-color: #ff8787;
  background: var(--go-red);
}

@keyframes go-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.go-bottom-nav {
  display: none;
}

/* The login is rendered without WordPress or theme chrome. */
.go-login-body {
  min-height: 100vh;
  background: var(--go-black);
}

.go-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1.12fr) minmax(390px, 0.88fr);
}

.go-login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  background: var(--go-yellow);
  color: var(--go-black);
  padding: clamp(45px, 8vw, 120px);
}

.go-login-brand::before,
.go-login-brand::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(17, 17, 17, 0.13);
  border-radius: 50%;
}

.go-login-brand::before {
  width: 510px;
  height: 510px;
  top: -240px;
  right: -180px;
}

.go-login-brand::after {
  width: 330px;
  height: 330px;
  right: -90px;
  bottom: -170px;
}

.go-login-logo {
  position: relative;
  z-index: 1;
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.go-login-brand > span {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.go-login-brand h1 {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin: 30px 0 18px;
  font-size: clamp(43px, 5.5vw, 78px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.go-login-brand p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  color: rgba(17, 17, 17, 0.66);
  font-size: 16px;
  line-height: 1.65;
}

.go-login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f8f8f4;
  padding: clamp(35px, 8vw, 110px);
}

.go-login-heading > span {
  color: #786100;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.go-login-heading h2 {
  margin: 9px 0;
  color: var(--go-black);
  font-size: 38px;
  letter-spacing: -0.045em;
}

.go-login-heading p {
  color: var(--go-muted);
}

.go-login-card form {
  display: grid;
  gap: 16px;
  margin-top: 25px;
}

.go-login-card form .go-btn {
  width: 100%;
  margin-top: 4px;
}

.go-login-card > small {
  margin-top: 20px;
  color: #97978e;
  text-align: center;
}

@media (max-width: 1180px) {
  .go-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .go-sidebar {
    padding-inline: 11px;
  }

  .go-topbar-context {
    display: none;
  }

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

  .go-card-grid,
  .go-report-builder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .go-attendance-list article {
    grid-template-columns: minmax(170px, 1fr) 1fr;
  }

  .go-attendance-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 850px) {
  body {
    font-size: 13px;
  }

  .go-shell {
    display: block;
  }

  .go-sidebar {
    position: fixed;
    z-index: 60;
    inset: 0 auto 0 0;
    width: min(310px, 88vw);
    height: 100vh;
    transform: translateX(-104%);
    transition: transform 0.2s ease;
    box-shadow: 22px 0 65px rgba(0, 0, 0, 0.32);
  }

  .go-sidebar.is-open {
    transform: translateX(0);
  }

  .go-menu-toggle {
    display: grid;
  }

  .go-topbar {
    gap: 9px;
    padding: 9px 14px;
  }

  .go-search {
    width: auto;
    flex: 1;
  }

  .go-branch-switch {
    margin-left: 0;
  }

  .go-branch-switch > span,
  .go-user-button > span:last-child {
    display: none;
  }

  .go-branch-switch select {
    width: 124px;
    min-width: 0;
  }

  .go-page {
    padding: 26px 16px 100px;
  }

  .go-page-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 21px;
  }

  .go-page-header h1 {
    font-size: 35px;
  }

  .go-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .go-header-actions .go-btn {
    flex: 1;
  }

  .go-grid-2 {
    grid-template-columns: 1fr;
  }

  .go-bottom-nav {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 68px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--go-line);
    background: rgba(255, 255, 255, 0.97);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -9px 30px rgba(17, 17, 17, 0.08);
    backdrop-filter: blur(14px);
  }

  .go-bottom-nav button {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: var(--go-muted);
    font-size: 9px;
    font-weight: 700;
  }

  .go-bottom-nav button.is-active {
    color: var(--go-black);
  }

  .go-bottom-nav button.is-active .go-icon {
    color: #aa8800;
  }

  .go-modal {
    width: min(740px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
  }

  .go-login-shell {
    grid-template-columns: 1fr;
  }

  .go-login-brand {
    min-height: 38vh;
    padding: 38px 30px;
  }

  .go-login-logo {
    width: 70px;
    height: 70px;
  }

  .go-login-brand h1 {
    max-width: 570px;
    margin: 20px 0 10px;
    font-size: 44px;
  }

  .go-login-brand p {
    margin-bottom: 0;
  }

  .go-login-card {
    min-height: 62vh;
    padding: 40px 30px;
  }
}

@media (max-width: 620px) {
  .go-user-button {
    display: none;
  }

  .go-topbar {
    min-height: 64px;
  }

  .go-search {
    min-width: 0;
    padding-inline: 10px;
  }

  .go-search input::placeholder {
    font-size: 11px;
  }

  .go-branch-switch select {
    width: 108px;
    padding-inline: 7px;
    font-size: 11px;
  }

  .go-page-header h1 {
    font-size: 32px;
  }

  .go-stat-grid,
  .go-stat-grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .go-stat {
    min-height: 98px;
    gap: 10px;
    padding: 13px;
  }

  .go-stat > span {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .go-stat strong {
    font-size: 18px;
  }

  .go-card-grid {
    grid-template-columns: 1fr;
  }

  .go-panel {
    padding: 14px;
  }

  .go-panel-accent {
    padding: 22px;
  }

  .go-session-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .go-session-card em {
    display: none;
  }

  .go-filterbar {
    align-items: stretch;
  }

  .go-table-wrap {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tbody tr {
    display: grid;
    gap: 0;
    border: 1px solid var(--go-line);
    border-radius: 13px;
    background: #fff;
    padding: 5px 12px;
  }

  td {
    display: grid;
    grid-template-columns: 103px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 45px;
    border-bottom: 1px solid var(--go-line);
    padding: 8px 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--go-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .go-person {
    min-width: 0;
  }

  .go-person b {
    overflow-wrap: anywhere;
  }

  .go-report-builder,
  .go-form-grid {
    grid-template-columns: 1fr;
  }

  .go-span-2 {
    grid-column: auto;
  }

  .go-select-cards {
    grid-template-columns: 1fr;
    max-height: 230px;
  }

  .go-attendance-list article {
    grid-template-columns: 1fr;
  }

  .go-segmented {
    width: 100%;
  }

  .go-segmented label {
    flex: 1;
  }

  .go-segmented span {
    padding-inline: 5px;
  }

  .go-sticky-actions {
    position: sticky;
    bottom: 72px;
    background: var(--go-paper);
    padding-top: 10px;
  }

  .go-sticky-actions .go-btn {
    width: 100%;
  }

  .go-modal {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: none;
  }

  .go-modal > header,
  .go-modal-body {
    padding: 16px;
  }

  .go-modal footer {
    position: sticky;
    bottom: 0;
    flex-wrap: wrap;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .go-modal footer .go-form-error {
    flex-basis: 100%;
  }

  .go-modal footer .go-btn {
    flex: 1;
  }

  .go-login-brand {
    min-height: 31vh;
    padding: 26px 22px;
  }

  .go-login-logo {
    width: 56px;
    height: 56px;
  }

  .go-login-brand > span {
    margin-top: 10px;
    font-size: 8px;
  }

  .go-login-brand h1 {
    margin-top: 13px;
    font-size: 35px;
  }

  .go-login-brand p {
    display: none;
  }

  .go-login-card {
    min-height: 69vh;
    padding: 30px 20px;
  }

  .go-login-heading h2 {
    font-size: 32px;
  }
}

@media (max-width: 390px) {
  .go-search input::placeholder {
    color: transparent;
  }

  .go-stat-grid,
  .go-stat-grid-3 {
    grid-template-columns: 1fr;
  }

  .go-header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.go-person-button {
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.go-person-button:hover b {
  color: var(--go-gold-deep);
}

.go-row-actions,
.go-card-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.go-master-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.go-master-check input,
.go-row-check,
.go-user-check {
  width: 17px;
  height: 17px;
  accent-color: var(--go-yellow);
}

.go-bulkbar {
  display: none;
  align-items: center;
  gap: 12px;
  margin: -6px 0 15px;
  padding: 11px 14px;
  color: #fff;
  background: #171717;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

.go-bulkbar.is-visible {
  display: flex;
}

.go-bulkbar select {
  width: auto;
  min-width: 210px;
  margin-left: auto;
  color: #171717;
  background: #fff;
}

.go-muted {
  color: var(--go-muted);
  font-size: 12px;
}

.go-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.go-detail-stats article {
  padding: 20px;
  background: #171717;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
}

.go-detail-stats small {
  display: block;
  margin-bottom: 9px;
  color: #a9a9a9;
}

.go-detail-stats strong {
  color: #fff;
  font-size: 19px;
}

.go-detail-stats article:first-child {
  background: var(--go-yellow);
  border-color: var(--go-yellow);
}

.go-detail-stats article:first-child small,
.go-detail-stats article:first-child strong {
  color: #111;
}

.go-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.go-detail-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--go-line);
}

.go-detail-list dt {
  color: var(--go-muted);
}

.go-detail-list dd {
  margin: 0;
  font-weight: 650;
}

.go-mini-report-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.go-mini-report-list article {
  padding: 12px;
  background: #f8f7f3;
  border-radius: 10px;
}

.go-mini-report-list small {
  display: block;
  margin: 4px 0;
  color: var(--go-muted);
}

.go-mini-report-list p {
  margin: 0;
  font-size: 13px;
}

.go-status-paid {
  color: #08745a;
  background: #dcf7ee;
}

.go-status-partial {
  color: #8a5a00;
  background: #fff2c5;
}

.go-status-pending {
  color: #42526b;
  background: #edf1f6;
}

.go-status-overdue {
  color: #a61b29;
  background: #ffe3e6;
}

.go-section-help {
  margin: -4px 0 14px;
  color: var(--go-muted);
  font-size: 13px;
}

.go-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  background: var(--go-yellow);
  border-radius: 999px;
}

.go-ai-preview {
  margin-bottom: 18px;
  border-top: 4px solid var(--go-yellow);
}

.go-ai-document {
  max-width: 900px;
  margin: 0 auto;
  color: #202020;
}

.go-ai-document > header {
  padding: 22px 0;
  border-bottom: 3px solid var(--go-yellow);
}

.go-ai-document h2 {
  margin: 6px 0;
  font: 700 clamp(26px, 4vw, 40px)/1.1 Georgia, serif;
}

.go-ai-document h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.go-ai-document section {
  margin: 18px 0;
  padding: 18px;
  background: #faf9f6;
  border: 1px solid var(--go-line);
  border-radius: 12px;
}

.go-ai-document li {
  margin: 6px 0;
}

.go-ai-document footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--go-line);
}

.go-portal-shell {
  min-height: 100vh;
  color: var(--go-text);
  background: #f5f4ef;
}

.go-portal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  background: #111;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .14);
}

.go-portal-header .go-brand {
  border: 0;
}

.go-portal-header > div:last-child {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.go-portal-shell > main {
  max-width: 1240px;
  margin: auto;
  padding: 42px 24px 70px;
}

.go-portal-student {
  margin-top: 24px;
}

.go-portal-student > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  color: #fff;
  background: #171717;
  border-radius: 18px 18px 0 0;
}

.go-portal-student h2 {
  margin: 5px 0;
  font: 700 31px/1.1 Georgia, serif;
}

.go-portal-student p {
  margin: 0;
  color: #bcbcbc;
}

.go-portal-balance {
  min-width: 190px;
  padding: 14px 18px;
  color: #111;
  background: var(--go-yellow);
  border-radius: 12px;
}

.go-portal-balance small,
.go-portal-balance strong {
  display: block;
}

.go-portal-balance strong {
  margin-top: 3px;
  font-size: 23px;
}

.go-portal-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  padding-top: 16px;
}

.go-charge-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--go-line);
}

.go-charge-list span,
.go-charge-list small,
.go-charge-list strong {
  display: block;
}

.go-charge-list > div > span:last-child {
  text-align: right;
}

.go-charge-list small {
  margin-top: 3px;
  color: var(--go-muted);
}

.go-charge-list em {
  margin-top: 5px;
  font-style: normal;
}

.go-portal-reports details {
  padding: 13px 0;
  border-bottom: 1px solid var(--go-line);
}

.go-portal-reports summary {
  cursor: pointer;
}

.go-portal-reports summary small {
  display: block;
  margin-top: 4px;
  color: var(--go-muted);
}

.go-portal-password {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
}

.go-portal-password .go-login-card {
  width: min(480px, 100%);
  min-height: auto;
  border-radius: 18px;
}

@media (max-width: 800px) {
  .go-detail-stats,
  .go-portal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .go-bulkbar {
    align-items: stretch;
    flex-direction: column;
  }

  .go-bulkbar select {
    width: 100%;
    margin-left: 0;
  }

  .go-portal-header {
    padding: 0 16px;
  }
}

@media (max-width: 520px) {
  .go-detail-stats,
  .go-portal-grid {
    grid-template-columns: 1fr;
  }

  .go-portal-header > div:last-child > span {
    display: none;
  }

  .go-portal-shell > main {
    padding: 28px 14px 60px;
  }

  .go-portal-student > header {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .go-portal-balance {
    min-width: 0;
  }
}

@media print {
  .go-sidebar,
  .go-topbar,
  .go-bottom-nav,
  .go-page-header,
  .go-report-builder,
  .go-report-result .go-panel-head button {
    display: none !important;
  }

  .go-shell {
    display: block;
  }

  .go-page {
    max-width: none;
    padding: 0;
  }

  .go-panel {
    border: 0;
    box-shadow: none;
  }

  .go-report-result {
    margin: 0;
  }

  table {
    font-size: 10px;
  }

  th,
  td {
    padding: 6px;
  }
}
