@import url("/css/print.css");
:root {
  --bg: #f7f8f4;
  --panel: #fff;
  --ink: #223c32;
  --muted: #586b5e;
  --green: #245b46;
  --green-dark: #193e31;
  --soft: #eaf0e7;
  --line: #e5e9e1;
  --gold: #e8c487;
  --shadow: 0 8px 32px #203c3007;
  --sidebar: 248px;
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b17a2e;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -1px;
}
h2 {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 650;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
.icon-button {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 8px;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s;
  min-height: 40px;
}
.btn:hover {
  background: var(--soft);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn.primary:hover {
  background: var(--green-dark);
}
.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #25392b;
}
.btn.sm {
  padding: 7px 11px;
  min-height: 34px;
  font-size: 12px;
}
.text-link {
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.text-link:hover {
  text-decoration: underline;
}
.skip {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 3000;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  width: var(--sidebar);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 29px 24px 25px;
}
.brand-mark {
  background: var(--green);
  color: var(--gold);
  width: 37px;
  height: 37px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.brand-mark .icon {
  width: 25px;
  height: 25px;
}
.brand-name {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-top: 5px;
  text-transform: uppercase;
}
.school-switch {
  margin: 0 18px 23px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
}
.school-switch .icon {
  color: var(--green);
}
.nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #657560;
  margin: 10px 28px;
}
.nav {
  padding: 0 14px;
  overflow: auto;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 3px 0;
  color: #66766b;
  font-size: 13px;
  font-weight: 550;
}
.nav a:hover {
  background: var(--bg);
}
.nav a.active {
  background: var(--soft);
  color: var(--green);
  font-weight: 700;
}
.nav .nav-count {
  margin-left: auto;
  background: #d6e2d2;
  border-radius: 5px;
  padding: 0 6px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 18px;
}
.offline-card {
  background: #f6f4ec;
  border: 1px solid #eeeadb;
  padding: 15px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.6;
}
.offline-card p {
  color: #58694f;
  margin: 5px 0 10px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e8d6bc;
  color: #604d35;
  font-size: 12px;
  font-weight: 650;
}
.profile-name {
  font-size: 12px;
  font-weight: 650;
}
.profile-role {
  font-size: 10px;
  color: var(--muted);
}
.profile .icon-button {
  margin-left: auto;
  border: 0;
}
.workspace {
  margin-left: var(--sidebar);
}
.topbar {
  height: 78px;
  padding: 0 37px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  gap: 15px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb strong {
  font-weight: 550;
  color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.status {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #498665;
}
.status.offline:before {
  background: #bc7429;
}
.date {
  font-size: 12px;
  color: var(--muted);
}
main {
  padding: 30px 37px 50px;
  max-width: 1640px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 9px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 9px;
}
.hero {
  position: relative;
  border-radius: 15px;
  background: var(--green);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 260px;
  color: white;
  margin-bottom: 24px;
}
.hero-copy {
  padding: 32px 35px;
  z-index: 2;
}
.hero .eyebrow {
  color: #c3d5bd;
  font-size: 10px;
}
.hero h2 {
  font-size: 34px;
  line-height: 1.18;
  font-weight: 550;
  letter-spacing: -1px;
  max-width: 360px;
}
.hero h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #edcf99;
}
.hero p {
  font-size: 12px;
  line-height: 1.7;
  color: #dae5d8;
  max-width: 340px;
  margin: 15px 0 23px;
}
.hero-art {
  position: relative;
  overflow: hidden;
  background: #2e6751;
}
.hero-art:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--green), transparent 40%);
  z-index: 1;
}
.hero-art img {
  width: 116%;
  height: 360px;
  object-fit: cover;
  transform: rotate(-13deg) translate(15px, 12px);
  opacity: 0.88;
  filter: saturate(0.65);
  border-radius: 15px;
  box-shadow: 0 4px 20px #16362750;
}
.hero-tag {
  position: absolute;
  bottom: 26px;
  right: 23px;
  z-index: 2;
  border: 1px solid #ffffff50;
  border-radius: 30px;
  font-size: 10px;
  background: #204e3adf;
  padding: 7px 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--soft);
  color: var(--green);
}
.stat:nth-child(2) .stat-icon {
  background: #f5eee0;
  color: #94733d;
}
.stat:nth-child(3) .stat-icon {
  background: #e9eef5;
  color: #577795;
}
.stat:nth-child(4) .stat-icon {
  background: #efeaf4;
  color: #85719c;
}
.stat strong {
  font-size: 25px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.stat p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  gap: 12px;
}
.section-heading h2 {
  font-size: 18px;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 25px;
}
.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 30px;
}
.tool-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 19px 17px;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
.tool-card:hover {
  border-color: #a2b9a3;
  box-shadow: var(--shadow);
}
.tool-card .tool-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 9px;
  background: var(--soft);
  color: var(--green);
  margin-bottom: 16px;
}
.tool-card:nth-child(2) .tool-icon {
  background: #f7eedc;
  color: #9b793c;
}
.tool-card:nth-child(3) .tool-icon {
  background: #e9edf5;
  color: #597597;
}
.tool-card h3 {
  font-size: 13px;
}
.tool-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 13px;
  line-height: 1.6;
}
.tool-card .text-link {
  font-size: 10px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
}
.topic-list {
  display: grid;
  gap: 4px;
}
.topic-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.topic-row:last-child {
  border: 0;
}
.topic-row .topic-glyph {
  width: 34px;
  height: 34px;
  background: var(--soft);
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
}
.topic-row h3 {
  font-size: 12px;
}
.topic-row p {
  font-size: 10px;
  color: var(--muted);
}
.topic-row > .icon {
  margin-left: auto;
  width: 15px;
  color: var(--muted);
}
.callout {
  background: #f2eee2;
  border: 1px solid #e9e2cf;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
}
.callout .icon {
  color: #8d753f;
}
.callout h3 {
  margin: 10px 0 7px;
  font-size: 15px;
}
.callout p {
  color: #625f49;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 15px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.resource-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition:
    box-shadow 0.15s,
    border 0.15s;
}
.resource-card:hover {
  box-shadow: var(--shadow);
  border-color: #c0cebd;
}
.resource-thumb {
  height: 155px;
  background: #edf0e2;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.resource-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transition: transform 0.3s;
}
.resource-card:hover img {
  transform: scale(1.04);
}
.resource-thumb .favourite {
  position: absolute;
  right: 11px;
  top: 11px;
  background: #fffffff0;
  border: 0;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  color: #607765;
}
.resource-thumb .favourite.selected {
  color: #ae624f;
}
.favourite.selected svg {
  fill: #f4d8d0;
}
.resource-thumb .badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: #fffffff0;
  color: #31533c;
}
.resource-content {
  padding: 17px;
}
.resource-content h3 {
  font-size: 13px;
  line-height: 1.5;
  min-height: 39px;
}
.resource-content p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 14px;
}
.resource-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.resource-footer .icon {
  width: 13px;
  height: 13px;
}
.badge {
  display: inline-flex;
  align-items: center;
  background: var(--soft);
  color: var(--green);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.gold {
  background: #f4ead5;
  color: #775d2d;
}
.badge.blue {
  background: #e8eef4;
  color: #476781;
}
.badge.gray {
  background: #eee;
  color: #666;
}
.compass-art {
  font-family: Georgia, serif;
  width: 155px;
  height: 155px;
  position: relative;
  display: grid;
  place-items: center;
  color: #376047;
}
.compass-art:before {
  content: "";
  width: 105px;
  height: 105px;
  border: 1px solid #97af92;
  border-radius: 50%;
  position: absolute;
}
.compass-art .rose {
  font-size: 104px;
  line-height: 1;
  color: #68876a;
  transform: rotate(-20deg);
  opacity: 0.8;
}
.compass-art span {
  position: absolute;
  font:
    600 12px "Segoe UI",
    sans-serif;
}
.compass-art .n {
  top: 5px;
}
.compass-art .s {
  bottom: 4px;
}
.compass-art .w {
  left: 7px;
  top: 68px;
}
.compass-art .e {
  right: 7px;
  top: 68px;
}
.scale-art {
  font-family: Georgia, serif;
  color: #4f673e;
  font-size: 36px;
  text-align: center;
}
.scale-art small {
  display: block;
  font: 12px "Segoe UI";
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.scale-art .scale-line {
  height: 12px;
  border: 2px solid #5e744e;
  border-top: 0;
  width: 170px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, #5e744e 50%, transparent 50%);
}
.grid-art {
  display: grid;
  grid-template-columns: repeat(4, 30px);
  grid-template-rows: repeat(3, 30px);
  gap: 2px;
  transform: rotate(-8deg);
}
.grid-art span {
  border: 1px solid #9fae8f;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #526c4a;
}
.grid-art span:nth-child(7) {
  background: #668563;
  color: #fff;
}
.globe-art {
  width: 125px;
  height: 125px;
  border: 2px solid #849c79;
  border-radius: 50%;
  position: relative;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 29px,
    #bac9ab 30px,
    #bac9ab 31px
  );
  overflow: hidden;
}
.globe-art:before {
  content: "";
  position: absolute;
  inset: -2px 30px;
  border: 1px solid #849c79;
  border-radius: 50%;
}
.globe-art:after {
  content: "";
  position: absolute;
  inset: 60px 0 auto;
  height: 2px;
  background: #bf8e57;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 23px;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 190px;
}
.search-field .icon {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 17px;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid #dce2d8;
  border-radius: 7px;
  padding: 10px 11px;
  min-height: 41px;
}
input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  accent-color: var(--green);
}
.search-field input {
  padding-left: 37px;
}
.filters select {
  width: auto;
  max-width: 230px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 17px;
}
.field label,
.field-label {
  font-size: 12px;
  font-weight: 600;
}
.field small {
  color: var(--muted);
  font-size: 11px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 10px 0 20px;
}
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 20px;
}
.map-panel {
  padding: 0;
  overflow: hidden;
}
.map-top {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.map-top h3 {
  font-size: 14px;
}
#map {
  height: 570px;
  width: 100%;
  background: #e9eddf;
}
.map-foot {
  padding: 12px 17px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.map-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0;
}
.map-measure {
  padding: 13px;
  background: var(--soft);
  border-radius: 8px;
  margin: 12px 0;
}
.map-measure strong {
  font-size: 23px;
}
.map-side .panel {
  padding: 18px;
}
.map-side h3 {
  font-size: 13px;
  margin-bottom: 12px;
}
.map-side .btn {
  font-size: 11px;
  padding: 8px 11px;
}
.key-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin: 9px 0;
}
.key-symbol {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #e5eddf;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}
.leaflet-container {
  font-family: "Segoe UI", Arial, sans-serif;
}
.map-label {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #204735;
  font-size: 12px;
  font-weight: 700;
}
.compass-control {
  background: #ffffffed;
  padding: 11px;
  border-radius: 50%;
  box-shadow: 0 2px 10px #2343;
  text-align: center;
  font-size: 12px;
  color: #204735;
  line-height: 1.2;
}
.compass-control strong {
  font-size: 20px;
}
.lesson-list {
  display: grid;
  gap: 12px;
}
.lesson-row {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.lesson-row .text {
  flex: 1;
}
.lesson-row h3 {
  font-size: 15px;
}
.lesson-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0;
}
.block {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  margin: 12px 0;
  background: var(--panel);
}
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.block-head strong {
  font-size: 12px;
  text-transform: capitalize;
}
.block-actions {
  display: flex;
  gap: 5px;
}
.block textarea {
  min-height: 95px;
}
.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
}
.builder-rail {
  position: sticky;
  top: 20px;
  align-self: start;
}
.block-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.block-types .btn {
  font-size: 11px;
  padding: 8px;
}
.question-editor {
  margin: 17px 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.question-editor p {
  font-size: 12px;
  margin: 8px 0;
}
.answer {
  background: var(--soft);
  padding: 12px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.7;
}
.answer strong {
  color: var(--green);
}
.assignment-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin: 14px 0;
}
.assignment-card h3 {
  margin: 9px 0;
}
.quiz-option {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 9px 0;
  cursor: pointer;
}
.quiz-option:has(input:checked) {
  background: var(--soft);
  border-color: var(--green);
}
.quiz-option input {
  width: 16px;
  min-height: 16px;
  margin-right: 10px;
}
.quiz-option:hover {
  background: var(--bg);
}
.question-number {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 17px;
}
.question-prompt {
  font-size: 21px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.feedback {
  background: var(--soft);
  border-left: 3px solid var(--green);
  padding: 18px;
  margin: 18px 0;
  font-size: 13px;
}
.feedback.incorrect {
  background: #f8f0e4;
  border-color: #ac7b36;
}
.progress-bar {
  height: 7px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 8px;
}
.skill-row {
  display: grid;
  grid-template-columns: 180px 1fr 40px;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  font-size: 13px;
}
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--soft);
  margin: 0 auto 17px;
  color: var(--green);
}
.empty h3 {
  color: var(--ink);
}
.empty p {
  font-size: 12px;
  margin: 8px 0 20px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border: 0;
}
.notice {
  padding: 14px 17px;
  border-radius: 8px;
  background: #f5efdf;
  color: #766039;
  font-size: 12px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.error-message {
  color: #a13c36;
  font-size: 12px;
  margin: 12px 0;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  max-width: min(90vw, 580px);
  background: #203f31;
  color: white;
  padding: 13px 22px;
  border-radius: 10px;
  box-shadow: 0 6px 30px #0003;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 5000;
  font-size: 13px;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  color: var(--ink);
  width: min(850px, 93vw);
  max-height: 90vh;
  padding: 34px;
  box-shadow: 0 30px 80px #0003;
}
dialog::backdrop {
  background: #122c2366;
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
  font-size: 22px;
  background: var(--bg);
  z-index: 1;
}
dialog h2 {
  margin: 5px 30px 20px 0;
}
dialog p {
  margin: 10px 0;
}
dialog img {
  max-width: 100%;
  border-radius: 9px;
}
.resource-detail h3 {
  margin-top: 22px;
}
.resource-detail .explanation {
  line-height: 1.9;
  font-size: 14px;
}
.detail-metadata {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 11px;
  background: var(--bg);
  padding: 18px;
  border-radius: 9px;
  margin-top: 20px;
}
.detail-metadata a {
  color: var(--green);
  word-break: break-word;
}
.login-screen {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
.login-art {
  background: var(--green-dark);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 45px;
}
.login-art .brand {
  padding: 0;
  color: white;
}
.login-art .brand-sub {
  color: #b6ccb6;
}
.login-art img {
  position: absolute;
  width: 85%;
  bottom: -90px;
  right: -70px;
  transform: rotate(-14deg);
  opacity: 0.55;
  border-radius: 18px;
}
.login-message {
  position: relative;
  margin-top: 80px;
  z-index: 1;
}
.login-message h1 {
  font-size: 50px;
  max-width: 400px;
  line-height: 1.12;
  font-weight: 500;
}
.login-message h1 em {
  color: var(--gold);
  font-family: Georgia, serif;
}
.login-message p {
  font-size: 14px;
  color: #c5d6c0;
  margin-top: 22px;
  max-width: 350px;
  line-height: 1.8;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg);
}
.login-form {
  max-width: 360px;
  width: 100%;
}
.login-form h2 {
  font-size: 29px;
  font-weight: 600;
}
.login-form > p {
  color: var(--muted);
  margin: 12px 0 30px;
  font-size: 13px;
}
.login-form .btn {
  width: 100%;
}
.login-footer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 25px;
  line-height: 1.8;
}
.mobile-menu {
  display: none;
}
.presentation {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  padding: 6vh 8vw;
  overflow: auto;
}
.presentation h1 {
  font-size: clamp(32px, 5vw, 76px);
  margin: 5vh 0;
}
.presentation .slide-content {
  font-size: clamp(22px, 2.7vw, 40px);
  line-height: 1.7;
  max-width: 1100px;
}
.presentation img {
  height: 65vh;
  max-width: 100%;
  object-fit: contain;
}
.presentation-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: var(--panel);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 3px 20px #0002;
}
.scale-result {
  font-size: 34px;
  color: var(--green);
  margin: 17px 0;
}
.calculation {
  font-size: 15px;
  line-height: 2;
  background: var(--soft);
  padding: 20px;
  border-radius: 9px;
}
.globe-view {
  max-width: 600px;
  width: 100%;
  aspect-ratio: 1;
  display: block;
  margin: auto;
}
.footer-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.dark {
  --bg: #17251f;
  --panel: #20332a;
  --ink: #e2ecdf;
  --muted: #a9b9a8;
  --green: #9dc8a6;
  --green-dark: #608e6e;
  --soft: #304b38;
  --line: #3c4e40;
  --gold: #e0bd80;
  color-scheme: dark;
}
.dark .hero {
  background: #254d3b;
}
.dark .hero-art:before {
  background: linear-gradient(90deg, #254d3b, transparent 40%);
}
.dark .btn.primary {
  background: #9dc8a6;
  color: #17251f;
}
.dark .callout,
.dark .offline-card {
  background: #393c2b;
  border-color: #50503d;
}
.dark .callout p,
.dark .offline-card p {
  color: #cbc8ab;
}
.dark .notice {
  background: #443e29;
  color: #e5d8af;
}
.dark .resource-thumb {
  background: #dce3cc;
}
.dark .stat-icon {
  background: #304b38;
}
.dark .stat:nth-child(n) .stat-icon {
  background: #304b38;
  color: #b8d3aa;
}
.dark input,
.dark select,
.dark textarea {
  border-color: var(--line);
}
.dark .login-art {
  background: #244633;
}
.dark .login-message p {
  color: #ddd;
}
.dark .avatar {
  background: #5d5341;
  color: #f3e5ca;
}
@media (min-width: 1550px) {
  .hero {
    min-height: 290px;
  }
  .hero-copy {
    padding: 40px;
  }
  .hero-art img {
    height: 410px;
  }
  .resource-thumb {
    height: 180px;
  }
  .tools {
    gap: 20px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 220px;
  }
  .brand {
    padding: 26px 18px;
  }
  .brand-name {
    font-size: 19px;
  }
  .topbar {
    padding: 0 25px;
  }
  main {
    padding: 25px;
  }
  .two-columns {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
  }
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tools {
    gap: 9px;
  }
  .tool-card {
    padding: 16px 12px;
  }
  .date {
    display: none;
  }
  .stat {
    padding: 15px 12px;
    gap: 10px;
  }
  .stat-icon {
    width: 35px;
    height: 35px;
  }
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}
@media (max-width: 960px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
  .right-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .right-rail .panel {
    margin-bottom: 0;
  }
  .builder-layout {
    grid-template-columns: 1fr;
  }
  .builder-rail {
    position: static;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .hero h2 {
    font-size: 30px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    display: block;
  }
  .stat-icon {
    margin-bottom: 10px;
  }
  .lesson-row {
    flex-wrap: wrap;
  }
  .login-message h1 {
    font-size: 40px;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar: 248px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw #1237;
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .breadcrumb {
    gap: 8px;
  }
  .top-actions {
    gap: 8px;
  }
  .status {
    display: none;
  }
  main {
    padding: 24px 18px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading > .btn {
    font-size: 11px;
    padding: 8px 11px;
  }
  .hero {
    grid-template-columns: 1fr 42%;
    min-height: 240px;
  }
  .hero-copy {
    padding: 27px 23px;
  }
  .hero h2 {
    font-size: 29px;
  }
  .hero p {
    font-size: 11px;
  }
  .hero-art img {
    height: 300px;
    width: 185%;
    object-position: center;
  }
  .hero-tag {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .stat {
    padding: 12px 10px;
  }
  .stat strong {
    font-size: 21px;
  }
  .stat p {
    font-size: 10px;
  }
  .tools {
    grid-template-columns: repeat(3, 1fr);
  }
  .tool-card p {
    min-height: 52px;
  }
  .right-rail {
    grid-template-columns: 1fr;
  }
  .resource-grid {
    gap: 12px;
  }
  .resource-thumb {
    height: 130px;
  }
  .resource-content {
    padding: 13px;
  }
  .resource-content h3 {
    font-size: 12px;
  }
  .filters select {
    max-width: none;
    flex: 1;
    min-width: 120px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .map-side {
    grid-template-columns: 1fr 1fr;
  }
  #map {
    height: 480px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 200px;
    padding: 26px;
  }
  .login-art img {
    width: 55%;
    bottom: -200px;
    right: 0;
  }
  .login-message {
    margin-top: 25px;
  }
  .login-message h1 {
    font-size: 29px;
    max-width: 340px;
  }
  .login-message p {
    display: none;
  }
  .login-form-wrap {
    padding: 40px 25px;
  }
  .login-form {
    max-width: 430px;
  }
  .skill-row {
    grid-template-columns: 120px 1fr 35px;
    gap: 10px;
  }
  .footer-note {
    flex-direction: column;
  }
  .detail-metadata {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-art {
    display: none;
  }
  .hero p {
    max-width: 280px;
  }
  .tools {
    grid-template-columns: 1fr;
  }
  .tool-card {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 12px;
    padding: 15px;
  }
  .tool-card .tool-icon {
    grid-row: span 3;
    margin: 0;
  }
  .tool-card p {
    min-height: auto;
    margin: 5px 0 10px;
  }
  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }
  .resource-thumb {
    height: 110px;
  }
  .resource-content h3 {
    min-height: 54px;
  }
  .resource-footer {
    font-size: 9px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    display: flex;
  }
  .stat-icon {
    margin: 0;
  }
  .map-side {
    grid-template-columns: 1fr;
  }
  .topbar .btn {
    display: none;
  }
  .breadcrumb span {
    display: none;
  }
}

[hidden] {
  display: none !important;
}
.scale-art {
  font-size: 29px;
}
.scale-art small {
  font-size: 8px;
  letter-spacing: 1px;
}

.nav-count {
  color: #245b46;
}
.grid-art span:nth-child(7) {
  background: #4c7047;
}

.topic-goal{display:flex;align-items:center;gap:18px;padding:22px;background:var(--soft);border:1px solid var(--line);border-radius:12px;margin-bottom:24px}.topic-goal>div{flex:1}.topic-goal p{font-size:13px;margin-top:5px}.topic-triad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}.topic-experience{padding:23px}.topic-experience h2{font-size:23px;margin-bottom:18px}.topic-experience>p{font-size:13px;line-height:1.85;margin:18px 0}.topic-experience .answer{margin:20px 0;line-height:1.85}.topic-experience .toolbar{align-items:stretch;flex-direction:column}.topic-experience summary{font-size:12px;font-weight:600}.topic-experience details p{font-size:12px;line-height:1.8;margin-top:12px}.map-layout:fullscreen{background:var(--bg);padding:18px;width:100vw;height:100vh}.map-layout:fullscreen #map{height:calc(100vh - 155px)}@media(max-width:1200px){.topic-triad{grid-template-columns:1fr}.topic-experience .toolbar{flex-direction:row}.topic-goal{flex-wrap:wrap}.topic-goal>.btn{width:100%}}
