:root {
  --navy: #0b3547;
  --ink: #17394a;
  --sea: #17758d;
  --aqua: #e8f5f5;
  --muted: #66808b;
  --line: #dce8ec;
  --bg: #f5f8f9;
  --white: #fff;
  --warn: #946823;
  --warnbg: #fff6e6;
  --shadow: 0 14px 42px rgba(14, 57, 73, 0.08);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--sea);
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--sea);
}
.app-shell {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #083348;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 30px 17px 20px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand,
.brand-large {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand {
  font-size: 22px;
  padding: 2px 12px 42px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f4fbfc;
  color: #0a526c;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  font-size: 18px;
  letter-spacing: -0.1em;
  padding-right: 2px;
}
.brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5dc4c2;
  position: absolute;
  right: 7px;
  top: 8px;
}
.sidebar-caption {
  font-size: 10px;
  color: #80aab8;
  letter-spacing: 0.17em;
  font-weight: 800;
  padding: 0 13px 13px;
}
.nav-list {
  display: grid;
  gap: 5px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #c1d6de;
  text-align: left;
  padding: 12px 13px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
}
.nav-item:hover,
.nav-item.active {
  color: white;
  background: #1a5267;
}
.nav-item.active {
  box-shadow: inset 3px 0 #70d0ce;
}
.nav-icon {
  font-size: 21px;
  line-height: 16px;
  width: 20px;
  text-align: center;
  font-weight: 400;
}
.nav-count {
  margin-left: auto;
  border-radius: 10px;
  background: #dcf4f0;
  color: #0b5d63;
  padding: 1px 6px;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-line {
  height: 1px;
  background: #275367;
  margin: 16px 12px;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 21px 11px 0;
}
.sidebar-user strong {
  display: block;
  font-size: 12px;
}
.sidebar-user small {
  display: block;
  color: #88aab6;
  font-size: 11px;
  margin-top: 3px;
}
.avatar {
  background: #cce9e7;
  color: #14586a;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.sidebar-user button {
  margin-left: auto;
  border: 0;
  background: none;
  color: #b9d2da;
  font-size: 20px;
}
.main-area {
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  font-size: 13px;
  color: #8aa0aa;
}
.breadcrumb span {
  padding: 0 11px;
  color: #b9cbd1;
}
.breadcrumb strong {
  color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.status-pill,
.badge {
  border-radius: 99px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.status-pill {
  background: #e9f4f4;
  color: #1a7281;
}
.status-pill.demo,
.badge.demo {
  background: var(--warnbg);
  color: var(--warn);
}
.mode-switch {
  display: flex;
  padding: 4px;
  background: #edf3f5;
  border-radius: 11px;
  gap: 2px;
}
.mode-switch button {
  border: 0;
  background: transparent;
  color: #6e8790;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 700;
}
.mode-switch button.active {
  background: white;
  color: #14576e;
  box-shadow: 0 2px 9px #ccdade;
}
.content {
  max-width: 1540px;
  margin: auto;
  padding: 34px 35px 70px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 27px;
}
.page-head h1 {
  font-size: 32px;
  letter-spacing: -0.045em;
  margin: 8px 0 7px;
  color: #133b4d;
  line-height: 1.15;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sea);
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 800;
  text-transform: uppercase;
}
.section-kicker:before {
  content: "";
  width: 17px;
  height: 2px;
  background: #40b7b5;
}
.button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 15px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
}
.button:hover {
  border-color: #80afb9;
  background: #f8fcfc;
}
.button.primary {
  background: #126d85;
  border-color: #126d85;
  color: white;
}
.button.primary:hover {
  background: #0d5a70;
}
.button.dark {
  background: #0b3b50;
  color: white;
  border-color: #0b3b50;
}
.button.ghost {
  background: transparent;
}
.button.full {
  width: 100%;
}
.button.small {
  padding: 7px 10px;
  min-height: 31px;
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
}
.search-hero {
  background: linear-gradient(115deg, #0d4056 0%, #126d82 63%, #4aa5aa 100%);
  border-radius: 20px;
  padding: 35px 38px 33px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(7, 76, 99, 0.16);
}
.search-hero:after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  right: -65px;
  top: -145px;
  box-shadow:
    0 0 0 58px rgba(255, 255, 255, 0.04),
    0 0 0 125px rgba(255, 255, 255, 0.04);
}
.search-hero .eyebrow {
  color: #a6e2df;
}
.search-hero h2 {
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 11px 0 8px;
}
.search-hero p {
  font-size: 13px;
  color: #cae4e8;
  margin: 0 0 25px;
}
.search-form {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 870px;
  gap: 8px;
  background: white;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 25px #06374733;
}
.search-form input {
  border: 0;
  outline: none;
  padding: 10px 15px;
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
}
.search-form button {
  border-radius: 8px;
}
.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 23px;
  color: #d2eaed;
  font-size: 11px;
  margin-top: 17px;
  flex-wrap: wrap;
}
.hero-foot span:before {
  content: "✓";
  margin-right: 7px;
  color: #a8eddf;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(480px, 1.25fr);
  gap: 20px;
  margin-top: 25px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.panel-head h3 {
  margin: 0;
  font-size: 14px;
}
.panel-head small {
  color: var(--muted);
  font-size: 11px;
}
.results {
  min-height: 440px;
  max-height: 820px;
  overflow: auto;
}
.result-card {
  border: 0;
  border-bottom: 1px solid #edf2f4;
  background: white;
  text-align: left;
  width: 100%;
  padding: 20px 22px;
  display: block;
}
.result-card:hover,
.result-card.active {
  background: #f2faf9;
}
.result-card.active {
  box-shadow: inset 3px 0 #2aa6a2;
}
.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.patent-id {
  font-size: 11px;
  font-weight: 800;
  color: #127b90;
  letter-spacing: 0.03em;
}
.result-date {
  font-size: 11px;
  color: #8aa0aa;
}
.result-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: #133b4c;
}
.result-card p {
  font-size: 12px;
  color: #6d838d;
  line-height: 1.52;
  margin: 8px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-card footer {
  font-size: 11px;
  color: #80959e;
}
.detail-pane {
  min-height: 500px;
  overflow: hidden;
}
.detail-inner {
  padding: 24px;
}
.detail-title {
  font-size: 24px;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 12px 0;
}
.detail-meta {
  font-size: 12px;
  color: #69838c;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.tabs {
  display: flex;
  gap: 4px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}
.tabs button {
  border: 0;
  background: transparent;
  color: #718b93;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  padding: 13px 11px;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: #126c83;
  border-color: #209cad;
}
.tab-body {
  padding: 22px;
  line-height: 1.62;
  font-size: 13px;
}
.tab-body h4 {
  margin: 0 0 11px;
  font-size: 12px;
  color: #123c4d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tab-body p {
  margin: 0 0 14px;
}
.source-card {
  background: #f2f8f8;
  border-left: 3px solid #56b6b4;
  border-radius: 6px;
  padding: 13px 15px;
  margin: 13px 0;
  font-size: 12px;
}
.source-card strong {
  color: #127186;
}
.source-card p {
  margin: 5px 0 0;
}
.claim {
  padding: 13px 0;
  border-bottom: 1px solid #eef3f4;
}
.claim-index {
  font-weight: 800;
  color: #17839b;
  margin-right: 9px;
}
.notice {
  padding: 12px 14px;
  border-radius: 9px;
  background: #eef8f7;
  color: #286a73;
  font-size: 12px;
  line-height: 1.5;
}
.notice.warn {
  background: var(--warnbg);
  color: var(--warn);
}
.empty {
  text-align: center;
  padding: 55px 24px;
  color: #8198a1;
}
.empty-icon {
  height: 50px;
  width: 50px;
  border-radius: 14px;
  margin: 0 auto 13px;
  background: #e7f3f4;
  display: grid;
  place-items: center;
  color: #378a9d;
  font-size: 27px;
}
.empty h3 {
  color: #224b5d;
  margin: 0 0 6px;
  font-size: 15px;
}
.empty p {
  margin: 0 auto 15px;
  max-width: 320px;
  font-size: 12px;
  line-height: 1.55;
}
.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pad {
  padding: 22px;
}
.form-row {
  display: flex;
  gap: 8px;
}
.form-row input,
.form-row select,
.inline-form input,
.inline-form textarea,
.field {
  border: 1px solid #d9e5e9;
  border-radius: 9px;
  background: #fff;
  padding: 10px 12px;
  min-width: 0;
  outline: none;
  color: var(--ink);
  font-size: 12px;
}
.form-row input:focus,
.inline-form input:focus,
.field:focus {
  border-color: #64adb7;
  box-shadow: 0 0 0 3px #d9f0f0;
}
.form-row input {
  flex: 1;
}
.inline-form {
  display: grid;
  gap: 10px;
}
.inline-form label {
  font-size: 11px;
  font-weight: 700;
  color: #5d7883;
}
.inline-form input,
.inline-form textarea {
  width: 100%;
  margin-top: 5px;
}
.inline-form textarea {
  min-height: 78px;
  resize: vertical;
}
.list-row {
  padding: 16px 20px;
  border-bottom: 1px solid #edf2f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.list-row strong {
  font-size: 13px;
}
.list-row small {
  font-size: 11px;
  color: #8298a1;
}
.list-row p {
  margin: 4px 0 0;
  color: #637e88;
  font-size: 12px;
}
.row-actions {
  display: flex;
  gap: 7px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.metric {
  padding: 22px;
}
.metric .value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #15576c;
  margin: 7px 0 3px;
}
.metric .label {
  font-size: 11px;
  color: #748d97;
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 18px 0;
}
.insight {
  padding: 20px;
  border-top: 3px solid #62b6b6;
}
.insight:nth-child(2) {
  border-color: #2d889b;
}
.insight:nth-child(3) {
  border-color: #0a445c;
}
.insight h3 {
  font-size: 13px;
  margin: 0 0 9px;
}
.insight p {
  font-size: 12px;
  line-height: 1.6;
  color: #5a7680;
  margin: 0;
}
.chart {
  padding: 23px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  min-height: 150px;
  border-bottom: 1px solid #d6e4e8;
  padding: 15px 18px 0;
}
.bar-wrap {
  flex: 1;
  max-width: 70px;
  text-align: center;
  font-size: 11px;
  color: #748d96;
}
.bar {
  background: linear-gradient(#63bcb8, #17798d);
  border-radius: 6px 6px 0 0;
  min-height: 6px;
  margin: 0 auto 8px;
  width: 70%;
  position: relative;
}
.bar-level-1 { height: 12px; }
.bar-level-2 { height: 22px; }
.bar-level-3 { height: 32px; }
.bar-level-4 { height: 42px; }
.bar-level-5 { height: 52px; }
.bar-level-6 { height: 62px; }
.bar-level-7 { height: 72px; }
.bar-level-8 { height: 82px; }
.bar-level-9 { height: 92px; }
.bar-level-10 { height: 102px; }
.bar-level-11 { height: 112px; }
.bar-level-12 { height: 122px; }
.as-of-value { font-size: 20px; }
.figure-notice { margin-bottom: 15px; }
.figure-section { margin-bottom: 25px; }
.patent-drawing { max-width: 100%; max-height: 360px; }
.cited-by-heading { margin-top: 20px; }
.share-form { margin-top: 20px; }
.grow { flex: 1; }
.bi-content, .routing-panel { margin-top: 18px; }
.routing-heading { padding: 0 0 15px; }
.route-row { align-items: center; }
.route-row label { min-width: 145px; }
.bar span {
  position: absolute;
  top: -18px;
  left: 0;
  width: 100%;
  color: #1b6376;
  font-weight: 800;
}
.metadata {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 17px;
  display: grid;
  gap: 7px;
  font-size: 11px;
  color: #738b94;
}
.metadata strong {
  color: #315c6c;
}
.ai-box {
  background: linear-gradient(140deg, #e8f5f3, #f8fcfc);
  border: 1px solid #c9e7e6;
  border-radius: 13px;
  padding: 20px;
  margin-top: 16px;
}
.ai-box h3 {
  font-size: 14px;
  margin: 0 0 7px;
}
.ai-box p {
  font-size: 12px;
  line-height: 1.58;
  color: #587681;
}
.ai-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ai-controls select {
  border: 1px solid #cbdfe4;
  border-radius: 8px;
  padding: 9px;
  color: #244b5a;
  background: white;
  font-size: 11px;
}
.ai-answer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #c4e2e0;
  white-space: pre-wrap;
  line-height: 1.64;
  font-size: 12px;
}
.ai-answer .model-line {
  font-size: 11px;
  color: #176f82;
  font-weight: 800;
  white-space: normal;
  margin-bottom: 10px;
}
.figure-board {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfdfd;
  border: 1px solid #dbe8e9;
  border-radius: 12px;
  padding: 15px;
  min-height: 240px;
}
.figure-board svg {
  max-width: 100%;
  max-height: 300px;
}
.reference {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #ebf1f3;
}
.reference b {
  display: grid;
  place-items: center;
  flex: none;
  background: #e2f3f3;
  color: #146d7f;
  border-radius: 7px;
  width: 32px;
  height: 30px;
}
.reference p {
  margin: 0;
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #113b4c;
  color: #fff;
  padding: 13px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 12px;
  z-index: 10;
  max-width: 380px;
}
.login-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: white;
}
.login-art {
  background: linear-gradient(145deg, #073549, #126d80);
  color: white;
  padding: 60px min(8vw, 95px);
  position: relative;
  overflow: hidden;
}
.brand-large {
  font-size: 24px;
}
.brand-large .brand-mark {
  width: 46px;
  height: 46px;
}
.login-art h1 {
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin: 125px 0 20px;
  position: relative;
  z-index: 1;
}
.login-art h1 em {
  color: #91d9d3;
  font-style: normal;
}
.login-art p {
  font-size: 15px;
  line-height: 1.6;
  color: #cce4e8;
  max-width: 390px;
  position: relative;
  z-index: 1;
}
.art-orbit {
  position: absolute;
  border: 1px solid #ffffff24;
  border-radius: 50%;
  width: 540px;
  height: 540px;
  bottom: -250px;
  right: -180px;
}
.orbit-two {
  width: 370px;
  height: 370px;
  right: -95px;
  bottom: -162px;
}
.art-core {
  position: absolute;
  bottom: 54px;
  right: 60px;
  font-size: 100px;
  color: #d7f5ef2a;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-box {
  width: min(390px, 100%);
}
.login-box h2 {
  font-size: 34px;
  letter-spacing: -0.04em;
  margin: 10px 0 7px;
}
.login-box > p {
  color: #748e97;
  font-size: 13px;
  margin-bottom: 35px;
}
.login-box form {
  display: grid;
  gap: 20px;
}
.login-box label {
  font-size: 12px;
  font-weight: 700;
  color: #4a6875;
}
.login-box input {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #d6e4e8;
  border-radius: 9px;
  padding: 13px;
  outline: none;
}
.login-box input:focus {
  border-color: #4ea7b0;
}
.login-box .button {
  margin-top: 4px;
  justify-content: space-between;
  padding: 13px 16px;
}
.form-error {
  min-height: 23px;
  color: #a64545;
  font-size: 12px;
  margin-top: 10px;
}
.login-note {
  font-size: 11px;
  color: #9aadb5;
  border-top: 1px solid #e6eef0;
  margin-top: 38px;
  padding-top: 17px;
  line-height: 1.55;
}
@media (max-width: 1100px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .results {
    max-height: 340px;
    min-height: 150px;
  }
  .insight-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 800px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    min-height: auto;
    height: auto;
    position: relative;
    padding: 16px;
  }
  .brand {
    padding: 0 4px 12px;
  }
  .sidebar-caption,
  .sidebar-bottom {
    display: none;
  }
  .nav-list {
    display: flex;
    overflow: auto;
  }
  .nav-item {
    white-space: nowrap;
    width: auto;
  }
  .topbar {
    height: auto;
    padding: 14px 18px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .content {
    padding: 22px 16px 60px;
  }
  .split-cards,
  .metric-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 240px;
    padding: 25px;
  }
  .login-art h1 {
    font-size: 35px;
    margin: 45px 0 8px;
  }
  .login-art p {
    display: none;
  }
  .login-panel {
    padding: 35px 20px;
  }
  .page-head h1 {
    font-size: 26px;
  }
}
@media (max-width: 500px) {
  .top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .search-hero {
    padding: 25px 19px;
  }
  .search-hero h2 {
    font-size: 24px;
  }
  .search-form {
    flex-wrap: wrap;
  }
  .search-form button {
    width: 100%;
  }
  .hero-foot {
    gap: 8px;
  }
  .detail-inner,
  .tab-body {
    padding: 17px;
  }
  .page-head {
    flex-wrap: wrap;
  }
}
