/* CONEXA legacy pages on the platform system.
   Loaded after platform.css on about, trade-services, services, resources, studio,
   finder, domestic, overseas, buyers and inquiry. Uses platform tokens only. */

@font-face {
  font-family: "CONEXA Sans";
  src: url("assets/brand-pretendard.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* style.css still arrives through the shared head partial: neutralise its element rules. */
.platform .p-footer {
  display: block;
  height: auto;
  padding: 56px 0 32px;
  color: inherit;
  font-size: 14px;
}
.platform .p-footer a {
  margin-left: 0;
}
.platform .micro {
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--text-3);
}
.platform .skip {
  border-radius: var(--r-control);
}

/* Shared pieces */
.platform main [id] {
  scroll-margin-top: 88px;
}
.l-num {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 24px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.l-prose {
  display: grid;
  gap: 16px;
  justify-items: start;
  max-width: 44rem;
}
.l-prose p {
  color: var(--text-2);
}
.l-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px 56px;
  align-items: start;
}
.l-plate {
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 4 / 3;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--bg-soft);
  min-width: 0;
  overflow: hidden;
}
.p-hero .l-plate img,
.l-plate img {
  width: 100%;
  min-width: 0;
  height: auto;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}
.p-hero .l-plate:not(.symbol) {
  aspect-ratio: 3 / 2;
}
.p-hero .l-plate.symbol img {
  width: 36%;
}
.l-plate.overseas img {
  filter: brightness(0.32);
}
.l-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.l-cta p {
  margin-top: 8px;
  color: var(--text-2);
}
.l-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.l-next:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
}
.l-next span {
  font-size: 13px;
  color: var(--text-3);
}
.l-next strong {
  font-weight: 500;
  color: var(--accent-ink);
}
.p-howto .p-actions {
  margin-top: 32px;
}

/* Numbered rows: service manual, market directory */
.l-rows {
  border-top: 1px solid var(--line-strong);
}
.l-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 16px 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 88px;
}
.l-row > div {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}
.l-row-body p {
  color: var(--text-2);
}
.l-row .p-facts {
  width: 100%;
  grid-template-columns: 96px 1fr;
}
.l-row .p-facts dd {
  word-break: keep-all;
}
.l-row .p-actions {
  margin-top: 8px;
}
.l-code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 24px;
  color: var(--text-3);
}
.l-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.l-toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  font-size: 14px;
  color: var(--text-2);
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}
.l-toc a:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.l-toc span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

/* Cards: markets, services, identity */
.l-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}
.l-cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.l-card {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}
.l-card .l-plate,
.l-card > img {
  width: 100%;
  margin-bottom: 8px;
}
.l-card .l-plate {
  aspect-ratio: 2 / 1;
  padding: 16px;
}
.l-card > img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-card);
  background: var(--bg-soft);
}
.l-card p {
  font-size: 14px;
  color: var(--text-2);
}
a.l-card h3 {
  transition: color 150ms var(--ease);
}
a.l-card:hover h3 {
  color: var(--accent-ink);
}
a.l-card:hover .l-plate {
  border-color: var(--line-strong);
}
.l-identity {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.l-identity figure {
  display: grid;
  gap: 12px;
  margin: 0;
}
.l-identity figure > div {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
}
.l-identity img {
  width: 100%;
  max-height: 112px;
  object-fit: contain;
}
.l-identity figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.l-shortcuts a {
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
}
.l-shortcuts svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.l-shortcuts h3,
.l-shortcuts p {
  grid-column: 2;
}
.l-shortcuts svg {
  grid-row: 1 / 3;
}
.l-linklist {
  display: grid;
  border-top: 1px solid var(--line);
}
.l-linklist a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  transition: color 150ms var(--ease);
}
.l-linklist a:hover {
  color: var(--accent-ink);
}
.l-linklist a::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-top: 1.5px solid var(--text-3);
  border-right: 1.5px solid var(--text-3);
  transform: rotate(45deg);
}
.l-linklist span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}
.l-figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px 56px;
  align-items: center;
}
.l-figure figure {
  justify-self: center;
  width: 100%;
  max-width: 600px;
  margin: 0;
}
.l-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Dialogs on these pages */
.l-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.l-brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.l-brand-grid figure {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  text-align: center;
}
.l-brand-grid img {
  width: 100%;
  height: 96px;
  object-fit: contain;
}
.l-brand-grid figcaption {
  font-size: 13px;
  color: var(--text-2);
}

