:root {
  --ink: #16212d;
  --soft-ink: #536170;
  --muted: #7d8b99;
  --line: #dce4ea;
  --surface: #ffffff;
  --surface-2: #f6f9fb;
  --teal: #1b8f89;
  --teal-dark: #12645f;
  --blue: #315f9f;
  --amber: #c8841b;
  --rose: #b75d69;
  --shadow: 0 20px 60px rgba(19, 42, 61, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(135deg, rgba(27, 143, 137, 0.1), transparent 32%),
    linear-gradient(225deg, rgba(200, 132, 27, 0.12), transparent 30%),
    #eef4f6;
}

button,
input,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 480px);
  gap: 28px;
  width: min(1180px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  align-items: center;
  padding: 32px 0;
}

.login-brand {
  min-height: 620px;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)),
    repeating-linear-gradient(90deg, rgba(49, 95, 159, 0.06) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(27, 143, 137, 0.05) 0 1px, transparent 1px 64px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.brand-row,
.side-brand,
.login-card-head,
.panel-head,
.topbar,
.top-actions,
.dialog-head {
  display: flex;
  align-items: center;
}

.brand-row {
  gap: 16px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(27, 143, 137, 0.24);
}

.brand-mark.small {
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 42px;
}

.growth-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 92px;
}

.map-line {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber));
}

.map-node {
  position: relative;
  min-height: 168px;
  padding: 64px 16px 18px;
  border: 1px solid rgba(22, 33, 45, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.map-node::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 18px;
  width: 22px;
  height: 22px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(22, 33, 45, 0.1);
}

.map-node.active::before {
  background: var(--teal);
}

.map-node span,
.map-node strong {
  display: block;
}

.map-node span {
  color: var(--muted);
  font-size: 13px;
}

.map-node strong {
  margin-top: 8px;
  font-size: 18px;
}

.brand-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.brand-panel span,
.status-pill,
.tag {
  border-radius: 999px;
  white-space: nowrap;
}

.brand-panel span {
  padding: 12px;
  color: var(--soft-ink);
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.login-card,
.panel,
.hero-band,
.notice-strip {
  border: 1px solid rgba(22, 33, 45, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(19, 42, 61, 0.09);
}

.login-card {
  padding: 30px;
}

.login-card-head,
.panel-head,
.topbar,
.dialog-head {
  justify-content: space-between;
  gap: 16px;
}

.status-pill {
  padding: 7px 12px;
  color: var(--teal-dark);
  background: rgba(27, 143, 137, 0.12);
  font-size: 13px;
  font-weight: 700;
}

label {
  display: block;
  margin-top: 18px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27, 143, 137, 0.12);
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.role-tab,
.nav-item,
.ghost-btn,
.text-btn,
.future-grid button,
.admin-actions button {
  border: 0;
  background: transparent;
  color: var(--soft-ink);
}

.role-tab {
  min-height: 38px;
  border-radius: 6px;
  font-weight: 800;
}

.role-tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 7px 18px rgba(19, 42, 61, 0.08);
}

.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 800;
  text-decoration: none;
}

.login-note {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #f4f8f8;
  color: var(--soft-ink);
  font-size: 14px;
}

.login-note strong {
  color: var(--ink);
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 22px;
  color: #e9f3f2;
  background: #142d36;
}

.side-brand {
  gap: 12px;
  margin-bottom: 32px;
}

.side-brand span {
  display: block;
  margin-top: 3px;
  color: #a8c2c0;
  font-size: 13px;
}

.side-nav {
  display: grid;
  gap: 7px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: #b8cdcb;
  text-align: left;
  font-weight: 700;
}

.nav-item.active,
.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.side-footer {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.side-footer span {
  color: #a8c2c0;
  font-size: 13px;
}

.icp-footer {
  padding: 18px 16px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.icp-footer a {
  color: inherit;
  text-decoration: none;
}

.icp-footer a:hover {
  color: var(--blue);
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  margin-bottom: 16px;
}

.topbar h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.top-actions {
  gap: 10px;
}

.ghost-btn,
.text-btn {
  border-radius: 8px;
  font-weight: 800;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}

.ghost-btn:hover,
.future-grid button:hover,
.admin-actions button:hover {
  border-color: rgba(27, 143, 137, 0.35);
  color: var(--teal-dark);
}

.small-btn {
  min-height: 34px;
  font-size: 13px;
}

.text-btn {
  padding: 6px 0;
  color: var(--teal-dark);
}

.notice-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 16px;
  color: var(--soft-ink);
  box-shadow: none;
}

.notice-strip strong {
  color: var(--ink);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 24px;
  margin-bottom: 18px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78)),
    linear-gradient(90deg, rgba(27, 143, 137, 0.18), rgba(49, 95, 159, 0.14), rgba(200, 132, 27, 0.12));
}

