:root {
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --accent-weak: rgba(15, 118, 110, 0.1);
  --on-accent: #fff;
  --bg: #faf9f4;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --surface-muted: rgba(255, 255, 255, 0.58);
  --raised: #f0efea;
  --text: #1d1e1b;
  --muted: #696b64;
  --border: rgba(31, 31, 28, 0.12);
  --border-strong: rgba(31, 31, 28, 0.22);
  --shadow: rgba(31, 31, 28, 0.08);
  --success: #247c45;
  --warning: #b7791f;
  --danger: #b42318;
  --info: #2563eb;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-title: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-brand: "Source Han Serif SC", "Noto Serif CJK SC", "Noto Serif SC", "Songti SC", SimSun, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.public-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto;
}

.login.public-page {
  grid-template-rows: auto minmax(0, 1fr) auto;
  place-items: stretch;
  padding: 0;
}

.public-nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 254, 250, 0.86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0;
  color: var(--text);
  background: transparent;
  font-weight: 850;
}

.public-brand .brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.public-nav nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.public-nav nav button,
.link-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.public-nav nav button:hover,
.public-nav nav button.active,
.link-button:hover {
  color: var(--accent-strong);
  background: rgba(75, 85, 99, 0.08);
  border-color: var(--border);
}

.home-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(520px, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 92px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(52px, 9vh, 92px) clamp(18px, 7vw, 92px);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, transparent 46%, rgba(15, 118, 110, 0.08) 100%),
    linear-gradient(112deg, rgba(255, 254, 250, 0.9) 0%, rgba(246, 249, 246, 0.74) 40%, rgba(218, 236, 232, 0.82) 100%),
    linear-gradient(154deg, rgba(15, 118, 110, 0.18) 0 18%, transparent 18% 52%, rgba(37, 99, 235, 0.12) 52% 74%, transparent 74%),
    linear-gradient(28deg, rgba(183, 121, 31, 0.15) 0%, transparent 36%),
    linear-gradient(215deg, rgba(37, 99, 235, 0.12) 0%, transparent 42%),
    var(--bg);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(250, 249, 246, 0.56) 0%, rgba(250, 249, 246, 0.22) 48%, rgba(255, 254, 250, 0.02) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 42%, rgba(226, 235, 231, 0.14) 100%);
  pointer-events: none;
  z-index: 0;
}

.home-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(117deg, transparent 0 33%, rgba(255, 255, 255, 0.3) 33% 34%, transparent 34% 66%, rgba(15, 118, 110, 0.06) 66% 67%, transparent 67%),
    repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.06) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.045) 0 1px, transparent 1px 72px);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38) 54%, transparent 96%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38) 54%, transparent 96%);
}

.home-ambient::before,
.home-ambient::after {
  content: "";
  position: absolute;
  inset: -22% -18%;
  background:
    linear-gradient(118deg, transparent 20%, rgba(15, 118, 110, 0.12) 27%, transparent 36%),
    linear-gradient(118deg, transparent 52%, rgba(37, 99, 235, 0.08) 58%, transparent 68%),
    linear-gradient(118deg, transparent 72%, rgba(183, 121, 31, 0.08) 76%, transparent 84%);
  transform: translateX(-16%);
  animation: home-ambient-sweep 16s ease-in-out infinite;
}

.home-ambient::after {
  opacity: 0.58;
  transform: translateX(10%) translateY(8%);
  animation-duration: 22s;
  animation-direction: reverse;
}

.home-ambient-lane {
  position: absolute;
  left: -20%;
  width: 150%;
  height: 1px;
  transform: rotate(-11deg);
  background: linear-gradient(90deg, transparent 0%, rgba(15, 118, 110, 0.08) 22%, rgba(15, 118, 110, 0.34) 50%, rgba(15, 118, 110, 0.08) 76%, transparent 100%);
  animation: home-lane-drift 11s ease-in-out infinite;
}

.home-ambient-lane::after {
  content: "";
  position: absolute;
  right: 18%;
  top: -3px;
  width: 92px;
  height: 7px;
  border-top: 1px solid rgba(15, 118, 110, 0.24);
  border-bottom: 1px solid rgba(15, 118, 110, 0.16);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
}

.lane-one {
  top: 29%;
}

.lane-two {
  top: 52%;
  background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.07) 24%, rgba(37, 99, 235, 0.24) 50%, rgba(37, 99, 235, 0.07) 76%, transparent 100%);
  animation-delay: -4s;
}

.lane-three {
  top: 73%;
  background: linear-gradient(90deg, transparent 0%, rgba(183, 121, 31, 0.07) 22%, rgba(183, 121, 31, 0.22) 50%, rgba(183, 121, 31, 0.07) 76%, transparent 100%);
  animation-delay: -8s;
}

.home-copy {
  width: 100%;
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.home-copy h1 {
  font-size: clamp(52px, 5.4vw, 78px);
  line-height: 1.04;
}

.home-copy p {
  width: min(620px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.home-domain {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent-strong);
  background: rgba(255, 254, 250, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.home-product-shot {
  position: relative;
  width: 100%;
  height: min(620px, calc(100vh - 160px));
  min-height: 440px;
  justify-self: stretch;
  z-index: 1;
  opacity: 0.94;
  pointer-events: none;
}

.home-product-shot > img {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 18px 44px rgba(36, 33, 29, 0.14);
}

.paper-window {
  position: relative;
  height: 100%;
  min-height: 430px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.9);
  box-shadow: 0 34px 90px rgba(36, 33, 29, 0.16);
  transform: rotate(-1.2deg);
}

.paper-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(15, 118, 110, 0.08) 48%, transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 42%);
  transform: translateX(-55%);
  animation: paper-window-sheen 9s ease-in-out infinite;
  pointer-events: none;
}

.paper-window-head {
  display: flex;
  gap: 7px;
  position: relative;
  z-index: 1;
}

.paper-window-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--raised);
}

.paper-search-line {
  position: relative;
  z-index: 1;
  height: 46px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.16), transparent 72%),
    rgba(255, 255, 255, 0.64);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.paper-search-line span {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paper-doc-list {
  display: grid;
  align-content: start;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.paper-doc-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  animation: paper-row-float 7s ease-in-out infinite;
}

.paper-doc-row:nth-child(2) {
  animation-delay: -1.4s;
}

.paper-doc-row:nth-child(3) {
  animation-delay: -2.8s;
}

.paper-doc-row:nth-child(4) {
  animation-delay: -4.2s;
}

.paper-doc-row.is-active {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(240, 253, 250, 0.86);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.08);
}

.paper-doc-row strong,
.paper-doc-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper-doc-row small {
  margin-top: 4px;
  color: var(--muted);
}

.paper-insight-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 14px 2px 0;
}

.paper-insight-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 164px;
  height: 1px;
  background: rgba(24, 32, 28, 0.1);
}

.paper-insight-panel > span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.paper-insight-panel > strong {
  font-size: 15px;
}

.paper-insight-meta {
  width: fit-content;
  max-width: calc(100% - 120px);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.paper-insight-meta em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(240, 253, 250, 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

@keyframes home-ambient-sweep {
  0%,
  100% {
    transform: translateX(-18%) translateY(0);
  }

  50% {
    transform: translateX(14%) translateY(3%);
  }
}

@keyframes home-lane-drift {
  0%,
  100% {
    transform: rotate(-11deg) translateX(-4%);
    opacity: 0.52;
  }

  50% {
    transform: rotate(-11deg) translateX(6%);
    opacity: 0.94;
  }
}

@keyframes paper-window-sheen {
  0%,
  44%,
  100% {
    transform: translateX(-58%);
  }

  64% {
    transform: translateX(58%);
  }
}

@keyframes paper-row-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-ambient::before,
  .home-ambient::after,
  .home-ambient-lane,
  .paper-window::before,
  .paper-doc-row {
    animation: none;
  }

  .paper-window::before {
    opacity: 0;
  }

  .paper-doc-row {
    transform: none;
  }
}

.home-feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 20px clamp(18px, 7vw, 92px) 42px;
}

.home-feature-band article {
  display: grid;
  gap: 8px;
  padding: 18px 22px;
  border-left: 1px solid var(--border);
}

.home-feature-band article:first-child {
  border-left: 0;
  padding-left: 0;
}

.home-feature-band span {
  color: var(--muted);
  line-height: 1.6;
}

.home-detail-section {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 54px clamp(18px, 7vw, 92px) 72px;
  border-top: 1px solid var(--border);
  background: rgba(255, 254, 250, 0.58);
}

.home-section-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.home-section-copy > span {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.home-section-copy h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.16;
}

.home-section-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.home-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.54);
}

.home-capability-grid article {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 150px;
  padding: 20px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.home-capability-grid article:nth-child(1),
.home-capability-grid article:nth-child(2) {
  border-top: 0;
}

.home-capability-grid article:nth-child(odd) {
  border-left: 0;
}

.home-capability-grid span {
  color: var(--muted);
  line-height: 1.7;
}

.pricing-public-page {
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.86) 0%, rgba(241, 248, 246, 0.72) 44%, rgba(232, 239, 247, 0.68) 100%),
    var(--bg);
}

.pricing-hero {
  position: relative;
  overflow: hidden;
  padding: 64px clamp(18px, 7vw, 92px) 46px;
  border-bottom: 1px solid rgba(24, 32, 28, 0.08);
  background:
    linear-gradient(105deg, rgba(15, 118, 110, 0.12) 0 18%, transparent 18% 52%, rgba(37, 99, 235, 0.09) 52% 72%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 254, 250, 0.28));
}

.pricing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.045) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.035) 0 1px, transparent 1px 76px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 74%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 74%);
}

.pricing-kicker,
.pricing-note > span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-weak);
  font-size: 12px;
  font-weight: 800;
}

.pricing-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 16px 0 14px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.1;
  text-wrap: balance;
}

.pricing-hero p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.pricing-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding: 42px clamp(18px, 7vw, 92px) 74px;
}

.pricing-list {
  display: grid;
  gap: 16px;
}

.pricing-plan {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(150px, 0.55fr) minmax(280px, 1.25fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(24, 32, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(24, 32, 28, 0.07);
}

.pricing-plan::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: rgba(15, 118, 110, 0.28);
}

.pricing-plan.is-featured {
  border-color: rgba(15, 118, 110, 0.26);
  background:
    linear-gradient(90deg, rgba(240, 253, 250, 0.84), rgba(255, 255, 255, 0.92) 46%),
    #fff;
}

.pricing-plan.is-featured::before {
  background: var(--accent);
}

.pricing-plan-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.pricing-plan-title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.pricing-plan-title strong {
  font-size: 22px;
}

.pricing-plan-title span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.pricing-plan-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pricing-plan-price {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pricing-plan-price strong {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
}

.pricing-plan-price span {
  color: var(--muted);
  font-weight: 700;
}

.pricing-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
}

.pricing-specs div {
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(24, 32, 28, 0.1);
}

.pricing-specs dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pricing-specs dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
  line-height: 1.45;
}

.pricing-plan-action {
  justify-self: end;
}

.pricing-note {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 13px;
  padding: 8px 0 0;
}

.pricing-note h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.pricing-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.pricing-note ul {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-note li {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(24, 32, 28, 0.1);
}

.pricing-note li span {
  color: var(--muted);
  line-height: 1.65;
}

.public-footer {
  padding: 34px clamp(18px, 7vw, 92px) 24px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.public-footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 0.8fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
}

.public-footer-brand {
  display: grid;
  gap: 12px;
}

.compact-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.compact-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.compact-brand strong,
.compact-brand span {
  display: block;
}

.compact-brand span,
.public-footer p,
.footer-record-list,
.public-footer-bottom {
  color: var(--muted);
  line-height: 1.7;
}

.public-footer p {
  max-width: 520px;
  margin: 0;
}

.footer-link-list,
.footer-record-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.footer-record-list-compact {
  margin-top: 0;
}

.footer-link-list button {
  width: fit-content;
  padding: 0;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-weight: 500;
}

.footer-link-list button:hover,
.footer-record-list a:hover,
.public-footer-bottom a:hover {
  color: var(--accent-strong);
}

.footer-record-list a,
.public-footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.public-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.legal-public-page {
  background: var(--bg);
}

.legal-hero {
  padding: 54px clamp(18px, 7vw, 92px) 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.58);
}

.legal-kicker {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-weak);
  font-size: 12px;
  font-weight: 600;
}

.legal-hero h1 {
  max-width: 920px;
  margin: 14px 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
}

.legal-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.legal-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 880px);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
  padding: 42px clamp(18px, 7vw, 92px) 72px;
}

.legal-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
}

.legal-sidebar button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-weight: 600;
}

.legal-sidebar button:hover,
.legal-sidebar button.active {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--border);
}

.legal-doc {
  display: grid;
  gap: 28px;
}

.legal-section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.25;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.legal-section p + p {
  margin-top: 10px;
}

.legal-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.8;
}

.legal-section p + .legal-list {
  margin-top: 12px;
}

.cookie-preference-panel .row {
  margin-top: 14px;
}

.form-legal-consent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.form-legal-consent input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 2px 2px 0 0;
  accent-color: var(--accent);
}

.form-legal-consent label {
  font-weight: 500;
}

.form-legal-consent button {
  padding: 0;
  color: var(--accent-strong);
  background: transparent;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
}

.form-legal-consent button:hover {
  text-decoration: underline;
}

.account-legal-panel .legal-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  width: min(960px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(24, 32, 28, 0.14);
  transform: translateX(-50%);
}

.cookie-consent strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-consent p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.login-panel {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(23, 33, 29, 0.08);
}

.login.public-page .login-panel,
.login.public-page .wishlist-panel {
  align-self: center;
  justify-self: center;
  margin: 28px;
}

.wishlist-panel {
  width: min(560px, calc(100% - 28px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(23, 33, 29, 0.08);
}

.login-panel .brand,
.wishlist-panel .brand {
  gap: 18px;
  align-items: center;
}

.login-panel .brand-mark,
.wishlist-panel .brand-mark {
  width: 68px;
  height: 68px;
  border-radius: 12px;
}

.textarea {
  min-height: 118px;
  resize: vertical;
  padding-top: 12px;
  line-height: 1.6;
}

.welcome-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.welcome-panel {
  width: min(760px, 100%);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(23, 33, 29, 0.08);
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.welcome-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(247, 248, 246, 0.72);
}

.welcome-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.welcome-form {
  display: grid;
  gap: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  min-width: 0;
}

.brand > div {
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--on-accent);
  background: var(--surface);
  object-fit: cover;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--border);
}

.brand h3 {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
}

h2 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
}

h3 {
  font-size: 17px;
  font-weight: 750;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: #35423c;
}

.field > span {
  font-size: 13px;
  font-weight: 600;
  color: #35423c;
}

.input,
.select {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

select.select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.input:focus,
.select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
  background: var(--surface);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.row.no-wrap {
  flex-wrap: nowrap;
}

.primary,
.secondary,
.danger {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary.compact,
.secondary.compact,
.danger.compact {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.fit {
  width: fit-content;
}

.primary {
  color: var(--on-accent);
  background: var(--accent);
}

.primary:hover {
  background: var(--accent-strong);
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}

.secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.danger {
  color: #fff;
  background: var(--danger);
}

.danger:hover {
  background: #8f1d16;
}

.danger.subtle {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.2);
}

.danger.subtle:hover {
  color: #8f1d16;
  background: rgba(180, 35, 24, 0.12);
  border-color: rgba(180, 35, 24, 0.3);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  position: relative;
  isolation: isolate;
  transition: grid-template-columns 180ms ease;
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 260px;
  pointer-events: none;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  transition: width 180ms ease;
}

.shell.sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}

.shell.sidebar-collapsed::before {
  width: 76px;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  align-self: start;
}

.sidebar-inner {
  min-height: 100%;
  padding: 24px 18px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 16px;
}

.sidebar .brand {
  margin-bottom: 0;
}

.sidebar .brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 10px;
}

