/* web/style.css */
:root {
  font-family:
    "Segoe UI",
    Arial,
    sans-serif;
  color: #203d33;
  background: #f5f6f2;
  font-synthesis: none;
  --ink:#203d33;
  --accent:#b1d956;
  --border:#dce1d9;
  --muted:#637169;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: inherit;
  padding: 10px 14px;
}
button:hover {
  background: #eef2e7;
}
button:disabled {
  cursor: default;
  opacity: .55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #789b29;
  outline-offset: 3px;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.6px;
}
h2 {
  font-size: 17px;
  margin: 0;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.55;
}
small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
strong {
  font-weight: 650;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
input,
textarea {
  width: 100%;
  border: 1px solid #cdd5cf;
  border-radius: 7px;
  padding: 12px;
  background: white;
  color: var(--ink);
}
textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.6;
}
form {
  display: grid;
  gap: 20px;
}
form button {
  justify-self: start;
}
.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
  padding: 12px 22px;
}
.primary:hover {
  background: #345a49;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.error {
  padding: 12px;
  background: #fff0ec;
  color: #9c3021;
  border-left: 3px solid #b94029;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-size: 12px;
  font-weight: 650;
  color: #617168;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  background: var(--ink);
  color: white;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1px;
}
.qas {
  font-size: 11px;
  padding: 4px 7px;
  border: 1px solid #6f8877;
  border-radius: 4px;
  color: #dce8d9;
}
.launcher {
  font-size: 36px;
  padding: 0 8px;
  background: transparent;
  border: 0;
  color: #d4e6d7;
  line-height: 1;
}
.context-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  text-align: left;
  background: #315343;
  border-color: #78965d;
  color: white;
}
.context-trigger:hover {
  background: #40634e;
}
.context-trigger small {
  color: #c6d4ca;
}
.context-trigger > span:last-child {
  margin-left: auto;
}
.monogram {
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: 9px;
  font-weight: 700;
}
.avatar {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
}
.account-trigger {
  margin-left: auto;
  border: 0;
}
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 46px 32px;
  min-height: calc(100vh - 145px);
}
footer {
  border-top: 1px solid var(--border);
  padding: 18px 32px;
  color: var(--muted);
  font-size: 12px;
}
.resource {
  max-width: 760px;
}
.resource form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  margin-top: 30px;
}
.auth-card {
  max-width: 500px;
  margin: 36px auto;
  background: white;
  border: 1px solid var(--border);
  padding: 34px;
  border-radius: 14px;
}
.auth-card > p {
  color: var(--muted);
}
.auth-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.auth-options button {
  border: 0;
  padding: 6px 0;
  margin-right: 18px;
  font-size: 13px;
  text-decoration: underline;
  background: none;
}
.check {
  display: flex;
  align-items: start;
  font-weight: 400;
  line-height: 1.5;
}
.check input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.factor {
  padding: 12px;
  background: #eef2e7;
}
.factor code {
  overflow-wrap: anywhere;
}
.portal-home {
  max-width: 650px;
}
.page-status {
  padding: 40px;
}
.menu-panel {
  position: fixed;
  top: 94px;
  bottom: auto;
  margin: 0;
  max-height: calc(100dvh - 118px);
  overflow: auto;
  border: 1px solid #cdd4cc;
  border-radius: 16px;
  padding: 24px;
  color: var(--ink);
  box-shadow: 0 18px 50px #10291d26;
  max-width: calc(100vw - 32px);
}
.menu-panel::backdrop {
  background: #203d3333;
}
.menu-panel.solutions {
  left: 18px;
  width: 620px;
}
.menu-panel.contexts {
  left: 180px;
  width: 670px;
}
.menu-panel.account {
  right: 18px;
  left: auto;
  width: 500px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.panel-heading h2 {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #617168;
}
.panel-heading button {
  font-size: 22px;
  border: 0;
  padding: 0 8px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 22px;
}
.identity strong {
  font-size: 18px;
}
.search {
  margin-bottom: 18px;
}
.context-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 8px;
  padding: 12px 10px;
  border-radius: 10px;
}
.context-row.active {
  background: #eff4e3;
}
.context-choice {
  border: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  padding: 0;
  width: 100%;
}
.context-choice > span:nth-child(2) {
  flex: 1;
}
.context-choice strong {
  font-size: 15px;
}
.role {
  font-size: 12px;
  background: #eaf0de;
  border-radius: 20px;
  padding: 4px 9px;
  white-space: nowrap;
}
.external {
  padding: 6px 10px;
  align-self: center;
}
.context-row details {
  grid-column: 1/-1;
  padding-left: 52px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.context-row details .role {
  display: inline-block;
  margin: 6px 5px 0 0;
}
.context-row summary {
  cursor: pointer;
  width: fit-content;
}
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.solution {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.solution.active {
  background: #eff4e3;
  border: 2px solid #3a604a;
}
.solution-mark {
  height: 58px;
  width: 58px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  border-radius: 16px;
  color: #18382c;
}
.solution p {
  font-size: 13px;
  margin: 0;
}
.solution button {
  width: 100%;
  font-size: 12px;
}
.solution button:first-of-type {
  margin-top: auto;
}
.account-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 22px;
}
.account-section p {
  font-size: 13px;
  color: var(--muted);
}
.account-section > button {
  margin-top: 12px;
}
.session {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid #edf0eb;
}
.session:last-child {
  border-bottom: 0;
}
.session button {
  justify-self: start;
  font-size: 12px;
}
.logout-actions {
  display: grid;
  gap: 14px;
}
.logout-actions button {
  text-align: left;
  border: 0;
  background: none;
  padding: 8px 0;
}
.logout-actions small {
  margin-top: 5px;
}
.danger {
  color: #b22e25;
}
@media (max-width: 768px) {
  .topbar {
    height: auto;
    min-height: 76px;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px;
  }
  .brand-group {
    gap: 10px;
  }
  .brand {
    font-size: 22px;
  }
  .qas {
    font-size: 10px;
  }
  .context-trigger {
    order: 3;
    width: 100%;
    min-width: 0;
  }
  .account-trigger {
    margin-left: auto;
  }
  main {
    padding: 28px 18px;
  }
  .menu-panel.contexts,
  .menu-panel.solutions,
  .menu-panel.account {
    top: 18px;
    left: 12px;
    right: 12px;
    width: calc(100vw - 24px);
    max-width: none;
    max-height: calc(100dvh - 36px);
    padding: 20px;
  }
  .context-choice {
    flex-wrap: wrap;
  }
  .context-choice > .role {
    margin-left: 52px;
  }
  .context-choice > span:nth-child(2) {
    min-width: 140px;
  }
  .context-row details {
    padding-left: 0;
  }
  .auth-card {
    padding: 24px;
    margin: 16px auto;
  }
  .solution-grid {
    gap: 10px;
  }
  .solution {
    padding: 16px 10px;
  }
  .resource form {
    padding: 18px;
  }
  h1 {
    font-size: 26px;
  }
  footer {
    padding: 16px 18px;
  }
}
