:root {
  --bg: #f4f7f8;
  --bg-soft: #eef4f5;
  --surface: #ffffff;
  --surface-muted: #edf2f6;
  --surface-tint: #f9fbfc;
  --ink: #111318;
  --ink-soft: #343a43;
  --muted: #6d7782;
  --line: #e0e6e8;
  --line-strong: #c8d2d6;
  --moss: #0e6f73;
  --moss-dark: #0a5659;
  --action: #0e6f73;
  --action-dark: #0a5659;
  --clay: #8fb6c0;
  --sage: #dbe8e7;
  --steel: #8ea3b7;
  --umber: #193553;
  --mist: #eef5f4;
  --cream: #ffffff;
  --danger-soft: #fff4ce;
  --success-soft: #dff6dd;
  --shadow-sm: 0 1px 2px rgba(17, 19, 24, 0.05), 0 18px 38px rgba(17, 19, 24, 0.045);
  --shadow-md: 0 1px 2px rgba(17, 19, 24, 0.08), 0 28px 58px rgba(17, 19, 24, 0.075);
  --shadow-lg: 0 2px 4px rgba(17, 19, 24, 0.08), 0 42px 86px rgba(17, 19, 24, 0.09);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --content: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #f4f7f8 0, #ffffff 760px, #f6f8f9 100%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

html.has-search-workspace,
html.has-search-workspace body {
  height: 100%;
  overflow: hidden;
}

html.has-conversation-history,
html.has-conversation-history body {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(11, 32, 56, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 32, 56, 0.032) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 52%);
}

main {
  transition: opacity 140ms ease;
}

.is-partial-loading main {
  opacity: 0.72;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px max(28px, calc((100vw - var(--content)) / 2));
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 231, 238, 0.92);
  box-shadow: 0 1px 0 rgba(11, 32, 56, 0.04);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--moss-dark);
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.brand::before {
  width: 30px;
  height: 30px;
  content: "";
  background: url("/static/site-logo.jpg?v=brand-1") center / contain no-repeat;
  border: 0;
  box-shadow: 0 6px 14px rgba(11, 32, 56, 0.08);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--moss-dark);
  font-size: 13px;
  font-weight: 800;
}

.primary-nav {
  margin-left: auto;
}

.nav a {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 74px;
  min-height: 54px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav a::before {
  display: block;
  width: 28px;
  height: 28px;
  content: "";
  background:
    linear-gradient(var(--moss-dark), var(--moss-dark)) 7px 7px / 14px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 7px 13px / 14px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 7px 19px / 10px 2px no-repeat;
  border: 2px solid var(--moss-dark);
  border-radius: 4px;
}

.nav-guide::before {
  background:
    linear-gradient(45deg, transparent 44%, var(--moss-dark) 45% 55%, transparent 56%) 7px 6px / 14px 14px no-repeat,
    var(--surface);
  border-radius: 4px 4px 7px 7px;
  transform: rotate(-8deg);
}

.nav-news::before,
.nav-regulation::before {
  background:
    linear-gradient(var(--moss-dark), var(--moss-dark)) 7px 7px / 14px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 7px 13px / 14px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 7px 19px / 10px 2px no-repeat,
    var(--surface);
}

.nav-case::before {
  background:
    linear-gradient(var(--moss-dark), var(--moss-dark)) 6px 7px / 16px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 7px 6px / 2px 16px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 13px 6px / 2px 16px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 19px 6px / 2px 16px no-repeat,
    var(--surface);
}

.nav-ip::before {
  background:
    linear-gradient(var(--moss-dark), var(--moss-dark)) 6px 6px / 16px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 6px 13px / 16px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 6px 20px / 16px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 11px 3px / 2px 22px no-repeat,
    var(--surface);
}

.nav-video::before {
  background:
    linear-gradient(var(--moss-dark), var(--moss-dark)) 8px 6px / 12px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 8px 20px / 12px 2px no-repeat,
    linear-gradient(90deg, var(--moss-dark) 0 3px, transparent 3px) 7px 10px / 14px 8px no-repeat,
    linear-gradient(30deg, transparent 0 43%, var(--moss-dark) 44% 56%, transparent 57%) 10px 9px / 10px 10px no-repeat,
    var(--surface);
  border-radius: 7px;
}

.nav-partners::before {
  background:
    radial-gradient(circle at 9px 9px, transparent 4px, var(--moss-dark) 5px 6px, transparent 7px),
    radial-gradient(circle at 19px 9px, transparent 4px, var(--moss-dark) 5px 6px, transparent 7px),
    linear-gradient(var(--moss-dark), var(--moss-dark)) 7px 20px / 14px 2px no-repeat,
    var(--surface);
  border-radius: 50% 50% 7px 7px;
}

.nav-plans::before {
  background:
    linear-gradient(var(--moss-dark), var(--moss-dark)) 7px 8px / 14px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 7px 14px / 14px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 7px 20px / 9px 2px no-repeat,
    var(--surface);
  border-radius: 7px;
}

.nav-user::before,
.nav-auth::before {
  background:
    radial-gradient(circle at 50% 8px, transparent 5px, var(--moss-dark) 6px 7px, transparent 8px),
    linear-gradient(var(--moss-dark), var(--moss-dark)) 6px 19px / 16px 2px no-repeat,
    var(--surface);
  border-radius: 50% 50% 7px 7px;
}

.nav a:hover,
.text-link:hover {
  color: var(--moss-dark);
}

.nav a:hover {
  background: #f4f8f7;
  border-color: #dbe8e7;
  transform: translateY(-1px);
}

main {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.48fr);
  gap: 0;
  align-items: end;
  padding: 92px 0 86px;
  border-bottom: 0;
}

.hero::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 247, 248, 0.92)),
    radial-gradient(circle at 84% 18%, rgba(14, 111, 115, 0.08), transparent 34%);
  border-bottom: 1px solid rgba(224, 230, 232, 0.72);
}

.hero::after {
  position: absolute;
  right: 0;
  top: 92px;
  width: 1px;
  height: calc(100% - 178px);
  content: "";
  background: linear-gradient(180deg, transparent, rgba(17, 19, 24, 0.16), transparent);
  border: 0;
  opacity: 0.8;
  transform: none;
}

.hero-copy {
  position: relative;
  min-height: auto;
  min-height: 430px;
  padding: 32px 30px;
  overflow: hidden;
  color: #f7f9fa;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(145deg, #16181d 0, #0f1116 100%);
  border: 1px solid rgba(17, 19, 24, 0.92);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.hero-copy::before {
  position: absolute;
  inset: 0;
  display: block;
  content: "";
  width: auto;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1.4px) 0 0 / 18px 18px;
  opacity: 0.34;
}

.hero-copy::after {
  position: absolute;
  right: 28px;
  bottom: 30px;
  display: block;
  width: 98px;
  height: 98px;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  transform: rotate(-5deg);
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--moss-dark);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1,
.page-head h1,
.detail h1,
.auth-panel h1 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.02;
}

.lead {
  max-width: 720px;
  margin: 20px 0 30px;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-intro {
  display: grid;
  max-width: 800px;
  gap: 16px;
  margin: 28px 0 0;
  color: rgba(247, 249, 250, 0.78);
  font-size: 15px;
  line-height: 1.82;
}

.hero-intro p {
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-link.secondary {
  color: var(--moss-dark);
  background: #ffffff;
  border: 1px solid #c7e0f4;
  box-shadow: var(--shadow-sm);
}

.button-link.secondary:hover {
  color: var(--moss-dark);
  background: #f2f7fc;
}

.service-console {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 430px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 251, 0.92)),
    var(--surface);
  border: 1px solid #d7e8f8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.service-console::before {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 69, 120, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 69, 120, 0.08) 1px, transparent 1px),
    #eef7ff;
  background-size: 18px 18px;
  border: 1px solid #d8e9f7;
  border-radius: 32px;
  transform: rotate(12deg);
}

.service-console > * {
  position: relative;
  z-index: 1;
}

.console-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--moss-dark);
  font-size: 13px;
  font-weight: 800;
}

.console-toolbar strong {
  padding: 4px 10px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #d7e8f8;
  border-radius: 999px;
  font-size: 12px;
}

.console-query {
  padding: 18px 20px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 18px;
  font-weight: 800;
}

.console-results {
  display: grid;
  gap: 12px;
  align-content: end;
}