.hero-band h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.hero-band p {
  margin-bottom: 0;
  color: var(--soft-ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-stats div {
  display: grid;
  place-items: center;
  min-height: 106px;
  border: 1px solid rgba(22, 33, 45, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.hero-stats strong {
  font-size: 32px;
}

.hero-stats span {
  color: var(--soft-ink);
  font-size: 13px;
}

.dashboard-grid,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
}

.panel {
  padding: 18px;
  box-shadow: none;
  overflow-x: auto;
}

.panel.wide {
  grid-row: span 2;
}

.panel h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.service-row,
.mapping-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.panel-head + .service-row,
.panel-head + .mapping-item {
  margin-top: 12px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.middle {
  background: var(--teal);
}

.gaobao {
  background: var(--blue);
}

.college {
  background: var(--amber);
}

.psychology {
  background: var(--rose);
}

.service-row strong,
.mapping-item strong {
  display: block;
  margin-bottom: 4px;
}

.service-row span:not(.tag),
.mapping-item span,
.muted,
.identity-card p,
.task-list,
.student-card span,
td,
th {
  color: var(--soft-ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.tag.open {
  color: var(--teal-dark);
  background: rgba(27, 143, 137, 0.12);
}

.tag.locked {
  color: #8e4f13;
  background: rgba(200, 132, 27, 0.15);
}

.tag.draft {
  color: #7b5260;
  background: rgba(183, 93, 105, 0.12);
}

.identity-card {
  margin-top: 12px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-2);
}

.identity-card span,
.identity-card strong {
  display: block;
}

.identity-card strong {
  margin: 7px 0;
  font-size: 22px;
}

.identity-card p {
  margin-bottom: 0;
  line-height: 1.6;
}

.task-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.task-list li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.task-list li span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.module-card {
  display: grid;
  gap: 16px;
  min-height: 320px;
  padding: 18px;
  border: 1px solid rgba(22, 33, 45, 0.08);
  border-radius: 8px;
  background: #fff;
}

.module-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.module-card h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.module-card p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.6;
}

.module-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: auto;
}

.module-actions .primary-btn {
  min-height: 42px;
}

.module-actions .ghost-btn {
  min-height: 42px;
}

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

.submodule-list span {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--soft-ink);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
}

.future-grid,
.admin-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.future-grid button,
.admin-actions button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.profile-layout {
  display: grid;
  grid-template-columns: 240px 240px 240px minmax(280px, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.workspace-layout,
.reports-layout {
  display: grid;
  gap: 18px;
}

.workspace-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.reports-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.report-preview-panel {
  grid-column: 2;
}

.search-field {
  margin-top: 14px;
}

.student-list,
.timeline-list,
.service-access-list,
.todo-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.student-row {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 96px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.student-row.selected,
.student-row:hover {
  border-color: rgba(27, 143, 137, 0.42);
  background: rgba(27, 143, 137, 0.06);
}

.student-row span,
.student-row em {
  color: var(--soft-ink);
  font-size: 13px;
}

.student-row em {
  color: var(--teal-dark);
  font-style: normal;
  font-weight: 800;
}

.profile-summary,
.profile-columns,
.report-stats,
.preview-meta {
  display: grid;
  gap: 12px;
}

.profile-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.profile-summary div,
.preview-meta div,
.report-stats div {
  padding: 13px;
  border-radius: 8px;
  background: var(--surface-2);
}

.profile-summary span,
.profile-summary strong,
.preview-meta span,
.preview-meta strong,
.report-stats span,
.report-stats strong {
  display: block;
}

.profile-summary span,
.preview-meta span,
.report-stats span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-summary strong {
  line-height: 1.45;
}

.profile-columns {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  margin-top: 18px;
}

.profile-columns section {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-columns.lower {
  align-items: stretch;
}

.subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subhead h4 {
  margin: 0;
  font-size: 15px;
}

.progress-line {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.timeline-item-small,
.service-access,
.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-2);
}

.timeline-item-small strong {
  min-width: 80px;
}

.timeline-item-small em {
  margin-left: auto;
  color: var(--soft-ink);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.dot.open {
  background: var(--teal);
}

.dot.draft {
  background: var(--amber);
}

.dot.locked {
  background: var(--muted);
}

.service-access {
  justify-content: space-between;
}

.todo-item input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.note-box {
  margin-top: 14px;
  min-height: 138px;
  padding: 14px;
  border-radius: 8px;
  color: var(--soft-ink);
  background: var(--surface-2);
  line-height: 1.7;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft-ink);
  background: #fff;
  font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: rgba(27, 143, 137, 0.36);
  color: var(--teal-dark);
  background: rgba(27, 143, 137, 0.08);
}

.report-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.report-stats strong {
  color: var(--ink);
  font-size: 24px;
}

.report-table tr.selected-row td {
  background: rgba(27, 143, 137, 0.06);
}

.empty-cell {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.report-preview {
  margin-top: 14px;
}

.report-preview h4 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.report-preview p,
.report-preview li {
  color: var(--soft-ink);
  line-height: 1.7;
}

.preview-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.report-preview ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.account-profile-panel {
  grid-row: span 3;
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-2);
}

.account-avatar-large {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 8px;
  font-size: 30px;
}

.account-hero span,
.account-hero strong,
.account-hero p {
  display: block;
}

.account-hero span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.account-hero strong {
  margin: 4px 0 6px;
  font-size: 26px;
}

.account-hero p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.6;
}

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

.linked-profile,
.account-service-list,
.security-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.linked-student-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(27, 143, 137, 0.24);
  border-radius: 8px;
  background: rgba(27, 143, 137, 0.06);
}

.linked-student-card span,
.linked-student-card em,
.security-list span {
  color: var(--soft-ink);
  font-style: normal;
}

.linked-student-card em {
  color: var(--teal-dark);
  font-weight: 800;
}

.profile-summary.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.security-list div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-radius: 8px;
  background: var(--surface-2);
}

.student-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.student-card.selected {
  border-color: rgba(27, 143, 137, 0.45);
  background: rgba(27, 143, 137, 0.06);
}

.student-card em {
  align-self: end;
  color: var(--teal-dark);
  font-style: normal;
  font-weight: 800;
}

.profile-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-2);
}

