/* ============================================================
   AI SALES OS — soft light design system
   Warm off-white ground, charcoal ink. Deliberately not
   #000-on-#fff: contrast is dialled back so long reading
   sessions stay comfortable.
   ============================================================ */

:root {
  color-scheme: light;

  --bg:        #f2f1ed;   /* page ground */
  --bg-2:      #f8f7f4;   /* sidebar / panels */
  --surface:   #fbfaf8;   /* cards at rest */
  --surface-2: #ffffff;   /* cards on hover */

  --line:      rgba(38,37,32,.10);
  --line-2:    rgba(38,37,32,.18);
  --line-3:    rgba(38,37,32,.32);

  --ink:       #2b2a26;   /* soft charcoal, never pure black */
  --ink-2:     #57564f;
  --ink-3:     #82817a;
  --ink-4:     #aaa9a1;

  --accent:    #2b2a26;   /* filled buttons, active marks */
  --accent-fg: #faf9f6;

  --hover:     rgba(38,37,32,.045);
  --sheen:     rgba(38,37,32,.045);
  --shadow-sm: 0 1px 2px rgba(38,37,32,.04);
  --shadow-md: 0 6px 20px rgba(38,37,32,.07);
  --shadow-lg: 0 12px 34px rgba(38,37,32,.11);

  --radius:    14px;
  --radius-sm: 10px;
  --sidebar-w: 280px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* paper grain, multiplied so it reads as texture rather than haze */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .028;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--accent); color: var(--accent-fg); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(38,37,32,.18); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(38,37,32,.3); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   LOGIN
   ============================================================ */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  position: relative;
  overflow: hidden;
}

/* left: brand panel */
.auth-aside {
  position: relative;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(38,37,32,.05), transparent 62%),
    radial-gradient(700px 500px at 85% 90%, rgba(38,37,32,.035), transparent 62%),
    var(--bg-2);
  overflow: hidden;
}

.auth-aside::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image:
    linear-gradient(to right, rgba(38,37,32,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38,37,32,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 68%);
  animation: drift 32s linear infinite;
}

@keyframes drift {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(64px,64px,0); }
}

.auth-aside > * { position: relative; z-index: 1; }

.auth-headline {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
  max-width: 12ch;
}

.auth-headline em {
  font-style: normal;
  color: var(--ink-3);
}

.auth-sub {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 1.02rem;
  max-width: 44ch;
  line-height: 1.6;
}

.auth-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.auth-note {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* right: form panel */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  animation: rise .6s var(--ease) both;
}

.auth-mobile-brand { display: none; }

.auth-card h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.auth-card > p {
  color: var(--ink-3);
  font-size: .92rem;
  margin-top: 8px;
  margin-bottom: 32px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 9px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field input::placeholder { color: var(--ink-4); }
.field input:hover { border-color: var(--line-2); }
.field input:focus {
  outline: none;
  border-color: var(--line-3);
  box-shadow: 0 0 0 3px rgba(38,37,32,.07);
}

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 62px; }

.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 10px;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-radius: 7px;
  transition: color .2s, background .2s;
}
.pw-toggle:hover { color: var(--ink); background: var(--hover); }

.btn {
  width: 100%;
  margin-top: 10px;
  padding: 15px 20px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }

.btn svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 22px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--ink-2);
  border-radius: var(--radius-sm);
  background: rgba(38,37,32,.04);
  font-size: .87rem;
  color: var(--ink);
  animation: shake .42s var(--ease);
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
}

.auth-foot {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ============================================================
   SHARED BITS
   ============================================================ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--surface-2);
  white-space: nowrap;
}

.chip.solid {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  font-weight: 600;
}

.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: -.04em;
  flex-shrink: 0;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   APP SHELL
   ============================================================ */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  z-index: 60;
}

.sidebar-head {
  padding: 24px 22px 20px;
  border-bottom: 1px solid var(--line);
}

.tier-badge {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.tier-badge span:first-child {
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.tier-badge strong { font-size: .8rem; font-weight: 600; }

.nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px 24px;
}

.nav-group {
  font-size: .63rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 16px 10px 8px;
}
.nav-group:first-child { padding-top: 4px; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .885rem;
  color: var(--ink-2);
  text-align: left;
  transition: color .18s var(--ease), background .18s var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--accent);
  border-radius: 99px;
  transform: translateY(-50%);
  transition: height .22s var(--ease);
}

.nav-link:hover { color: var(--ink); background: var(--hover); }

.nav-link.active {
  color: var(--ink);
  background: rgba(38,37,32,.075);
  font-weight: 550;
}
.nav-link.active::before { height: 17px; }

.nav-idx {
  font-size: .66rem;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  min-width: 16px;
}
.nav-link.active .nav-idx { color: var(--ink-2); }

.nav-count {
  margin-left: auto;
  font-size: .66rem;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.sidebar-foot {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--line);
}

.ghost-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: .82rem;
  color: var(--ink-2);
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
}
.ghost-btn:hover {
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.ghost-btn svg { width: 15px; height: 15px; }

/* main column */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  height: 66px;
  border-bottom: 1px solid var(--line);
  background: rgba(242,241,237,.8);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  color: var(--ink-3);
  min-width: 0;
}
.crumb b { color: var(--ink); font-weight: 550; }
.crumb svg { width: 13px; height: 13px; opacity: .5; flex-shrink: 0; }