/* Resources */
.l-search {
  display: grid;
  gap: 8px;
  max-width: 640px;
  margin-bottom: 48px;
  font-size: 14px;
  font-weight: 500;
}
.l-search span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.l-downloads {
  border-top: 1px solid var(--line-strong);
}
.download-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.download-row > div {
  display: grid;
  gap: 4px;
}
.download-row p {
  font-size: 14px;
  color: var(--text-2);
}
.l-faq {
  border-top: 1px solid var(--line-strong);
}
.l-faq details {
  border-bottom: 1px solid var(--line);
}
.l-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.l-faq summary::-webkit-details-marker {
  display: none;
}
.l-faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 150ms var(--ease);
}
.l-faq details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}
.l-faq details p {
  max-width: 44rem;
  margin-bottom: 8px;
  color: var(--text-2);
}
.l-faq details .p-link {
  display: inline-block;
  margin-bottom: 20px;
}
.l-faq details p:last-child {
  margin-bottom: 20px;
}

/* Inquiry */
.l-inquiry .p-auth-panel .p-actions {
  margin-top: 4px;
}
.l-inquiry .p-roles label {
  font-weight: 500;
}
.p-form fieldset.l-plain {
  gap: 8px;
  padding: 0;
  border: 0;
}
.p-form fieldset.l-plain legend {
  padding: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
}
#form-status:empty {
  display: none;
}
#form-status {
  font-size: 14px;
  color: var(--accent-ink);
}

/* Buyer discovery (finder). Targets the existing finder.html markup, active once
   that page carries body.platform and loads this file. */
.platform .workspace {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  min-height: 60vh;
  margin-inline: auto;
  padding: 40px 0 96px;
}
.platform .portal-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-3);
}
.platform .portal-breadcrumb a:hover {
  color: var(--text);
}
.platform .registry-cover {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  margin-bottom: 32px;
}
.platform .registry-cover > div {
  display: grid;
  gap: 8px;
}
.platform .registry-kicker {
  font-size: 13px;
  color: var(--text-3);
}
.platform .registry-cover p:not(.registry-kicker) {
  max-width: 36rem;
  font-size: 16px;
  color: var(--text-2);
}
.platform .pane-label {
  font-size: 13px;
  color: var(--text-3);
}
.platform #run {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-control);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 150ms var(--ease);
}
.platform #run:hover {
  background: var(--accent-ink);
}
.platform #export {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
.platform #export:hover:not(:disabled) {
  background: var(--bg-soft);
}
.platform #export:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.platform .result-head h2 {
  margin: 0;
}
.platform #lead-dialog {
  width: min(100% - 32px, 760px);
  max-height: calc(100vh - 48px);
  padding: 28px;
  overflow: auto;
  border: 0;
  border-radius: var(--r-panel);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 64px rgb(17 24 39 / 0.18);
}
.platform #lead-dialog::backdrop {
  background: rgb(17 24 39 / 0.4);
}
.platform #lead-dialog .dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.platform #lead-dialog h2 {
  margin-bottom: 16px;
  font-size: 18px;
}
.platform #lead-close {
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
}
.platform #lead-close:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.platform .coverage {
  display: flex;
  gap: 32px;
}
.platform .coverage div {
  display: grid;
  gap: 4px;
}
.platform .coverage dt {
  font-size: 13px;
  color: var(--text-3);
}
.platform .coverage dd {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.l-tabs,
.platform .modes {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.l-tabs button,
.l-tabs a,
.platform .modes button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin-bottom: -1px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
.l-tabs button:hover,
.l-tabs a:hover,
.platform .modes button:hover {
  color: var(--text);
}
.l-tabs [aria-pressed="true"],
.l-tabs [aria-current="page"],
.platform .modes [aria-pressed="true"] {
  color: var(--accent-ink);
  border-color: var(--accent);
}
.l-tabs i,
#saved-count {
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.platform .desk {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.platform .desk form {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.platform .desk form h2 {
  font-size: 16px;
}
.platform .desk form > div:not(#examples) {
  display: grid;
  gap: 8px;
}
.platform .desk form label {
  font-size: 13px;
  font-weight: 500;
}
#query-label {
  margin-bottom: -8px;
}
#instructions {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
}
#examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -8px;
}
#examples:empty {
  display: none;
}
#examples button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 12px;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
#examples button:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.platform #run {
  width: 100%;
}
.platform .matches {
  min-width: 0;
}
.platform .result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
#status {
  min-height: 22px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