.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.mobile-nav-toggle span,
.mobile-nav-toggle span::before,
.mobile-nav-toggle span::after {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.mobile-nav-toggle span {
  position: relative;
}

.mobile-nav-toggle span::before,
.mobile-nav-toggle span::after {
  position: absolute;
  left: 0;
}

.mobile-nav-toggle span::before {
  top: -6px;
}

.mobile-nav-toggle span::after {
  top: 6px;
}

.mobile-nav-toggle.open span {
  background: transparent;
}

.mobile-nav-toggle.open span::before {
  transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle.open span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.tenant-name {
  margin: 14px 0 18px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: grid;
  align-content: start;
  gap: 2px;
}

.nav button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid transparent;
  border-radius: 0;
  padding: 0 12px 0 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 700;
}

.nav-icon,
.nav-svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.nav-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.nav-unread-badge {
  position: absolute;
  top: -9px;
  right: -13px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 0 5px;
  color: var(--on-accent);
  background: var(--danger);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(164, 51, 51, 0.26);
}

.nav-svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav button:hover {
  color: var(--accent);
  background: rgba(75, 85, 99, 0.06);
}

.nav button.active {
  color: var(--accent-strong);
  border-left-color: var(--accent);
  background: rgba(75, 85, 99, 0.08);
}

.sidebar-collapse-toggle {
  width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
}

.sidebar-collapse-toggle:hover,
.sidebar-collapse-toggle:focus-visible {
  color: var(--accent-strong);
  border-color: var(--border-strong);
  background: var(--surface);
}

.shell.sidebar-collapsed .sidebar-inner {
  padding: 18px 14px;
  justify-items: center;
  gap: 14px;
}

.shell.sidebar-collapsed .brand {
  margin-bottom: 0;
}

.shell.sidebar-collapsed .sidebar .brand-mark {
  width: 44px;
  height: 44px;
}

.shell.sidebar-collapsed .brand-copy,
.shell.sidebar-collapsed .nav-label {
  display: none;
}

.shell.sidebar-collapsed .sidebar-collapse-toggle {
  justify-self: center;
}

.shell.sidebar-collapsed .nav button {
  width: 48px;
  height: 48px;
  min-height: 48px;
  justify-content: center;
  border-left: 0;
  border-radius: 8px;
  padding: 0;
}

.shell.sidebar-collapsed .nav button.active {
  box-shadow: inset 0 -3px 0 var(--accent);
}

.main {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 248, 246, 0.9);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(16px);
}

.topbar h2 {
  font-size: 26px;
}

