/* Mattear identity shared with MCP Starter and Dashboard Generator.
   Originals: go-mcp-server-mattear/assets/brands/mattear/. */
:root {
  --bg: #f5f0e6;
  --paper: #fffdf8;
  --ink: #212e28;
  --muted: #6b7f74;
  --green: #415a50;
  --deep: #212e28;
  --line: rgba(33, 46, 40, .12);
  --sage: #e7ece6;
  --accent: #c3d3cb;
  --red: #a7473e;
  --brand-secondary: #87a797;
  --brand-border: #c3d3cb;
  --terracotta: #b46446;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
}

body { background: var(--bg); color: var(--ink); font-family: var(--font-ui); }
h1, h2, h3, h4, button, input, textarea, select { font-family: var(--font-ui); }
h1 { font-weight: 650; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus, textarea:focus, select:focus { outline: 2px solid var(--terracotta); outline-offset: 3px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); }
.eyebrow { color: var(--muted); }
.panel, .metric, .agent-card, .password-card, .account-card { background: var(--paper); box-shadow: 0 2px 8px rgba(33,46,40,.025); }
.button { border-radius: 9px; }
.button.primary, .access-primary { background: var(--green); color: var(--paper); box-shadow: 0 2px 5px rgba(65,90,80,.12); }
.button.primary:hover, .access-primary:hover { background: var(--deep); }
.button.secondary { background: var(--paper); border-color: var(--brand-border); color: var(--green); }
.button.secondary:hover { background: var(--sage); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { background-color: var(--paper); border-color: var(--brand-border); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); }
.text-link, .evidence-link { color: var(--green); }
.hero, .easy-how, .easy-emblem, .guided-demo, .iam-overview { background: var(--sage); }
.hero-art::before { background: none; }
.guided-heading h1, .guided-seal small { font-family: var(--font-ui); }
.interview-step>span:first-child, .section-number, .hero-kicker { color: var(--terracotta); }
.interview-track span { background: var(--green); }
.essential-stamp img, .guided-seal img { display: block; margin: 0 auto 10px; border-radius: 12px; }
.field-hint { color: var(--muted); }