#match-info:not(:empty) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--bg-soft);
  font-size: 14px;
}
#match-info > :not(button) {
  flex-basis: 100%;
}
#match-info p,
#match-info small {
  font-size: 13px;
  color: var(--text-2);
}
.platform .coverage-note {
  display: grid;
  gap: 4px;
  justify-items: start;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.platform .coverage-note strong {
  font-size: 14px;
  font-weight: 500;
}
.platform .coverage-note p,
.platform .coverage-note small {
  font-size: 13px;
  color: var(--text-2);
}
#match-info p:empty {
  display: none;
}
#web-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
#web-routes:empty {
  display: none;
}
#web-routes a,
.platform .workspace .case-button,
.platform .workspace .keep,
.platform .workspace .backlist,
.platform .paginator button,
#lead-body button {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
#web-routes a:hover,
.platform .workspace .case-button:hover,
.platform .workspace .keep:hover,
.platform .workspace .backlist:hover,
.platform .paginator button:hover,
#lead-body button:hover {
  background: var(--bg-soft);
}
.platform .workspace [aria-pressed="true"].case-button,
.platform .workspace [aria-pressed="true"].keep {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.platform .workspace button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.platform .workspace .textlink {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 500;
}
.platform .workspace .textlink:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.platform .workspace .row {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.platform .workspace .row .micro {
  font-size: 12px;
}
.platform .workspace .row h3 {
  font-size: 17px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.platform .workspace .row p {
  font-size: 14px;
  color: var(--text-2);
}
.platform .workspace .row .place {
  font-size: 13px;
  color: var(--text-3);
}
.platform .workspace .row .why {
  font-size: 13px;
  color: var(--pos);
}
.lead-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 8px;
}
.lead-links a:not(.case-button) {
  font-size: 13px;
  color: var(--accent-ink);
  text-underline-offset: 3px;
}
.lead-links a:hover {
  text-decoration: underline;
}
.lead-links .keep {
  margin-left: auto;
}
.evidence-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.product-option {
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.product-option .micro {
  font-family: var(--mono);
  font-size: 12px;
}
.platform .workspace .empty {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 16px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  background: var(--bg-soft);
  color: var(--text-2);
}
.research-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-ink);
}
.research-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.query-guide {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.query-guide h3 {
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--text-2);
}
.query-preset {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  text-align: left;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.query-preset:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
}
.query-preset small {
  font-size: 13px;
  color: var(--text-3);
}
.query-preset strong {
  font-weight: 500;
}
.query-preset span {
  color: var(--text-3);
}
.platform .paginator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}
.platform .paginator:empty {
  display: none;
}
.platform .source-notes {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.platform .source-notes summary {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
}
.platform .source-notes p {
  max-width: 72ch;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
}
.platform .source-notes a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#lead-dialog h2 {
  overflow-wrap: anywhere;
}
#lead-body {
  display: grid;
  gap: 12px;
  justify-items: start;
  font-size: 14px;
}
#lead-body > *,
#lead-body label {
  width: 100%;
}
#lead-body > a,
#lead-body > button,
.verification a {
  width: auto;
}
#lead-body > a,
.verification a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#lead-body label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}
#lead-body .verification:not(:empty) {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 12px 16px;
  border-radius: var(--r-control);
  background: var(--bg-soft);
}
#lead-body .verification:empty {
  display: none;
}
#lead-body p {
  color: var(--text-2);
}

