:root {
  color-scheme: light;
  --ink: #101b2c;
  --muted: #756a70;
  --line: #eadde1;
  --canvas: #f7f2f3;
  --card: #fffdfd;
  --wine: #744052;
  --wine-dark: #5f3042;
  --wine-soft: #efe2e6;
  --rose: #f7edef;
  --cream: #fbf2e5;
  --green: #4cad7b;
  --danger: #b84b54;
  --shadow: 0 16px 40px rgba(91, 54, 67, .07);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #f4f6f8; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f4f6f8;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted, .form-hint { color: var(--muted); }
.eyebrow {
  margin: 0 0 .34rem;
  color: var(--wine);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.login-shell {
  min-height: 100vh;
  padding: clamp(16px, 3vw, 36px);
  background:
    radial-gradient(circle at 18% 15%, rgba(36, 94, 235, .12), transparent 30rem),
    radial-gradient(circle at 88% 82%, rgba(29, 78, 216, .08), transparent 28rem),
    #f4f7fb;
}
.login-layout {
  position: relative;
  width: min(100%, 1440px);
  min-height: calc(100vh - clamp(32px, 6vw, 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dce5f1;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(27, 51, 91, .12);
}
.site-icp-footer {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 14px;
  margin: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.site-icp-footer a {
  padding: 6px 11px;
  border: 1px solid rgba(217, 226, 238, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #66758a;
  box-shadow: 0 4px 14px rgba(27, 51, 91, .06);
  font-size: .66rem;
  text-decoration: none;
}
.site-icp-footer a:hover { color: #1659d7; text-decoration: underline; }
.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 720px;
  padding: clamp(36px, 5vw, 72px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(106, 157, 255, .42), transparent 24rem),
    linear-gradient(145deg, #0f55cf 0%, #1747b5 55%, #0f318d 100%);
}
.login-intro::before,
.login-intro::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}
.login-intro::before { width: 520px; height: 520px; right: -230px; bottom: -210px; }
.login-intro::after { width: 340px; height: 340px; right: -145px; bottom: -120px; }
.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}
.login-brand img {
  width: 46px;
  height: 46px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(2, 19, 66, .18);
}
.login-brand strong,
.login-brand em { display: block; }
.login-brand strong { font-size: 1.08rem; }
.login-brand strong span { margin-left: 4px; font-size: .72rem; font-weight: 700; opacity: .72; }
.login-brand em { margin-top: 3px; font-size: .68rem; font-style: normal; opacity: .72; }
.login-intro-copy {
  position: relative;
  z-index: 1;
  max-width: 670px;
  margin: auto 0 56px;
}
.login-kicker {
  margin: 0 0 18px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .2em;
  opacity: .66;
}
.login-intro-copy h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.065em;
}
.login-intro-copy > p:last-child {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: .95rem;
  line-height: 1.85;
}
.login-feature-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.login-feature-grid article {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 92px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(12px);
}
.login-feature-grid i {
  color: #a9c7ff;
  font-size: .62rem;
  font-style: normal;
  font-weight: 900;
}
.login-feature-grid strong,
.login-feature-grid span { display: block; }
.login-feature-grid strong { font-size: .78rem; }
.login-feature-grid span { margin-top: 6px; color: rgba(255,255,255,.62); font-size: .66rem; line-height: 1.5; }
.login-intro footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  color: rgba(255,255,255,.42);
  font-size: .65rem;
}
.login-panel {
  display: grid;
  place-items: center;
  align-content: center;
  padding: clamp(30px, 6vw, 88px);
  background: #fbfcfe;
}
.login-card {
  width: min(100%, 430px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.login-card-heading > p {
  margin: 0 0 10px;
  color: #1556cc;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.login-card-heading h2 {
  margin: 0;
  color: #0b1b34;
  font-size: clamp(2rem, 4vw, 2.65rem);
  letter-spacing: -.055em;
}
.login-card-heading > span:not(.login-mobile-logo) {
  display: block;
  margin-top: 13px;
  color: #718096;
  font-size: .82rem;
  line-height: 1.6;
}
.login-mobile-logo { display: none; }
.login-card .stack { gap: 18px; margin-top: 34px; }
.login-card label { gap: 8px; color: #26374f; font-size: .76rem; }
.login-card input {
  min-height: 52px;
  border-color: #d8e2ef;
  border-radius: 13px;
  padding: 0 15px;
  color: #0e1d34;
  background: #fff;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.login-card input::placeholder { color: #a2adbc; }
.login-card input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}
.password-field { position: relative; }
.password-field input { padding-right: 64px; }
.password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 48px;
  padding: 8px 7px;
  border: 0;
  border-radius: 8px;
  color: #52657d;
  background: transparent;
  font-size: .68rem;
  font-weight: 800;
  transform: translateY(-50%);
}
.password-field button:hover { color: #1556cc; background: #edf4ff; }
.login-submit {
  position: relative;
  min-height: 52px;
  margin-top: 5px;
  border-radius: 13px;
  background: #1659d7;
  box-shadow: 0 14px 28px rgba(22, 89, 215, .2);
  transition: transform .18s, background .18s, box-shadow .18s;
}
.login-submit:hover { background: #104bbd; box-shadow: 0 16px 32px rgba(22, 89, 215, .27); transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.login-submit i {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin .7s linear infinite;
}
.login-submit.is-loading span { display: none; }
.login-submit.is-loading i { display: inline-block; }
@keyframes login-spin { to { transform: rotate(360deg); } }
.login-card .form-hint {
  min-height: 22px;
  margin: 14px 0 0;
  color: #6f7e92;
  font-size: .7rem;
}
.login-card .form-hint.is-error { color: #c23844; }
.login-security-note {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5ebf3;
}
.login-security-note span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #52657c;
  background: #eef3f9;
  font-size: .62rem;
  font-weight: 800;
}
.login-security-note span::before { content: "✓"; margin-right: 5px; color: #1b9b62; }
.login-support {
  width: min(100%, 430px);
  margin: 26px 0 0;
  color: #8995a5;
  font-size: .66rem;
  text-align: center;
}
.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--wine);
  font: 800 1rem/1 Georgia, serif;
  box-shadow: 0 10px 26px rgba(116, 64, 82, .22);
}
.brand-mark.small { width: 46px; height: 46px; border-radius: 14px; font-size: .8rem; }
.stack { display: grid; gap: 1rem; margin-top: 1.8rem; }
label { display: grid; gap: .45rem; color: #594c52; font-size: .8rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: .76rem .86rem;
  color: var(--ink);
  background: #fff;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: #a67585;
  box-shadow: 0 0 0 3px rgba(116, 64, 82, .09);
}
textarea { min-height: 105px; resize: vertical; }
.primary, .secondary, .ghost, .danger-button {
  border: 0;
  border-radius: 10px;
  padding: .72rem 1rem;
  font-weight: 800;
}
.primary { color: #fff; background: var(--wine); }
.primary:hover { background: var(--wine-dark); }
.login-card .login-submit { background: #1659d7; }
.login-card .login-submit:hover { background: #104bbd; }
.secondary { color: var(--wine); background: var(--wine-soft); }
.ghost { color: var(--wine); background: #fff; border: 1px solid var(--line); }
.danger-button { color: var(--danger); background: #fbeaec; }
.form-hint { margin: 1rem 0 0; font-size: .75rem; line-height: 1.6; }

.app-shell {
  width: min(100%, 1720px);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  margin: 0 auto;
  background: var(--canvas);
  box-shadow: 0 0 0 1px #edf0f3;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.25rem 1.25rem;
  border-right: 1px solid #dde2e8;
  color: var(--ink);
  background: #fff;
}
.brand { display: flex; align-items: center; gap: .8rem; padding: 0 .35rem 1.7rem; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 1.05rem; }
.brand span { margin-top: .2rem; color: #6d7280; font-size: .69rem; }
.sidebar-account {
  display: grid;
  gap: .22rem;
  margin-bottom: 1.15rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffafb;
}
.sidebar-account span { color: #8c7c82; font-size: .69rem; }
.sidebar-account strong { font-size: .92rem; }
.sidebar-account em { color: var(--wine); font-size: .72rem; font-style: normal; }
nav { display: grid; gap: .18rem; }
nav p {
  margin: .75rem .7rem .25rem;
  color: #a19197;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
}
nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .85rem;
  border: 0;
  border-radius: 9px;
  color: #1c2b3e;
  background: transparent;
  text-align: left;
  font-size: .85rem;
  font-weight: 700;
}
nav button span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #405166;
  font-size: .9rem;
}
nav button:hover { background: #faf5f7; }
nav button.active { color: var(--wine); background: var(--wine-soft); }
nav button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 4px;
  background: var(--wine);
}
nav button.active span { color: #fff; background: var(--wine); }
.sidebar-footer {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: .55rem;
  margin-top: auto;
  padding: 1rem .45rem 0;
  border-top: 1px solid var(--line);
}
.sidebar-footer i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(76, 173, 123, .12);
}
.sidebar-footer strong, .sidebar-footer span { display: block; }
.sidebar-footer strong { font-size: .72rem; }
.sidebar-footer span { margin-top: .1rem; color: #7a7f89; font-size: .62rem; }
.text-button { padding: 0; border: 0; color: var(--wine); background: none; font-size: .66rem; }

.workspace { min-width: 0; }
.topbar {
  min-height: 103px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.55rem 2.4rem;
  border-bottom: 1px solid #d9dee4;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}
.topbar h2 { margin: 0; font-size: 1.75rem; letter-spacing: -.05em; }
.topbar-actions { display: flex; align-items: center; gap: .7rem; }
.account-badge, .cloud-badge, .icon-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
}
.account-badge {
  display: grid;
  align-content: center;
  padding: .45rem .8rem;
  font-size: .72rem;
  line-height: 1.35;
}
.cloud-badge { display: grid; place-items: center; padding: 0 1rem; color: #386a51; font-size: .72rem; font-weight: 800; }
.icon-button { width: 44px; font-size: 1.2rem; }
.content { padding: 1.5rem 2.4rem 4rem; }

.page-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.page-intro h1 { margin: .15rem 0 .45rem; font-size: clamp(2rem, 3vw, 2.85rem); line-height: 1.05; letter-spacing: -.055em; }
.page-intro p { max-width: 800px; margin: 0; color: var(--muted); line-height: 1.65; }
.page-actions { display: flex; gap: .65rem; flex-wrap: wrap; }

.command-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.command {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 78px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}
.command strong, .command span { display: block; }
.command span { margin-top: .18rem; color: var(--muted); font-size: .7rem; }
.command b { color: var(--wine); font-size: 1.25rem; }
.command.featured { color: #fff; border-color: var(--wine); background: var(--wine); }
.command.featured span, .command.featured b { color: #f3dfe6; }
.command:disabled { opacity: .5; cursor: not-allowed; }

.system-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: .75rem;
}
.system-strip span::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: .6rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(76, 173, 123, .12);
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat, .panel, .workflow-card, .board-column {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
}
.stat { min-height: 112px; padding: 1.2rem; }
.stat span { color: var(--muted); font-size: .72rem; }
.stat strong { display: block; margin-top: .32rem; font-size: 2rem; letter-spacing: -.04em; }
.panel { padding: 1.25rem; box-shadow: 0 8px 30px rgba(91, 54, 67, .025); }
.panel + .panel { margin-top: 1rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-head p { margin: .25rem 0 0; color: var(--muted); font-size: .75rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.5fr .65fr; gap: 1rem; }
.priority-card { min-height: 260px; }
.priority-card h2 { margin: .55rem 0 .65rem; font-size: 1.4rem; }
.priority-gate {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: .75rem .9rem;
  border-radius: 11px;
  color: #8a5d26;
  background: var(--cream);
  font-size: .72rem;
}
.priority-next { margin: 1rem 0; padding: .9rem 1rem; border-left: 3px solid var(--wine); background: #fffafb; }
.priority-next span { display: block; color: var(--muted); font-size: .68rem; }
.priority-next strong { display: block; margin-top: .35rem; font-size: .83rem; }
.progress-list { display: grid; gap: .85rem; }
.progress-row { display: grid; grid-template-columns: 58px 1fr 20px; align-items: center; gap: .65rem; font-size: .7rem; }
.progress-row i { height: 7px; overflow: hidden; border-radius: 8px; background: #efe6e9; }
.progress-row i b { display: block; height: 100%; border-radius: inherit; background: var(--wine); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.compact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.compact-form .wide { grid-column: 1 / -1; }
.actions { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem .7rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .75rem; vertical-align: top; }
th { color: var(--muted); font-size: .65rem; letter-spacing: .05em; text-transform: uppercase; }

.status {
  display: inline-block;
  padding: .28rem .52rem;
  border-radius: 999px;
  color: #815f6b;
  background: var(--wine-soft);
  font-size: .66rem;
  font-weight: 800;
}
.status.ready, .status.succeeded, .status.published, .status.reviewed { color: #32684e; background: #e0f2e8; }
.status.waiting_input, .status.failed { color: #8a474f; background: #f8dee1; }
.status.needs_evidence { color: #87612b; background: var(--cream); }
.status.ready_for_script { color: #704055; background: #eadce2; }

.account-card, .competitor-card, .material-card, .review-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.account-card.active { border-color: #b88b9a; background: #fffafb; }
.account-card h3, .competitor-card h3, .material-card h3, .review-card h3 { margin: .25rem 0 .45rem; }
.account-card p, .competitor-card p, .material-card p, .review-card p { color: var(--muted); font-size: .75rem; line-height: 1.55; }
.account-kpis { display: flex; gap: .55rem; flex-wrap: wrap; margin: .7rem 0; }
.account-kpis span { padding: .35rem .5rem; border-radius: 8px; background: var(--rose); font-size: .65rem; }

.opportunity-list { display: grid; gap: .8rem; }
.opportunity-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffafb;
}
.opportunity-card > b { color: #c2acb3; font-size: 1.2rem; }
.opportunity-card h3 { margin: .2rem 0 .4rem; }
.opportunity-card p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.6; }

.pipeline {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1rem;
  padding: .8rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.pipeline span { flex: 1 0 120px; padding: .65rem .7rem; border-radius: 9px; color: var(--wine); background: var(--rose); text-align: center; font-size: .72rem; font-weight: 800; }
.pipeline i { color: #b5a4aa; font-style: normal; }

.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: .75rem;
  overflow-x: auto;
}
.board-column { min-height: 330px; padding: .85rem; }
.board-column header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; font-size: .75rem; font-weight: 800; }
.board-column header span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--rose); font-size: .62rem; }
.board-item { padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.board-item + .board-item { margin-top: .65rem; }
.board-item strong, .board-item span { display: block; }
.board-item strong { font-size: .75rem; line-height: 1.45; }
.board-item span { margin-top: .4rem; color: var(--muted); font-size: .62rem; }
.board-item select { margin-top: .65rem; padding: .45rem; font-size: .65rem; }

.connector-list { display: grid; gap: .7rem; }
.connector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.connector span:first-child::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: .55rem;
  border-radius: 50%;
  background: #d6aa54;
}
.connector.is-ready span:first-child::before { background: var(--green); }
.workflow-card { padding: 1rem; }
.workflow-card h3 { margin: .55rem 0 .4rem; }
.workflow-card p { min-height: 3em; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.skill-code { color: var(--wine); font: 600 .63rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }

.empty-state { width: 100%; padding: 2.4rem 1rem; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); }
.toast {
  position: fixed;
  z-index: 30;
  right: 1.2rem;
  bottom: 1.2rem;
  max-width: 360px;
  padding: .85rem 1rem;
  border-radius: 11px;
  color: #fff;
  background: var(--wine);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast.error { background: var(--danger); }

@media (max-width: 1050px) {
  .login-layout { grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); }
  .login-intro { min-height: 680px; padding: 42px; }
  .login-intro-copy h1 { font-size: 3rem; }
  .login-feature-grid { grid-template-columns: 1fr; }
  .login-feature-grid article:nth-child(n+3) { display: none; }
  .app-shell { grid-template-columns: 86px minmax(0, 1fr); }
  .brand > div:last-child, .sidebar-account, nav p, nav button { font-size: 0; }
  nav button { justify-content: center; }
  nav button span { font-size: .9rem; }
  .sidebar-footer div, .text-button { display: none; }
  .dashboard-grid, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .login-shell { padding: 0; background: #fbfcfe; }
  .login-layout {
    min-height: 100vh;
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .site-icp-footer { position: fixed; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .login-intro { display: none; }
  .login-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 24px;
  }
  .login-card, .login-support { width: 100%; min-width: 0; }
  .login-mobile-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 42px;
    color: #0d1d36;
    font-size: .92rem;
    font-weight: 900;
  }
  .login-mobile-logo img { width: 36px; height: 36px; padding: 6px; border-radius: 11px; background: #fff; box-shadow: 0 7px 20px rgba(26,71,146,.14); }
  .login-card-heading h2 { font-size: 2.15rem; }
  .login-card .stack { margin-top: 30px; }
  .login-support { margin-top: 22px; }
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: .8rem; }
  .brand { padding-bottom: .7rem; }
  nav { display: flex; overflow-x: auto; }
  nav button { flex: 0 0 auto; font-size: .72rem; }
  nav button span { display: none; }
  .sidebar-footer { display: none; }
  .topbar { min-height: 82px; padding: 1rem; }
  .topbar-actions .account-badge { display: none; }
  .content { padding: 1rem; }
  .page-intro { display: block; }
  .page-actions { margin-top: 1rem; }
  .command-grid, .grid-2, .compact-form { grid-template-columns: 1fr; }
  .compact-form .wide { grid-column: auto; }
  .opportunity-card { grid-template-columns: 34px 1fr; }
  .opportunity-card .actions { grid-column: 1 / -1; }
}
