/* Sherllock portal — builds on the marketing site's main.css.
   Only portal-specific chrome lives here. */

/* ---------- public (login / signup) chrome ---------- */
.pt-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 24px;
  border-bottom: 1px solid var(--line); background: var(--card);
}
.pt-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 540; font-size: 1.2rem;
  color: var(--ink); text-decoration: none;
}
.pt-brand .mark { width: 26px; height: 26px; color: var(--brass); }
.pt-top-nav { display: flex; align-items: center; gap: 14px; font-size: .92rem; }
.pt-top-nav form { margin: 0; }

.pt-main { max-width: 1060px; margin: 0 auto; padding: 44px 24px 80px; }
.pt-wide { max-width: 1060px; margin: 0 auto; }
.pt-narrow { max-width: 560px; margin: 0 auto; }
.pt-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.pt-card.auth-card { max-width: 420px; margin: 40px auto; text-align: center; }
.pt-sub { font-size: .9rem; color: var(--ink-3); margin-top: 14px; }
.pt-sub a, .pt-top-nav a { color: var(--blue-ink); }

/* ---------- flash messages ---------- */
.pt-flash {
  border-radius: var(--radius-sm); padding: 12px 15px; margin: 0 0 18px;
  font-size: .92rem; font-weight: 500; border: 1px solid;
}
.pt-flash-ok   { background: var(--green-soft); color: var(--green); border-color: #bfe0cd; }
.pt-flash-bad  { background: #fbeaea; color: #a2302f; border-color: #eec4c3; }
.pt-flash-warn { background: var(--brass-soft); color: var(--brass-2); border-color: #e3cfa0; }

/* ---------- app shell — mirrors the home-page portal mock (.portal-shell) ---------- */
.pt-app-body { background: var(--paper); }
.pt-app {
  display: grid;
  grid-template-columns: 208px 1fr;
  max-width: 1180px;
  margin: 24px auto;
  min-height: calc(100vh - 48px);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--card);
}
.pt-app .portal-side { border-radius: 0; }
.pt-appmain { padding: 26px 30px 48px; max-width: none; background: var(--card); }
.pt-app .portal-main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pt-app .portal-main-head h4 { font-family: var(--font-body); font-size: 1.05rem; margin: 0; }
.pt-app .chip {
  font-size: .74rem; color: var(--ink-2); text-decoration: none;
  border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; background: var(--card);
}
.pt-app .chip:hover { border-color: var(--ink-3); }

.ws-lo { margin-top: 8px; }
.linkbtn {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: #9db1c6; text-decoration: underline;
}
.linkbtn:hover { color: #fff; }

/* ---------- content bits ---------- */
.pt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pt-kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.pt-kv:first-child { border-top: none; }
.pt-kv span { color: var(--ink-3); }
.pt-kv b { color: var(--ink); text-align: right; }

.pt-steps { list-style: none; padding: 0; margin: 6px 0 0; }
.pt-steps li {
  position: relative; padding: 9px 0 9px 28px; font-size: .92rem;
  border-top: 1px solid var(--line); color: var(--ink-3);
}
.pt-steps li:first-child { border-top: none; }
.pt-steps li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--card);
}
.pt-steps li.done { color: var(--ink); }
.pt-steps li.done::before {
  border-color: var(--green); background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l3.4 3.4L16 6'/%3E%3C/svg%3E") center/11px no-repeat;
}

.pt-boardwrap { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--card); overflow: hidden; }
.pt-boardwrap .portal-split { filter: grayscale(.4) opacity(.5); pointer-events: none; }
.pt-board-veil {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  background: linear-gradient(180deg, rgba(247,249,252,.4), rgba(247,249,252,.82));
  text-align: center; padding: 20px;
}

.pt-inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.pt-inline select { padding: 4px 6px; font-size: .82rem; border: 1px solid var(--line-2); border-radius: 6px; }
.pt-danger { color: #b23b3b; border-color: #e3b8b8; }
.pt-danger:hover { border-color: #b23b3b; }

/* ---------- badges ---------- */
.pt-badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; text-transform: lowercase;
}
.pt-badge-ok   { background: var(--green-soft); color: var(--green); }
.pt-badge-info { background: var(--blue-soft); color: var(--blue-ink); }
.pt-badge-warn { background: var(--brass-soft); color: var(--brass-2); }
.pt-badge-bad  { background: #fbeaea; color: #a2302f; }

/* ---------- plan picker ---------- */
.pt-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 6px 0 20px; }
.pt-plan {
  display: block; cursor: pointer; position: relative;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px; background: var(--card); transition: border-color .12s, box-shadow .12s;
}
.pt-plan:hover { border-color: var(--line-2); }
.pt-plan input { position: absolute; top: 16px; right: 16px; accent-color: var(--blue); }
.pt-plan:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,204,.14); }
.pt-plan.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,204,.14); }
.pt-plan-h { display: flex; flex-direction: column; gap: 3px; padding-right: 26px; }
.pt-plan-h b { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); }
.pt-plan-price { font-family: var(--font-mono); font-weight: 500; color: var(--ink); font-size: 1.1rem; }
.pt-plan-price small { font-family: var(--font-body); color: var(--ink-3); font-size: .8rem; }
.pt-plan-blurb { display: block; font-size: .88rem; color: var(--ink-2); margin: 8px 0; }
.pt-plan-feats { display: flex; flex-direction: column; gap: 4px; }
.pt-plan-feats span {
  font-size: .82rem; color: var(--ink-3); padding-left: 18px; position: relative;
}
.pt-plan-feats span::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231E7A4C' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l3.4 3.4L16 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pt-plan-min { display: block; margin-top: 10px; font-size: .78rem; color: var(--ink-3); }

.pt-signup { display: grid; gap: 20px; }
.pt-signup-fields h3 { margin-top: 0; }
.pt-check { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; color: var(--ink-2); margin: 12px 0; }
.pt-check input { margin-top: 2px; accent-color: var(--blue); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .pt-app { grid-template-columns: 1fr; margin: 0; border: none; border-radius: 0; min-height: 100vh; box-shadow: none; }
  .pt-app .portal-side {
    flex-direction: row; align-items: center; gap: 12px;
    padding: 10px 14px; overflow-x: auto;
  }
  .pt-app .portal-side .b { padding: 0; white-space: nowrap; }
  .pt-app .portal-side .psi { padding: 9px 11px; white-space: nowrap; }
  .pt-app .portal-side .psi::before { display: none; }
  .pt-app .portal-side .ws {
    margin: 0 0 0 auto; padding: 0; border: none; white-space: nowrap;
  }
  .ws-lo { display: inline; margin-left: 8px; }
  .pt-appmain { padding: 20px 18px 50px; }
  .pt-grid2 { grid-template-columns: 1fr; }
  .pt-plans { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pt-top { padding: 12px 16px; }
  .pt-main { padding: 28px 16px 60px; }
  .pt-card { padding: 18px; }
}