.console-results a {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #dbe8f3;
  border-radius: var(--radius-md);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.console-results a:hover {
  background: #ffffff;
  border-color: #c7e0f4;
  transform: translateY(-2px);
}

.console-results span,
.service-tile span,
.advantage-list span {
  color: var(--moss-dark);
  font-size: 12px;
  font-weight: 800;
}

.console-results strong {
  color: var(--ink);
  font-size: 17px;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: min(780px, 100%);
  gap: 10px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.search-box.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(980px, 100%);
  box-shadow: none;
}

.page-head .search-box.compact {
  margin-inline: auto;
}

.search-box input,
.search-box select,
.auth-form input {
  align-self: center;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search-box input:focus,
.search-box select:focus,
.auth-form input:focus,
.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus,
.compact-form select:focus {
  border-color: rgba(0, 120, 212, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.18);
}

.search-box button,
.auth-form button,
.locked a,
.plan-card button,
.button-link,
.inline-action button,
.profile-form button,
.compact-form button,
.admin-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--action-dark);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 16px rgba(0, 120, 212, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search-box button:hover,
.auth-form button:hover,
.locked a:hover,
.plan-card button:hover,
.button-link:hover,
.inline-action button:hover,
.profile-form button:hover,
.compact-form button:hover,
.admin-actions button:hover {
  background: var(--action);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(0, 103, 184, 0.22);
}

.search-box button:active,
.auth-form button:active,
.locked a:active,
.plan-card button:active,
.button-link:active,
.inline-action button:active,
.profile-form button:active,
.compact-form button:active,
.admin-actions button:active {
  transform: translateY(0);
}

.search-box button:disabled {
  cursor: wait;
  background: #6aa5d8;
  box-shadow: none;
  transform: none;
}

.search-box button {
  height: 46px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
}

.conversation-bar {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 36px;
}

.conversation-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.conversation-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #101820;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.conversation-icon-button:hover {
  background: #f2f7fc;
  border-color: #d7e8f8;
  transform: translateY(-1px);
}

.conversation-icon-button:active {
  transform: translateY(0);
}

.conversation-icon-button::before,
.conversation-icon-button::after {
  position: absolute;
  content: "";
}

.conversation-icon-button.history::before {
  width: 17px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.conversation-icon-button.history::after {
  width: 2px;
  height: 14px;
  left: 13px;
  background: currentColor;
  border-radius: 2px;
}

.conversation-icon-button.compose::before {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.conversation-icon-button.compose::after {
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(4px, -5px) rotate(-45deg);
  box-shadow: 5px 0 0 -1px currentColor;
}

.conversation-title {
  grid-column: 2;
  justify-self: center;
  max-width: min(620px, 62vw);
  overflow: hidden;
  color: #101820;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-history-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.conversation-history-layer[hidden] {
  display: none;
}

.conversation-history-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(16, 24, 32, 0.34);
  cursor: default;
}

.conversation-history-drawer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(318px, calc(100vw - 44px));
  height: 100%;
  padding: 14px 10px 12px;
  overflow: hidden;
  background: #ffffff;
  border-right: 1px solid var(--line);
  box-shadow: 16px 0 36px rgba(0, 27, 61, 0.14);
  animation: conversationDrawerIn 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.conversation-history-search {
  position: relative;
  display: block;
  flex: 0 0 auto;
  padding-bottom: 8px;
}

.conversation-history-search::before {
  position: absolute;
  left: 12px;
  top: 10px;
  width: 13px;
  height: 13px;
  content: "";
  border: 1.6px solid #8b96a5;
  border-radius: 50%;
}

.conversation-history-search::after {
  position: absolute;
  left: 24px;
  top: 22px;
  width: 7px;
  height: 1.6px;
  content: "";
  background: #8b96a5;
  border-radius: 2px;
  transform: rotate(45deg);
}

.conversation-history-search input {
  width: 100%;
  height: 34px;
  padding: 0 58px 0 34px;
  border: 1px solid #dde4ec;
  border-radius: var(--radius-md);
  background: #f7f8fa;
  color: #28364a;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.conversation-history-search input:focus {
  border-color: rgba(0, 120, 212, 0.62);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.14);
}

.conversation-history-actions {
  display: grid;
  gap: 6px;
  padding: 2px 0 14px;
}

.conversation-history-new,
.conversation-history-item {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.conversation-history-new {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  min-height: 38px;
  padding: 8px 10px 8px 38px;
  font-weight: 800;
}

.conversation-history-new::before,
.conversation-history-new::after {
  position: absolute;
  content: "";
}

.conversation-history-new::before {
  left: 14px;
  top: 11px;
  width: 15px;
  height: 15px;
  border: 1.8px solid currentColor;
  border-radius: 5px;
}

.conversation-history-new::after {
  left: 22px;
  top: 10px;
  width: 11px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: rotate(-45deg);
}

.conversation-history-new:hover,
.conversation-history-row:hover,
.conversation-history-row.is-active {
  background: #f3f7fb;
}

.conversation-history-new:active,
.conversation-history-item:active {
  transform: translateY(1px);
}

.conversation-history-heading {
  flex: 0 0 auto;
  padding: 4px 10px 8px;
  color: #8793a2;
  font-size: 12px;
}

.conversation-history-list {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 0;
  overflow: auto;
  padding-bottom: 12px;
}

.conversation-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 42px;
  border-radius: var(--radius-md);
  transition: background 160ms ease;
}

.conversation-history-item {
  position: relative;
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 42px;
  padding: 8px 4px 8px 34px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.conversation-history-item::before {
  position: absolute;
  left: 12px;
  top: 14px;
  width: 12px;
  height: 12px;
  content: "";
  border: 1.5px solid #c3ceda;
  border-radius: 50%;
}

.conversation-history-delete {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  margin-right: 4px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a9b3bf;
  cursor: pointer;
  opacity: 0.48;
  transition: opacity 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.conversation-history-row:hover .conversation-history-delete,
.conversation-history-delete:focus-visible,
.conversation-history-delete.is-confirming {
  opacity: 1;
}

.conversation-history-delete::before,
.conversation-history-delete::after {
  position: absolute;
  width: 10px;
  height: 1.5px;
  content: "";
  background: currentColor;
  border-radius: 2px;
}

.conversation-history-delete::before {
  transform: rotate(45deg);
}

.conversation-history-delete::after {
  transform: rotate(-45deg);
}

.conversation-history-delete:hover {
  color: #7c8794;
  background: rgba(131, 145, 161, 0.08);
}

.conversation-history-delete.is-confirming {
  background: #fff1f0;
  color: #c8322b;
  box-shadow: inset 0 0 0 1px rgba(200, 50, 43, 0.16);
}

.conversation-history-delete.is-confirming:hover {
  background: #ffe3e1;
  color: #b42318;
}

.conversation-history-delete:active {
  transform: scale(0.94);
}

.conversation-history-title {
  min-width: 0;
  overflow: hidden;
  color: #28364a;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-history-item small {
  color: #8a94a3;
  font-size: 11px;
  line-height: 1.2;
}

.conversation-history-empty {
  margin: 10px;
  color: #8a94a3;
  font-size: 13px;
}

.conversation-composer.search-box.compact {
  grid-template-columns: minmax(0, 1fr) 44px;
  flex: 0 0 auto;
  align-self: center;
  width: min(980px, 100%);
  margin-top: 12px;
  padding: 8px 8px 8px 16px;
  border-color: #b9d4f3;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(0, 58, 112, 0.08);
}

.conversation-composer textarea {
  align-self: center;
  min-width: 0;
  max-height: 148px;
  min-height: 32px;
  height: 32px;
  padding: 3px 0;
  resize: none;
  overflow: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  outline: none;
}

.conversation-composer textarea::placeholder {
  color: #7d8998;
}

.conversation-composer .conversation-send {
  position: relative;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  background: #0f6fff;
  box-shadow: 0 8px 18px rgba(15, 111, 255, 0.22);
}

.conversation-composer .conversation-send::before {
  width: 12px;
  height: 12px;
  content: "";
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  transform: translateY(3px) rotate(45deg);
}

.conversation-composer .conversation-send:hover {
  background: #005fd6;
}

.log-page {
  width: min(1120px, calc(100% - 40px));
  margin: 42px auto;
}

.log-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.log-page-head h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 32px;
  letter-spacing: 0;
}

.log-page-head p {
  margin: 0;
  color: #5f6b7a;
}

.log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  color: #697586;
  font-size: 13px;
}

.log-output {
  min-height: 520px;
  max-height: calc(100vh - 220px);
  margin: 0;
  padding: 18px;
  overflow: auto;
  background: #0b1220;
  border-radius: var(--radius-md);
  color: #d8e3f0;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

@keyframes conversationDrawerIn {
  from {
    transform: translateX(-18px);
    opacity: 0.82;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.deep-search-panel {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  margin: 18px auto 0;
  padding: 18px 0 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-head.search-workspace {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: var(--search-workspace-height, calc(100dvh - 112px));
  min-height: 0;
  padding-top: 26px;
  padding-bottom: 14px;
  overflow: hidden;
}

.page-head.search-workspace .search-box.compact {
  flex: 0 0 auto;
  align-self: center;
}

.deep-search-panel[hidden] {
  display: none;
}

.deep-search-top {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2ebf4;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 4px rgba(0, 27, 61, 0.04);
}

.deep-search-panel.is-complete .deep-search-top {
  display: none;
}

.deep-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.8fr);
  flex: 1 1 auto;
  gap: 24px;
  align-items: stretch;
  min-height: 0;
  margin-top: 16px;
  overflow: hidden;
}

.deep-search-top h2 {
  margin: 3px 0 2px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.deep-search-top p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.deep-kicker {
  color: var(--moss-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deep-status {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #c7dff2;
  border-radius: 999px;
  background: #f7fbff;
  color: var(--moss-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
}

.deep-status::before {
  width: 7px;
  height: 7px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.deep-status[data-tone="running"]::before,
.deep-status[data-tone="synthesizing"]::before {
  animation: deepPulse 1.1s ease-in-out infinite;
}

.deep-status[data-tone="complete"] {
  border-color: #b7dfc4;
  background: var(--success-soft);
  color: #0f6b2f;
}

.deep-status[data-tone="error"] {
  border-color: #f1d487;
  background: var(--danger-soft);
  color: #7a4b00;
}

.deep-status[data-tone="stopped"] {
  border-color: #d7c69a;
  background: #fff8e8;
  color: #7a4b00;
}

.deep-status[data-can-stop="true"] {
  cursor: pointer;
}

.deep-status[data-can-stop="true"]:hover {
  border-color: #8bb9e8;
  background: #eef7ff;
}

.deep-process {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
  background: #f7fbff;
  border: 1px solid #cfe1f2;
  border-left: 3px solid #8bb9e8;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 4px rgba(0, 50, 96, 0.04);
}

.deep-process-head {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  color: #6a7483;
  font-size: 13px;
}

.deep-process-head::before {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  content: "";
  background:
    radial-gradient(circle at 6px 6px, transparent 4px, currentColor 4.8px 5.8px, transparent 6.6px),
    linear-gradient(45deg, transparent 49%, currentColor 50% 60%, transparent 61%) 9px 9px / 5px 5px no-repeat;
  opacity: 0.74;
}

.deep-process-title {
  color: #005a9e;
  font-size: 16px;
  font-weight: 900;
}

.deep-process-head span {
  color: #667181;
}

.deep-process-head span.is-loading-dots::after {
  display: inline-block;
  width: 0;
  max-width: 5ch;
  overflow: hidden;
  vertical-align: bottom;
  content: ".....";
  animation: deepLoadingDots 1.35s steps(5, end) infinite;
}

.deep-process-head small {
  color: #8a94a3;
  font-size: 12px;
}

.deep-process-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--moss-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.deep-process-feed {
  display: grid;
  align-content: start;
  flex: 0 1 auto;
  gap: 10px;
  grid-auto-rows: max-content;
  min-height: 0;
  max-height: none;
  margin-top: 10px;
  padding: 4px 0 0;
  overflow: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.deep-log-line {
  display: grid;
  grid-template-columns: 68px minmax(86px, 128px) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 7px 2px 8px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid #edf2f7;
  animation: deepLineIn 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.deep-log-line:last-child {
  border-bottom: 0;
}

.deep-log-line time {
  color: #8793a2;
  font-family: Consolas, "SFMono-Regular", "Microsoft YaHei Mono", monospace;
  font-size: 11px;
}

.deep-log-line span {
  color: var(--moss-dark);
  font-weight: 900;
}

.deep-log-line p {
  margin: 0;
  color: #5f6c7c;
}

.deep-log-line[data-tone="running"] span {
  color: #0067b8;
}

.deep-log-line[data-tone="complete"] span {
  color: #177245;
}

.deep-log-line[data-tone="warn"] span {
  color: #8a5a00;
}

.deep-log-line[data-tone="error"] span {
  color: #b42318;
}

.deep-sources {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
}

.deep-source-card {
  padding: 12px 12px 12px 14px;
  background: #fbfdff;
  border: 1px solid #dfeaf5;
  border-left: 3px solid #8bb9e8;
  border-radius: var(--radius-sm);
  box-shadow: none;
  animation: deepLineIn 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.deep-source-card[data-status="running"] {
  border-color: #b7d9f3;
  background: #f7fbff;
}

.deep-source-card[data-status="ok"] {
  border-color: #b7dfc4;
}

.deep-source-card[data-status="empty"] {
  border-color: #e8d293;
}

.deep-source-card[data-status="error"] {
  border-color: #efc1b9;
}

.deep-source-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.deep-source-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.deep-source-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.deep-source-kind {
  color: #728093;
  font-size: 11px;
  line-height: 1.35;
}

.deep-source-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  background: var(--mist);
  border-radius: 999px;
  color: var(--moss-dark);
  font-size: 11px;
  font-weight: 900;
}

.deep-source-message {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.deep-source-items {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.deep-source-item {
  display: grid;
  gap: 2px;
  padding: 8px;
  color: inherit;
  background: #f8fbff;
  border: 1px solid #e3edf7;
  border-radius: var(--radius-sm);
  transition: border-color 160ms ease, transform 160ms ease;
}

.deep-source-item:hover {
  border-color: #b9d7ef;
  transform: translateY(-1px);
}

.deep-source-item strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.deep-source-item span,
.deep-source-item small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.deep-answer {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  padding: 16px 18px 18px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #dbe6ef;
  border-left: 3px solid #9bcfa8;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 4px rgba(0, 27, 61, 0.04);
  animation: deepAnswerIn 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.deep-answer[hidden] {
  display: none;
}

.deep-answer-note {
  max-width: 72ch;
  margin: 0;
  color: #7a8491;
  font-size: 12px;
  line-height: 1.6;
}

.deep-answer-placeholder {
  margin: 0;
  padding: 14px 16px;
  color: #667181;
  background: #f8fbff;
  border: 1px solid #e3edf7;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.7;
}

.deep-markdown {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.85;
}

.deep-markdown h2 {
  margin: 28px 0 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.45;
}

.deep-markdown h3 {
  margin: 22px 0 8px;
  color: #12213a;
  font-size: 16px;
  line-height: 1.5;
}

.deep-markdown p {
  max-width: 76ch;
  margin: 0 0 16px;
}

.deep-markdown strong {
  color: #08182f;
  font-weight: 900;
}

.deep-markdown hr {
  width: 100%;
  max-width: 78ch;
  height: 1px;
  margin: 22px 0;
  border: 0;
  background: #d7e5f1;
}

.deep-markdown ul,
.deep-markdown ol {
  display: grid;
  gap: 8px;
  max-width: 78ch;
  padding-left: 22px;
  margin: 0 0 18px;
}

.deep-markdown li {
  padding-left: 2px;
}

.deep-markdown a {
  color: #005a9e;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.deep-markdown code {
  padding: 2px 5px;
  background: #f2f6fb;
  border: 1px solid #e1ebf5;
  border-radius: 4px;
  color: #12365d;
  font-family: Consolas, "SFMono-Regular", "Microsoft YaHei Mono", monospace;
  font-size: 0.92em;
}

.deep-table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid #d7e5f1;
  border-radius: 8px;
  background: #ffffff;
}

.deep-markdown table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}

.deep-markdown th,
.deep-markdown td {
  padding: 11px 13px;
  border-bottom: 1px solid #dfeaf3;
  vertical-align: top;
  text-align: left;
}

.deep-markdown th {
  background: #f0f6fb;
  color: #0f365d;
  font-weight: 800;
}

.deep-markdown tr:last-child td {
  border-bottom: 0;
}

@keyframes deepLineIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes deepAnswerIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes deepPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.86);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes deepLoadingDots {
  from {
    width: 0;
  }

  to {
    width: 5ch;
  }
}

.hero-panel {
  display: grid;
  gap: 12px;
  align-content: stretch;
}

.hero-panel div {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 128px;
  padding: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hero-panel div::after {
  position: absolute;
  right: -26px;
  bottom: -36px;
  width: 104px;
  height: 104px;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 69, 120, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(0, 69, 120, 0.14) 1px, transparent 1px),
    #eef7ff;
  background-size: 16px 16px;
  border: 1px solid #d8e9f7;
  border-radius: 18px;
  transform: rotate(12deg);
}

.hero-panel strong {
  color: var(--ink);
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.hero-panel span,
.section-head p,
.content-card p,
.summary,
.locked p,
.auth-panel p,
.plan-card p,
.account-card p,
.admin-row p {
  color: var(--muted);
}

.section,
.page-head,
.detail,
.auth-panel {
  padding: 42px 0;
}

.support-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 26px 0 54px;
  padding: 32px 34px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 247, 0.94)),
    var(--surface);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 260ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms ease;
}

.support-band:hover {
  border-color: #cbdad8;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.support-band::after {
  position: absolute;
  right: 34px;
  top: 24px;
  width: 148px;
  height: 104px;
  content: "";
  background:
    linear-gradient(var(--action-dark), var(--action-dark)) 24px 24px / 40px 2px no-repeat,
    linear-gradient(var(--action-dark), var(--action-dark)) 24px 42px / 68px 2px no-repeat,
    linear-gradient(var(--action-dark), var(--action-dark)) 24px 60px / 48px 2px no-repeat;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: var(--radius-md);
  opacity: 0.28;
}

.support-band::before {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: calc(var(--radius-md) - 2px);
}

.support-band > * {
  position: relative;
  z-index: 1;
}

.support-band span {
  color: var(--moss-dark);
  font-size: 12px;
  font-weight: 800;
}

.support-band strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 22px;
}

.support-band p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.detail-support {
  margin-top: 28px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.46fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.16;
}

.section-count {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 800;
}

.section-head p {
  margin: 0;
}

.service-section,
.firm-section,
.advantage-section {
  padding-top: 62px;
  padding-bottom: 62px;
}

.service-section {
  position: relative;
  margin-top: 12px;
  padding: 44px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(224, 230, 232, 0.86);
  border-radius: 22px;
  box-shadow: 0 28px 72px rgba(17, 19, 24, 0.08);
}

.service-section::before {
  position: absolute;
  inset: -36px -24px auto;
  z-index: -1;
  height: 180px;
  content: "";
  background:
    radial-gradient(circle at 50% 0, rgba(14, 111, 115, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(238, 244, 245, 0.7), transparent);
  border-radius: 26px;
}

.service-grid {
  counter-reset: service;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  grid-auto-flow: dense;
  align-items: stretch;
  overflow: visible;
}

.service-tile {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 410px;
  padding: 158px 28px 34px;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-left: 1px solid rgba(224, 230, 232, 0.82);
  border-radius: 0;
  box-shadow: none;
  counter-increment: service;
  transform: translateY(0);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease, background 300ms ease, color 300ms ease;
}

.service-tile::before {
  position: absolute;
  left: 28px;
  top: 34px;
  content: counter(service, decimal-leading-zero);
  color: rgba(17, 19, 24, 0.9);
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 1;
}

.service-tile::after {
  position: absolute;
  left: 32px;
  top: 108px;
  width: 1px;
  height: 42px;
  content: "";
  background:
    repeating-linear-gradient(180deg, rgba(17, 19, 24, 0.3) 0 2px, transparent 2px 7px);
  border: 0;
  border-radius: 0;
  opacity: 0.74;
  transition: opacity 300ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-tile:hover {
  background: #fbfcfc;
  box-shadow: inset 0 0 0 1px rgba(14, 111, 115, 0.14);
  transform: translateY(-6px);
}

.service-tile:hover::after {
  opacity: 1;
  transform: translateY(4px);
}

.service-tile:active {
  transform: translateY(-1px) scale(0.995);
}

.service-tile:nth-child(3) {
  z-index: 1;
  min-height: 500px;
  margin: -54px 0 -28px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(10, 86, 89, 0.88), rgba(10, 86, 89, 0.9)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    #0a5659;
  background-size: auto, 22px 22px, 22px 22px, auto;
  border: 0;
  border-radius: 0;
  box-shadow: 0 32px 72px rgba(10, 86, 89, 0.28);
}

.service-tile:nth-child(3)::before,
.service-tile:nth-child(3) h3,
.service-tile:nth-child(3) span,
.service-tile:nth-child(3) p {
  color: #ffffff;
}

.service-tile:nth-child(3)::after {
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0 2px, transparent 2px 7px);
}

.service-tile h3,
.advantage-list h3 {
  position: relative;
  z-index: 1;
  margin: 12px 0 14px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.service-tile p,
.firm-story p,
.advantage-list p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

.firm-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 54px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.firm-story h2 {
  max-width: 680px;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.16;
}

.firm-story p {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.9;
}

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

.firm-metrics div {
  display: grid;
  gap: 6px;
  min-height: 136px;
  padding: 26px;
  background:
    linear-gradient(180deg, #ffffff 0, #fbfcfd 100%),
    #ffffff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.firm-metrics div:nth-child(3n) {
  border-right: 0;
}

.firm-metrics div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.firm-metrics dt {
  color: var(--ink);
  font-size: clamp(32px, 3.1vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.firm-metrics dd {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.hero-metrics {
  position: relative;
  align-self: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f0f2f3;
  border-color: rgba(209, 218, 222, 0.9);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow-lg);
  transform: none;
}

.hero-metrics::before {
  display: none;
}

.hero-metrics div {
  position: relative;
  align-content: space-between;
  min-height: 215px;
  padding: 34px 32px 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 248, 0.96)),
    #ffffff;
}

.hero-metrics div::after {
  position: absolute;
  top: 38px;
  right: 30px;
  width: 22px;
  height: 14px;
  content: "";
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 3px 14px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 8px 0 / 3px 14px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 16px 0 / 3px 14px no-repeat;
  opacity: 0.76;
}

.hero-metrics div:nth-child(3n) {
  border-right: 0;
}

.hero-metrics div:nth-child(2n) {
  border-right: 1px solid var(--line);
}

.hero-metrics div:nth-child(3n) {
  border-right: 0;
}

.hero-metrics div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.hero-metrics div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.advantage-list {
  display: grid;
  grid-template-columns: 0.92fr 1.12fr 0.96fr;
  gap: 18px;
  padding-top: 10px;
}

.advantage-list article {
  position: relative;
  min-height: 210px;
  padding: 28px 28px 30px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease, border-color 260ms ease;
}

.advantage-list article::before {
  position: absolute;
  top: 0;
  left: 28px;
  width: 64px;
  height: 3px;
  content: "";
  background: var(--action);
}

.advantage-list article:hover {
  border-color: #cbdad8;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature,
.content-card,
.locked,
.auth-panel,
.plan-card,
.account-card,
.profile-panel,
.admin-row,
.empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 124px;
  padding: 12px 16px;
  overflow: hidden;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--moss-dark);
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.feature::before {
  width: 36px;
  height: 36px;
  content: "";
  background:
    linear-gradient(var(--moss-dark), var(--moss-dark)) 9px 10px / 18px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 9px 17px / 18px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 9px 24px / 12px 2px no-repeat,
    var(--surface);
  border: 2px solid var(--moss-dark);
  border-radius: 5px;
}

.feature::after {
  display: none;
}

.feature:nth-child(2)::before {
  background:
    linear-gradient(var(--moss-dark), var(--moss-dark)) 9px 9px / 18px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 9px 16px / 18px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 9px 23px / 18px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 16px 5px / 2px 26px no-repeat,
    var(--surface);
}

.feature:nth-child(3)::before {
  background:
    linear-gradient(var(--moss-dark), var(--moss-dark)) 8px 8px / 20px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 8px 26px / 20px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 8px 8px / 2px 20px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 26px 8px / 2px 20px no-repeat,
    radial-gradient(circle at 18px 18px, transparent 0 5px, var(--moss-dark) 6px 7px, transparent 8px),
    var(--surface);
}

.feature:nth-child(4)::before {
  background:
    linear-gradient(var(--moss-dark), var(--moss-dark)) 10px 8px / 16px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 10px 26px / 16px 2px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 10px 8px / 2px 20px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 24px 8px / 2px 20px no-repeat,
    linear-gradient(135deg, transparent 45%, var(--moss-dark) 46% 54%, transparent 55%) 9px 8px / 18px 20px no-repeat,
    var(--surface);
}

.feature:hover,
.content-card:hover,
.plan-card:hover,
.admin-row:hover {
  border-color: #c7e0f4;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature span,
.meta span,
.plan-code {
  color: var(--moss-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.feature strong {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 17px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  padding: 188px 26px 26px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.plan-card::before {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  height: 154px;
  content: "";
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.18), rgba(80, 230, 255, 0.12)),
    linear-gradient(#ffffff, #ffffff) 36px 38px / 78px 54px no-repeat,
    linear-gradient(#ffffff, #ffffff) 132px 38px / 92px 54px no-repeat,
    linear-gradient(#ffffff, #ffffff) 72px 106px / 130px 22px no-repeat,
    #f2f2f2;
  border: 1px solid #e8eef5;
  border-radius: 14px;
}

.plan-card h2 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.duration {
  color: var(--ink-soft);
  font-weight: 800;
}

.plan-card form {
  margin: 0;
}

.subscription-benefits {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) 1fr;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-tint);
}

.subscription-benefits ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding-left: 20px;
}

.subscription-terms,
.cancel-subscription-form p {
  color: var(--muted);
  font-size: 14px;
}

.subscription-terms {
  margin-top: 20px;
}

.plan-card button,
.button-link {
  width: 100%;
}

.content-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  justify-content: start;
}

.content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  min-height: 444px;
  padding: 208px 26px 26px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.content-card::before {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  height: 174px;
  content: "";
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.16), rgba(80, 230, 255, 0.12)),
    linear-gradient(#ffffff, #ffffff) 24px 28px / 70px 48px no-repeat,
    linear-gradient(#ffffff, #ffffff) 114px 28px / 98px 48px no-repeat,
    linear-gradient(#ffffff, #ffffff) 36px 98px / 178px 42px no-repeat,
    linear-gradient(90deg, rgba(0, 69, 120, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 69, 120, 0.08) 1px, transparent 1px),
    #f2f2f2;
  background-size: auto, auto, auto, auto, 18px 18px, 18px 18px, auto;
  border: 1px solid #e8eef5;
  border-radius: 14px;
}

.content-card:nth-child(4n+2)::before {
  background:
    linear-gradient(135deg, rgba(16, 124, 16, 0.14), rgba(199, 224, 244, 0.36)),
    linear-gradient(#ffffff, #ffffff) 32px 32px / 86px 96px no-repeat,
    linear-gradient(#ffffff, #ffffff) 142px 32px / 86px 96px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 56px 58px / 38px 3px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 56px 78px / 48px 3px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 166px 58px / 38px 3px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 166px 78px / 48px 3px no-repeat,
    #f2f2f2;
}

.content-card:nth-child(4n+3)::before {
  background:
    linear-gradient(135deg, rgba(0, 69, 120, 0.18), rgba(199, 224, 244, 0.48)),
    linear-gradient(#ffffff, #ffffff) 54px 44px / 160px 80px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 86px 72px / 96px 3px no-repeat,
    linear-gradient(var(--moss-dark), var(--moss-dark)) 86px 92px / 66px 3px no-repeat,
    #f2f2f2;
}

.content-card:nth-child(4n+4)::before {
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.14), rgba(80, 230, 255, 0.14)),
    linear-gradient(#ffffff, #ffffff) 44px 42px / 74px 74px no-repeat,
    linear-gradient(#ffffff, #ffffff) 148px 42px / 74px 74px no-repeat,
    linear-gradient(135deg, transparent 45%, var(--moss-dark) 46% 54%, transparent 55%) 62px 58px / 38px 38px no-repeat,
    linear-gradient(135deg, transparent 45%, var(--moss-dark) 46% 54%, transparent 55%) 166px 58px / 38px 38px no-repeat,
    #f2f2f2;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  background: #f2f7fc;
  border: 1px solid #d7e8f8;
  border-radius: 999px;
}

.content-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.35;
}

.content-card p {
  margin: 0 0 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  padding: 0 16px;
  color: #ffffff;
  background: var(--action-dark);
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.text-link:hover {
  background: var(--action);
  box-shadow: 0 8px 16px rgba(0, 103, 184, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.text-link:active {
  transform: translateY(0);
}

.source-url-link {
  color: var(--action-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.source-url-link:hover {
  color: var(--action);
}

.page-head {
  display: grid;
  gap: 16px;
  padding-top: 38px;
}

.page-head h1,
.detail h1 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
}

.compact {
  width: 100%;
}

.detail {
  max-width: 900px;
}

.summary {
  max-width: 850px;
  margin: 0;
  font-size: 17px;
}

.coming-soon {
  position: relative;
  display: grid;
  min-height: calc(100dvh - 108px);
  place-items: center;
  padding: 104px 24px 128px;
  overflow: hidden;
  isolation: isolate;
}

.coming-soon::before {
  position: absolute;
  inset: 72px max(24px, calc((100% - 760px) / 2));
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(0, 103, 184, 0.16), transparent) 50% 0 / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(0, 103, 184, 0.12), transparent) 50% 100% / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 244, 251, 0.42));
  border-radius: var(--radius-md);
  transform: skewY(-1.5deg);
}

.coming-soon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(520px, 72vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(0, 69, 120, 0.28), transparent);
  transform: translate(-50%, 54px);
}

.coming-soon h1 {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-size: 56px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86);
  animation: comingSoonRise 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.coming-soon h1::after {
  display: block;
  width: 48px;
  height: 3px;
  margin: 18px auto 0;
  content: "";
  background: var(--action);
  border-radius: 999px;
}

@keyframes comingSoonRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.body-text {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  white-space: pre-line;
}

.locked {
  margin-top: 24px;
  padding: 22px;
  background: linear-gradient(135deg, var(--danger-soft), #fff9e6);
  border-color: #f5df94;
}

.locked a {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
}

.auth-panel {
  max-width: 560px;
  margin: 60px auto;
  padding: 30px;
}

.auth-panel h1 {
  color: var(--moss-dark);
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f6f8f4;
}

.auth-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
}

.auth-switch a[aria-current="page"] {
  color: var(--moss-dark);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.auth-method-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f6f8f4;
}

.auth-method-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--ink-soft);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.auth-method-switch a[aria-current="page"] {
  color: var(--moss-dark);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.inline-form {
  margin: 12px 0 0;
}

.inline-action {
  margin: 0;
}

.inline-form button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--moss-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.account-tabs {
  display: flex;
  gap: 8px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.account-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--ink-soft);
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.account-tabs a[aria-selected="true"] {
  color: var(--moss-dark);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.account-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0 44px;
}

.account-tab-panel {
  margin: 20px 0 44px;
}

.account-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
}

.account-card h2 {
  margin: 0;
  color: var(--moss-dark);
  font-size: 22px;
  word-break: break-all;
}

.account-card p {
  margin: 0;
}

.profile-panel {
  padding: 24px;
}

.profile-panel h2 {
  margin: 0 0 18px;
  color: var(--ink);
}

.profile-form {
  display: grid;
  gap: 14px;
}

.profile-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-weight: 800;
}

.profile-form .check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-form .check-row input {
  width: auto;
}

.profile-form input,
.profile-form textarea,
.profile-form select,
.compact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  outline: none;
}

.profile-form textarea {
  min-height: 110px;
  resize: vertical;
}

.profile-form button {
  width: fit-content;
  min-width: 150px;
  height: 46px;
}

.subscription-summary {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.subscription-summary h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.cancel-subscription-form {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cancel-subscription-form .secondary-action {
  width: auto;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.account-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.account-facts.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
}

.account-facts div {
  min-width: 0;
}

.account-facts dt {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-facts dd {
  margin: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.account-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 44px;
}

.billing-history-panel {
  min-width: 0;
}

.account-panel-head {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.account-panel-head h2 {
  margin: 0;
}

.account-panel-head p {
  margin: 0;
  color: var(--muted);
}

.billing-history-list {
  display: grid;
}

.billing-history-row {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.billing-history-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.billing-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
}

.billing-row-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.compact-form {
  display: grid;
  gap: 10px;
}

.compact-form select,
.compact-form button {
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font: inherit;
}

.profile-readonly {
  display: grid;
  gap: 12px;
}

.profile-readonly p {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.profile-readonly strong {
  color: var(--moss-dark);
}

.profile-readonly span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-form-panel {
  max-width: 880px;
  margin-bottom: 44px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(252px, max-content);
  gap: 24px;
  align-items: center;
  padding: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.billing-row {
  grid-template-columns: 1fr;
}

.admin-row h2 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.admin-row p {
  margin: 0;
}

.admin-row .small-note {
  margin-top: 8px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
  justify-content: end;
  justify-items: stretch;
  min-width: 252px;
}

.admin-actions form {
  margin: 0;
}

.manual-upload-form {
  margin: 0;
}

.admin-actions button,
.admin-actions .text-link,
.admin-actions .manual-upload-button,
.narrow {
  width: auto;
  min-width: 96px;
}

.admin-actions button,
.admin-actions .text-link,
.admin-actions .manual-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.admin-actions .text-link,
.admin-actions .manual-upload-button {
  color: var(--moss-dark);
  border: 1px solid #c7e0f4;
  border-radius: var(--radius-sm);
  background: #f2f7fc;
  box-shadow: none;
}

.manual-upload-button {
  cursor: pointer;
  user-select: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.manual-upload-form.is-dragging .manual-upload-button,
.manual-upload-button:hover {
  color: var(--moss-dark);
  border-color: var(--moss);
  background: #e8f3fd;
}

.manual-upload-form.is-uploading .manual-upload-button {
  cursor: wait;
  opacity: 0.72;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--moss-dark);
  background: #f2f7fc;
  border: 1px solid #c7e0f4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.empty {
  padding: 28px;
  color: var(--muted);
}

.notice {
  margin: 0;
  padding: 12px 14px;
  color: var(--moss-dark);
  background: var(--success-soft);
  border: 1px solid #92c353;
  border-radius: var(--radius-md);
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f1aeb5;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.expert-video-head {
  align-items: start;
}

.expert-video-wall {
  padding-bottom: 72px;
}

.expert-video-status {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.expert-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.expert-video-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 64% 18%, rgba(255, 255, 255, 0.1), transparent 22%),
    linear-gradient(145deg, #101820, #202935);
  border: 1px solid rgba(17, 19, 24, 0.16);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 48px rgba(17, 19, 24, 0.16);
  transform: translateZ(0);
}

.expert-video-card::before,
.expert-video-card::after {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.expert-video-card::before {
  top: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34) 58%, transparent);
}

.expert-video-card::after {
  bottom: 0;
  height: 32%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28) 58%, transparent);
}

.expert-video-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111923;
}

.expert-video-card.is-poster-empty .expert-video-poster {
  display: none;
}

.expert-video-inline-player {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111923;
}

.expert-video-card-title,
.expert-video-card-date,
.expert-video-actions,
.expert-video-loading {
  position: absolute;
  z-index: 3;
}

.expert-video-card-title {
  top: 12px;
  left: 12px;
  right: 12px;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.52);
  white-space: nowrap;
}

.expert-video-card-date {
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.54);
}

.expert-video-card-duration {
  margin-right: auto;
}

.expert-video-actions {
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  transform: translate(-50%, -50%);
}

.expert-video-action {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.expert-video-action:first-child {
  width: 38px;
  height: 38px;
}

.expert-video-action svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.expert-video-action[data-expert-video-inline] svg {
  fill: currentColor;
  stroke: none;
}

.expert-video-action:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

.expert-video-action:focus-visible,
.expert-video-fullscreen-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.expert-video-loading {
  left: 50%;
  bottom: 54px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.48);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  transform: translateX(-50%);
}

.expert-video-card.is-playing .expert-video-actions,
.expert-video-card.is-playing .expert-video-card-title,
.expert-video-card.is-playing .expert-video-card-date,
.expert-video-card.is-playing::before,
.expert-video-card.is-playing::after,
.expert-video-card.is-playing .expert-video-poster {
  opacity: 0;
  pointer-events: none;
}

.expert-video-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
}

.expert-video-fullscreen[hidden] {
  display: none;
}

.expert-video-fullscreen-player {
  display: block;
  width: min(100%, 860px);
  max-height: calc(100vh - 48px);
  aspect-ratio: 9 / 16;
  background: #000000;
  border-radius: var(--radius-md);
}

.expert-video-fullscreen-close {
  position: fixed;
  left: 24px;
  top: 24px;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  cursor: pointer;
}

.expert-video-fullscreen-close::before,
.expert-video-fullscreen-close::after {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 2px;
  content: "";
  background: #ffffff;
  border-radius: 2px;
}

.expert-video-fullscreen-close::before {
  top: 15px;
  transform: rotate(-42deg);
}

.expert-video-fullscreen-close::after {
  top: 25px;
  transform: rotate(42deg);
}

body.expert-video-fullscreen-open {
  overflow: hidden;
}

.expert-video-admin-panel .profile-form {
  grid-template-columns: minmax(0, 1fr);
}

.expert-video-upload-progress {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: var(--ink-soft);
  background: #f7fbf8;
  border: 1px solid #c9dfd0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
}

.expert-video-upload-progress[hidden] {
  display: none;
}

.expert-video-upload-track {
  height: 10px;
  overflow: hidden;
  background: #dfeae4;
  border-radius: 999px;
}

.expert-video-upload-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #7fa36b, #b98b73);
  border-radius: inherit;
  transition: width 160ms ease;
}

.expert-video-upload-progress.is-indeterminate .expert-video-upload-track span {
  animation: expert-video-upload-pulse 1.1s ease-in-out infinite;
}

.expert-video-upload-error[hidden] {
  display: none;
}

.expert-video-upload-form.is-uploading input {
  pointer-events: none;
}

@keyframes expert-video-upload-pulse {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(270%);
  }
}
.expert-video-upload-form button:disabled {
  color: rgba(255, 255, 255, 0.82);
  background: #8c9aa3;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
}

.expert-video-upload-form button:disabled:hover {
  background: #8c9aa3;
  box-shadow: none;
  transform: none;
}

.expert-video-admin-row .small-note {
  overflow-wrap: anywhere;
}

@media (orientation: landscape) and (min-width: 1180px) {
  .expert-video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 54px 0 44px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 1px solid var(--line);
    border-radius: 14px;
    transform: none;
  }

  .service-console {
    min-height: 360px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-tile,
  .service-tile:nth-child(1),
  .service-tile:nth-child(2),
  .service-tile:nth-child(3),
  .service-tile:nth-child(4),
  .service-tile:nth-child(5),
  .service-tile:nth-child(6) {
    grid-column: auto;
  }

  .service-tile:nth-child(3) {
    min-height: 410px;
    margin: 0;
  }

  .advantage-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-tile:nth-child(1),
  .service-tile:nth-child(4) {
    grid-row: span 1;
  }

  .firm-section {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px 8px;
    padding: 10px 14px 12px;
  }

  .nav {
    min-width: 0;
    padding: 0;
    overflow: visible;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .brand {
    align-self: center;
    flex: 0 0 auto;
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
    justify-content: stretch;
    width: 100%;
    margin-left: 0;
    gap: 8px 6px;
  }

  .account-nav {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
    font-size: 12px;
  }

  .primary-nav a {
    min-width: 0;
    min-height: 46px;
    gap: 3px;
    padding: 3px 2px;
    font-size: 12px;
  }

  .account-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    min-height: 32px;
    padding: 4px 2px;
    white-space: nowrap;
  }

  .account-nav a::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .subscription-benefits {
    grid-template-columns: 1fr;
  }

  .subscription-benefits ul {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px 8px;
    padding: 10px 14px 12px;
  }

  .nav {
    min-width: 0;
    padding: 0;
    overflow: visible;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .brand {
    align-self: center;
    flex: 0 0 auto;
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
    justify-content: stretch;
    width: 100%;
    margin-left: 0;
    gap: 8px 6px;
  }

  .account-nav {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
    font-size: 12px;
  }

  .primary-nav a {
    min-width: 0;
    min-height: 46px;
    gap: 3px;
    padding: 3px 2px;
    font-size: 12px;
  }

  .account-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    min-height: 32px;
    padding: 4px 2px;
    white-space: nowrap;
  }

  .account-nav a::before {
    display: none;
  }

  main {
    width: min(100% - 28px, var(--content));
  }

  .hero {
    gap: 24px;
    padding: 34px 0 34px;
  }

  .hero::after {
    display: none;
  }

  .hero-copy {
    min-height: auto;
    padding: 30px 24px 32px;
  }

  .hero-copy::before {
    top: 28px;
    bottom: 28px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .hero-intro {
    gap: 12px;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.82;
  }

  .coming-soon {
    min-height: calc(100dvh - 148px);
    padding: 72px 18px 92px;
  }

  .coming-soon::before {
    inset: 44px 16px;
  }

  .coming-soon h1 {
    font-size: 38px;
  }

  .hero-actions,
  .hero-actions .button-link {
    width: 100%;
  }

  .service-console {
    min-height: auto;
    padding: 18px;
  }

  .service-grid,
  .firm-metrics,
  .advantage-list {
    grid-template-columns: 1fr;
  }

  .expert-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .expert-video-card-title {
    font-size: 12px;
  }

  .expert-video-card-date {
    font-size: 11px;
  }

  .expert-video-admin-panel .profile-form {
    grid-template-columns: 1fr;
  }

  .service-tile,
  .service-tile:nth-child(1),
  .service-tile:nth-child(2),
  .service-tile:nth-child(3),
  .service-tile:nth-child(4),
  .service-tile:nth-child(5),
  .service-tile:nth-child(6) {
    grid-column: auto;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-tile {
    min-height: auto;
    padding: 118px 24px 28px;
    border-left: 0;
    border-top: 1px solid rgba(224, 230, 232, 0.82);
  }

  .service-tile:first-child {
    border-top: 0;
  }

  .service-tile:nth-child(3) {
    min-height: auto;
    margin: 0;
    border-radius: 14px;
  }

  .firm-metrics div {
    min-height: 96px;
    padding: 18px 16px;
  }

  .firm-metrics div,
  .firm-metrics div:nth-child(3n) {
    border-right: 0;
  }

  .firm-metrics div:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .firm-metrics div:last-child {
    border-bottom: 0;
  }

  .hero-metrics div,
  .hero-metrics div:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .hero-metrics div:nth-child(2n) {
    border-right: 0;
  }

  .hero-metrics div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .firm-metrics dt {
    font-size: 29px;
  }

  .section,
  .page-head,
  .detail,
  .auth-panel {
    padding: 24px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  .section-head h2,
  .firm-story h2 {
    font-size: 28px;
  }

  .service-section {
    padding: 28px;
    border-radius: 18px;
  }

  .service-section,
  .firm-section,
  .advantage-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hero-copy::before,
  .hero-copy::after {
    display: none;
  }

  .hero-panel,
  .search-box,
  .search-box.compact,
  .feature-grid,
  .plan-grid,
  .account-billing-grid,
  .account-layout,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .section-head,
  .support-band {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-readonly p {
    grid-template-columns: 1fr;
  }

  .account-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-tabs a {
    padding: 0 10px;
  }

  .account-facts.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .deep-search-panel {
    margin-top: 10px;
    padding: 8px 0 0;
  }

  .deep-search-top {
    align-items: center;
    flex-direction: row;
    padding: 8px 10px;
    gap: 10px;
  }

  .deep-search-top > div {
    min-width: 0;
  }

  .deep-kicker,
  .deep-search-top p {
    display: none;
  }

  .deep-search-top h2 {
    margin: 0;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .deep-status {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .page-head.search-workspace {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .page-head.search-workspace .search-box.compact {
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 8px;
    width: 100%;
    padding: 6px;
  }

  .page-head.search-workspace .search-box.compact input,
  .page-head.search-workspace .search-box.compact button {
    height: 42px;
    min-height: 42px;
  }

  .page-head.search-workspace .search-box.compact button {
    width: auto;
    padding: 0 12px;
  }

  .conversation-bar {
    min-height: 34px;
  }

  .conversation-actions {
    gap: 4px;
  }

  .conversation-icon-button {
    width: 32px;
    height: 32px;
  }

  .conversation-title {
    max-width: 58vw;
    font-size: 14px;
  }

  .conversation-history-backdrop {
    background: rgba(16, 24, 32, 0.36);
  }

  .conversation-history-drawer {
    width: clamp(228px, 65vw, 286px);
    padding: 10px 9px 12px;
  }

  .conversation-history-actions {
    padding-bottom: 12px;
  }

  .conversation-history-new {
    min-height: 36px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .conversation-history-row {
    min-height: 38px;
  }

  .conversation-history-item {
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .conversation-history-delete {
    width: 24px;
    height: 24px;
    margin-right: 2px;
  }

  .page-head.search-workspace .conversation-composer.search-box.compact {
    grid-template-columns: minmax(0, 1fr) 40px;
    width: 100%;
    gap: 8px;
    margin-top: 8px;
    padding: 7px 7px 7px 14px;
    border-radius: 20px;
  }

  .page-head.search-workspace .conversation-composer textarea {
    height: 30px;
    min-height: 30px;
    padding: 2px 0;
    font-size: 15px;
  }

  .page-head.search-workspace .conversation-composer .conversation-send {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }

  .deep-result-layout {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    margin-top: 10px;
    overflow: hidden;
  }

  .deep-answer,
  .deep-process {
    grid-column: 1;
  }

  .deep-process {
    order: 1;
    flex: 1 1 auto;
  }

  .deep-answer {
    order: 2;
    flex: 1 1 auto;
  }

  .deep-process-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    gap: 5px 8px;
    min-height: 30px;
  }

  .deep-process-head::before {
    display: none;
  }

  .deep-process-title {
    font-size: 15px;
    white-space: nowrap;
  }

  .deep-process-head span {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .deep-process-head small {
    grid-column: 1 / -1;
    display: none;
    min-width: 0;
    padding-left: 0;
    font-size: 11px;
    line-height: 1.45;
  }

  .deep-process-toggle {
    grid-column: 3;
    grid-row: 1;
    margin-left: auto;
    color: #0078d4;
    font-size: 11px;
    white-space: nowrap;
  }

  .deep-search-panel.is-synthesizing .deep-process-head,
  .deep-search-panel.is-complete .deep-process-head,
  .deep-search-panel.has-stopped .deep-process-head {
    cursor: pointer;
  }

  .deep-process-feed {
    min-height: 0;
    max-height: min(52dvh, 420px);
    margin-top: 8px;
    padding: 4px 0 0;
  }

  .deep-log-line {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 5px 8px;
    padding: 6px 0 7px;
  }

  .deep-log-line p {
    grid-column: 1 / -1;
  }

  .deep-search-panel.is-running:not(.is-synthesizing) .deep-answer {
    display: none;
  }

  .deep-search-panel.is-running:not(.is-synthesizing) .deep-process {
    flex: 0 0 auto;
  }

  .deep-search-panel.is-synthesizing .deep-process-toggle,
  .deep-search-panel.is-complete .deep-process-toggle,
  .deep-search-panel.has-stopped .deep-process-toggle {
    display: inline-flex;
  }

  .deep-search-panel.is-synthesizing .deep-result-layout,
  .deep-search-panel.is-complete .deep-result-layout,
  .deep-search-panel.has-stopped .deep-result-layout {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .deep-search-panel.is-synthesizing:not(.is-process-expanded) .deep-process,
  .deep-search-panel.is-complete:not(.is-process-expanded) .deep-process,
  .deep-search-panel.has-stopped:not(.is-process-expanded) .deep-process {
    flex: 0 0 auto;
    min-height: auto;
    padding: 4px 0 8px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e2ebf4;
    border-radius: 0;
    box-shadow: none;
  }

  .deep-search-panel.is-synthesizing:not(.is-process-expanded) .deep-process-head,
  .deep-search-panel.is-complete:not(.is-process-expanded) .deep-process-head,
  .deep-search-panel.has-stopped:not(.is-process-expanded) .deep-process-head {
    min-height: 28px;
  }

  .deep-search-panel.is-synthesizing:not(.is-process-expanded) .deep-process-head small,
  .deep-search-panel.is-complete:not(.is-process-expanded) .deep-process-head small,
  .deep-search-panel.has-stopped:not(.is-process-expanded) .deep-process-head small,
  .deep-search-panel.is-synthesizing:not(.is-process-expanded) .deep-process-feed,
  .deep-search-panel.is-complete:not(.is-process-expanded) .deep-process-feed,
  .deep-search-panel.has-stopped:not(.is-process-expanded) .deep-process-feed {
    display: none;
  }

  .deep-search-panel.is-process-expanded .deep-process {
    flex: 0 0 auto;
    max-height: min(58dvh, 460px);
  }

  .deep-search-panel.is-process-expanded .deep-process-feed {
    flex: 0 1 auto;
  }

  .deep-search-panel.is-synthesizing .deep-answer,
  .deep-search-panel.is-complete .deep-answer,
  .deep-search-panel.has-stopped .deep-answer {
    flex: 0 0 auto;
    max-height: none;
    min-height: auto;
    padding-bottom: 4px;
    overflow: visible;
  }

  .deep-markdown {
    font-size: 15px;
    line-height: 1.78;
  }

  .deep-markdown h2 {
    margin: 22px 0 10px;
    font-size: 19px;
  }

  .deep-markdown h3 {
    margin: 18px 0 8px;
    font-size: 15px;
  }

  .deep-markdown p {
    margin-bottom: 14px;
  }

  .deep-markdown ul,
  .deep-markdown ol {
    gap: 7px;
    padding-left: 20px;
  }

  .deep-table-wrap {
    margin: 12px 0;
  }

  .deep-markdown table {
    min-width: 520px;
    font-size: 13px;
  }

  .deep-markdown th,
  .deep-markdown td {
    padding: 9px 10px;
  }
}

@media (max-width: 420px) {
  .auth-panel,
  .profile-panel,
  .account-card {
    padding: 22px;
  }

  .primary-nav a {
    padding-inline: 2px;
  }
}

html.has-search-workspace .topbar {
  display: none;
}

html.has-search-workspace body {
  background: #ffffff;
}

html.has-search-workspace body::before {
  display: none;
}

html.has-search-workspace main {
  width: 100%;
  margin: 0;
}

.page-head.search-workspace {
  --history-width: 306px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  transition: padding-left 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page-head.search-workspace.is-history-open {
  padding-left: var(--history-width);
}

.conversation-bar {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(0, 1.2fr) minmax(250px, 1fr);
  flex: 0 0 auto;
  align-items: center;
  min-height: 60px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e7ebf0;
}

.conversation-header-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.conversation-header-left .conversation-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.conversation-brand {
  font-size: 16px;
}

.conversation-brand::before {
  width: 26px;
  height: 26px;
  background: url("/static/site-logo.jpg?v=brand-1") center / contain no-repeat;
}

.conversation-title {
  justify-self: center;
  max-width: min(460px, 44vw);
  color: #101820;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.conversation-header-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.conversation-history-layer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--history-width, 306px);
  height: 100dvh;
  pointer-events: none;
}

.conversation-history-layer[hidden] {
  display: none;
}

.conversation-history-backdrop {
  display: none;
}

.conversation-history-drawer {
  width: 100%;
  height: 100%;
  pointer-events: auto;
  border-right: 1px solid #e3e7ec;
  box-shadow: none;
}

.deep-search-scratch {
  display: none !important;
}

.deep-search-panel {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 18px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  border: 0;
  box-shadow: none;
}

.conversation-thread {
  display: grid;
  align-content: start;
  gap: 26px;
  width: min(860px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 38px 0 130px;
}

.conversation-turn {
  display: grid;
  gap: 12px;
}

.conversation-turn-question {
  position: relative;
  justify-self: end;
  max-width: min(620px, 88%);
  padding: 9px 44px 9px 14px;
  background: #f4f6f8;
  border: 1px solid #edf0f3;
  border-radius: 16px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.55;
}

.conversation-turn-question-text {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.conversation-message-copy {
  position: absolute;
  top: 7px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #697586;
  cursor: pointer;
  opacity: 0.68;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.conversation-message-copy::before,
.conversation-message-copy::after {
  position: absolute;
  width: 11px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  content: "";
}

.conversation-message-copy::before {
  transform: translate(2px, -2px);
}

.conversation-message-copy::after {
  background: #ffffff;
  transform: translate(-2px, 2px);
}

.conversation-message-copy:hover,
.conversation-message-copy:focus-visible {
  background: #eef6ff;
  border-color: #d7e8f8;
  color: #2463a6;
  opacity: 1;
  outline: none;
}

.conversation-message-copy:active {
  transform: translateY(1px);
}

.conversation-message-copy.is-copied {
  background: #ecfdf3;
  border-color: #b8e7c8;
  color: #18794e;
  opacity: 1;
}

.conversation-message-copy.is-copied::before {
  width: 12px;
  height: 7px;
  border-width: 0 0 2px 2px;
  border-radius: 0;
  transform: translate(0, -1px) rotate(-45deg);
}

.conversation-message-copy.is-copied::after {
  display: none;
}

.conversation-message-copy.has-copy-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
  opacity: 1;
}

.conversation-turn-process {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  max-width: 100%;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #697586;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.conversation-turn-process-title {
  font-weight: 500;
}

.conversation-turn-process-summary {
  min-width: 0;
  overflow: hidden;
  color: #7b8794;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-turn-process-summary.is-loading-dots::after {
  display: inline-block;
  width: 0;
  max-width: 5ch;
  overflow: hidden;
  vertical-align: bottom;
  content: ".....";
  animation: deepLoadingDots 1.35s steps(5, end) infinite;
}

.conversation-turn-process:not([aria-expanded="true"])::after {
  content: "›";
  color: #9aa4b2;
  font-size: 18px;
  line-height: 1;
}

.conversation-turn-process[aria-expanded="true"]::after {
  content: "⌃";
  color: #9aa4b2;
  font-size: 14px;
  line-height: 1;
}

.conversation-turn.is-running .conversation-turn-process {
  cursor: default;
}

.conversation-turn.is-running .conversation-turn-process::after {
  content: "";
}

.conversation-turn-process-body {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px solid #dce9f5;
  border-left: 3px solid #8bb9e8;
  border-radius: var(--radius-md);
}

.conversation-turn-process-body[hidden] {
  display: none;
}

.conversation-turn-empty {
  margin: 0;
  color: #7b8794;
  font-size: 13px;
}

.conversation-turn-answer {
  position: relative;
  width: 100%;
}

.conversation-turn-answer:not(.has-content) {
  display: none;
}

.conversation-turn-answer-body {
  padding-right: 42px;
}

.conversation-turn-answer.deep-markdown h2:first-child,
.conversation-turn-answer.deep-markdown h3:first-child,
.conversation-turn-answer.deep-markdown p:first-child,
.conversation-turn-answer.deep-markdown ul:first-child,
.conversation-turn-answer.deep-markdown ol:first-child,
.conversation-turn-answer .deep-markdown h2:first-child,
.conversation-turn-answer .deep-markdown h3:first-child,
.conversation-turn-answer .deep-markdown p:first-child,
.conversation-turn-answer .deep-markdown ul:first-child,
.conversation-turn-answer .deep-markdown ol:first-child {
  margin-top: 0;
}

.conversation-composer.search-box.compact,
.page-head.search-workspace .conversation-composer.search-box.compact {
  grid-template-columns: minmax(0, 1fr) 44px;
  flex: 0 0 auto;
  align-self: center;
  width: min(880px, calc(100% - 40px));
  margin: 0 auto 16px;
  padding: 12px 12px 12px 20px;
  background: #ffffff;
  border-color: #d7e4f5;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.conversation-composer textarea,
.page-head.search-workspace .conversation-composer textarea {
  min-height: 30px;
  height: 30px;
  padding: 1px 0;
  border: 0;
  background: transparent;
  color: #101820;
  font-size: 16px;
  line-height: 1.7;
  resize: none;
  outline: none;
}

.conversation-composer textarea::placeholder {
  color: #a7b0bd;
}

.conversation-composer .conversation-send,
.page-head.search-workspace .conversation-composer .conversation-send {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.conversation-composer.has-input .conversation-send,
.page-head.search-workspace .conversation-composer.has-input .conversation-send {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

@media (max-width: 720px) {
  .page-head.search-workspace {
    --history-width: min(286px, 74vw);
  }

  .page-head.search-workspace.is-history-open {
    padding-left: 0;
  }

  .page-head.search-workspace .conversation-history-layer {
    inset: 0;
    width: 100vw;
    pointer-events: auto;
  }

  .page-head.search-workspace .conversation-history-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.36);
  }

  .page-head.search-workspace .conversation-history-drawer {
    position: relative;
    z-index: 1;
    width: var(--history-width);
    max-width: calc(100vw - 42px);
    box-shadow: 16px 0 32px rgba(15, 23, 42, 0.14);
  }

  .conversation-bar {
    grid-template-columns: minmax(150px, 1fr) minmax(0, 1fr) minmax(32px, 1fr);
    min-height: 54px;
    padding: 0 12px;
  }

  .conversation-brand {
    display: none;
  }

  .conversation-title {
    max-width: 42vw;
    font-size: 14px;
  }

  .deep-search-panel {
    padding-inline: 14px;
  }

  .conversation-thread {
    gap: 22px;
    padding-top: 24px;
    padding-bottom: 112px;
  }

  .conversation-turn-question {
    max-width: 92%;
  }

  .conversation-turn-answer,
  .conversation-turn-answer.deep-markdown,
  .conversation-turn-answer .deep-markdown,
  .deep-answer,
  .deep-answer .deep-markdown {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .conversation-turn-answer.deep-markdown p,
  .conversation-turn-answer.deep-markdown li,
  .conversation-turn-answer.deep-markdown h2,
  .conversation-turn-answer.deep-markdown h3,
  .conversation-turn-answer .deep-markdown p,
  .conversation-turn-answer .deep-markdown li,
  .conversation-turn-answer .deep-markdown h2,
  .conversation-turn-answer .deep-markdown h3,
  .deep-answer .deep-markdown p,
  .deep-answer .deep-markdown li,
  .deep-answer .deep-markdown h2,
  .deep-answer .deep-markdown h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .conversation-turn-answer.deep-markdown a,
  .conversation-turn-answer .deep-markdown a,
  .deep-answer .deep-markdown a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .conversation-turn-answer.deep-markdown .deep-table-wrap,
  .conversation-turn-answer .deep-table-wrap,
  .deep-answer .deep-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
  }

  .conversation-turn-answer.deep-markdown table,
  .conversation-turn-answer .deep-markdown table,
  .deep-answer .deep-markdown table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .conversation-turn-answer.deep-markdown th,
  .conversation-turn-answer.deep-markdown td,
  .conversation-turn-answer .deep-markdown th,
  .conversation-turn-answer .deep-markdown td,
  .deep-answer .deep-markdown th,
  .deep-answer .deep-markdown td {
    padding: 8px 9px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .conversation-composer.search-box.compact,
  .page-head.search-workspace .conversation-composer.search-box.compact {
    grid-template-columns: minmax(0, 1fr) 40px;
    width: calc(100% - 24px);
    margin-bottom: 10px;
    padding: 9px 9px 9px 16px;
  }
}

/* Borna-inspired legal service homepage redesign */
:root {
  --law-ink: #211c18;
  --law-ink-soft: #3b332e;
  --law-brown: #2a231f;
  --law-brown-deep: #17130f;
  --law-taupe: #b8967e;
  --law-taupe-dark: #8e705d;
  --law-taupe-soft: #efe4dc;
  --law-ivory: #faf7f2;
  --law-cream: #f2ebe3;
  --law-line: #decfc4;
  --law-muted: #786d64;
  --law-display: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
}

body {
  background:
    linear-gradient(180deg, #fbf8f4 0, #f5eee7 620px, #ffffff 100%),
    var(--law-ivory);
  color: var(--law-ink);
}

body::before {
  background:
    linear-gradient(90deg, rgba(184, 150, 126, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(184, 150, 126, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 46%);
}

.topbar {
  --moss-dark: var(--law-ink);
  --surface: #ffffff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px max(28px, calc((100vw - var(--content)) / 2));
  background:
    linear-gradient(180deg, var(--law-taupe) 0 9px, rgba(255, 255, 255, 0.96) 9px),
    #ffffff;
  border-bottom: 1px solid rgba(42, 35, 31, 0.14);
  box-shadow: 0 18px 44px rgba(42, 35, 31, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  gap: 12px;
  color: var(--law-ink);
  font-family: var(--law-display);
  font-size: 23px;
  font-weight: 800;
}

.brand::before {
  --brand-logo-size: 40px;
  flex: 0 0 var(--brand-logo-size);
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  background: url("/static/site-logo.jpg?v=brand-1") center / contain no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow:
    0 10px 24px rgba(42, 35, 31, 0.12);
}

.nav {
  gap: 10px;
  color: var(--law-ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.primary-nav {
  justify-content: center;
  margin-left: 0;
}

.account-nav {
  justify-content: flex-end;
}

.nav a {
  min-width: 78px;
  min-height: 58px;
  padding: 6px 9px;
  color: var(--law-ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  border-radius: 15px 0;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.nav a::before {
  width: 25px;
  height: 25px;
  border-color: var(--law-taupe-dark);
  border-radius: 10px 0;
}

.nav-guide::before,
.nav-news::before,
.nav-regulation::before,
.nav-case::before,
.nav-ip::before,
.nav-video::before,
.nav-partners::before,
.nav-plans::before,
.nav-user::before,
.nav-auth::before {
  --moss-dark: var(--law-taupe-dark);
  --surface: #ffffff;
}

.nav a:hover {
  color: var(--law-ink);
  background: var(--law-taupe-soft);
  border-color: rgba(184, 150, 126, 0.42);
  box-shadow: 0 10px 24px rgba(42, 35, 31, 0.1);
  transform: translateY(-2px);
}

.nav a:active {
  transform: translateY(0);
}

.account-nav a {
  min-width: auto;
  min-height: 42px;
  padding: 8px 12px;
}

.account-nav a::before {
  display: none;
}

.account-nav a:last-child {
  min-width: 92px;
  color: #ffffff;
  background: var(--law-taupe);
  border-color: var(--law-taupe);
  box-shadow: 0 14px 28px rgba(142, 112, 93, 0.24);
}

.account-nav a:last-child:hover {
  color: #ffffff;
  background: var(--law-taupe-dark);
  border-color: var(--law-taupe-dark);
}

main > .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.72fr);
  gap: 42px;
  align-items: stretch;
  padding: 80px 0 92px;
  border-bottom: 0;
}

main > .hero::before {
  position: absolute;
  inset: 36px 0 40px;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 82% 16%, rgba(184, 150, 126, 0.34), transparent 26%),
    linear-gradient(135deg, rgba(42, 35, 31, 0.08), rgba(184, 150, 126, 0.08));
  border: 1px solid rgba(184, 150, 126, 0.24);
  border-radius: 72px 0;
}

main > .hero::after {
  display: none;
}

main > .hero .hero-copy {
  position: relative;
  min-height: 520px;
  padding: 58px 56px;
  overflow: hidden;
  color: #fffaf5;
  background:
    linear-gradient(90deg, rgba(23, 19, 15, 0.92), rgba(23, 19, 15, 0.78)),
    radial-gradient(circle at 78% 16%, rgba(184, 150, 126, 0.32), transparent 32%),
    linear-gradient(135deg, var(--law-brown-deep), var(--law-brown));
  border: 1px solid rgba(184, 150, 126, 0.34);
  border-radius: 68px 0;
  box-shadow: 0 36px 90px rgba(42, 35, 31, 0.2);
}

main > .hero .hero-copy::before {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 56%, rgba(184, 150, 126, 0.16) 56% 57%, transparent 57%),
    linear-gradient(90deg, rgba(255, 250, 245, 0.06) 1px, transparent 1px);
  background-size: auto, 42px 100%;
  opacity: 0.78;
}

main > .hero .hero-copy::after {
  position: absolute;
  right: 42px;
  bottom: 42px;
  display: block;
  width: 116px;
  height: 116px;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 250, 245, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(255, 250, 245, 0.18) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid rgba(255, 250, 245, 0.18);
  border-radius: 38px 0;
  transform: rotate(-4deg);
}

main > .hero .hero-copy > * {
  position: relative;
  z-index: 1;
}

main > .hero h1 {
  max-width: 760px;
  color: #fffaf5;
  font-family: var(--law-display);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.14;
}

main > .hero .hero-intro {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-top: 32px;
  padding-left: 24px;
  color: rgba(255, 250, 245, 0.78);
  font-size: 17px;
  line-height: 1.95;
  border-left: 3px solid var(--law-taupe);
}

main > .hero .hero-metrics {
  position: relative;
  align-self: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(184, 150, 126, 0.34);
  border-radius: 58px 0;
  box-shadow: 0 30px 70px rgba(42, 35, 31, 0.14);
}

main > .hero .hero-metrics::before {
  position: absolute;
  inset: 18px;
  z-index: 0;
  display: block;
  content: "";
  border: 1px solid rgba(184, 150, 126, 0.2);
  border-radius: 40px 0;
  pointer-events: none;
}

main > .hero .hero-metrics div {
  position: relative;
  z-index: 1;
  align-content: end;
  min-height: 150px;
  padding: 28px 28px 24px;
  background: transparent;
  border-right: 1px solid rgba(184, 150, 126, 0.22);
  border-bottom: 1px solid rgba(184, 150, 126, 0.22);
}

main > .hero .hero-metrics div:nth-child(2n) {
  border-right: 0;
}

main > .hero .hero-metrics div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

main > .hero .hero-metrics div:first-child {
  color: #fffaf5;
  background: linear-gradient(135deg, var(--law-taupe), var(--law-taupe-dark));
}

main > .hero .hero-metrics div::after {
  display: none;
}

main > .hero .hero-metrics dt,
main > .firm-section .firm-metrics dt {
  color: inherit;
  font-family: var(--law-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

main > .hero .hero-metrics dd,
main > .firm-section .firm-metrics dd {
  color: inherit;
  margin-top: 8px;
  opacity: 0.68;
  font-weight: 800;
}

main > .service-section,
main > .firm-section,
main > .advantage-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

main > .service-section {
  position: relative;
  margin-top: 0;
  padding: 64px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(184, 150, 126, 0.26);
  border-radius: 58px 0;
  box-shadow: 0 30px 80px rgba(42, 35, 31, 0.08);
}

main > .service-section::before {
  inset: -32px 46px auto;
  height: 96px;
  background: linear-gradient(180deg, rgba(184, 150, 126, 0.18), transparent);
  border-radius: 48px 0;
}

main > .service-section .section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 440px);
  gap: 44px;
  margin-bottom: 42px;
}

main > .service-section .eyebrow,
main > .firm-section .eyebrow {
  color: var(--law-taupe-dark);
  font-size: 13px;
  letter-spacing: 0;
}

main > .service-section .eyebrow::before,
main > .firm-section .eyebrow::before {
  background: var(--law-taupe);
}

main > .service-section .section-head h2,
main > .firm-section .firm-story h2 {
  color: var(--law-ink);
  font-family: var(--law-display);
  font-size: 43px;
  font-weight: 700;
  line-height: 1.18;
}

main > .service-section .section-head p:not(.eyebrow) {
  align-self: end;
  color: var(--law-muted);
  font-size: 17px;
  line-height: 1.9;
}

main > .service-section .service-grid {
  counter-reset: service;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

main > .service-section .service-tile {
  grid-column: span 4;
  min-height: 286px;
  padding: 30px 28px;
  color: var(--law-ink);
  background: #fffaf5;
  border: 1px solid rgba(184, 150, 126, 0.3);
  border-radius: 34px 0;
  box-shadow: 0 18px 42px rgba(42, 35, 31, 0.07);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

main > .service-section .service-tile:nth-child(1),
main > .service-section .service-tile:nth-child(5) {
  grid-column: span 5;
}

main > .service-section .service-tile:nth-child(2),
main > .service-section .service-tile:nth-child(6) {
  grid-column: span 3;
}

main > .service-section .service-tile::before {
  position: static;
  display: block;
  margin-bottom: 46px;
  color: rgba(184, 150, 126, 0.48);
  font-family: var(--law-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
}

main > .service-section .service-tile::after {
  left: 30px;
  top: 88px;
  width: 52px;
  height: 1px;
  background: var(--law-taupe);
  opacity: 0.76;
}

main > .service-section .service-tile span,
main > .advantage-section .advantage-list span,
main > .firm-section .advantage-list span,
main > .support-band span {
  color: var(--law-taupe-dark);
  font-size: 13px;
  font-weight: 900;
}

main > .service-section .service-tile h3,
main > .advantage-section .advantage-list h3,
main > .firm-section .advantage-list h3 {
  margin: 10px 0 14px;
  color: inherit;
  font-family: var(--law-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

main > .service-section .service-tile p,
main > .advantage-section .advantage-list p,
main > .firm-section .advantage-list p,
main > .firm-section .firm-story p {
  color: var(--law-muted);
  font-size: 16px;
  line-height: 1.9;
}

main > .service-section .service-tile:nth-child(3) {
  min-height: 286px;
  margin: 0;
  color: var(--law-ink);
  background: #fffaf5;
  border-color: rgba(184, 150, 126, 0.3);
  box-shadow: 0 18px 42px rgba(42, 35, 31, 0.07);
}

main > .service-section .service-tile:nth-child(3) span,
main > .service-section .service-tile:nth-child(3) p {
  color: var(--law-muted);
}

main > .service-section .service-tile:nth-child(3) span {
  color: var(--law-taupe-dark);
}

main > .service-section .service-tile:hover {
  color: #fffaf5;
  background:
    radial-gradient(circle at 82% 10%, rgba(184, 150, 126, 0.28), transparent 32%),
    linear-gradient(135deg, var(--law-brown-deep), var(--law-brown));
  border-color: rgba(184, 150, 126, 0.54);
  box-shadow: 0 26px 62px rgba(42, 35, 31, 0.16);
  transform: translateY(-5px);
}

main > .service-section .service-tile:nth-child(3):hover {
  color: #fffaf5;
  background:
    radial-gradient(circle at 82% 10%, rgba(184, 150, 126, 0.28), transparent 32%),
    linear-gradient(135deg, var(--law-brown-deep), var(--law-brown));
  border-color: rgba(184, 150, 126, 0.54);
  box-shadow: 0 26px 62px rgba(42, 35, 31, 0.16);
}

main > .service-section .service-tile:hover span,
main > .service-section .service-tile:hover p {
  color: rgba(255, 250, 245, 0.74);
}

main > .service-section .service-tile:active {
  transform: translateY(-1px);
}

main > .firm-section {
  display: grid;
  grid-template-columns: minmax(260px, 1.12fr) repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  border-top: 1px solid rgba(184, 150, 126, 0.34);
  border-bottom: 1px solid rgba(184, 150, 126, 0.34);
}

main > .firm-section .firm-story {
  position: relative;
  min-height: 238px;
  padding: 30px;
  overflow: hidden;
  background: #fffaf5;
  border: 1px solid rgba(184, 150, 126, 0.3);
  border-radius: 34px 0;
  box-shadow: 0 18px 42px rgba(42, 35, 31, 0.07);
}

main > .firm-section .firm-story::before {
  position: absolute;
  top: 0;
  left: 30px;
  width: 72px;
  height: 3px;
  content: "";
  background: var(--law-taupe);
}

main > .firm-section .firm-story h2 {
  max-width: none;
  margin-bottom: 24px;
  font-size: clamp(26px, 2.2vw, 34px);
}

main > .firm-section .firm-story p {
  max-width: none;
}

main > .firm-section .firm-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: #fffaf5;
  border: 1px solid rgba(184, 150, 126, 0.3);
  border-radius: 46px 0;
  box-shadow: 0 28px 64px rgba(42, 35, 31, 0.1);
}

main > .firm-section .firm-metrics div {
  min-height: 132px;
  padding: 24px;
  background: transparent;
  border-right: 1px solid rgba(184, 150, 126, 0.24);
  border-bottom: 1px solid rgba(184, 150, 126, 0.24);
}

main > .firm-section .firm-metrics div:nth-child(3n) {
  border-right: 0;
}

main > .firm-section .firm-metrics div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

main > .advantage-section {
  border: 0;
}

main > .advantage-section .advantage-list {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr 1fr;
  gap: 18px;
  padding-top: 0;
}

main > .firm-section .advantage-list {
  display: contents;
}

main > .advantage-section .advantage-list article,
main > .firm-section .advantage-list article {
  min-height: 238px;
  padding: 30px;
  background: #fffaf5;
  border: 1px solid rgba(184, 150, 126, 0.3);
  border-radius: 34px 0;
  box-shadow: 0 18px 42px rgba(42, 35, 31, 0.07);
}

main > .advantage-section .advantage-list article::before,
main > .firm-section .advantage-list article::before {
  top: 0;
  left: 30px;
  width: 72px;
  height: 3px;
  background: var(--law-taupe);
}

main > .advantage-section .advantage-list article:nth-child(2),
main > .firm-section .advantage-list article:nth-child(2) {
  color: var(--law-ink);
  background: #fffaf5;
}

main > .advantage-section .advantage-list article:nth-child(2) span,
main > .advantage-section .advantage-list article:nth-child(2) p,
main > .firm-section .advantage-list article:nth-child(2) span,
main > .firm-section .advantage-list article:nth-child(2) p {
  color: var(--law-muted);
}

main > .advantage-section .advantage-list article:nth-child(2) span,
main > .firm-section .advantage-list article:nth-child(2) span {
  color: var(--law-taupe-dark);
}

main > .advantage-section .advantage-list article:hover,
main > .firm-section .advantage-list article:hover {
  color: #fffaf5;
  background:
    radial-gradient(circle at 84% 12%, rgba(184, 150, 126, 0.28), transparent 34%),
    linear-gradient(135deg, var(--law-brown-deep), var(--law-brown));
  border-color: rgba(184, 150, 126, 0.52);
  box-shadow: 0 26px 58px rgba(42, 35, 31, 0.12);
  transform: translateY(-5px);
}

main > .advantage-section .advantage-list article:nth-child(2):hover,
main > .firm-section .advantage-list article:nth-child(2):hover {
  color: #fffaf5;
  background:
    radial-gradient(circle at 84% 12%, rgba(184, 150, 126, 0.28), transparent 34%),
    linear-gradient(135deg, var(--law-brown-deep), var(--law-brown));
}

main > .advantage-section .advantage-list article:hover span,
main > .advantage-section .advantage-list article:hover p,
main > .firm-section .advantage-list article:hover span,
main > .firm-section .advantage-list article:hover p {
  color: rgba(255, 250, 245, 0.74);
}

main > .support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 6px 0 90px;
  padding: 32px 38px;
  color: #fffaf5;
  background:
    radial-gradient(circle at 85% 20%, rgba(184, 150, 126, 0.26), transparent 28%),
    linear-gradient(135deg, var(--law-brown-deep), var(--law-brown));
  border: 1px solid rgba(184, 150, 126, 0.42);
  border-radius: 42px 0;
  box-shadow: 0 30px 70px rgba(42, 35, 31, 0.16);
}

main > .support-band:hover {
  border-color: rgba(184, 150, 126, 0.62);
  box-shadow: 0 34px 78px rgba(42, 35, 31, 0.18);
  transform: translateY(-2px);
}

main > .support-band::before,
main > .support-band::after {
  display: none;
}

main > .support-band strong {
  color: #fffaf5;
  font-family: var(--law-display);
  font-size: 30px;
  font-weight: 700;
}

main > .support-band p {
  max-width: 760px;
  color: rgba(255, 250, 245, 0.74);
}

main > .support-band .button-link {
  color: #ffffff;
  background: var(--law-taupe);
  border: 1px solid var(--law-taupe);
  border-radius: 15px 0;
  box-shadow: 0 16px 32px rgba(142, 112, 93, 0.26);
}

main > .support-band .button-link:hover {
  color: #ffffff;
  background: var(--law-taupe-dark);
  border-color: var(--law-taupe-dark);
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 14px;
    padding-top: 18px;
  }

  .account-nav {
    grid-column: 2;
    grid-row: 1;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
  }

  .primary-nav a {
    min-width: 0;
  }

  main > .hero {
    grid-template-columns: 1fr;
  }

  main > .hero .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  main > .hero .hero-metrics div:nth-child(2n) {
    border-right: 1px solid rgba(184, 150, 126, 0.22);
  }

  main > .hero .hero-metrics div:nth-child(3n) {
    border-right: 0;
  }

  main > .hero .hero-metrics div:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  main > .service-section .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main > .service-section .service-tile,
  main > .service-section .service-tile:nth-child(1),
  main > .service-section .service-tile:nth-child(2),
  main > .service-section .service-tile:nth-child(5),
  main > .service-section .service-tile:nth-child(6) {
    grid-column: auto;
  }

  main > .advantage-section .advantage-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  main > .firm-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 12px 14px 14px;
  }

  .brand {
    font-size: 18px;
  }

  .brand::before {
    --brand-logo-size: 34px;
  }

  .account-nav {
    align-self: center;
    gap: 4px;
    font-size: 12px;
  }

  .account-nav a {
    min-height: 32px;
    padding: 4px 6px;
  }

  .account-nav a:last-child {
    min-width: 60px;
  }

  .primary-nav {
    gap: 6px;
  }

  .primary-nav a {
    min-height: 52px;
    padding: 4px 2px;
    font-size: 11px;
    line-height: 1.22;
  }

  .primary-nav a::before {
    width: 22px;
    height: 22px;
  }

  main > .hero {
    gap: 22px;
    padding: 36px 0 44px;
  }

  main > .hero::before {
    inset: 16px 0 22px;
    border-radius: 40px 0;
  }

  main > .hero .hero-copy {
    min-height: 0;
    padding: 34px 26px;
    border-radius: 42px 0;
  }

  main > .hero .hero-copy::after {
    display: none;
  }

  main > .hero h1 {
    font-size: 38px;
    line-height: 1.16;
  }

  main > .hero .hero-intro {
    gap: 14px;
    margin-top: 24px;
    padding-left: 18px;
    font-size: 15px;
  }

  main > .hero .hero-metrics,
  main > .firm-section .firm-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 38px 0;
  }

  main > .hero .hero-metrics div,
  main > .firm-section .firm-metrics div {
    min-height: 112px;
    padding: 18px 16px;
  }

  main > .hero .hero-metrics div:nth-child(2n),
  main > .firm-section .firm-metrics div:nth-child(2n) {
    border-right: 0;
  }

  main > .hero .hero-metrics div:nth-child(3n),
  main > .firm-section .firm-metrics div:nth-child(3n) {
    border-right: 1px solid rgba(184, 150, 126, 0.24);
  }

  main > .hero .hero-metrics div:nth-last-child(-n + 3),
  main > .firm-section .firm-metrics div:nth-last-child(-n + 3) {
    border-bottom: 1px solid rgba(184, 150, 126, 0.24);
  }

  main > .hero .hero-metrics div:nth-last-child(-n + 2),
  main > .firm-section .firm-metrics div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  main > .hero .hero-metrics dt,
  main > .firm-section .firm-metrics dt {
    font-size: 28px;
  }

  main > .service-section,
  main > .firm-section,
  main > .advantage-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  main > .service-section {
    padding: 30px 22px;
    border-radius: 40px 0;
  }

  main > .service-section .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 26px;
  }

  main > .service-section .section-head h2,
  main > .firm-section .firm-story h2 {
    font-size: 31px;
  }

  main > .service-section .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  main > .service-section .service-tile {
    min-height: 250px;
    padding: 26px 24px;
  }

  main > .service-section .service-tile::before {
    margin-bottom: 36px;
    font-size: 46px;
  }

  main > .service-section .service-tile::after {
    top: 74px;
  }

  main > .firm-section {
    gap: 14px;
  }

  main > .firm-section .firm-story {
    min-height: 210px;
    padding: 26px 24px;
  }

  main > .advantage-section .advantage-list {
    gap: 14px;
  }

  main > .advantage-section .advantage-list article,
  main > .firm-section .advantage-list article {
    min-height: 210px;
    padding: 26px 24px;
  }

  main > .support-band {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 54px;
    padding: 26px 24px;
    border-radius: 34px 0;
  }

  main > .support-band .button-link {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .primary-nav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
  }

  .primary-nav a {
    min-height: 50px;
    font-size: 10.5px;
  }

  .primary-nav a::before {
    width: 20px;
    height: 20px;
  }

  main > .hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 360px) {
  .primary-nav {
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  }
}

@media (max-width: 980px) {
  .expert-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .expert-video-card-title {
    font-size: 12px;
  }

  .expert-video-card-date {
    font-size: 11px;
  }

  .expert-video-admin-panel .profile-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .expert-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .expert-video-card-title {
    top: 9px;
    left: 9px;
    right: 9px;
    font-size: 11px;
  }

  .expert-video-card-date {
    left: 9px;
    right: 9px;
    bottom: 9px;
    font-size: 10px;
  }

  .expert-video-action {
    width: 36px;
    height: 36px;
  }

  .expert-video-action:first-child {
    width: 32px;
    height: 32px;
  }
}

.expert-video-admin-card {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.expert-video-admin-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.expert-video-admin-card-actions form {
  margin: 0;
}

.expert-video-admin-card-actions .text-link,
.expert-video-admin-card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.expert-video-admin-card-actions .text-link {
  color: var(--moss-dark);
  background: #f2f7fc;
  border: 1px solid #c7e0f4;
}

.profile-form input.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (orientation: portrait) {
  .expert-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (orientation: portrait) and (max-width: 720px) {
  .expert-video-grid {
    gap: 6px;
  }

  .expert-video-card-title {
    top: 7px;
    left: 7px;
    right: 7px;
    font-size: 10px;
  }

  .expert-video-card-date {
    left: 7px;
    right: 7px;
    bottom: 7px;
    font-size: 9px;
  }

  .expert-video-actions {
    gap: 6px;
  }

  .expert-video-action {
    width: 32px;
    height: 32px;
  }

  .expert-video-action:first-child {
    width: 28px;
    height: 28px;
  }

  .expert-video-action svg {
    width: 15px;
    height: 15px;
  }

  .expert-video-admin-card-actions {
    gap: 4px;
  }

  .expert-video-admin-card-actions .text-link,
  .expert-video-admin-card-actions button {
    min-height: 32px;
    padding: 0 4px;
    font-size: 12px;
  }
}

@media (orientation: landscape) {
  .expert-video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}