/* Market preparation room (studio) */
.l-studio-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.l-docket {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.l-docket h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
#sheet-market {
  min-height: 21px;
  font-size: 13px;
  color: var(--text-3);
  white-space: pre;
}
.l-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 10px;
  background: var(--raised);
}
.l-switch button {
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.l-switch [aria-pressed="true"] {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgb(17 24 39 / 0.08);
}
.l-meter-head {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-2);
}
.l-meter-head b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
#meter {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 3px;
  background: var(--raised);
  appearance: none;
  overflow: hidden;
}
#meter::-webkit-progress-bar {
  background: var(--raised);
}
#meter::-webkit-progress-value {
  background: var(--accent);
  transition: width 200ms var(--ease);
}
#meter::-moz-progress-bar {
  background: var(--accent);
}
#next-task {
  font-size: 13px;
  color: var(--text-2);
  white-space: pre-wrap;
}
#saved-state {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
}
.l-work {
  min-width: 0;
}
.l-studio .sheet-nav {
  margin-bottom: 32px;
  scroll-margin-top: 80px;
}
.l-studio .sheet-nav i {
  color: var(--text-3);
}
.l-studio .sheet-nav [aria-current="page"] i {
  color: var(--accent);
}
.l-sheet-head {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}
.l-sheet-head h2:focus {
  outline: none;
}
.l-sheet-head p {
  max-width: 40rem;
  color: var(--text-2);
}
.l-studio h3 {
  margin: 40px 0 8px;
}
#checks {
  border-top: 1px solid var(--line);
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.check-row input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}
.check-row strong {
  display: block;
  font-weight: 500;
}
.check-row small {
  display: block;
  font-size: 13px;
  color: var(--text-3);
}
.check-row:has(:checked) strong {
  color: var(--text-2);
}
.l-actions {
  margin-top: 24px;
}
.l-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.quote-set {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.quote-set legend {
  padding: 0 4px;
  font-size: 15px;
  font-weight: 600;
}
.quote-set label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.quote-set input {
  font-variant-numeric: tabular-nums;
}
.l-note {
  margin: 16px 0;
  max-width: 44rem;
}
.l-totals .p-table caption {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
  text-align: left;
}
.l-totals .p-table th:not(:first-child),
.l-totals .p-table td {
  text-align: right;
}
.l-totals .p-table tbody tr {
  cursor: default;
}
.l-totals .p-table tbody tr:hover {
  background: none;
}
.l-totals .p-table tbody th {
  position: static;
  padding: 12px 16px;
  background: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: normal;
}
.l-totals .p-table tbody tr:last-child th,
.l-totals .p-table tbody tr:last-child td {
  border-bottom: 0;
  font-weight: 600;
}
#quote-difference {
  margin-top: 12px;
  font-size: 14px;
}
.l-proposal {
  margin-top: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.l-proposal-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
}
.l-proposal-bar strong {
  font-weight: 600;
  color: var(--text);
}
.l-studio .l-proposal h3 {
  margin: 24px 0 16px;
  font-size: 24px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
#doc-lines {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  font-size: 14px;
}
#doc-lines dt,
#doc-lines dd {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
#doc-lines dt {
  color: var(--text-3);
}
#doc-lines dd {
  font-variant-numeric: tabular-nums;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#brief-status {
  min-height: 21px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent-ink);
}

/* Responsive */
@media (max-width: 1000px) {
  .platform .desk,
  .l-studio-layout,
  .l-split,
  .l-figure {
    grid-template-columns: 1fr;
  }
  .platform .desk form,
  .l-docket {
    position: static;
  }
  .l-identity {
    grid-template-columns: 1fr 1fr;
  }
  .l-cards.three {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .l-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }
  .l-cards,
  .l-cards.three,
  .l-quote-grid {
    grid-template-columns: 1fr;
  }
  .l-cta {
    padding: 24px;
  }
  .download-row {
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
  }
  .download-row > .p-button {
    grid-column: 2;
    justify-self: start;
  }
  .query-preset {
    grid-template-columns: 1fr auto;
  }
  .query-preset small {
    grid-column: 1 / -1;
  }
  .lead-links .keep {
    margin-left: 0;
  }
  .l-proposal {
    padding: 20px;
  }
  #doc-lines {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  .platform .coverage dd {
    font-size: 24px;
  }
}

/* Proposal print: only the document leaves the page. */
@media print {
  body:has(.l-studio) {
    background: #fff;
    color: #000;
  }
  body:has(.l-studio)
    :is(
      .skip,
      .p-header,
      .p-category-nav,
      .p-footer,
      .p-breadcrumb,
      .p-heading,
      .l-docket,
      .sheet-nav,
      .l-sheet-head,
      .l-actions,
      .p-form-grid,
      .l-note,
      #brief-status,
      #plan,
      #quote
    ) {
    display: none !important;
  }
  .l-studio,
  .l-studio-layout,
  .l-work,
  #brief {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .l-proposal {
    margin: 0;
    padding: 8mm;
    border: 0;
  }
  .l-studio .l-proposal h3 {
    font-size: 24pt;
  }
  #doc-lines {
    font-size: 12pt;
  }
}