.topbar-actions {
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.topbar-actions .tenant-switcher {
  max-width: min(28vw, 240px);
}

.auv-sync-button {
  min-width: 132px;
}

.auv-sync-panel {
  display: grid;
  gap: 14px;
}

.tenant-settings-divider {
  margin: 22px 0;
  border-top: 1px solid var(--border);
}

.nas-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.nas-summary-copy,
.nas-summary-actions,
.nas-explorer-title,
.nas-import-result {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nas-summary-copy {
  min-width: 0;
}

.nas-summary-actions,
.nas-import-result {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nas-summary-card .notice {
  grid-column: 1 / -1;
  margin: 0;
}

.doc-drawer.nas-settings-drawer {
  width: min(1120px, calc(100vw - 240px));
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.nas-drawer-notice,
.nas-import-result,
.nas-operation-notice {
  margin: 12px 22px 0;
}

.nas-operation-notice {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nas-operation-notice > div {
  min-width: 0;
}

.nas-operation-notice strong,
.nas-operation-notice .small {
  overflow-wrap: anywhere;
}

.nas-drawer-body {
  grid-row: 5;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  border-top: 1px solid var(--border);
}

.nas-location-pane {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.32);
}

.nas-location-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nas-explorer-pane {
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 10px;
}

.nas-drawer-empty {
  grid-row: 5;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  border-top: 1px solid var(--border);
}

.nas-disabled-state {
  width: min(460px, 100%);
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.nas-connection-form {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.nas-connection-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.nas-connection-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 8px;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.nas-connection-item.active {
  padding-left: 10px;
  padding-right: 10px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.5);
}

.nas-connection-main {
  min-width: 0;
  min-height: 46px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.nas-connection-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 52px;
}

.nas-connection-copy,
.nas-file-copy {
  min-width: 0;
}

.nas-connection-copy strong,
.nas-file-copy strong,
.nas-explorer-title strong {
  display: block;
  overflow-wrap: anywhere;
}

.nas-connection-copy small,
.nas-file-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.nas-connection-details {
  display: grid;
  gap: 10px;
  margin-left: 52px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.nas-item-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: var(--raised);
  font-size: 12px;
  font-weight: 900;
}

.nas-item-icon.nas {
  color: var(--accent-strong);
  background: var(--accent-weak);
}

.nas-item-icon.folder {
  color: var(--warning);
  background: rgba(183, 121, 31, 0.1);
}

.nas-item-icon.file {
  color: var(--info);
  background: rgba(37, 99, 235, 0.08);
}

.nas-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.nas-breadcrumb button {
  min-height: 28px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.nas-breadcrumb button:hover {
  color: var(--accent-strong);
}

.nas-explorer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nas-explorer-title {
  min-width: 0;
}

.nas-path-strip {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nas-explorer-hint {
  padding: 0 2px;
}

.nas-inline-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 0;
  border-top: 1px solid rgba(37, 99, 235, 0.14);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.nas-inline-status strong,
.nas-inline-status span {
  display: block;
  overflow-wrap: anywhere;
}

.nas-inline-status-idle {
  min-height: 0;
  padding: 0;
  border: 0;
}

.nas-explorer-list {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow: auto;
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.nas-explorer-head,
.nas-explorer-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.3fr) minmax(150px, 0.7fr) 90px;
  align-items: center;
  gap: 12px;
}

.nas-explorer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(247, 248, 246, 0.96);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 900;
}

.nas-explorer-row {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border-top: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.nas-explorer-row:hover {
  background: rgba(255, 255, 255, 0.7);
}

.nas-explorer-row.is-loading {
  background: rgba(37, 99, 235, 0.06);
}

.nas-explorer-row.is-loading .nas-item-icon {
  border-color: rgba(37, 99, 235, 0.24);
}

.nas-explorer-check {
  display: grid;
  place-items: center;
}

.nas-explorer-check input {
  width: 18px;
  height: 18px;
}

.nas-explorer-name {
  min-width: 0;
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
}

button.nas-explorer-name:hover strong,
button.nas-explorer-name:focus-visible strong {
  color: var(--accent-strong);
}

.nas-explorer-actions {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.nas-selection-bar {
  position: static;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nas-selection-bar.active {
  border-color: var(--border);
}

.notice.success {
  color: var(--success);
  border-color: rgba(36, 124, 69, 0.22);
  background: rgba(36, 124, 69, 0.08);
}

.notice.danger {
  color: var(--danger);
  border-color: rgba(178, 57, 57, 0.24);
  background: rgba(178, 57, 57, 0.08);
}

.auv-sync-drawer {
  width: min(880px, calc(100vw - 280px));
}

.auv-sync-drawer-body {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.auv-sync-config-pane {
  display: grid;
  align-content: start;
  gap: 16px;
}

.auv-install-aside {
  background: rgba(255, 255, 255, 0.64);
}

.auv-install-qr {
  width: 172px;
  height: 172px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.auv-install-qr img {
  width: 164px;
  height: 164px;
  display: block;
  object-fit: contain;
}

.auv-sync-status-grid {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  gap: 10px 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.auv-sync-status-grid span {
  color: var(--muted);
  font-size: 13px;
}

.auv-bind-form {
  display: grid;
  gap: 12px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.check-row input {
  margin-top: 4px;
}

.compact-check {
  font-size: 12px;
  line-height: 1.4;
}

.compact-check em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.auv-account-card {
  align-items: center;
}

.danger-text {
  color: var(--danger);
}

.warning-text {
  color: var(--warning);
}

.inbox-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  padding: 0;
}

.inbox-icon {
  width: 28px;
  height: 28px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inbox-count {
  position: absolute;
  right: -7px;
  top: -7px;
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--on-accent);
  background: var(--danger);
  font-size: 12px;
  line-height: 1;
  padding: 0 6px;
}

.mobile-shell-actions {
  display: none;
}

.avatar-button {
  width: 46px;
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.avatar-button:hover,
.avatar-button:focus-visible {
  border-color: var(--accent);
  background: var(--surface);
}

.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--on-accent);
  background: var(--accent);
  font-weight: 800;
  object-fit: cover;
  overflow: hidden;
}

.avatar-small {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.avatar-large {
  width: 76px;
  height: 76px;
  font-size: 26px;
}

.profile-avatar-preview {
  min-height: 76px;
  display: flex;
  align-items: center;
}

.avatar-upload-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.avatar-upload-button {
  display: inline-grid;
  justify-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.72);
  color: var(--text);
}

.avatar-upload-button:hover,
.avatar-upload-button:focus-visible {
  border-color: var(--accent);
  background: var(--surface);
}

.avatar-upload-button span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-actions {
  align-self: end;
}

.tenant-settings-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tenant-settings-form .input {
  max-width: 420px;
}

.tenant-logo-field {
  display: flex;
  align-items: center;
}

.tenant-logo-upload-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.72);
  color: var(--text);
  font-weight: 800;
}

.tenant-logo-upload-button:hover,
.tenant-logo-upload-button:focus-visible {
  border-color: var(--accent);
  background: var(--surface);
}

.tenant-logo-preview {
  width: 34px;
  height: 34px;
  margin: 0;
}

.content {
  padding: 28px 32px 42px;
  display: grid;
  gap: 22px;
}

.content-documents {
  gap: 12px;
}

.work-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 14px;
  border-top: 1px solid rgba(37, 99, 235, 0.18);
  border-bottom: 1px solid rgba(37, 99, 235, 0.14);
  color: var(--text);
}

.work-banner strong {
  display: block;
}

.work-banner > div {
  min-width: 0;
}

.work-banner strong,
.work-banner .small {
  overflow-wrap: anywhere;
}

.mini-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid rgba(37, 99, 235, 0.18);
  border-top-color: var(--info);
  border-radius: 999px;
  animation: spin 760ms linear infinite;
}

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

.panel,
.card {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.panel {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.card {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.content > .panel:first-child,
.grid > .card:first-child,
.result-list > .card:first-child {
  border-top: 0;
  padding-top: 0;
}

.panel.error {
  margin-top: 0;
  padding: 12px 14px;
  color: var(--danger);
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 8px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid.cols-3 > .panel {
  padding: 0 18px;
  border-top: 0;
  border-left: 1px solid var(--border);
}

.grid.cols-3 > .panel:first-child {
  border-left: 0;
  padding-left: 0;
}

.form-grid {
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto;
  gap: 10px;
  align-items: center;
}

.document-filter-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
}

.drive-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.drive-view-toggle button {
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.drive-view-toggle button.active,
.drive-view-toggle button:hover {
  color: var(--accent-strong);
  background: var(--accent-weak);
}

.kb-drive-workspace {
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(0, 1fr) minmax(280px, 320px);
  align-items: start;
  gap: 0;
  min-height: calc(100vh - 150px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.kb-smart-sidebar,
.doc-detail-rail {
  min-width: 0;
  position: sticky;
  top: 80px;
  min-height: calc(100vh - 150px);
  max-height: calc(100vh - 122px);
}

.kb-smart-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 16px 14px 18px 0;
  border-right: 1px solid var(--border);
  overflow: auto;
}

.drive-main-column {
  min-width: 0;
  min-height: calc(100vh - 150px);
  display: grid;
  align-content: start;
  gap: 0;
  padding: 16px;
}

.drive-main-toolbar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.smart-sidebar-section {
  display: grid;
  gap: 8px;
}

.smart-sidebar-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.smart-view-list,
.smart-pill-list {
  display: grid;
  gap: 4px;
}

.smart-view-button,
.smart-pill {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.smart-view-button span,
.smart-pill {
  overflow: hidden;
  text-overflow: ellipsis;
}

.smart-pill.child {
  min-height: 30px;
  padding-left: 18px;
  font-size: 12px;
  font-weight: 700;
}

.smart-view-button strong,
.smart-pill span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.smart-view-button:hover,
.smart-view-button.active,
.smart-pill:hover,
.smart-pill.active {
  color: var(--accent-strong);
  border-color: rgba(75, 85, 99, 0.18);
  background: var(--accent-weak);
}

.original-structure-section {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.original-nav-group {
  display: grid;
  gap: 6px;
}

.original-nav-group-title {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

button.original-nav-group-title {
  cursor: pointer;
}

button.original-nav-group-title:hover {
  color: var(--text);
}

.original-nav-list {
  display: grid;
  gap: 4px;
}

.original-nav-item {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.original-nav-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.original-nav-label,
.original-nav-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.original-nav-label {
  font-size: 13px;
  font-weight: 800;
}

.original-nav-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.original-nav-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.original-nav-item:hover,
.original-nav-item.active {
  color: var(--accent-strong);
  border-color: rgba(75, 85, 99, 0.18);
  background: var(--accent-weak);
}

.original-nav-item.attention .original-nav-meta {
  color: #8a5a12;
}

.doc-detail-rail {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  border-left: 1px solid var(--border);
  background: rgba(255, 254, 250, 0.68);
  overflow: hidden;
}

.doc-detail-rail.empty-rail {
  min-height: 100%;
  padding: 0;
  background: rgba(255, 254, 250, 0.68);
}

.doc-detail-rail.empty-rail .empty {
  margin: 16px;
  border: 0;
  background: transparent;
  text-align: left;
}

.doc-detail-head {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 254, 250, 0.82);
}

.doc-detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.doc-detail-actions .compact {
  flex: 1 1 auto;
}

.doc-detail-actions .icon-button {
  flex: 0 0 34px;
  width: 34px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.rail-badges {
  padding: 10px 16px;
  flex-wrap: wrap;
  overflow: visible;
}

.doc-rail-scroll {
  min-height: 0;
  overflow: auto;
}

.related-list {
  display: grid;
  gap: 8px;
}

.related-item {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
  text-align: left;
}

.related-item:hover,
.related-item:focus-visible {
  border-color: rgba(75, 85, 99, 0.3);
  background: var(--surface);
}

.related-item span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.related-item strong,
.related-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-item small {
  color: var(--muted);
  font-size: 12px;
}

.related-item em {
  font-style: normal;
}

.activity-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.activity-item {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.activity-item span,
.activity-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-item span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.activity-item small {
  color: var(--muted);
  font-size: 12px;
}

.drive-filter-panel {
  display: grid;
  gap: 8px;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--border);
}

.document-filter-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}

.document-filter-primary,
.document-advanced-filter-grid {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-bar-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-select {
  width: auto;
  min-width: 124px;
  min-height: 34px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.filter-bar-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

.document-advanced-filters {
  min-width: 0;
  flex: 1 1 100%;
}

.document-advanced-filters summary {
  width: max-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.document-advanced-filters summary::-webkit-details-marker {
  display: none;
}

.document-advanced-filters[open] summary {
  margin-bottom: 8px;
  color: var(--accent-strong);
  background: var(--accent-weak);
}

.filter-date-range,
.filter-date-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-date-range {
  flex-wrap: wrap;
}

.filter-date-field {
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.filter-date-field .filter-date {
  width: 138px;
}

.active-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(75, 85, 99, 0.22);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--accent-strong);
  background: var(--accent-weak);
  font-size: 13px;
  font-weight: 800;
}

.filter-chip.clear {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.drive-bulk-bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.drive-bulk-bar:not(.active) {
  color: var(--muted);
}

.drive-bulk-hint {
  min-height: 0;
  padding: 6px 0 8px;
  border-bottom-color: transparent;
}

.drive-bulk-hint strong {
  font-size: 13px;
}

.drive-bulk-bar > div:first-child {
  min-width: min(100%, 260px);
}

.drive-bulk-bar > .row {
  min-width: 0;
  flex: 1 1 440px;
  justify-content: flex-end;
}

.drive-bulk-bar .select {
  max-width: 190px;
}

.compact-select {
  min-height: 34px;
  padding: 0 8px;
  font-size: 13px;
}

.metric {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-strong);
}

.manage-overview {
  display: grid;
  gap: 18px;
}

.manage-overview-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.manage-overview-title {
  min-width: 0;
}

.manage-overview-title h2 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 24px;
}

.manage-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manage-overview-pills {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.manage-info-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.manage-info-pill span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.manage-info-pill strong {
  color: var(--text);
  font-size: 14px;
}

.manage-upgrade-button {
  min-height: 38px;
}

.quota-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.quota-summary-card {
  min-width: 0;
  min-height: 128px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.58);
}

.quota-summary-label,
.quota-summary-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quota-summary-value {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.quota-summary-value strong {
  color: var(--accent-strong);
  font-size: 22px;
  line-height: 1;
}

.quota-summary-value span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.quota-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 33, 29, 0.08);
}

.quota-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.quota-summary-card.warning .quota-progress i {
  background: var(--warning);
}

.quota-summary-card.danger .quota-progress i {
  background: var(--danger);
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.usage-grid div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.usage-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.usage-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.usage-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.usage-breakdowns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.usage-bars {
  min-width: 0;
}

.usage-bars h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.usage-bar-row {
  display: grid;
  grid-template-columns: minmax(54px, 0.8fr) minmax(70px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: 12px;
}

.usage-bar-row span,
.usage-bar-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-bar-row em {
  color: var(--muted);
  font-style: normal;
}

.usage-bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 33, 29, 0.08);
}

.usage-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-strong);
}

.explore-panel {
  display: grid;
  gap: 12px;
}

.explore-mode-header {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.explore-mode-switch,
.explore-search-mode {
  display: inline-flex;
  width: fit-content;
  justify-self: center;
  min-height: 34px;
  margin-inline: auto;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--raised);
}

.explore-mode-switch button,
.explore-search-mode button {
  min-width: 70px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.explore-mode-switch button.active,
.explore-search-mode button.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 4px var(--shadow);
}

.explore-search-mode {
  min-height: 30px;
}

.explore-search-mode button {
  min-width: 82px;
  min-height: 24px;
  padding: 0 10px;
  font-size: 13px;
}

.explore-smart-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: min(680px, 100%);
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.explore-smart-note::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
  opacity: 0.7;
}

.ask-mode-panel {
  padding-bottom: 12px;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
}

.explore-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ask-composer {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

.ask-composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}

.ask-input {
  width: 100%;
  min-height: 58px;
  max-height: 180px;
  border: 0;
  padding: 8px 4px;
  background: transparent;
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
}

.ask-input:focus {
  box-shadow: none;
  background: transparent;
}

.ask-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ask-submit {
  min-width: 96px;
}

.ask-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ask-new-context {
  min-width: 86px;
}

.ask-scope-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.ask-starters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ask-starter {
  min-height: 48px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 750;
  white-space: normal;
  text-align: left;
}

.ask-starter:hover,
.ask-starter:focus-visible {
  border-color: var(--border-strong);
  background: var(--surface);
}

.filter-input {
  width: min(170px, 100%);
}

.filter-date {
  width: 150px;
}

.search-input {
  min-height: 56px;
  padding: 0 16px;
  font-size: 18px;
  background: var(--surface);
  border-color: var(--border-strong);
}

.explore-home {
  display: grid;
  gap: 18px;
}

.explore-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.shortcut-tile {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
  text-align: left;
}

.shortcut-tile:hover,
.shortcut-tile:focus {
  border-color: rgba(75, 85, 99, 0.34);
  background: var(--surface);
  outline: none;
}

.shortcut-tile span,
.shortcut-tile strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortcut-tile strong {
  color: var(--accent-strong);
  font-size: 18px;
}

.explore-category-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.explore-doc-bands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.explore-doc-band {
  min-width: 0;
}

.explore-mini-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.explore-mini-doc {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.explore-mini-doc:hover,
.explore-mini-doc:focus {
  background: rgba(255, 255, 255, 0.56);
  outline: none;
}

.explore-mini-doc span,
.explore-mini-doc strong,
.explore-mini-doc small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explore-mini-doc span {
  display: grid;
  gap: 2px;
}

.explore-mini-doc small {
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  overflow: auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  background: rgba(237, 241, 239, 0.8);
  font-weight: 800;
}

tbody tr {
  background: var(--surface-soft);
}

tr:hover td {
  background: rgba(75, 85, 99, 0.055);
}

.doc-list-shell {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.34);
}

.doc-list-head,
.doc-row {
  display: grid;
  grid-template-columns: 34px minmax(240px, 1.9fr) minmax(78px, 0.45fr) minmax(132px, 0.68fr) minmax(96px, 0.5fr) minmax(104px, 0.5fr) minmax(178px, max-content);
  align-items: center;
  gap: 12px;
  min-width: 820px;
}

.doc-list-head {
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(237, 241, 239, 0.72);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.doc-list {
  display: grid;
}

.doc-row {
  min-height: 72px;
  overflow: hidden;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
  cursor: default;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.doc-row:last-child {
  border-bottom: 0;
}

.doc-row:hover,
.doc-row:focus {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 3px 0 0 var(--accent);
  outline: none;
}

.doc-row.active {
  background: rgba(75, 85, 99, 0.08);
  box-shadow: inset 3px 0 0 var(--accent);
}

.doc-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.doc-check input {
  width: 16px;
  height: 16px;
}

.doc-title-cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.doc-title-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.doc-title-copy strong,
.doc-title-copy span,
.doc-muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-title-copy strong {
  font-size: 14px;
  line-height: 1.25;
}

.doc-title-copy span,
.doc-muted {
  color: var(--muted);
  font-size: 12px;
}

.doc-summary-line {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-icon {
  width: 34px;
  height: 42px;
  display: inline-grid;
  place-items: end center;
  position: relative;
  flex: 0 0 auto;
  border-radius: 4px;
  color: #fff;
  background: #5d6872;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 29, 0.08);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding-bottom: 7px;
}

.doc-icon > span {
  display: block;
  max-width: 28px;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.doc-icon::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: rgba(255, 255, 255, 0.62);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.doc-icon-pdf {
  background: #b42318;
}

.doc-icon-word {
  background: #4b6383;
}

.doc-icon-sheet {
  background: #4f6f52;
}

.doc-icon-slide {
  background: #9a6b2f;
}

.doc-icon-text {
  background: #5d5a53;
}

.doc-icon-image {
  background: #6f6257;
}

.doc-status-cell,
.doc-tags,
.doc-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.doc-status-cell {
  overflow: hidden;
  flex-wrap: nowrap;
}

.doc-tags {
  overflow: hidden;
  flex-wrap: nowrap;
}

.doc-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.doc-actions .compact {
  flex: 0 0 auto;
}

.doc-drawer-header .doc-actions {
  max-width: min(500px, 48vw);
  flex-wrap: wrap;
}

.doc-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.doc-grid-card {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.doc-grid-card:hover,
.doc-grid-card:focus,
.doc-grid-card.active {
  border-color: rgba(75, 85, 99, 0.3);
  box-shadow: 0 8px 22px rgba(23, 33, 29, 0.08);
  outline: none;
}

.doc-grid-card.active {
  background: rgba(75, 85, 99, 0.08);
}

.doc-grid-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.doc-grid-icon {
  display: grid;
  place-items: center;
  min-height: 70px;
}

.doc-grid-icon .doc-icon {
  width: 48px;
  height: 58px;
  font-size: 12px;
}

.doc-grid-icon .doc-icon > span {
  max-width: 40px;
}

.doc-grid-card strong,
.doc-grid-card .small,
.doc-grid-card .doc-summary-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(237, 241, 239, 0.9);
  color: var(--muted);
  white-space: nowrap;
}

.badge.success {
  color: var(--success);
  background: rgba(36, 124, 69, 0.1);
}

.badge.info {
  color: var(--info);
  background: rgba(37, 99, 235, 0.1);
}

.badge.neutral {
  color: var(--muted);
  background: rgba(100, 116, 139, 0.12);
}

.badge.warning {
  color: var(--warning);
  background: rgba(183, 121, 31, 0.12);
}

.badge.danger {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.1);
}

.tag-filter-button {
  border: 1px solid transparent;
}

.tag-chip {
  min-width: 0;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 8px;
  color: #35423c;
  background: rgba(237, 241, 239, 0.82);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-tags .tag-filter-button {
  flex: 1 1 0;
  max-width: 112px;
}

.tag-overflow-chip {
  flex: 0 0 auto;
  color: var(--muted);
  cursor: help;
}

.doc-tags-empty {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-filter-button:hover,
.tag-filter-button:focus-visible,
.tag-filter-button.active {
  color: var(--accent);
  background: var(--accent-weak);
  border-color: rgba(75, 85, 99, 0.22);
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.result-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ask-workspace {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: min(720px, calc(100vh - 220px));
}

.ask-conversation {
  display: grid;
  align-content: start;
  gap: 18px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 0 4px;
}

.ask-welcome {
  display: grid;
  gap: 18px;
  padding: 38px 0 18px;
}

.ask-welcome h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.ask-welcome p {
  margin: 8px 0 0;
  color: var(--muted);
}

.ask-dock {
  position: sticky;
  bottom: 0;
  z-index: 4;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 0 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.ask-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.ask-turn {
  display: grid;
  gap: 12px;
  scroll-margin: 92px 0 148px;
}

.ask-question {
  justify-self: end;
  max-width: min(720px, 86%);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  white-space: pre-wrap;
}

.ask-empty {
  margin-top: 0;
}

.ask-thinking,
.local-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.ask-answer-stack {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.ask-answer-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.ask-answer-card h3 {
  margin: 0;
}

.ask-evidence-preview {
  display: grid;
  gap: 8px;
}

.ask-evidence-chip {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.86);
  color: var(--text);
  text-align: left;
}

.ask-evidence-chip strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ask-evidence-chip span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ask-sources {
  padding: 0 2px;
  color: var(--muted);
}

.ask-sources summary {
  cursor: pointer;
  width: fit-content;
  min-height: 32px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.ask-source-list,
.ask-related-compact {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.citation-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.citation-compact p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.related-compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.related-compact strong,
.related-compact small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-error {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.18);
}

.result-card {
  display: grid;
  gap: 10px;
  padding: 18px 0;
}

.result-title-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.result-title-wrap h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-card:hover {
  background: rgba(255, 255, 255, 0.56);
}

.result-card mark {
  background: rgba(183, 121, 31, 0.22);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.citation-focus {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

.citation-mark {
  background: rgba(15, 118, 110, 0.2);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.ask-answer {
  line-height: 1.8;
}

.ask-answer-markdown {
  display: grid;
  gap: 10px;
}

.ask-answer-markdown p,
.ask-answer-markdown ol,
.ask-answer-markdown ul {
  margin: 0;
}

.ask-answer-markdown ol,
.ask-answer-markdown ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.ask-answer-markdown li {
  padding-left: 2px;
}

.ask-answer-markdown strong {
  font-weight: 850;
}

.ask-answer-markdown code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--raised);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.citation-card {
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.section-title {
  padding: 16px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dropzone {
  min-height: 128px;
  border: 1px dashed rgba(75, 85, 99, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px 24px;
}

.dropzone h2 {
  font-size: 22px;
}

.dropzone.drag {
  border-color: var(--accent);
  background: var(--accent-weak);
}

.drive-main-column .dropzone {
  min-height: 66px;
  display: block;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.drive-main-column .dropzone > div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.drive-main-column .dropzone h2 {
  margin: 0;
  font-size: 15px;
}

.drive-main-column .dropzone p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.drive-main-column .upload-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.drive-main-column .dropzone button {
  min-height: 34px;
}

.upload-summary {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.upload-task-panel {
  display: grid;
  gap: 12px;
}

.upload-task-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.upload-task-stats span {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.62);
}

.upload-task-stats strong,
.upload-task-stats small {
  display: block;
}

.upload-task-stats small {
  color: var(--muted);
  margin-top: 2px;
}

.import-guard-panel {
  display: grid;
  gap: 14px;
}

.import-guard-groups {
  display: grid;
  gap: 12px;
}

.import-guard-group {
  display: grid;
  gap: 8px;
}

.import-guard-list {
  display: grid;
  gap: 6px;
}

.import-guard-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 148px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 8px 10px;
}

.import-guard-item.private {
  border-color: rgba(183, 121, 31, 0.32);
  background: rgba(183, 121, 31, 0.07);
}

.import-guard-item.skipped {
  opacity: 0.72;
}

.import-guard-file {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.import-guard-file strong,
.import-guard-file span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-guard-actions {
  align-items: center;
}

.import-guard-head-actions {
  justify-content: flex-end;
}

.import-guard-select-all {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.platform-shell {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.platform-nav {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 8px;
}

.platform-nav button {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  text-align: left;
}

.platform-nav button:hover,
.platform-nav button:focus-visible {
  border-color: var(--border-strong);
  background: var(--surface);
}

.platform-nav button.active {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(240, 253, 250, 0.72);
  box-shadow: inset 3px 0 0 var(--accent);
}

.platform-nav strong,
.platform-nav span {
  display: block;
  min-width: 0;
}

.platform-nav strong {
  font-size: 14px;
}

.platform-nav span span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.platform-nav em {
  min-width: 30px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.platform-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.platform-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.platform-summary-metric {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.platform-summary-metric span,
.platform-summary-metric small {
  color: var(--muted);
  font-size: 12px;
}

.platform-summary-metric strong {
  font-size: 24px;
  line-height: 1;
}

.platform-alert-strip,
.platform-delivery-list {
  display: grid;
  gap: 10px;
}

.platform-delivery-card {
  display: grid;
  gap: 12px;
}

.platform-approve-form {
  display: flex;
  justify-content: flex-end;
}

.platform-intake-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.platform-intake-grid div {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--raised);
}

.platform-intake-grid span {
  color: var(--muted);
  font-size: 12px;
}

.platform-intake-grid strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.platform-recommendation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(240, 253, 250, 0.54);
}

.platform-recommendation p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.platform-intervention summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
}

.tenant-action-row > td {
  padding: 0 12px 14px;
  background: rgba(247, 248, 246, 0.72);
}

.tenant-action-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(240, 253, 250, 0.54);
}

.tenant-action-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.tenant-action-form .field {
  margin: 0;
}

.tenant-quota-form .field {
  flex: 1 1 150px;
}

.platform-tenant-detail-grid {
  display: grid;
  gap: 10px;
}

.tenant-feature-controls {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.tenant-feature-toggle {
  display: grid;
  gap: 2px;
  justify-items: start;
  min-height: 44px;
}

.tenant-feature-toggle.active {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(240, 253, 250, 0.72);
}

.tenant-feature-toggle span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.tenant-maintenance-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.profile-pack-admin {
  display: grid;
  gap: 14px;
}

.profile-pack-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.profile-pack-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 16px;
  align-items: stretch;
}

.profile-pack-editor {
  align-items: stretch;
}

.profile-pack-edit-pane {
  display: grid;
  gap: 12px;
}

.profile-pack-list {
  display: grid;
  align-content: start;
  gap: 10px;
  height: clamp(620px, calc(100vh - 230px), 980px);
  overflow: auto;
  padding-right: 4px;
}

.profile-pack-guide {
  align-self: start;
  position: sticky;
  top: 88px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.profile-pack-guide h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
}

.profile-pack-guide p {
  margin: 0 0 10px;
}

.profile-pack-details {
  display: grid;
  gap: 10px;
}

.profile-pack-detail-block {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.profile-pack-detail-block h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.profile-pack-card {
  display: grid;
  gap: 8px;
}

.profile-upgrade-list {
  display: grid;
  gap: 10px;
}

.profile-pack-allow-list {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.compact-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
}

.code-textarea {
  min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.markdown-guide {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
}

.profile-pack-prompt {
  display: grid;
  gap: 10px;
}

.profile-pack-prompt .toolbar {
  margin: 0;
}

.profile-pack-prompt-textarea {
  min-height: 520px;
  resize: vertical;
}

.grow {
  flex: 1 1 260px;
}

.short-field {
  flex: 0 0 160px;
}

.notice {
  border: 1px solid rgba(183, 121, 31, 0.24);
  border-radius: 8px;
  background: rgba(183, 121, 31, 0.08);
  color: var(--warning);
  padding: 12px;
  font-weight: 700;
}

.tight {
  padding: 10px;
}

.mt8 {
  margin-top: 8px;
}

.inline-edit {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  min-width: 220px;
}

.metadata-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.version-list {
  display: grid;
  gap: 8px;
}

.activity-item .secondary.compact,
.version-list .secondary.compact {
  justify-self: start;
  margin-top: 4px;
}

.progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--raised);
}

.progress > div {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 160ms ease;
}

.viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.doc-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: rgba(23, 33, 29, 0.18);
  animation: fade-in 140ms ease both;
}

.doc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9;
  width: min(980px, calc(100vw - 280px));
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  background: rgba(247, 248, 246, 0.98);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 60px rgba(23, 33, 29, 0.14);
  animation: drawer-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.doc-drawer-backdrop.nas-settings-backdrop,
.doc-drawer.nas-settings-drawer {
  animation: none;
}

.doc-drawer-backdrop.nas-settings-backdrop.drawer-entering {
  animation: fade-in 140ms ease both;
}

.doc-drawer.nas-settings-drawer.drawer-entering {
  animation: drawer-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.doc-drawer-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
}

.doc-drawer-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 10px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.52);
}

.doc-drawer-body {
  grid-row: 4;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0;
}

.doc-preview-pane {
  min-height: 0;
  height: 100%;
  overflow: auto;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--border);
}

.doc-inspector {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 0;
  background: rgba(255, 255, 255, 0.58);
}

.inspector-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.detail-grid {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 10px;
  font-size: 13px;
}

.detail-grid span:nth-child(odd) {
  color: var(--muted);
}

.breakable {
  word-break: break-all;
}

.preview {
  min-height: 520px;
  white-space: normal;
  line-height: 1.75;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.doc-preview-pane {
  padding: 0;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--border);
}

.doc-preview-pane > .empty,
.doc-preview-pane > .text-preview,
.doc-preview-pane > .markdown-preview,
.doc-preview-pane > .office-text-preview,
.doc-preview-pane > .preview-note {
  margin: 22px;
}

.doc-preview-pane > .weboffice-preview-shell {
  padding: 22px;
}

.inline-preview-frame {
  width: 100%;
  height: 100%;
  min-height: 680px;
  border: 0;
}

.inline-preview-image {
  display: block;
  max-width: calc(100% - 44px);
  height: auto;
  margin: 22px;
  border-radius: 8px;
}

.viewer aside.panel {
  padding-top: 0;
}

.preview iframe,
.preview img {
  display: block;
}

.weboffice-preview-shell {
  height: 100%;
  min-height: 620px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.weboffice-preview-frame {
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.weboffice-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.text-preview {
  white-space: pre-wrap;
}

.office-text-preview {
  display: grid;
  gap: 14px;
}

.preview-note {
  padding: 10px 12px;
  border: 1px solid rgba(183, 121, 31, 0.2);
  border-radius: 8px;
  color: var(--warning);
  background: rgba(183, 121, 31, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.markdown-preview {
  line-height: 1.78;
}

.markdown-preview > * + * {
  margin-top: 14px;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
  font-family: var(--font-title);
}

.markdown-preview h1 {
  font-size: 28px;
}

.markdown-preview h2 {
  font-size: 22px;
}

.markdown-preview h3 {
  font-size: 18px;
}

.markdown-preview p,
.markdown-preview ul,
.markdown-preview ol,
.markdown-preview blockquote,
.markdown-preview pre,
.markdown-preview table {
  margin-bottom: 0;
}

.markdown-preview ul,
.markdown-preview ol {
  padding-left: 22px;
}

.markdown-preview blockquote {
  margin-left: 0;
  padding-left: 14px;
  color: var(--muted);
  border-left: 3px solid var(--border-strong);
}

.markdown-preview a {
  color: var(--accent-strong);
  font-weight: 700;
}

.markdown-preview code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--raised);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.markdown-preview pre {
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #24211d;
  color: #faf9f6;
}

.markdown-preview pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.markdown-preview table {
  width: 100%;
  border-collapse: collapse;
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.error {
  margin-top: 12px;
  color: var(--danger);
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 30px var(--shadow);
}

/* Visual refresh: shared product system */
h1,
h2,
h3,
.home-copy h1,
.home-section-copy h2,
.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
  font-family: var(--font-body);
  letter-spacing: 0;
}

.brand-name,
.public-brand .brand-name,
.home-copy h1.brand-name,
.login-panel .brand h1.brand-name,
.welcome-panel .brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
}

h1 {
  font-weight: 650;
}

h2,
.topbar h2 {
  font-weight: 600;
}

h3,
.field label,
.section-title,
.smart-sidebar-title,
.filter-bar-label {
  font-weight: 600;
}

strong,
.public-brand,
.nav button,
.primary,
.secondary,
.danger,
.badge,
.tag-chip,
.filter-chip,
.smart-view-button,
.smart-pill {
  font-weight: 600;
}

body {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.public-page {
  background: var(--bg);
}

.public-nav,
.topbar,
.shell::before,
.doc-drawer-header,
.doc-drawer-badges {
  background: rgba(255, 255, 255, 0.88);
}

.public-nav {
  min-height: 72px;
  border-bottom-color: rgba(24, 32, 28, 0.08);
}

.public-brand {
  min-height: 44px;
}

.public-brand .brand-mark {
  width: 56px;
  height: 56px;
}

.public-nav nav button,
.link-button {
  min-height: 36px;
  border-radius: 8px;
  font-weight: 500;
}

.public-nav nav button:hover,
.public-nav nav button.active,
.link-button:hover {
  color: var(--accent-strong);
  border-color: transparent;
  background: var(--accent-weak);
}

.home-hero {
  min-height: calc(100vh - 96px);
  gap: clamp(40px, 6vw, 96px);
  border-bottom-color: rgba(24, 32, 28, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, transparent 46%, rgba(15, 118, 110, 0.08) 100%),
    linear-gradient(112deg, rgba(255, 254, 250, 0.9) 0%, rgba(246, 249, 246, 0.72) 40%, rgba(217, 236, 232, 0.82) 100%),
    linear-gradient(154deg, rgba(15, 118, 110, 0.18) 0 18%, transparent 18% 52%, rgba(37, 99, 235, 0.12) 52% 74%, transparent 74%),
    linear-gradient(28deg, rgba(183, 121, 31, 0.15) 0%, transparent 36%),
    linear-gradient(215deg, rgba(37, 99, 235, 0.12) 0%, transparent 42%),
    var(--bg);
}

.home-hero::after {
  background:
    linear-gradient(90deg, rgba(246, 247, 244, 0.56) 0%, rgba(246, 247, 244, 0.22) 48%, rgba(255, 254, 250, 0.02) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 42%, rgba(226, 235, 231, 0.14) 100%);
}

.home-domain,
.home-section-copy > span {
  border-color: transparent;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-weak);
  font-weight: 600;
}

.home-copy h1 {
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1.06;
}

.home-copy h1.brand-name {
  font-size: 60px;
  text-wrap: balance;
}

.home-copy p,
.home-section-copy p,
.home-capability-grid span,
.home-feature-band span {
  color: var(--muted);
}

.paper-window,
.login-panel,
.wishlist-panel,
.welcome-panel {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(24, 32, 28, 0.08);
}

.paper-window {
  transform: none;
}

.home-product-shot > img {
  box-shadow: 0 12px 30px rgba(24, 32, 28, 0.10);
}

.home-feature-band article,
.home-detail-section,
.home-capability-grid article {
  border-color: rgba(24, 32, 28, 0.08);
}

.home-capability-grid {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(24, 32, 28, 0.08);
}

.input,
.select,
.filter-select,
.compact-select {
  min-height: 40px;
  border-color: rgba(24, 32, 28, 0.12);
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.filter-select,
.compact-select,
.secondary.compact,
.primary.compact,
.danger.compact {
  min-height: 32px;
  font-size: 13px;
}

.input::placeholder,
textarea::placeholder {
  color: rgba(99, 112, 103, 0.72);
}

.primary,
.secondary,
.danger {
  min-height: 40px;
  border-radius: 8px;
  padding-inline: 14px;
}

.primary {
  box-shadow: none;
}

.primary:hover {
  background: var(--accent-strong);
}

.secondary {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(24, 32, 28, 0.12);
}

.secondary:hover,
.secondary:focus-visible {
  border-color: rgba(15, 118, 110, 0.24);
  background: #fff;
}

.danger {
  background: #c24136;
}

.danger:hover {
  background: #9f2a21;
}

.shell {
  grid-template-columns: 240px minmax(0, 1fr);
}

.shell::before {
  width: 240px;
  background: rgba(255, 255, 255, 0.76);
  border-right-color: rgba(24, 32, 28, 0.08);
}

.shell.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.shell.sidebar-collapsed::before {
  width: 72px;
}

.sidebar-inner {
  padding: 20px 14px;
}

.tenant-name {
  margin: 10px 0 14px;
  padding: 10px 0;
  border-color: rgba(24, 32, 28, 0.08);
}

.nav {
  gap: 4px;
}

.nav button {
  min-height: 40px;
  border-left: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
}

.nav button:hover {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.07);
}

.nav button.active {
  color: var(--accent-strong);
  border-left-color: transparent;
  background: var(--accent-weak);
}

.shell.sidebar-collapsed .nav button.active {
  box-shadow: none;
  background: var(--accent-weak);
}

.topbar {
  min-height: 64px;
  padding: 12px 28px;
  border-bottom-color: rgba(24, 32, 28, 0.08);
}

.topbar h2 {
  font-size: 24px;
}

.topbar-title .small {
  margin-top: 2px;
}

.tenant-switcher {
  min-width: 150px;
}

.inbox-button,
.avatar-button,
.sidebar-collapse-toggle,
.mobile-nav-toggle {
  width: 40px;
  min-height: 40px;
  border-color: rgba(24, 32, 28, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.inbox-button {
  width: 48px;
  min-height: 48px;
}

.avatar {
  font-weight: 600;
}

.content {
  padding: 24px 28px 40px;
  gap: 18px;
}

.content-documents {
  gap: 12px;
}

.panel,
.card {
  border-color: rgba(24, 32, 28, 0.10);
}

.panel.error,
.notice,
.empty {
  border-radius: 8px;
}

.grid.cols-3 {
  border-color: rgba(24, 32, 28, 0.08);
}

.grid.cols-3 > .panel {
  border-left-color: rgba(24, 32, 28, 0.08);
}

.work-banner,
.nas-inline-status {
  border-color: rgba(37, 99, 235, 0.14);
}

.explore-mode-switch,
.explore-search-mode,
.drive-view-toggle {
  border-color: rgba(24, 32, 28, 0.10);
  background: var(--raised);
}

.explore-mode-switch button,
.explore-search-mode button,
.drive-view-toggle button {
  font-weight: 600;
}

.explore-mode-switch button.active,
.explore-search-mode button.active,
.drive-view-toggle button.active {
  color: var(--accent-strong);
  background: #fff;
  box-shadow: none;
}

.search-input {
  min-height: 52px;
  border-color: rgba(24, 32, 28, 0.14);
  font-size: 17px;
}

.ask-composer,
.ask-answer-card,
.ask-evidence-chip,
.citation-compact,
.shortcut-tile,
.related-item,
.profile-pack-guide,
.profile-pack-detail-block {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(24, 32, 28, 0.10);
  box-shadow: none;
}

.ask-composer {
  border-color: rgba(24, 32, 28, 0.14);
}

.ask-composer:focus-within {
  border-color: var(--accent);
}

.ask-sources summary {
  color: var(--accent-strong);
  font-weight: 600;
}

.result-list,
.table-wrap,
.doc-list-shell {
  border-color: rgba(24, 32, 28, 0.08);
}

th,
.doc-list-head,
.nas-explorer-head {
  color: var(--muted);
  background: rgba(238, 242, 239, 0.72);
  font-weight: 600;
  text-transform: none;
}

td,
th {
  border-bottom-color: rgba(24, 32, 28, 0.10);
}

tbody tr {
  background: rgba(255, 255, 255, 0.74);
}

.kb-drive-workspace {
  gap: 16px;
  min-height: calc(100vh - 144px);
  border: 0;
}

.kb-drive-workspace.no-detail {
  grid-template-columns: minmax(190px, 226px) minmax(0, 1fr);
}

.kb-drive-workspace.has-detail {
  grid-template-columns: minmax(190px, 226px) minmax(0, 1fr) minmax(300px, 324px);
}

.kb-smart-sidebar {
  top: 76px;
  padding: 14px 10px;
  border: 1px solid rgba(24, 32, 28, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.drive-main-column {
  min-height: calc(100vh - 144px);
  padding: 0;
}

.drive-main-toolbar {
  min-height: 40px;
  padding: 0 0 10px;
  border-bottom-color: rgba(24, 32, 28, 0.08);
}

.drive-view-toggle button {
  width: 34px;
  height: 30px;
}

.smart-sidebar-title {
  font-size: 12px;
  text-transform: none;
}

.smart-view-button,
.smart-pill {
  min-height: 32px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.smart-pill.child {
  min-height: 30px;
}

.smart-view-button strong,
.smart-pill span {
  font-weight: 500;
}

.smart-view-button:hover,
.smart-view-button.active,
.smart-pill:hover,
.smart-pill.active {
  color: var(--accent-strong);
  border-color: transparent;
  background: var(--accent-weak);
}

.drive-filter-panel {
  gap: 10px;
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid rgba(24, 32, 28, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.document-filter-bar {
  gap: 8px;
}

.filter-bar-label {
  color: var(--muted);
}

.filter-bar-divider {
  background: rgba(24, 32, 28, 0.10);
}

.filter-chip {
  min-height: 28px;
  border-color: transparent;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-weak);
  font-weight: 500;
}

.drive-bulk-bar {
  min-height: 52px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.drive-bulk-bar.active {
  border-color: rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.06);
}

.drive-bulk-bar:not(.active) {
  padding-inline: 0;
}

.drive-bulk-hint {
  min-height: 0;
  margin: 4px 0 8px;
  padding: 2px 0 6px;
  border-color: transparent;
}

.drive-bulk-hint strong {
  font-size: 13px;
}

.doc-list-head,
.doc-row {
  grid-template-columns: 34px minmax(260px, 2fr) minmax(82px, 0.45fr) minmax(128px, 0.6fr) minmax(96px, 0.48fr) minmax(104px, 0.45fr) minmax(86px, max-content);
}

.doc-list-head {
  min-height: 40px;
  border-bottom-color: rgba(24, 32, 28, 0.10);
}

.doc-row {
  min-height: 68px;
  border-bottom-color: rgba(24, 32, 28, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.doc-row:hover,
.doc-row:focus {
  background: #fff;
  box-shadow: none;
}

.doc-row.active {
  background: var(--accent-weak);
  box-shadow: none;
}

.doc-title-copy strong {
  font-weight: 600;
}

.doc-title-copy span,
.doc-muted,
.doc-summary-line {
  font-weight: 400;
}

.doc-icon {
  border-radius: 6px;
  background: #64748b;
  font-weight: 700;
}

.doc-icon-word {
  background: #3b6ea8;
}

.doc-icon-sheet {
  background: #2f8f54;
}

.doc-icon-slide {
  background: #b7791f;
}

.doc-icon-text {
  background: #58605c;
}

.doc-icon-image {
  background: #7c6f64;
}

.doc-actions {
  gap: 6px;
}

.doc-row .doc-actions a,
.doc-row .doc-actions [data-edit-doc],
.doc-row .doc-actions [data-delete-doc] {
  display: none;
}

.badge {
  min-height: 22px;
  padding: 0 8px;
  font-weight: 500;
  background: rgba(238, 242, 239, 0.9);
}

.tag-chip {
  min-height: 22px;
  border-color: transparent;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(238, 242, 239, 0.9);
  font-weight: 500;
}

.tag-filter-button:hover,
.tag-filter-button:focus-visible,
.tag-filter-button.active {
  color: var(--accent-strong);
  border-color: transparent;
  background: var(--accent-weak);
}

.doc-detail-rail {
  top: 76px;
  border: 1px solid rgba(24, 32, 28, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.70);
}

.doc-detail-head,
.inspector-block,
.rail-badges {
  border-color: rgba(24, 32, 28, 0.08);
}

.inspector-block > strong {
  font-size: 13px;
}

.drive-main-column .dropzone {
  min-height: 60px;
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed rgba(24, 32, 28, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.drive-main-column .dropzone.drag,
.dropzone.drag {
  border-color: rgba(15, 118, 110, 0.42);
  background: var(--accent-weak);
}

.doc-drawer {
  background: rgba(246, 247, 244, 0.98);
  box-shadow: -18px 0 44px rgba(24, 32, 28, 0.12);
}

.doc-preview-pane,
.doc-inspector,
.preview,
.weboffice-preview-frame {
  border-color: rgba(24, 32, 28, 0.10);
}

.doc-inspector {
  background: rgba(255, 255, 255, 0.68);
}

.markdown-preview a {
  color: var(--accent-strong);
}

.notice {
  font-weight: 500;
}

.toast {
  box-shadow: 0 12px 30px rgba(24, 32, 28, 0.12);
}

@media (max-width: 1320px) {
  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .pricing-note {
    position: static;
    padding-top: 24px;
    border-top: 1px solid rgba(24, 32, 28, 0.1);
  }
}

@media (max-width: 1180px) {
  .kb-drive-workspace,
  .kb-drive-workspace.no-detail,
  .kb-drive-workspace.has-detail {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  }

  .doc-detail-rail {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .doc-drawer.nas-settings-drawer {
    width: min(100vw, calc(100vw - 160px));
  }

  .home-hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 34px;
    overflow: visible;
    padding: 52px clamp(18px, 6vw, 64px) 42px;
  }

  .home-hero::after {
    display: none;
  }

  .home-ambient {
    opacity: 0.72;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34) 66%, transparent 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34) 66%, transparent 100%);
  }

  .home-copy {
    width: min(760px, 100%);
  }

  .home-product-shot {
    position: relative;
    inset: auto;
    width: min(760px, 100%);
    height: auto;
    justify-self: end;
    opacity: 1;
    z-index: 0;
  }

  .paper-window {
    height: auto;
    min-height: 330px;
    transform: none;
  }

  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .pricing-plan {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.46fr);
  }

  .pricing-specs {
    grid-column: 1 / -1;
  }

  .pricing-plan-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .pricing-note {
    position: static;
    padding-top: 24px;
    border-top: 1px solid rgba(24, 32, 28, 0.1);
  }
}

@media (max-width: 1120px) {
  .doc-list-shell {
    overflow: visible;
    border-bottom: 0;
    background: transparent;
  }

  .doc-list-head {
    display: none;
  }

  .doc-list {
    gap: 10px;
  }

  .doc-row {
    height: auto;
    min-width: 0;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "check title"
      "check status"
      "check tags"
      "check visibility"
      "check date"
      "check actions";
    align-items: start;
    gap: 8px 10px;
    padding: 14px 0;
    overflow: visible;
    background: transparent;
  }

  .doc-row .doc-check {
    grid-area: check;
    padding-top: 11px;
  }

  .doc-row .doc-title-cell {
    grid-area: title;
  }

  .doc-row .doc-status-cell {
    grid-area: status;
  }

  .doc-row .doc-tags {
    grid-area: tags;
  }

  .doc-row .doc-visibility-cell {
    grid-area: visibility;
  }

  .doc-row .doc-date-cell {
    grid-area: date;
  }

  .doc-row .doc-actions {
    grid-area: actions;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .doc-status-cell,
  .doc-tags {
    flex-wrap: wrap;
  }

  .doc-row .doc-tags {
    max-height: 54px;
    overflow: hidden;
    align-content: flex-start;
  }

  .doc-row .doc-tags .tag-filter-button {
    flex: 0 1 auto;
    max-width: min(180px, 100%);
  }
}

@media (max-width: 860px) {
  .shell {
    display: block;
  }

  .shell::before {
    display: none;
  }

  .sidebar {
    height: auto;
    min-height: auto;
    position: sticky;
    top: 0;
    z-index: 6;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
  }

  .sidebar-inner {
    height: auto;
    min-height: auto;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 88px;
    align-items: center;
    gap: 8px;
  }

  .sidebar-collapse-toggle {
    display: none;
  }

  .shell.sidebar-collapsed .sidebar-inner {
    padding: 8px 12px;
    justify-items: stretch;
    gap: 8px;
  }

  .shell.sidebar-collapsed .brand-copy,
  .shell.sidebar-collapsed .nav-label {
    display: block;
  }

  .shell.sidebar-collapsed .brand {
    margin-bottom: 0;
  }

  .sidebar .brand {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
    margin-bottom: 0;
    gap: 8px;
    max-width: 100%;
  }

  .explore-doc-bands {
    grid-template-columns: 1fr;
  }

  .filter-input,
  .filter-date {
    width: min(100%, 220px);
  }

  .sidebar .brand-mark {
    width: 44px;
    height: 44px;
  }

  .sidebar .brand h3 {
    font-size: 15px;
  }

  .sidebar .brand .small {
    display: none;
  }

  .brand h3 {
    max-width: calc(100vw - 210px);
  }

  .mobile-nav-toggle {
    display: inline-flex;
    width: 34px;
    height: 34px;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .mobile-shell-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 8px;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding-top: 2px;
  }

  .nav.open {
    display: grid;
  }

  .nav button {
    min-height: 34px;
    justify-content: center;
    border-left: 0;
    border-bottom: 3px solid transparent;
    padding: 0 8px;
    font-size: 13px;
  }

  .shell.sidebar-collapsed .nav button {
    width: 100%;
    height: auto;
    min-height: 34px;
    justify-content: center;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    padding: 0 8px;
    box-shadow: none;
  }

  .nav button.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .search-box,
  .ask-composer-footer,
  .kb-drive-workspace,
  .kb-drive-workspace.no-detail,
  .kb-drive-workspace.has-detail,
  .viewer,
  .grid.cols-3,
  .quota-summary-grid,
  .form-grid,
  .filter-grid,
  .home-feature-band,
  .home-detail-section,
  .home-capability-grid {
    grid-template-columns: 1fr;
  }

  .ask-workspace {
    min-height: calc(100vh - 178px);
  }

  .ask-conversation {
    gap: 14px;
  }

  .ask-welcome {
    padding-top: 22px;
  }

  .ask-starters {
    grid-template-columns: 1fr;
  }

  .ask-question {
    max-width: 94%;
  }

  .citation-compact {
    grid-template-columns: 1fr;
  }

  .kb-smart-sidebar,
  .doc-detail-rail {
    position: static;
    max-height: none;
    border-right: 0;
    border-left: 0;
  }

  .kb-smart-sidebar {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .drive-main-column {
    padding: 12px 0;
  }

  .drive-main-column .dropzone > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .drive-main-column .upload-actions {
    width: 100%;
  }

  .smart-view-list,
  .smart-pill-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-grid,
  .usage-breakdowns,
  .nas-selection-bar {
    grid-template-columns: 1fr;
  }

  .manage-overview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .manage-overview-pills {
    justify-content: flex-start;
  }

  .manage-info-pill,
  .manage-upgrade-button {
    flex: 1 1 150px;
  }

  .doc-drawer.nas-settings-drawer {
    width: 100vw;
  }

  .nas-import-result {
    align-items: flex-start;
  }

  .nas-drawer-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .nas-location-pane {
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .nas-explorer-pane {
    grid-template-rows: none;
    overflow: visible;
  }

  .nas-explorer-list {
    min-height: auto;
    overflow: visible;
  }

  .nas-connection-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .nas-explorer-head {
    display: none;
  }

  .nas-explorer-row {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "check name"
      ". meta"
      ". actions";
    align-items: start;
    gap: 8px 10px;
  }

  .nas-explorer-check {
    grid-area: check;
    padding-top: 8px;
  }

  .nas-explorer-name {
    grid-area: name;
  }

  .nas-explorer-row > .small {
    grid-area: meta;
  }

  .nas-explorer-actions {
    grid-area: actions;
    justify-content: flex-start;
  }

  .nas-explorer-actions .secondary.compact,
  .nas-selection-bar .row,
  .nas-selection-bar button {
    width: 100%;
  }

  .nas-explorer-actions .secondary.compact {
    min-height: 44px;
  }

  .public-nav {
    min-height: 58px;
    padding: 10px 14px;
  }

  .public-brand span {
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .public-nav nav button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 13px;
  }

  .home-hero {
    min-height: auto;
    padding: 44px 18px 52px;
  }

  .pricing-hero,
  .pricing-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pricing-plan {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-plan-action {
    justify-self: stretch;
  }

  .pricing-plan-action .primary,
  .pricing-plan-action .secondary {
    width: 100%;
  }

  .home-copy h1 {
    font-size: 42px;
  }

  .home-product-shot {
    width: 100%;
    justify-self: stretch;
  }

  .paper-window {
    min-height: 360px;
  }

  .home-feature-band {
    padding: 8px 18px 28px;
  }

  .home-feature-band article {
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .home-detail-section {
    padding: 38px 18px 48px;
  }

  .home-capability-grid article {
    min-height: auto;
    border-left: 0;
  }

  .home-capability-grid article:nth-child(2) {
    border-top: 1px solid var(--border);
  }

  .public-footer-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-sidebar button {
    text-align: center;
  }

  .account-legal-panel .legal-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-consent {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions {
    justify-content: flex-start;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
  }

  .doc-drawer {
    width: 100vw;
  }

  .doc-drawer-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .doc-preview-pane {
    min-height: 420px;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .inline-preview-frame {
    height: 70vh;
    min-height: 420px;
  }

  .doc-inspector {
    overflow: visible;
  }

  .row.no-wrap {
    flex-wrap: wrap;
  }

  .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    min-height: 50px;
    align-items: center;
    flex-direction: row;
    padding: 6px 14px;
  }

  .topbar h2 {
    font-size: 21px;
  }

  .home-copy h1.brand-name {
    font-size: 46px;
  }

  .topbar-title .small {
    display: none;
  }

  .topbar-actions {
    display: none;
  }

  .mobile-shell-actions .inbox-button,
  .mobile-shell-actions .avatar-button {
    width: 38px;
    min-height: 38px;
  }

  .mobile-shell-actions .inbox-button {
    width: 42px;
    min-height: 42px;
  }

  .mobile-shell-actions .avatar-small {
    width: 30px;
    height: 30px;
  }

  .tenant-switcher {
    display: none;
  }

  .toolbar .select {
    min-width: min(100%, 220px);
  }

  .grid.cols-3 {
    gap: 14px;
    padding: 0;
    border-top: 0;
    border-bottom: 0;
  }

  .grid.cols-3 > .panel {
    padding: 14px 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 560px) {
  .smart-view-list,
  .smart-pill-list,
  .related-item,
  .explore-mini-doc {
    grid-template-columns: 1fr;
  }

  .related-item .doc-icon,
  .explore-mini-doc .doc-icon {
    display: none;
  }

  .login {
    padding: 14px;
  }

  .login.public-page {
    padding: 0;
  }

  .login-panel {
    padding: 22px;
  }

  .wishlist-panel {
    padding: 22px;
  }

  .login.public-page .login-panel,
  .login.public-page .wishlist-panel {
    margin: 14px;
  }

  .public-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .public-nav nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 4px;
  }

  .public-nav nav button {
    min-width: 0;
    padding: 0 4px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }

  .home-actions .primary,
  .home-actions .secondary {
    width: 100%;
  }

  .home-copy p {
    font-size: 16px;
  }

  .home-section-copy p,
  .home-capability-grid span {
    font-size: 14px;
  }

  .home-hero {
    gap: 26px;
    padding-bottom: 32px;
  }

  .home-ambient {
    opacity: 0.5;
  }

  .home-ambient::before,
  .home-ambient::after,
  .home-ambient-lane,
  .paper-window::before,
  .paper-doc-row {
    animation: none;
  }

  .lane-two,
  .lane-three {
    display: none;
  }

  .home-copy h1 {
    font-size: 40px;
    line-height: 1.08;
  }

  .home-copy h1.brand-name {
    font-size: 38px;
  }

  .home-section-copy h2 {
    font-size: 28px;
  }

  .pricing-hero {
    padding-top: 40px;
    padding-bottom: 34px;
  }

  .pricing-hero h1 {
    font-size: 34px;
  }

  .pricing-hero p {
    font-size: 15px;
  }

  .pricing-hero-actions .primary,
  .pricing-hero-actions .secondary {
    width: 100%;
  }

  .pricing-layout {
    padding-top: 26px;
    padding-bottom: 48px;
  }

  .pricing-plan {
    padding: 18px;
  }

  .pricing-specs {
    grid-template-columns: 1fr;
  }

  .wishlist-panel .brand h1 {
    font-size: 30px;
  }

  .login-panel .brand,
  .wishlist-panel .brand {
    gap: 14px;
  }

  .login-panel .brand-mark,
  .wishlist-panel .brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 10px;
  }

  .home-capability-grid article {
    padding: 16px;
  }

  .paper-window {
    min-height: 280px;
    padding: 14px;
    gap: 12px;
  }

  .paper-search-line {
    height: 40px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .paper-doc-list {
    gap: 8px;
  }

  .paper-doc-row {
    min-height: 58px;
    gap: 10px;
    padding: 10px;
    transform: none;
  }

  .paper-insight-panel {
    padding-top: 12px;
  }

  .paper-insight-panel::before {
    right: 118px;
  }

  .paper-insight-panel > strong {
    font-size: 14px;
  }

  .paper-insight-meta {
    max-width: calc(100% - 92px);
  }

  .paper-insight-meta em {
    min-height: 24px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .home-product-shot > img {
    width: 96px;
    height: 96px;
    right: 14px;
    bottom: 12px;
  }

  .public-footer {
    padding: 28px 18px 20px;
  }

  .public-footer-bottom {
    display: grid;
  }

  .legal-hero {
    padding: 38px 18px 30px;
  }

  .legal-layout {
    padding: 30px 18px 46px;
  }

  .legal-sidebar {
    grid-template-columns: 1fr;
  }

  .legal-section h2 {
    font-size: 21px;
  }

  .account-legal-panel .legal-link-grid,
  .cookie-actions {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    display: grid;
    width: 100%;
  }

  .cookie-actions button,
  .cookie-preference-panel .row button {
    width: 100%;
  }

  .form-legal-consent {
    justify-content: flex-start;
    flex-wrap: wrap;
    text-align: left;
  }

  .cookie-consent {
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 14px;
  }

  .content {
    gap: 16px;
  }

  .welcome-page {
    padding: 14px;
  }

  .welcome-panel {
    padding: 22px;
  }

  .select,
  .input {
    width: 100%;
  }

  .ask-submit {
    width: 100%;
  }

  .ask-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .ask-new-context {
    width: 100%;
  }

  .nas-summary-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .nas-summary-actions {
    justify-content: flex-start;
  }

  .nas-summary-actions button {
    width: 100%;
  }

  .nas-location-pane,
  .nas-explorer-pane {
    padding: 12px;
  }

  .nas-connection-main {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .nas-connection-actions,
  .nas-connection-details {
    margin-left: 0;
    padding-left: 44px;
  }

  .nas-item-icon {
    width: 32px;
    height: 32px;
  }

  .nas-explorer-name {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .nas-explorer-toolbar .row,
  .nas-explorer-toolbar button {
    width: 100%;
  }

  .document-filter-bar {
    align-items: stretch;
  }

  .filter-bar-label {
    width: 100%;
  }

  .filter-select,
  .document-filter-bar .secondary.compact {
    width: 100%;
  }

  .filter-bar-divider {
    display: none;
  }

  .drive-bulk-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .drive-bulk-bar .row,
  .drive-bulk-bar .select,
  .drive-bulk-bar button {
    width: 100%;
  }

  .search-box .primary,
  .filter-grid .primary,
  .dropzone .primary,
  .dropzone .secondary {
    width: 100%;
  }

  .inbox-button {
    width: 46px;
  }

  .doc-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .import-guard-item {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .import-guard-head-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .import-guard-item .select {
    grid-column: 2;
    width: 100%;
  }

  .import-guard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .import-guard-actions .row,
  .import-guard-actions button {
    width: 100%;
  }

  .profile-pack-grid {
    grid-template-columns: 1fr;
  }

  .profile-pack-list-layout {
    grid-template-columns: 1fr;
  }

  .profile-pack-list {
    height: auto;
    min-height: 0;
  }

  .profile-pack-guide {
    position: static;
  }

  .doc-actions .compact {
    flex: 1 1 calc(50% - 6px);
  }

  .doc-drawer-header {
    grid-template-columns: 1fr;
  }

  .doc-drawer-header .doc-actions {
    max-width: none;
    justify-content: flex-start;
  }

  .doc-drawer-badges {
    flex-wrap: wrap;
  }

  .preview {
    padding: 14px;
  }

  .weboffice-preview-shell {
    min-height: 460px;
  }

  .weboffice-preview-frame {
    min-height: 400px;
  }
}

.message-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.message-mailbox {
  display: grid;
  grid-template-columns: 196px minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: 0;
  min-height: 620px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.message-mail-nav {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid var(--border);
  background: var(--surface-muted);
}

.message-mail-nav button {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.message-mail-nav button:hover,
.message-mail-nav button.active {
  background: var(--surface);
  box-shadow: 0 1px 4px var(--shadow);
}

.message-mail-nav em {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 7px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-style: normal;
  line-height: 1;
}

.message-mail-nav em.unread {
  border-color: var(--danger);
  color: var(--on-accent);
  background: var(--danger);
}

.message-mail-list {
  min-width: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.message-detail {
  min-width: 0;
  background: var(--surface);
}

.message-toolbar-panel {
  display: grid;
  gap: 14px;
}

.message-shell,
.developer-inbox {
  display: grid;
  grid-template-columns: minmax(320px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.message-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  align-content: start;
}

.message-list.compact {
  max-height: 560px;
  overflow: auto;
}

.message-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  border-radius: 8px;
  min-height: 76px;
  padding: 13px 14px;
  box-shadow: 0 8px 24px rgba(24, 32, 28, 0.04);
}

.message-row:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-1px);
}

.message-row.active {
  border-color: rgba(15, 118, 110, 0.72);
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.11), rgba(255, 255, 255, 0.96) 46%);
  box-shadow: inset 3px 0 0 var(--accent), 0 10px 26px rgba(15, 118, 110, 0.1);
}

.message-row.unread .message-row-title {
  font-weight: 700;
}

.message-row-main,
.message-row-meta {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.message-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  justify-content: flex-start;
  align-items: center;
}

.message-row-title {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.35;
}

.message-row-summary {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.message-detail {
  min-width: 0;
  position: sticky;
  top: 16px;
}

.unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--danger);
  margin-right: 8px;
  vertical-align: middle;
}

.message-reading-pane {
  min-height: 360px;
  height: 100%;
  padding: 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.message-reading-pane > .toolbar {
  align-items: flex-start;
}

.message-reading-pane h2 {
  margin: 8px 0 4px;
  font-size: 25px;
  line-height: 1.2;
}

.message-delivery-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.message-timeline {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.message-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.message-item.from-me {
  border-color: rgba(15, 118, 110, 0.26);
  background: rgba(15, 118, 110, 0.06);
}

.message-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.message-body {
  font-size: 15px;
  line-height: 1.7;
  word-break: break-word;
}

.message-body-markdown {
  line-height: 1.72;
}

.message-body-markdown h1 {
  font-size: 20px;
  line-height: 1.28;
}

.message-body-markdown h2 {
  font-size: 17px;
  line-height: 1.35;
}

.message-body-markdown h3 {
  font-size: 15px;
  line-height: 1.4;
}

.message-body-markdown pre {
  max-width: 100%;
}

.message-compose,
.message-reply-form {
  display: grid;
  gap: 10px;
}

.message-inline-control {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.message-attachment-zone {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

.message-attachment-zone.drag {
  border-color: var(--accent);
  background: var(--surface);
}

.attachment-draft-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.attachment-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.broadcast-history {
  margin-bottom: 16px;
}

.broadcast-history-list {
  display: grid;
  gap: 8px;
}

.broadcast-history-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.broadcast-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.message-target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  align-items: center;
}

.system-broadcast-grid,
.message-target-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  align-items: start;
}

.system-broadcast-grid .field,
.message-target-fields .field {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .platform-shell {
    grid-template-columns: 1fr;
  }

  .platform-nav {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .platform-nav button {
    min-height: 64px;
  }

  .platform-summary-grid,
  .platform-intake-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-recommendation {
    display: grid;
  }

  .tenant-action-form {
    align-items: stretch;
    flex-direction: column;
  }

  .message-shell,
  .developer-inbox,
  .message-mailbox {
    grid-template-columns: 1fr;
  }

  .message-mail-nav,
  .message-mail-list {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .message-mail-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .system-broadcast-grid,
  .message-target-fields {
    grid-template-columns: 1fr;
  }

  .message-row {
    grid-template-columns: 1fr;
  }

  .message-detail {
    position: static;
  }

  .message-row-meta {
    justify-content: flex-start;
  }

  .broadcast-history-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.content-my-files {
  height: calc(100vh - 71px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding: 12px 20px 14px;
}

.my-files-workspace {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.my-files-toolbar,
.my-files-pathbar,
.my-files-selection-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.my-files-toolbar {
  min-height: 38px;
  padding: 0;
}

.my-files-nav,
.my-files-actions {
  min-width: 0;
}

.my-files-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.my-files-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.my-files-breadcrumb button {
  min-height: 34px;
  max-width: 220px;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-files-breadcrumb button:not(:disabled):hover {
  background: rgba(24, 32, 28, 0.07);
}

.my-files-breadcrumb button:disabled {
  color: var(--muted);
  opacity: 1;
}

.my-files-breadcrumb span,
.my-files-pathbar span {
  color: var(--muted);
}

.my-files-pathbar,
.my-files-selection-bar {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.my-files-transfer-panel {
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(360px, 38vh);
  overflow: auto;
}

.my-files-transfer-strip {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 30%);
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(240, 253, 250, 0.72);
}

.my-files-transfer-strip.done {
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: rgba(24, 32, 28, 0.10);
  background: rgba(255, 255, 255, 0.70);
}

.my-files-transfer-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.my-files-transfer-copy strong,
.my-files-transfer-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-files-transfer-copy span {
  color: var(--muted);
  font-size: 13px;
}

.my-files-transfer-progress {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.my-files-transfer-actions {
  justify-content: flex-end;
}

.my-files-table {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.my-files-head,
.my-files-row {
  display: grid;
  grid-template-columns: 42px minmax(220px, 1.4fr) 120px 110px 120px 160px;
  align-items: center;
  gap: 10px;
}

.my-files-head {
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
  background: rgba(238, 242, 239, 0.8);
}

.my-files-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.my-files-workspace.drag-over .my-files-table {
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(240, 253, 250, 0.54);
}

.my-files-row {
  min-height: 52px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(24, 32, 28, 0.08);
}

.my-files-row:hover,
.my-files-row.selected {
  background: rgba(15, 118, 110, 0.08);
}

.my-files-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.my-files-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.my-files-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-files-folder-icon,
.tiny-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.my-files-folder-icon {
  width: 32px;
  height: 32px;
  color: #b7791f;
}

.my-files-folder-icon svg,
.tiny-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tiny-icon {
  margin-right: 6px;
  vertical-align: -4px;
}

.icon-button .tiny-icon {
  margin-right: 0;
}

.my-files-context-menu {
  position: fixed;
  z-index: 30;
  display: grid;
  min-width: 178px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 38px var(--shadow);
}

.my-files-context-menu button,
.my-files-context-menu a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  text-decoration: none;
}

.my-files-context-menu button:hover,
.my-files-context-menu a:hover {
  background: rgba(24, 32, 28, 0.07);
}

.my-files-context-menu .danger-link,
.my-files-context-menu button.danger {
  color: var(--danger);
}

.my-files-island-page,
.my-files-react-root,
.my-files-explorer {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.my-files-island-page {
  gap: 8px;
}

.my-files-import-guard {
  flex: 0 1 auto;
  max-height: min(360px, 38vh);
  overflow: auto;
}

.my-files-explorer {
  position: relative;
  gap: 8px;
}

.my-files-explorer-toolbar {
  flex: 0 0 auto;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.my-files-explorer-nav,
.my-files-explorer-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.my-files-explorer-nav {
  flex: 1 1 auto;
}

.my-files-explorer-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.my-files-tool-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.my-files-tool-button:hover,
.my-files-tool-button:focus-visible {
  border-color: rgba(24, 32, 28, 0.10);
  background: rgba(24, 32, 28, 0.05);
}

.my-files-tool-button:disabled {
  color: var(--muted);
  background: transparent;
}

.my-files-tool-button.danger:not(:disabled) {
  color: var(--danger);
}

.my-files-tool-button.primary {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.my-files-tool-button.primary:hover,
.my-files-tool-button.primary:focus-visible {
  color: #fff;
  border-color: #0f766e;
  background: #0f766e;
}

.my-files-tool-button.primary:disabled {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}

.my-files-tool-button.icon-only {
  width: 34px;
  padding: 0;
}

.my-files-react-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.my-files-react-breadcrumb button {
  max-width: 220px;
  min-height: 30px;
  padding: 0 7px;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-files-react-breadcrumb button:not(:disabled):hover {
  background: rgba(24, 32, 28, 0.06);
}

.my-files-react-breadcrumb button:disabled,
.my-files-react-breadcrumb span {
  color: var(--muted);
}

.my-files-inline-status {
  flex: 0 0 auto;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  min-width: 0;
}

.my-files-inline-status strong,
.my-files-inline-status span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-files-inline-status span {
  color: var(--muted);
}

.my-files-upload-strip {
  flex: 0 0 auto;
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 26%);
  align-items: center;
  gap: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(24, 32, 28, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.48);
}

.my-files-upload-strip.analyzing {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.05);
}

.my-files-upload-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.my-files-upload-copy strong,
.my-files-upload-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-files-upload-copy span {
  color: var(--muted);
  font-size: 13px;
}

.my-files-upload-progress {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.my-files-upload-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.my-files-upload-actions button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
}

.my-files-upload-actions button:hover {
  color: var(--text);
  background: rgba(24, 32, 28, 0.06);
}

.my-files-react-table {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(24, 32, 28, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.my-files-react-head,
.my-files-react-row {
  display: grid;
  grid-template-columns: 42px minmax(220px, 1.4fr) 120px 110px 120px 160px;
  align-items: center;
  gap: 10px;
}

.my-files-react-head {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  border-bottom: 1px solid rgba(24, 32, 28, 0.10);
  background: rgba(238, 242, 239, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.my-files-react-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.my-files-react-row {
  min-height: 52px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(24, 32, 28, 0.07);
  cursor: grab;
  user-select: none;
}

.my-files-react-row:active {
  cursor: grabbing;
}

.my-files-react-row:hover,
.my-files-react-row.selected {
  background: rgba(15, 118, 110, 0.07);
}

.my-files-react-row.editing {
  grid-template-columns: 42px minmax(220px, 1fr);
  cursor: text;
}

.my-files-move-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(24, 32, 28, 0.20);
}

.my-files-move-dialog {
  width: min(520px, 100%);
  max-height: min(620px, 100%);
  min-height: 360px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(24, 32, 28, 0.14);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 54px var(--shadow);
}

.my-files-move-head {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 8px 14px;
  border-bottom: 1px solid rgba(24, 32, 28, 0.09);
}

.my-files-move-head div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.my-files-move-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.my-files-move-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.my-files-move-breadcrumb {
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  overflow: hidden;
  border-bottom: 1px solid rgba(24, 32, 28, 0.08);
}

.my-files-move-breadcrumb button {
  min-width: 0;
  max-width: 180px;
  min-height: 28px;
  padding: 0 7px;
  border-radius: 6px;
  overflow: hidden;
  color: var(--text);
  background: transparent;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-files-move-breadcrumb button:not(:disabled):hover {
  background: rgba(24, 32, 28, 0.06);
}

.my-files-move-breadcrumb button:disabled,
.my-files-move-breadcrumb span {
  color: var(--muted);
}

.my-files-move-list {
  min-height: 0;
  overflow: auto;
  padding: 6px;
}

.my-files-move-folder {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.my-files-move-folder:hover,
.my-files-move-folder:focus-visible {
  background: rgba(15, 118, 110, 0.07);
}

.my-files-move-folder:disabled {
  color: var(--muted);
  background: transparent;
}

.my-files-move-folder strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-files-move-folder em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.my-files-move-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.my-files-move-actions {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid rgba(24, 32, 28, 0.09);
}

.my-files-react-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.my-files-react-name strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.my-files-react-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.my-files-react-icon.folder {
  color: #b7791f;
  background: transparent;
}

.my-files-react-icon.folder .tiny-icon {
  width: 22px;
  height: 22px;
}

.my-files-row-status,
.my-files-visibility {
  flex: 0 0 auto;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(238, 242, 239, 0.92);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.my-files-row-status.info {
  color: var(--info);
  background: rgba(37, 99, 235, 0.08);
}

.my-files-row-status.warning,
.my-files-visibility.private,
.my-files-visibility.personal {
  color: var(--warning);
  background: rgba(183, 121, 31, 0.10);
}

.my-files-row-status.danger {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.08);
}

.my-files-rename-input {
  min-height: 34px;
  width: min(520px, 100%);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--surface);
}

.my-files-react-empty {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 220px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .content-my-files {
    height: calc(100vh - 51px);
    padding: 10px 12px 12px;
  }

  .my-files-toolbar,
  .my-files-pathbar,
  .my-files-selection-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .my-files-toolbar {
    min-height: 0;
  }

  .my-files-transfer-strip,
  .my-files-transfer-strip.done {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
  }

  .my-files-pathbar {
    align-items: center;
    flex-direction: row;
  }

  .my-files-transfer-strip.done {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .my-files-transfer-actions {
    justify-content: flex-start;
  }

  .my-files-transfer-strip.done .my-files-transfer-actions {
    justify-content: flex-end;
  }

  .my-files-explorer-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .my-files-explorer-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .my-files-upload-strip {
    grid-template-columns: 1fr;
  }

  .my-files-react-head,
  .my-files-react-row {
    grid-template-columns: 36px minmax(170px, 1fr) 80px 88px;
  }

  .my-files-react-head span:nth-child(5),
  .my-files-react-head span:nth-child(6),
  .my-files-react-row > span:nth-child(5),
  .my-files-react-row > span:nth-child(6) {
    display: none;
  }

  .my-files-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .my-files-head,
  .my-files-row {
    grid-template-columns: 36px minmax(170px, 1fr) 80px 88px;
  }

  .my-files-head span:nth-child(5),
  .my-files-head span:nth-child(6),
  .my-files-row > span:nth-child(5),
  .my-files-row > span:nth-child(6) {
    display: none;
  }
}

/* Public liquid glass refresh */
:root {
  --public-glass: rgba(255, 255, 255, 0.62);
  --public-glass-strong: rgba(255, 255, 255, 0.78);
  --public-glass-soft: rgba(255, 255, 255, 0.42);
  --public-glass-edge: rgba(255, 255, 255, 0.72);
  --public-signal: rgba(37, 99, 235, 0.18);
  --public-signal-strong: rgba(15, 118, 110, 0.28);
  --public-shadow: 0 24px 70px rgba(24, 32, 28, 0.12);
}

.public-glass-page {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(237, 248, 245, 0.74) 42%, rgba(232, 238, 247, 0.66)),
    var(--bg);
}

.public-glass-page > section,
.public-glass-page > footer {
  position: relative;
  z-index: 1;
}

.public-glass-page .public-nav {
  z-index: 8;
  border-bottom-color: rgba(24, 32, 28, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66)),
    rgba(246, 247, 244, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 32px rgba(24, 32, 28, 0.05);
  -webkit-backdrop-filter: blur(22px) saturate(1.24);
  backdrop-filter: blur(22px) saturate(1.24);
}

.public-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
  background-size: 88px 88px, 72px 72px;
  opacity: 0.95;
}

.public-ambient::before,
.public-ambient::after {
  content: "";
  position: absolute;
  inset: -15% -12%;
  background:
    linear-gradient(112deg, transparent 10%, rgba(255, 255, 255, 0.42) 20%, transparent 31%),
    linear-gradient(112deg, transparent 48%, rgba(15, 118, 110, 0.13) 56%, transparent 68%),
    linear-gradient(112deg, transparent 72%, rgba(37, 99, 235, 0.11) 78%, transparent 88%);
  transform: translateX(-8%);
  animation: public-glass-current 18s ease-in-out infinite;
}

.public-ambient::after {
  opacity: 0.62;
  transform: translateX(10%) translateY(4%) scale(1.06);
  animation-duration: 24s;
  animation-direction: reverse;
}

.public-glow {
  position: absolute;
  display: block;
  width: 76vw;
  height: 34vh;
  clip-path: polygon(0 18%, 100% 0, 92% 56%, 8% 100%);
  filter: blur(20px);
  opacity: 0.58;
  transform: rotate(-10deg);
  animation: public-glass-drift 16s ease-in-out infinite;
}

.glow-one {
  top: 12%;
  left: -16%;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.18), rgba(255, 255, 255, 0.24), transparent);
}

.glow-two {
  top: 34%;
  right: -26%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.18), rgba(255, 255, 255, 0.2));
  animation-delay: -5s;
}

.glow-three {
  bottom: 2%;
  left: 20%;
  background: linear-gradient(90deg, rgba(183, 121, 31, 0.12), rgba(15, 118, 110, 0.11), transparent);
  animation-delay: -9s;
}

.public-refract-line {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 1px;
  transform: rotate(-12deg);
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.72), rgba(37, 99, 235, 0.1), transparent);
  box-shadow: 0 0 22px rgba(15, 118, 110, 0.12);
  animation: public-line-glide 12s ease-in-out infinite;
}

.line-one {
  top: 24%;
}

.line-two {
  top: 50%;
  animation-delay: -4s;
}

.line-three {
  top: 76%;
  animation-delay: -8s;
}

.glass-panel,
.glass-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.45)),
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.045));
  box-shadow: var(--public-shadow);
  -webkit-backdrop-filter: blur(26px) saturate(1.32);
  backdrop-filter: blur(26px) saturate(1.32);
}

.glass-panel::before,
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.66), transparent 24%, transparent 64%, rgba(255, 255, 255, 0.26)),
    linear-gradient(90deg, rgba(15, 118, 110, 0.08), transparent 42%, rgba(37, 99, 235, 0.06));
  opacity: 0.58;
  pointer-events: none;
}

.glass-panel::after,
.glass-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(24, 32, 28, 0.05);
  pointer-events: none;
}

.public-glass-page .primary,
.public-glass-page .secondary {
  min-height: 40px;
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.public-glass-page .primary {
  background:
    linear-gradient(135deg, rgba(16, 121, 112, 0.98), rgba(11, 79, 74, 0.98)),
    var(--accent);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.public-glass-page .secondary {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.public-glass-page .primary:hover,
.public-glass-page .secondary:hover,
.public-glass-page .link-button:hover {
  transform: translateY(-1px);
}

.public-glass-page .public-nav nav button.active,
.public-glass-page .public-nav nav button:hover {
  color: var(--accent-strong);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(228, 244, 241, 0.72)),
    var(--accent-weak);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.home-public-page .home-hero {
  min-height: min(760px, calc(100vh - 112px));
  padding-top: clamp(44px, 7vh, 68px);
  padding-bottom: clamp(34px, 5vh, 54px);
  border-bottom-color: rgba(255, 255, 255, 0.48);
  background:
    linear-gradient(90deg, rgba(246, 247, 244, 0.84), rgba(246, 247, 244, 0.32) 46%, rgba(226, 243, 240, 0.36)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 58%);
}

.home-public-page .home-hero::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.16) 45%, transparent),
    linear-gradient(118deg, transparent 42%, rgba(15, 118, 110, 0.14) 54%, transparent 68%);
}

.home-public-page .home-ambient {
  background:
    linear-gradient(117deg, transparent 0 33%, rgba(255, 255, 255, 0.3) 33% 34%, transparent 34% 66%, rgba(15, 118, 110, 0.08) 66% 67%, transparent 67%),
    repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.065) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.05) 0 1px, transparent 1px 72px);
  opacity: 0.82;
}

.home-public-page .home-domain,
.home-public-page .home-section-copy > span,
.pricing-kicker,
.pricing-note > span,
.legal-kicker,
.auth-context-kicker {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(15, 118, 110, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.home-public-page .home-copy h1 {
  color: #141c18;
  text-shadow: 0 18px 48px rgba(24, 32, 28, 0.11);
}

.home-public-page .home-copy p {
  color: rgba(24, 32, 28, 0.68);
}

.home-public-page .home-product-shot {
  height: min(560px, calc(100vh - 220px));
  min-height: 420px;
}

.ai-console-shell {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46)),
    linear-gradient(180deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.055));
  animation: console-float 8s ease-in-out infinite;
}

.home-public-page .paper-window {
  gap: 14px;
  padding: 18px;
}

.ai-console-shell .paper-window-head {
  align-items: center;
}

.paper-window-head em {
  margin-left: 8px;
  color: rgba(24, 32, 28, 0.48);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-window-head strong {
  margin-left: auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(240, 253, 250, 0.64);
  font-size: 11px;
  font-weight: 700;
}

.paper-search-line,
.paper-doc-row,
.paper-insight-meta em {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.home-public-page .paper-search-line {
  height: 44px;
}

.paper-search-line::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  left: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: glass-search-sheen 5.8s ease-in-out infinite;
}

.paper-orbit-map {
  position: relative;
  z-index: 1;
  height: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 0.7fr;
  gap: 8px;
  align-items: end;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.06) 0 1px, transparent 1px 42px),
    rgba(255, 255, 255, 0.28);
}

.paper-orbit-map i {
  display: block;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.32), rgba(37, 99, 235, 0.18));
  box-shadow: 0 0 18px rgba(15, 118, 110, 0.1);
}

.paper-orbit-map i:nth-child(2) {
  height: 24px;
}

.paper-orbit-map i:nth-child(3) {
  height: 16px;
}

.paper-orbit-map i:nth-child(4) {
  height: 30px;
}

.paper-doc-row {
  min-height: 60px;
  padding: 10px 12px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.home-public-page .paper-doc-list {
  gap: 10px;
}

.paper-doc-row.is-active {
  border-color: rgba(15, 118, 110, 0.32);
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.8), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.56);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.home-public-page .paper-insight-panel {
  gap: 6px;
  padding-top: 10px;
}

.home-public-page .home-feature-band {
  gap: 14px;
  padding-top: 24px;
  padding-bottom: 46px;
}

.home-public-page .home-feature-band article {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.home-public-page .home-feature-band article:first-child {
  padding-left: 22px;
}

.glass-section {
  border-top-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.26);
}

.home-public-page .home-capability-grid {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 24px 70px rgba(24, 32, 28, 0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.home-public-page .home-capability-grid article {
  border-color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18));
}

.pricing-public-page .pricing-hero,
.legal-public-page .legal-hero {
  background:
    linear-gradient(105deg, rgba(15, 118, 110, 0.14) 0 18%, transparent 18% 52%, rgba(37, 99, 235, 0.11) 52% 72%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.22));
  border-bottom-color: rgba(255, 255, 255, 0.52);
}

.pricing-plan {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.44);
  box-shadow: 0 18px 48px rgba(24, 32, 28, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pricing-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(24, 32, 28, 0.13);
}

.pricing-plan::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.78), rgba(37, 99, 235, 0.44));
  box-shadow: 0 0 28px rgba(15, 118, 110, 0.18);
}

.pricing-plan.is-featured {
  border-color: rgba(15, 118, 110, 0.28);
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.82), rgba(255, 255, 255, 0.54) 48%, rgba(232, 238, 247, 0.5)),
    rgba(255, 255, 255, 0.6);
}

.pricing-plan-title,
.pricing-plan-main,
.pricing-plan-price,
.pricing-specs,
.pricing-plan-action,
.pricing-note > * {
  position: relative;
  z-index: 1;
}

.pricing-note {
  padding: 26px;
  overflow: hidden;
}

.pricing-note ul {
  position: relative;
  z-index: 1;
}

.auth-public-page {
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  place-items: stretch;
  padding: 0;
}

.auth-stage {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 0.8fr);
  gap: 24px;
  align-items: start;
  justify-self: center;
  margin: clamp(28px, 6vh, 64px) auto;
}

.auth-stage-wide {
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1fr);
  width: min(1180px, calc(100% - 40px));
}

.auth-stage .login-panel,
.auth-stage .wishlist-panel {
  width: 100%;
  margin: 0;
  justify-self: stretch;
  align-self: start;
  border-color: rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0.58);
}

.auth-stage .login-panel > *,
.auth-stage .wishlist-panel > *,
.auth-context > * {
  position: relative;
  z-index: 1;
}

.auth-context {
  display: grid;
  gap: 16px;
  min-height: 420px;
  padding: 30px;
  align-content: center;
}

.auth-stage-wide .auth-context {
  min-height: 560px;
}

.auth-context-kicker {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.auth-context h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.14;
}

.auth-context p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.auth-signal-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.auth-signal {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 5px 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
}

.auth-signal span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), rgba(37, 99, 235, 0.52));
  box-shadow: 0 0 16px rgba(15, 118, 110, 0.18);
}

.auth-signal strong {
  min-width: 0;
}

.auth-signal small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.55;
}

.auth-stage .input,
.auth-stage .textarea {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.auth-stage .input:focus,
.auth-stage .textarea:focus {
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.legal-sidebar {
  padding: 10px;
}

.legal-doc {
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.5);
}

.legal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

@keyframes public-glass-current {
  0%,
  100% {
    transform: translateX(-10%) translateY(0);
  }

  50% {
    transform: translateX(10%) translateY(3%);
  }
}

@keyframes public-glass-drift {
  0%,
  100% {
    transform: rotate(-10deg) translateX(-4%);
    opacity: 0.42;
  }

  50% {
    transform: rotate(-10deg) translateX(6%);
    opacity: 0.68;
  }
}

@keyframes public-line-glide {
  0%,
  100% {
    transform: rotate(-12deg) translateX(-6%);
    opacity: 0.42;
  }

  50% {
    transform: rotate(-12deg) translateX(8%);
    opacity: 0.82;
  }
}

@keyframes console-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes glass-search-sheen {
  0%,
  38%,
  100% {
    left: -42%;
  }

  62% {
    left: 116%;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-panel,
  .glass-card,
  .public-glass-page .secondary,
  .paper-search-line,
  .paper-doc-row,
  .auth-stage .input,
  .auth-stage .textarea {
    background-color: rgba(255, 255, 255, 0.94);
  }
}

@media (max-width: 1180px) {
  .home-public-page .home-hero {
    min-height: auto;
  }

  .home-public-page .home-product-shot {
    height: auto;
    min-height: 330px;
  }

  .home-public-page .home-feature-band {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-public-page .home-feature-band article,
  .home-public-page .home-feature-band article:first-child {
    padding: 16px 18px;
  }

  .auth-stage,
  .auth-stage-wide {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 36px));
  }

  .auth-context,
  .auth-stage-wide .auth-context {
    min-height: 0;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .home-public-page .paper-orbit-map,
  .home-public-page .paper-doc-list .paper-doc-row:nth-child(4) {
    display: none;
  }

  .home-public-page .home-product-shot {
    height: min(500px, calc(100vh - 220px));
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .public-ambient {
    opacity: 0.58;
  }

  .public-glow,
  .public-refract-line {
    animation: none;
  }

  .public-glass-page .public-nav {
    min-height: 118px;
  }

  .home-public-page .home-hero {
    padding-top: 44px;
    padding-bottom: 18px;
  }

  .home-public-page .home-copy h1 {
    font-size: 40px;
  }

  .home-public-page .home-copy h1.brand-name {
    font-size: 38px;
  }

  .home-public-page .home-feature-band {
    padding-top: 12px;
    padding-bottom: 32px;
  }

  .paper-orbit-map,
  .paper-window-head em,
  .paper-insight-panel,
  .home-product-shot > img,
  .paper-doc-list .paper-doc-row:nth-child(n+3) {
    display: none;
  }

  .home-public-page .home-product-shot {
    height: 216px;
    min-height: 216px;
  }

  .home-public-page .paper-window {
    height: 216px;
    min-height: 216px;
    padding: 14px;
    gap: 10px;
  }

  .home-public-page .paper-search-line {
    height: 36px;
  }

  .home-public-page .paper-doc-row {
    min-height: 50px;
    padding: 8px;
  }

  .ai-console-shell {
    animation: none;
  }

  .pricing-note {
    padding: 22px 0 0;
  }

  .auth-stage,
  .auth-stage-wide {
    width: calc(100% - 28px);
    gap: 14px;
    margin: 14px auto 24px;
  }

  .auth-context {
    display: none;
  }

  .auth-stage .login-panel,
  .auth-stage .wishlist-panel,
  .legal-doc {
    padding: 22px;
  }

  .auth-stage .login-panel {
    width: 100%;
  }

  .legal-sidebar {
    padding: 8px;
  }

  .legal-doc {
    gap: 24px;
  }
}

@media (max-width: 430px) {
  .auth-stage,
  .auth-stage-wide {
    width: calc(100% - 20px);
  }

  .auth-stage .login-panel,
  .auth-stage .wishlist-panel {
    padding: 20px;
  }

  .auth-stage .row {
    gap: 8px;
  }

  .auth-stage .row.no-wrap {
    flex-wrap: wrap;
  }

  .auth-stage .row.no-wrap .secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-ambient::before,
  .public-ambient::after,
  .public-glow,
  .public-refract-line,
  .ai-console-shell,
  .paper-search-line::after,
  .home-ambient::before,
  .home-ambient::after,
  .home-ambient-lane,
  .paper-doc-row {
    animation: none !important;
  }

  .public-glass-page .primary:hover,
  .public-glass-page .secondary:hover,
  .public-glass-page .link-button:hover,
  .pricing-plan:hover,
  .ai-console-shell {
    transform: none;
  }
}

/* Public glass intensity tune-up */
.public-glass-page .public-brand {
  gap: 16px;
}

.public-glass-page .public-brand .brand-name {
  color: rgba(24, 32, 28, 0.94);
  font-size: clamp(19px, 1.45vw, 23px);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 10px 26px rgba(24, 32, 28, 0.1);
}

.public-glass-page .public-nav {
  border-bottom-color: rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34)),
    rgba(246, 247, 244, 0.34);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) inset, 0 18px 46px rgba(24, 32, 28, 0.06);
  -webkit-backdrop-filter: blur(32px) saturate(1.42);
  backdrop-filter: blur(32px) saturate(1.42);
}

.glass-panel,
.glass-card {
  border-color: rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18) 54%, rgba(232, 244, 241, 0.2)),
    linear-gradient(180deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.065));
  box-shadow: 0 28px 82px rgba(24, 32, 28, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(34px) saturate(1.46);
  backdrop-filter: blur(34px) saturate(1.46);
}

.glass-panel::before,
.glass-card::before {
  background:
    linear-gradient(122deg, rgba(255, 255, 255, 0.82), transparent 20%, rgba(255, 255, 255, 0.14) 48%, transparent 66%, rgba(255, 255, 255, 0.42)),
    linear-gradient(90deg, rgba(15, 118, 110, 0.1), transparent 42%, rgba(37, 99, 235, 0.08));
  opacity: 0.78;
}

.glass-panel::after,
.glass-card::after {
  border-color: rgba(255, 255, 255, 0.32);
}

.ai-console-shell,
.pricing-plan,
.pricing-note,
.auth-stage .login-panel,
.auth-stage .wishlist-panel,
.legal-doc,
.legal-sidebar {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.18) 58%, rgba(233, 242, 247, 0.22)),
    rgba(255, 255, 255, 0.18);
}

.paper-search-line,
.paper-doc-row,
.paper-insight-meta em,
.public-glass-page .secondary,
.auth-stage .input,
.auth-stage .textarea {
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 26px rgba(24, 32, 28, 0.04);
  -webkit-backdrop-filter: blur(20px) saturate(1.34);
  backdrop-filter: blur(20px) saturate(1.34);
}

.paper-doc-row.is-active,
.pricing-plan.is-featured {
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.56), rgba(255, 255, 255, 0.2) 52%, rgba(232, 238, 247, 0.24)),
    rgba(255, 255, 255, 0.2);
}

.home-public-page .home-feature-band article,
.home-public-page .home-capability-grid,
.home-public-page .home-capability-grid article,
.auth-signal {
  border-color: rgba(255, 255, 255, 0.66);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
  backdrop-filter: blur(22px) saturate(1.28);
}

.auth-context-kicker,
.home-public-page .home-domain,
.home-public-page .home-section-copy > span,
.pricing-kicker,
.pricing-note > span,
.legal-kicker {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.32);
  backdrop-filter: blur(18px) saturate(1.32);
}

@media (max-width: 760px) {
  .public-glass-page .public-brand {
    gap: 14px;
  }

  .public-glass-page .public-brand .brand-name {
    font-size: 18px;
  }
}

/* Public layout fixes after glass refresh */
@media (min-width: 1500px) {
  .pricing-note {
    max-height: calc(100vh - 132px);
    overflow: auto;
    scrollbar-gutter: stable;
  }
}

@media (max-width: 1499px) {
  .pricing-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 92px;
  }

  .pricing-note {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 2px;
    padding: 24px;
    border-top: 0;
  }

  .pricing-note ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .pricing-note li:nth-child(-n + 2) {
    padding-top: 0;
    border-top: 0;
  }
}

.auth-stage-wide {
  grid-template-columns: minmax(0, 1fr);
  width: min(760px, calc(100% - 40px));
  gap: 16px;
}

.auth-stage-wide .auth-context {
  min-height: 0;
  align-content: start;
  padding: 24px;
}

.auth-stage-wide .auth-context h2 {
  font-size: clamp(24px, 2.2vw, 32px);
}

.auth-stage-wide .auth-context p {
  max-width: 620px;
}

.auth-stage-wide .auth-signal-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-stage-wide .auth-signal {
  align-content: start;
  min-height: 116px;
}

.auth-stage-wide .wishlist-panel {
  width: 100%;
}

@media (max-width: 900px) {
  .auth-stage-wide .auth-signal-list {
    grid-template-columns: 1fr;
  }

  .auth-stage-wide .auth-signal {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .pricing-layout {
    padding-bottom: 68px;
  }

  .pricing-note {
    padding: 20px;
  }

  .pricing-note ul {
    grid-template-columns: 1fr;
  }

  .pricing-note li:nth-child(n) {
    padding-top: 12px;
    border-top: 1px solid rgba(24, 32, 28, 0.1);
  }

  .pricing-note li:first-child {
    padding-top: 0;
    border-top: 0;
  }
}

/* Public label refinement: avoid capsule badges on marketing/public pages. */
.public-glass-page :is(
  .home-domain,
  .home-section-copy > span,
  .pricing-kicker,
  .pricing-note > span,
  .legal-kicker,
  .auth-context-kicker
) {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 12px 5px 14px;
  border: 0;
  border-radius: 0;
  color: rgba(18, 45, 42, 0.88);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14) 72%, transparent),
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), inset 0 -1px 0 rgba(15, 118, 110, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  backdrop-filter: blur(14px) saturate(1.18);
  font-weight: 800;
  letter-spacing: 0;
}

.public-glass-page :is(
  .home-domain,
  .home-section-copy > span,
  .pricing-kicker,
  .pricing-note > span,
  .legal-kicker,
  .auth-context-kicker
)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.92), rgba(37, 99, 235, 0.34));
  box-shadow: 0 0 14px rgba(15, 118, 110, 0.18);
}

.public-glass-page :is(
  .home-domain,
  .home-section-copy > span,
  .pricing-kicker,
  .pricing-note > span,
  .legal-kicker,
  .auth-context-kicker
)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.28), rgba(37, 99, 235, 0.12), transparent);
}

.pricing-plan-title span {
  min-height: 22px;
  padding: 2px 8px 3px 9px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-left: 2px solid rgba(15, 118, 110, 0.62);
  border-radius: 2px;
  color: rgba(18, 45, 42, 0.86);
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.1), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  -webkit-backdrop-filter: blur(10px) saturate(1.16);
  backdrop-filter: blur(10px) saturate(1.16);
  letter-spacing: 0;
}