.profile-detail div {
  padding: 13px;
  border-radius: 8px;
  background: #fff;
}

.profile-detail span,
.profile-detail strong {
  display: block;
}

.profile-detail span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

table {
  width: 100%;
  min-width: 620px;
  margin-top: 16px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--ink);
  background: var(--surface-2);
  font-size: 13px;
}

.mapping-list {
  margin-top: 12px;
}

.mapping-item {
  grid-template-columns: 48px minmax(0, 1fr) 120px;
}

.mapping-item .ghost-btn {
  width: 100%;
}

.access-matrix {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  margin-top: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.access-matrix > div {
  min-width: 110px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.access-matrix .matrix-head {
  color: var(--ink);
  background: var(--surface-2);
  font-weight: 800;
}

dialog {
  width: min(440px, calc(100vw - 34px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(13, 25, 34, 0.42);
}

.dialog-card {
  padding: 20px;
}

.dialog-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 24px;
  line-height: 1;
}

.dialog-card p {
  color: var(--soft-ink);
  line-height: 1.7;
}

.dialog-actions {
  margin-top: 16px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  transform: translateY(20px);
  opacity: 0;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: #142d36;
  transition: 0.2s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.os-shell {
  width: min(1120px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 34px;
}

.os-topbar,
.section-head,
.os-brand {
  display: flex;
  align-items: center;
}

.os-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 33, 45, 0.08);
  border-radius: 8px;
  background: rgba(247, 251, 252, 0.9);
  box-shadow: 0 12px 34px rgba(19, 42, 61, 0.08);
  backdrop-filter: blur(18px);
}

.os-brand {
  gap: 12px;
}

.os-topbar h2 {
  margin: 0;
  font-size: 28px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.top-nav-item,
.account-chip {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--soft-ink);
  font-weight: 800;
}

.top-nav-item {
  min-height: 34px;
  padding: 0 12px;
}

.top-nav-item.active,
.top-nav-item:hover {
  color: var(--teal-dark);
  background: rgba(27, 143, 137, 0.1);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px 0 6px;
  border: 1px solid var(--line);
  background: #fff;
}

.account-chip span,
.account-avatar-large {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 900;
}

.account-chip span {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.os-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  min-height: 164px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7)),
    radial-gradient(circle at 8% 12%, rgba(27, 143, 137, 0.22), transparent 30%),
    radial-gradient(circle at 92% 24%, rgba(200, 132, 27, 0.18), transparent 28%);
  box-shadow: var(--shadow);
}

.os-hero h3 {
  margin: 14px 0 8px;
  font-size: 34px;
}

.os-hero p {
  max-width: 680px;
  color: var(--soft-ink);
  line-height: 1.7;
}

.identity-card.compact {
  align-self: stretch;
  margin: 0;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 33, 45, 0.08);
}

.desktop-section {
  margin-top: 18px;
}

.detail-section {
  margin-bottom: 30px;
}

.section-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-head h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-card.os-app {
  min-height: 236px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    var(--surface);
  box-shadow: 0 18px 44px rgba(19, 42, 61, 0.1);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.module-card.os-app:hover {
  transform: translateY(-3px);
  border-color: rgba(27, 143, 137, 0.26);
  box-shadow: 0 24px 58px rgba(19, 42, 61, 0.14);
}

.app-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(19, 42, 61, 0.18);
}