/* The same 256px green navigation used by the other Mattear products. */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 256px; height: 100dvh;
  padding: 0; background: var(--green); color: white;
  border: 0; border-right: 1px solid rgba(255,255,255,.18);
  display: flex; flex-direction: column; overflow: hidden; z-index: 60;
}
.sidebar .brand {
  display: flex; align-items: flex-start; flex-direction: column; gap: 8px;
  padding: 24px 24px 20px; flex-shrink: 0; letter-spacing: normal;
}
.brand img { display: block; width: auto; height: 40px; max-width: 100%; }
.brand-product { font: 500 11px/1.5 var(--font-ui); letter-spacing: .08em; }
.sidebar .brand-product { color: rgba(255,255,255,.72); }
.sidebar .workspace {
  display: flex; flex-shrink: 0; margin: 0 18px 20px; padding: 12px;
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18);
  color: white; font-size: 12px; min-width: 0;
}
.sidebar .workspace>div { min-width: 0; overflow-wrap: anywhere; }
.sidebar .workspace small { color: rgba(255,255,255,.7); font-size: 10px; }
.sidebar .workspace-icon { background: rgba(255,255,255,.12); color: white; flex-shrink: 0; }
.sidebar .workspace-dot { background: #a5bdb1; flex-shrink: 0; }
.sidebar nav { display: block; flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 20px; margin: 0; scrollbar-width: thin; scrollbar-color: #87a797 transparent; }
.sidebar .nav-caption {
  display: block; margin: 0 0 6px; padding: 6px 12px 4px;
  color: rgba(255,255,255,.65); font-size: 10px; font-weight: 600; letter-spacing: .1em;
}
.sidebar .nav-account-caption { margin-top: 24px; }
.sidebar .nav-link {
  padding: 10px 12px; margin: 2px 0; min-height: 42px; gap: 12px;
  color: rgba(255,255,255,.8); border-radius: 10px; font-size: 14px;
  font-weight: 500; line-height: 1.45; white-space: normal;
}
.sidebar .nav-link .icon { width: 18px; height: 18px; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.1); color: white; }
.sidebar .nav-link.active { background: rgba(255,255,255,.18); color: white; font-weight: 600; }
.sidebar .nav-count { color: white; background: rgba(255,255,255,.18); }
.sidebar .nav-dot { background: white; }
.sidebar .nav-separator { border-color: rgba(255,255,255,.18); margin: 18px 12px; }
.sidebar a:focus-visible, .sidebar button:focus-visible, .sidebar summary:focus-visible { outline-color: white; outline-offset: 1px; }
.sidebar-bottom {
  display: block; flex-shrink: 0; margin-top: auto; padding: 16px 18px;
  border-top: 1px solid rgba(255,255,255,.25);
}
.sidebar .account-menu summary { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: white; }
.sidebar .account-initial { width: 38px; height: 38px; flex-shrink: 0; background: rgba(255,255,255,.25); color: white; }
.account-identity { flex: 1; min-width: 0; }
.account-identity strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.account-identity>span { display: block; font-size: 11px; color: rgba(255,255,255,.7); overflow-wrap: anywhere; margin-top: 3px; }
.sidebar .account-card { top: auto; bottom: calc(100% + 14px); left: 0; right: auto; width: 220px; color: var(--ink); padding: 18px; }
.sidebar .account-card a:focus-visible, .sidebar .account-card button:focus-visible { outline-color: var(--terracotta); }
.sidebar-version { display: flex; justify-content: space-between; margin-top: 14px; color: rgba(255,255,255,.6); font-size: 10px; }
.app-shell { margin-left: 256px; min-width: 0; }
.topbar { height: 65px; padding: 0 32px; background: var(--paper); gap: 14px; }
.breadcrumb { font-size: 12px; color: var(--muted); }
.breadcrumb strong { color: var(--green); }
.breadcrumb span { color: #a5bdb1; }
.topbar-right { margin-left: auto; }
.mobile-menu-toggle, .mobile-brand, .sidebar-close, .sidebar-backdrop { display: none; }

/* Access pages share the product identity before a session exists. */
.story { background: var(--green); color: var(--paper); }
.story .brand { flex-wrap: wrap; column-gap: 20px; }
.story .brand-product { color: rgba(255,255,255,.72); }
.story .eyebrow, .story footer { color: #c3d3cb; }
.story p { color: rgba(255,255,255,.75); }
.story em { color: #eba587; }
.orbit, .orbit:before { border-color: rgba(255,255,255,.25); }
.orbit i, .orbit strong { background: var(--green); border-color: var(--green); color: white; }
.orbit i { background: rgba(255,255,255,.15); }
.orbit strong { background: var(--paper); }
.orbit strong img { display: block; }
.entry p, .password-card p { color: var(--muted); }
.entry .notice.error, .password-card .notice.error { color: var(--red); }
.entry-footer { color: var(--muted); }
.google-button { background: var(--paper); border-color: var(--brand-border); }
.google-button:hover { background: var(--sage); border-color: var(--green); }
.password-shell .brand { flex-direction: column; gap: 6px; }
.password-shell .brand-product { color: var(--muted); }

@media (max-width: 1023px) {
  .app-shell { margin-left: 0; }
  .topbar { padding: 0 20px; height: 65px; }
  .topbar .breadcrumb { display: none; }
  .mobile-brand { display: flex; align-items: center; }
  .mobile-brand img { display: block; }
  .mobile-menu-toggle, .sidebar-close {
    display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
    border: 1px solid var(--brand-border); border-radius: 9px; background: transparent;
    color: var(--green); cursor: pointer; flex-shrink: 0;
  }
  .sidebar { width: min(290px, calc(100vw - 48px)); visibility: hidden; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar-close { position: absolute; top: 24px; right: 14px; color: white; border-color: rgba(255,255,255,.3); font-size: 25px; }
  body.sidebar-open { overflow: hidden; }
  .sidebar-open .sidebar { visibility: visible; transform: translateX(0); }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(33,46,40,.45); border: 0; z-index: 50; }
}
@media (max-width: 680px) {
  .topbar { padding: 0 16px; gap: 12px; }
  .topbar-right .environment, .topbar-right>.text-link { display: none; }
  .sidebar .nav-count { display: inline-block!important; }
  .sidebar .nav-count[hidden] { display: none!important; }
  .sidebar .nav-dot { display: none!important; }
  .sidebar .active .nav-dot { display: block!important; }
}