/* Public paper-white tone correction. Keep green as an accent, not the page wash. */
.public-glass-page {
  --public-paper: #fbfaf5;
  --public-paper-warm: #f6f3eb;
  --public-paper-cool: #f1f4f7;
  --public-ink-soft: rgba(31, 31, 28, 0.64);
  --public-glass: rgba(255, 255, 255, 0.58);
  --public-glass-strong: rgba(255, 255, 255, 0.74);
  --public-glass-soft: rgba(255, 255, 255, 0.34);
  --public-glass-edge: rgba(255, 255, 255, 0.78);
  --public-signal: rgba(37, 99, 235, 0.12);
  --public-signal-strong: rgba(15, 118, 110, 0.16);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 78% 16%, rgba(238, 243, 248, 0.64), transparent 38%),
    linear-gradient(135deg, var(--public-paper) 0%, var(--public-paper-warm) 48%, var(--public-paper-cool) 100%);
}

.pricing-public-page,
.legal-public-page,
.auth-public-page {
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.9), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(238, 243, 248, 0.62), transparent 36%),
    linear-gradient(135deg, #fbfaf5 0%, #f6f3eb 48%, #f1f4f7 100%);
}

.public-ambient {
  background:
    linear-gradient(90deg, rgba(85, 92, 102, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(85, 92, 102, 0.036) 1px, transparent 1px);
  opacity: 0.72;
}

.public-ambient::before,
.public-ambient::after {
  background:
    linear-gradient(112deg, transparent 10%, rgba(255, 255, 255, 0.48) 20%, transparent 31%),
    linear-gradient(112deg, transparent 48%, rgba(196, 205, 216, 0.2) 56%, transparent 68%),
    linear-gradient(112deg, transparent 72%, rgba(37, 99, 235, 0.07) 78%, transparent 88%);
}

.glow-one {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(235, 230, 218, 0.2), transparent);
}

