:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #eef5f2;
  --surface-strong: #dfe9e4;
  --ink: #14211c;
  --muted: #66746e;
  --line: #d7dfda;
  --teal: #007f7a;
  --teal-soft: #dcefeb;
  --amber: #b66a16;
  --amber-soft: #fff0dc;
  --blue: #386fa4;
  --blue-soft: #e3eef8;
  --green: #2f7d4e;
  --green-soft: #e3f2e8;
  --red: #a84235;
  --red-soft: #fde8e5;
  --shadow: 0 18px 42px rgba(22, 34, 29, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.portal-shell {
  min-height: 100vh;
}

.global-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px 24px;
  background: #16251f;
  color: #f5faf7;
}

.global-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.global-brand strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
  line-height: 1.15;
}

.global-header .eyebrow {
  color: #9eb3aa;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.global-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d4e5dd;
  font-size: 0.9rem;
  font-weight: 800;
}

.global-nav-item:hover,
.global-nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.global-nav-menu {
  position: relative;
  display: inline-flex;
}

.global-nav-trigger svg,
.global-nav-dropdown svg {
  width: 16px;
  height: 16px;
}

.global-nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  min-width: 250px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 140ms ease;
  visibility: hidden;
}

.global-nav-menu:hover .global-nav-dropdown,
.global-nav-menu:focus-within .global-nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.global-nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.global-nav-dropdown a:hover {
  background: var(--surface-soft);
  color: var(--teal);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: #24483d;
  color: #e4fff5;
  font-weight: 850;
}

.eyebrow {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.08;
}

.global-nav-item svg,
.primary-action svg,
.module-link svg {
  width: 18px;
  height: 18px;
}

.global-nav .global-nav-trigger svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.portal-main {
  min-width: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.portal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-bottom: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(220, 239, 235, 0.72), rgba(255, 240, 220, 0.52)),
    var(--surface);
  box-shadow: var(--shadow);
}

.header-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.primary-action,
.module-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.primary-action {
  background: var(--teal);
  color: #ffffff;
}

.primary-action:hover {
  background: #006b66;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
  margin-bottom: 14px;
}

.about-card,
.dashboard-links,
.about-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-card,
.dashboard-links,
.about-panel {
  padding: 20px;
}

.about-card.primary {
  border-color: #b7ddd4;
  background: #f7fffc;
}

.about-card p,
.dashboard-links p,
.about-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-links {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.dashboard-link-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: min(520px, 100%);
}

.dashboard-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.dashboard-link:hover {
  border-color: var(--teal);
  background: #f7fffc;
}

.dashboard-link.restaurant:hover {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.dashboard-link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--teal);
}

.dashboard-link.restaurant svg {
  color: var(--amber);
}

.dashboard-link strong,
.dashboard-link small {
  display: block;
}

.dashboard-link small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.architecture-flow article {
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.architecture-flow span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 900;
}

.architecture-flow p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

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

.principle-grid div {
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.principle-grid strong,
.principle-grid span {
  display: block;
}

.principle-grid strong {
  margin-bottom: 8px;
}

.principle-grid span {
  color: var(--muted);
  line-height: 1.42;
}

@media (max-width: 1120px) {
  .global-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .global-brand {
    min-width: 0;
  }

  .global-nav {
    justify-content: flex-start;
  }

  .about-grid,
  .architecture-flow,
  .page-grid,
  .principle-grid,
  .dashboard-links {
    grid-template-columns: 1fr;
  }

  .dashboard-links {
    display: grid;
  }
}

@media (max-width: 760px) {
  .global-header {
    padding: 14px 16px;
  }

  .global-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .global-nav-item,
  .global-nav-menu {
    justify-content: center;
  }

  .global-nav-menu {
    display: grid;
  }

  .global-nav-menu .global-nav-item {
    width: 100%;
  }

  .global-nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 6px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .global-nav-menu:hover .global-nav-dropdown,
  .global-nav-menu:focus-within .global-nav-dropdown {
    display: grid;
  }

  .portal-main {
    padding: 16px;
  }

  .portal-header,
  .dashboard-link-row {
    grid-template-columns: 1fr;
  }

  .portal-header {
    padding: 20px;
  }

  .primary-action {
    justify-self: stretch;
  }

  .dashboard-links {
    display: grid;
  }
}
