:root {
  color: #173f37;
  background: #eef4f0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  font-synthesis: none;
  --forest: #176b5b;
  --forest-deep: #123f36;
  --muted: #60756d;
  --line: rgba(23, 63, 55, 0.14);
  --surface: rgba(255, 255, 255, 0.94);
  --focus: rgba(185, 119, 39, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 10%, rgba(185, 119, 39, 0.12), transparent 24rem),
    radial-gradient(circle at 8% 82%, rgba(23, 107, 91, 0.12), transparent 26rem),
    #eef4f0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.boot {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 24px;
  text-align: center;
}

.boot-mark {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto;
  place-content: center;
  border-radius: 1rem;
  color: #fff;
  background: var(--forest);
  font-size: 1.5rem;
  font-weight: 800;
}

.eyebrow {
  margin: 14px 0 0;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.boot h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 7vw, 42px);
  letter-spacing: -0.04em;
}

.boot p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.boot-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.boot p.boot-help {
  max-width: 34rem;
  margin: 14px auto 0;
  padding: 8px 12px;
  border: 1px solid rgba(23, 63, 55, 0.1);
  border-radius: 10px;
  color: #5a6f67;
  background: #eef4f0;
  font-size: 13px;
  line-height: 1.7;
}

.portal-shell {
  width: min(68rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) 0;
}

.portal-intro {
  display: grid;
  max-width: 760px;
}

.portal-intro .eyebrow {
  margin: 0 0 10px;
}

.portal-intro h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--forest-deep);
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.portal-intro > span {
  max-width: 42rem;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.identity-card {
  display: inline-grid;
  gap: 0.2rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(23, 107, 91, 0.12);
  background: rgba(255, 255, 255, 0.68);
}

.identity-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.identity-card span {
  color: #547168;
  font-size: 0.85rem;
}

.portal-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: inherit;
  background: var(--surface);
  font: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(23, 63, 55, 0.09);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 107, 91, 0.34);
  box-shadow: 0 22px 56px rgba(23, 63, 55, 0.14);
}

.portal-card strong,
.portal-card span {
  display: block;
}

.portal-card strong {
  margin: 8px 0 12px;
  color: var(--forest-deep);
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.03em;
}

.portal-card > span:not(.card-kicker) {
  color: var(--muted);
  line-height: 1.7;
}

.portal-card .card-kicker {
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.portal-card small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 900;
}

.secondary-button {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid #b9cbc2;
  border-radius: 0.75rem;
  color: inherit;
  background: #fff;
  font: inherit;
}

@media (max-width: 720px) {
  .portal-shell {
    padding: 2rem 0;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-intro h1 {
    font-size: clamp(36px, 12vw, 48px);
  }

  .portal-card {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-card {
    transition: none;
  }
}

/* Proposal system: calm ivory canvas, teal action hierarchy, coral attention. */
:root { --proposal-ink:#173b3b; --proposal-teal:#0f766e; --proposal-mint:#dff3ec; --proposal-ivory:#f7f3ea; --proposal-coral:#f28c5b; }
body { background: radial-gradient(circle at 92% 8%, rgba(242,140,91,.14), transparent 28rem), radial-gradient(circle at 8% 92%, rgba(15,118,110,.12), transparent 30rem), var(--proposal-ivory); color:var(--proposal-ink); }
.portal-shell { max-width:1180px; }
.portal-intro { padding-top:clamp(2rem,7vw,6rem); }
.portal-intro h1 { letter-spacing:-.055em; line-height:.98; }
.identity-card { border:1px solid rgba(15,118,110,.14); box-shadow:0 18px 55px rgba(23,59,59,.08); background:rgba(255,255,255,.86); backdrop-filter:blur(12px); }
.portal-card { border:1px solid rgba(15,118,110,.14); border-radius:28px; background:rgba(255,255,255,.94); box-shadow:0 18px 55px rgba(23,59,59,.09); transition:transform .2s ease, box-shadow .2s ease; }
.portal-card:hover { transform:translateY(-4px); box-shadow:0 24px 65px rgba(23,59,59,.14); }
.portal-card--admin { border-top:5px solid var(--proposal-teal); }
.portal-card--assistant { border-top:5px solid var(--proposal-coral); }
.portal-card a, .portal-card button { color:var(--proposal-teal); }
.boot-mark { background:var(--proposal-teal); box-shadow:0 10px 28px rgba(15,118,110,.22); }