.glow-two {
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), rgba(255, 255, 255, 0.22));
}

.glow-three {
  background: linear-gradient(90deg, rgba(183, 121, 31, 0.08), rgba(210, 216, 224, 0.12), transparent);
}

.public-refract-line {
  background: linear-gradient(90deg, transparent, rgba(106, 112, 122, 0.08), rgba(255, 255, 255, 0.76), rgba(37, 99, 235, 0.08), transparent);
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.08);
}

.public-glass-page .public-nav {
  border-bottom-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(251, 250, 245, 0.42)),
    rgba(251, 250, 245, 0.46);
}

.glass-panel,
.glass-card,
.ai-console-shell,
.pricing-plan,
.pricing-note,
.auth-stage .login-panel,
.auth-stage .wishlist-panel,
.legal-doc,
.legal-sidebar {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.24) 56%, rgba(241, 244, 247, 0.22)),
    rgba(255, 255, 255, 0.2);
}

.glass-panel,
.glass-card {
  box-shadow: 0 28px 82px rgba(31, 31, 28, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.home-public-page .home-hero {
  background:
    linear-gradient(90deg, rgba(251, 250, 245, 0.9), rgba(251, 250, 245, 0.46) 46%, rgba(241, 244, 247, 0.34)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), transparent 58%);
}

.home-public-page .home-hero::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.18) 45%, transparent),
    linear-gradient(118deg, transparent 42%, rgba(37, 99, 235, 0.07) 54%, transparent 68%);
}