.search {
  margin-left: auto;
  position: relative;
  width: 260px;
}

.search input {
  width: 100%;
  padding: 9px 34px 9px 34px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink);
  font-size: .84rem;
  transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--ink-4); }
.search input:focus {
  outline: none;
  border-color: var(--line-2);
  box-shadow: 0 0 0 3px rgba(38,37,32,.06);
}

.search .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--ink-4);
  pointer-events: none;
}

.search kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font: 600 .64rem var(--font);
  color: var(--ink-4);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 1px 5px;
  pointer-events: none;
}

.menu-btn { display: none; }

.container {
  max-width: 1120px;
  padding: 46px 40px 90px;
  margin: 0 auto;
}

/* ============================================================
   PAGES
   ============================================================ */

.page { display: none; }
.page.active { display: block; }

.page-head { margin-bottom: 40px; }

.kicker {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
  animation: rise .5s var(--ease) both;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.04;
  animation: rise .5s var(--ease) .04s both;
}

.subtitle {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.65;
  animation: rise .5s var(--ease) .09s both;
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
  margin: 34px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 44px 0 20px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* hero (home) */
.hero {
  position: relative;
  padding: 52px 44px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 80% -10%, rgba(38,37,32,.05), transparent 62%),
    var(--surface-2);
  box-shadow: var(--shadow-md);
  animation: rise .6s var(--ease) both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(38,37,32,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38,37,32,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(160deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%);
  pointer-events: none;
}

.hero > * { position: relative; }

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.048em;
  line-height: 1.03;
  max-width: 17ch;
  margin-top: 18px;
}

.hero p {
  margin-top: 18px;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 1.03rem;
  line-height: 1.65;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat {
  background: var(--surface-2);
  padding: 22px 24px;
}

.stat b {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease),
              background .25s var(--ease), box-shadow .25s var(--ease);
  animation: rise .45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 28ms);
}

/* sheen sweep on hover */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, var(--sheen) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .7s var(--ease);
  pointer-events: none;
}

.tile:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.tile:hover::before { transform: translateX(100%); }

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tile-meta {
  font-size: .64rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.tile-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform .25s var(--ease), border-color .25s, color .25s, background .25s;
}
.tile-arrow svg { width: 12px; height: 12px; }

.tile:hover .tile-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  transform: rotate(45deg);
}

.tile h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.tile p {
  font-size: .855rem;
  color: var(--ink-3);
  line-height: 1.55;
}

/* wide tile used for single-item sections */
.grid.solo { grid-template-columns: minmax(0, 520px); }

/* home section index */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.index-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: border-color .25s var(--ease), transform .25s var(--ease),
              background .25s var(--ease), box-shadow .25s var(--ease);
  animation: rise .45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}

.index-card:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.index-num {
  font-size: .68rem;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
}

.index-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.025em;
}

.index-card span.count {
  font-size: .78rem;
  color: var(--ink-3);
}

.index-card .go {
  margin-top: 10px;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .25s, gap .25s;
}
.index-card:hover .go { color: var(--ink-2); gap: 11px; }
.index-card .go svg { width: 12px; height: 12px; }

/* callout */
.callout {
  margin-top: 44px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.callout h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.callout p { font-size: .875rem; color: var(--ink-3); margin-top: 4px; max-width: 52ch; }

.callout .btn {
  width: auto;
  margin: 0 0 0 auto;
  padding: 12px 20px;
  font-size: .85rem;
}

.empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: .88rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}

.foot-note {
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--ink-4);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(38,37,32,.35);
  backdrop-filter: blur(3px);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.scrim.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 40px 28px;
  }
  .auth-aside .auth-note { display: none; }
  .auth-main { padding: 44px 24px 64px; }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .3s var(--ease);
    box-shadow: 0 0 60px rgba(38,37,32,.16);
  }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .menu-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--ink-2);
    flex-shrink: 0;
  }
  .menu-btn svg { width: 16px; height: 16px; }
  .topbar { padding: 0 20px; }
  .container { padding: 34px 20px 70px; }
  .search { width: 150px; }
  .search kbd { display: none; }
  .hero { padding: 34px 24px; }
  .stats { grid-template-columns: 1fr; }
  .callout .btn { margin-left: 0; width: 100%; }
}

@media (max-width: 760px) {
  /* form first, brand panel dropped: fields must be visible without scrolling */
  .auth { min-height: 100dvh; grid-template-columns: 1fr; }
  .auth-aside { display: none; }

  .auth-main {
    align-items: flex-start;
    padding: 26px 20px 48px;
  }

  .auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 24px;
  }
  .auth-mobile-brand .logo-mark { width: 28px; height: 28px; }

  .auth-card h2 { font-size: 1.4rem; }
  .auth-card > p:not(.auth-hint) { display: none; }
  .auth-foot { display: none; }
  /* hint is the only helper copy left on phone — make it read first */
  .auth-hint {
    margin: 0 0 24px;
    padding: 12px 14px;
    border: 1px solid var(--line-2);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.5;
  }
  .auth-hint strong { font-weight: 700; color: var(--ink); }
}

@media (max-width: 560px) {
  .grid, .index-grid { grid-template-columns: 1fr; }
  .grid.solo { grid-template-columns: 1fr; }
  .auth-aside { padding: 32px 22px; }
  .crumb .crumb-parent { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