.app-icon.files {
  background: linear-gradient(135deg, #3f7f73, #1b8f89);
}

.app-icon.reports {
  background: linear-gradient(135deg, #315f9f, #4b7dc1);
}

.app-icon.billing {
  background: linear-gradient(135deg, #3f7f73, #c8841b);
}

.app-icon.account {
  background: linear-gradient(135deg, #1b8f89, #315f9f);
}

.app-icon.ielts {
  background: linear-gradient(135deg, #1f7a72, #315f9f);
}

.app-icon.children {
  background: linear-gradient(135deg, #2f8c76, #c8841b);
}

.app-icon.play {
  background: linear-gradient(135deg, #2c7a67, #4b7dc1);
}

.app-icon.health {
  background: linear-gradient(135deg, #3f7f73, #b75d69);
}

.app-icon.admin {
  background: linear-gradient(135deg, #c8841b, #d69b38);
}

.app-icon.access {
  background: linear-gradient(135deg, #7b5260, #b75d69);
}

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

.os-card {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(22, 33, 45, 0.08);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  text-align: left;
  box-shadow: 0 12px 32px rgba(19, 42, 61, 0.07);
  text-decoration: none;
  cursor: pointer;
}

.os-card:hover {
  transform: translateY(-2px);
  border-color: rgba(49, 95, 159, 0.28);
}

.os-card strong {
  font-size: 17px;
}

.os-card .app-icon {
  width: 46px;
  height: 46px;
  font-size: 19px;
}

.os-card em {
  color: var(--soft-ink);
  font-style: normal;
  line-height: 1.5;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.stat-row div {
  display: grid;
  gap: 3px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-2);
}

.stat-row strong {
  font-size: 30px;
}

.stat-row span {
  color: var(--soft-ink);
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.billing-layout {
  display: grid;
  gap: 18px;
}

.plan-grid,
.gateway-grid,
.flow-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.plan-card {
  display: grid;
  gap: 10px;
  min-height: 218px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.plan-card.active {
  border-color: rgba(27, 143, 137, 0.42);
  background: rgba(27, 143, 137, 0.05);
}

.plan-card span,
.gateway-card span,
.flow-grid span {
  color: var(--soft-ink);
}

.plan-card strong {
  font-size: 30px;
}

.plan-card em {
  color: var(--soft-ink);
  font-style: normal;
  line-height: 1.6;
}

.manual-billing-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.manual-billing-form label {
  display: grid;
  gap: 7px;
}

.manual-billing-form label span {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.manual-billing-form input,
.manual-billing-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.manual-billing-form .form-wide {
  grid-column: span 2;
}

.manual-billing-form button {
  align-self: end;
  min-height: 44px;
}

.plan-card button {
  align-self: end;
}

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

.gateway-card,
.flow-grid div {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gateway-card strong,
.flow-grid strong {
  font-size: 16px;
}

.gateway-card code {
  overflow-wrap: anywhere;
  color: var(--soft-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

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

.flow-grid span {
  line-height: 1.6;
}

.wide-panel {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .login-shell,
  .app-shell,
  .os-hero,
  .hero-band,
  .dashboard-grid,
  .admin-grid,
  .mini-grid,
  .account-layout,
  .account-form-grid,
  .workspace-layout,
  .reports-layout,
  .profile-summary,
  .profile-columns {
    grid-template-columns: 1fr;
  }

  .report-preview-panel {
    grid-column: auto;
  }

  .sidebar {
    min-height: auto;
  }

  .side-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .module-grid,
  .app-grid,
  .tool-grid,
  .plan-grid,
  .manual-billing-form,
  .gateway-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .manual-billing-form .form-wide {
    grid-column: auto;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    background: #eef4f6;
  }

  .login-shell {
    width: min(100% - 24px, 520px);
  }

  .login-brand {
    min-height: auto;
    padding: 22px;
  }

  .growth-map,
  .brand-panel,
  .hero-stats,
  .future-grid,
  .admin-actions,
  .profile-detail,
  .preview-meta,
  .report-stats {
    grid-template-columns: 1fr;
  }

  .growth-map {
    margin-top: 32px;
  }

  .map-line {
    display: none;
  }

  .workspace,
  .os-shell {
    width: min(100% - 24px, 620px);
    padding: 12px 0 28px;
  }

  .topbar,
  .os-topbar,
  .section-head,
  .notice-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav,
  .top-actions {
    width: 100%;
  }

  .top-nav {
    overflow-x: auto;
  }

  .account-chip {
    flex: 1;
    justify-content: flex-start;
  }

  .account-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .side-nav {
    grid-template-columns: 1fr 1fr;
  }

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

  .os-hero {
    padding: 20px;
  }

  .os-hero h3 {
    font-size: 28px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }
}