.home-public-page .home-ambient {
  background:
    linear-gradient(117deg, transparent 0 33%, rgba(255, 255, 255, 0.34) 33% 34%, transparent 34% 66%, rgba(180, 188, 198, 0.12) 66% 67%, transparent 67%),
    repeating-linear-gradient(90deg, rgba(85, 92, 102, 0.045) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.04) 0 1px, transparent 1px 72px);
}

.pricing-public-page .pricing-hero,
.legal-public-page .legal-hero {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.38) 0 18%, transparent 18% 52%, rgba(37, 99, 235, 0.075) 52% 72%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(251, 250, 245, 0.24));
}

.paper-search-line,
.paper-doc-row,
.paper-insight-meta em,
.public-glass-page .secondary,
.auth-stage .input,
.auth-stage .textarea {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.2);
}

.paper-doc-row.is-active,
.pricing-plan.is-featured {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(250, 249, 244, 0.28) 52%, rgba(241, 244, 247, 0.25)),
    rgba(255, 255, 255, 0.22);
}

.paper-window-head strong {
  border-color: rgba(15, 118, 110, 0.14);
  background: rgba(255, 255, 255, 0.48);
}

.home-public-page .home-feature-band article,
.home-public-page .home-capability-grid,
.home-public-page .home-capability-grid article,
.auth-signal {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.12);
}

.public-glass-page :is(
  .home-domain,
  .home-section-copy > span,
  .pricing-kicker,
  .pricing-note > span,
  .legal-kicker,
  .auth-context-kicker
) {
  color: rgba(31, 31, 28, 0.82);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.16) 72%, transparent),
    linear-gradient(180deg, rgba(37, 99, 235, 0.045), rgba(255, 255, 255, 0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(85, 92, 102, 0.12);
}

.public-glass-page :is(
  .home-domain,
  .home-section-copy > span,
  .pricing-kicker,
  .pricing-note > span,
  .legal-kicker,
  .auth-context-kicker
)::after {
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.18), rgba(37, 99, 235, 0.1), transparent);
}

.business-view-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-height: min(760px, calc(100vh - 150px));
}

.business-view-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
}

.business-object-list,
.business-object-detail {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.business-object-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.business-object-row.library-object-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.business-object-row:hover,
.business-object-row.active {
  background: rgba(15, 118, 110, 0.08);
}

.business-object-row span {
  min-width: 0;
}

.business-object-row strong,
.business-object-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-object-row small,
.business-object-row em {
  color: var(--muted);
  font-style: normal;
}

.business-object-detail {
  padding: 14px;
}

.business-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.business-summary-grid span {
  min-width: 0;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.business-summary-grid strong,
.business-summary-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-summary-grid small,
.business-mention-row small {
  color: var(--muted);
}

.business-mentions {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
}

.business-mention-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
}

.business-mention-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-object-detail .related-list {
  display: grid;
  gap: 8px;
}

.business-related-doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.business-related-doc .related-compact {
  min-width: 0;
}

.business-related-doc > button:not(.related-compact) {
  align-self: center;
  white-space: nowrap;
}

.capability-stack-list {
  display: grid;
  gap: 8px;
}

.capability-stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.capability-stack-item > div:first-child {
  min-width: 0;
}

.ai-question-event-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ai-question-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.ai-question-event > div:first-child {
  min-width: 0;
}

.ai-question-event .right {
  text-align: right;
  white-space: nowrap;
}

.archive-result-workspace .drive-main-column {
  gap: 12px;
}

.archive-result-header,
.archive-guide,
.archive-contribution,
.archive-list-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.archive-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.archive-result-header h2,
.archive-contribution h3,
.archive-list-panel h3,
.archive-card h3 {
  margin: 0;
  min-width: 0;
}

.archive-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(15, 118, 110, 0.08);
}

.archive-tabs {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 0;
}

.archive-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  cursor: pointer;
}

.archive-tabs button.active {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(15, 118, 110, 0.12);
  color: var(--text);
}

.archive-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.archive-metrics > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.archive-metrics span,
.archive-metrics strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.archive-metrics strong {
  margin-top: 4px;
  font-size: 20px;
}

.archive-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 12px;
}

.archive-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.archive-card.pending_confirmation {
  border-color: rgba(202, 138, 4, 0.35);
}

.archive-card.unassigned {
  border-color: rgba(100, 116, 139, 0.38);
}

.archive-card-head,
.archive-card-actions,
.archive-list-panel .toolbar,
.archive-contribution .toolbar,
.archive-gap-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.archive-card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 8px;
}

.archive-card-actions .compact {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
}

.archive-card-head > div,
.archive-contribution .toolbar > div,
.archive-gap-row > div {
  min-width: 0;
}

.archive-card-head > .badge {
  flex: 0 0 auto;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-card-head h3 {
  margin-top: 6px;
  display: -webkit-box;
  min-height: 2.52em;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.26;
}

.archive-card-head .small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.archive-card-stats span {
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.archive-card-stats strong,
.archive-card-stats small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-card-stats small,
.archive-card-evidence,
.archive-contribution-item small,
.archive-doc-row small,
.archive-mini-doc-type {
  color: var(--muted);
}

.archive-card-evidence {
  min-height: 36px;
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.archive-section-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.archive-section-summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
  padding: 4px 7px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.07);
  color: var(--text);
  font-size: 12px;
}

.archive-section-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-section-summary strong {
  color: var(--muted);
  font-weight: 700;
}

.archive-mini-docs,
.archive-contribution-list,
.archive-gap-list,
.archive-list-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.archive-mini-docs button,
.archive-contribution-item,
.archive-doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.82);
  color: var(--text);
  text-align: left;
}

.archive-mini-docs button,
.archive-contribution-item {
  cursor: pointer;
}

.archive-doc-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.archive-doc-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: max-content;
}

.archive-doc-actions .compact {
  min-width: 54px;
  padding-inline: 8px;
}

.archive-mini-docs button:hover,
.archive-contribution-item:hover,
.archive-doc-row:has(.archive-doc-main:hover),
.archive-gap-row:hover {
  background: rgba(15, 118, 110, 0.08);
}

.archive-mini-doc-title,
.archive-mini-doc-type,
.archive-doc-main,
.archive-contribution-item span {
  min-width: 0;
}

.archive-mini-doc-title,
.archive-mini-doc-type,
.archive-contribution-item strong,
.archive-contribution-item small,
.archive-doc-main strong,
.archive-doc-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-mini-doc-type {
  justify-self: end;
  max-width: 8.5em;
}

.archive-contribution,
.archive-list-panel {
  padding: 14px;
}

.archive-contribution-item em,
.archive-doc-actions {
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
}

.archive-action-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--text);
  font-size: 13px;
}

.archive-gap-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.archive-gap-inline.vertical {
  align-items: flex-start;
  flex-direction: column;
}

.archive-gap-inline span {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(202, 138, 4, 0.24);
  border-radius: 6px;
  background: rgba(254, 249, 195, 0.45);
  color: #6b4e06;
  font-size: 12px;
}

.archive-gap-row {
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.archive-detail-rail .related-list {
  display: grid;
  gap: 8px;
}

.archive-detail-sections {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.archive-detail-section {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.65);
}

.archive-detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.archive-detail-section-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-detail-section-head span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.archive-detail-rail .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 900px) {
  .business-view-layout {
    grid-template-columns: 1fr;
  }

  .business-related-doc {
    grid-template-columns: 1fr;
  }

  .business-summary-grid {
    grid-template-columns: 1fr;
  }

  .ai-question-event {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-question-event .right {
    text-align: left;
    white-space: normal;
  }

  .archive-result-header,
  .archive-guide,
  .archive-card-head,
  .archive-card-actions,
  .archive-list-panel .toolbar,
  .archive-contribution .toolbar,
  .archive-gap-row {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-card-grid {
    grid-template-columns: 1fr;
  }

  .archive-contribution-item,
  .archive-doc-row,
  .archive-mini-docs button {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-doc-actions {
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
  }

  .archive-contribution-item em,
  .archive-doc-actions {
    white-space: normal;
  }
}
